text: /*! For license information please see 5.3cb3b47e.chunk.js.LICENSE.txt */
  (this["webpackJsonpdashboard-v1"]=this["webpackJsonpdashboard-v1"]||[]).push([[5],Array(47).concat([function(e,t,n){"use strict";n.r(t),n.d(t,"initSentry",(function(){return o}));var r=n(1266),a=n(231);function o(){r.a({dsn:"https://085edd94ec3e479cb20f2c65f7b8cb82@o525420.ingest.sentry.io/5639443",integrations:[new a.a.BrowserTracing],tracesSampleRate:1})}},,,,,function(e,t,n){"use strict";n.r(t);var r=n(81),a=n(3),o=(n(1),n(96)),i=n(107),s=n(324),A=n(325),c=n(82),l=n(323),u=n(321),d=(n(204),n(94)),f=n(47);Object(f.initSentry)(),window.Cypress&&(window.store=d.a);t.default=function(){return document.title="Jina Hub",Object(a.jsx)(c.a,{store:d.a,children:Object(a.jsx)(o.b,{basename:"/",children:Object(a.jsx)("div",{children:s.b.map((function(e,t){return Object(a.jsx)(i.b,{path:e.path,exact:e.exact,component:Object(A.a)((function(t){return Object(a.jsx)(e.layout,Object(r.a)(Object(r.a)(Object(r.a)({},t),e.props),{},{children:Object(a.jsx)(l.ErrorBoundary,{FallbackComponent:u.a,children:Object(a.jsx)(e.component,Object(r.a)({},t))})}))}))},t)}))})})})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(27),a=n(180);function o(e,t,n){s.log("window.onerror - ERROR",e,t,"line: ".concat(n))}function i(e){window.logs.push(e)}var s={log:function(){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];if(window.logsEnabled){var o=Object(r.a)(arguments);(e=console).log.apply(e,Object(r.a)(o)),i(o)}},isEnabled:function(){return window.logsEnabled},enable:function(){var e={};for(var t in window.navigator)e[t]=window.navigator[t];window.logs=[],i(e),window.addEventListener("error",o),window.logsEnabled=!0},disable:function(){window.removeEventListener("error",o),window.logsEnabled=!1},setFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"json";window.logsFormat=e},exportLogs:function(){for(var e=window.logsFormat||"json",t=window.logs,n="[\n",r=0;r<t.length;++r){var o=t[r];n+=JSON.stringify(o)+"".concat(r<t.length-1?",":"","\n")}n+="]";var i="jina-dashboard-debug-output-".concat(new Date,".").concat(e),s=new Blob([n],{type:"text,plain;charset=utf-8"});Object(a.saveAs)(s,i)}};t.a=s},function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return B})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return x})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return E}));var r=n(19),a=n.n(r),o=n(26),i=n(141),s=n(94),A=n(106),c=n(112),l=n.n(c),u=function(){var e=Object(o.a)(a.a.mark((function e(){var t,n,r,o,i,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.get("https://api.jina.ai/latest.json");case 2:return o=e.sent,i=o.data,s={flow:f(null===(t=i.methods.find((function(e){return"flow"===e.name})))||void 0===t?void 0:t.options),pea:f(null===(n=i.methods.find((function(e){return"pea"===e.name})))||void 0===n?void 0:n.options),pod:f(null===(r=i.methods.find((function(e){return"pod"===e.name})))||void 0===r?void 0:r.options),version:i.version},e.abrupt("return",s);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d={str:"string",bool:"boolean",int:"integer","typing.List[str]":"string"},f=function(e){return e?e.map((function(e){var t=e.name,n=e.help,r=e.default,a=e.type,o=d[a];return"undefined"===typeof r||null===r?{name:t,description:n,type:o}:{name:t,description:n,defaultValue:r,type:o}})):[]},h=n(92),p=n(88);function g(e,t){return function(n){n(b(e,t)),e?(n(w(t,"success")),n(function(){var e=Object(o.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:i.c}),e.next=3,A.a.getJinaFlowArguments();case 3:return n=e.sent,p.a.log("loadFlowArgumentsFromDaemon | flowArguments:",n),e.abrupt("return",t(Object(h.m)(n)));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):n(function(){var e=Object(o.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:i.b}),e.next=3,u();case 3:return n=e.sent,p.a.log("loadFlowArgumentsFromApi | flowArguments:",n),e.abrupt("return",t(Object(h.m)(n)));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}function m(e,t){return function(n){n(b(e,t)),e&&n(w(t,"success"))}}function b(e,t){return{type:i.d,payload:{connected:e,message:t}}}function v(){return{type:i.l}}function w(e,t){return function(n){n(function(e,t){return{type:i.i,payload:{message:e,theme:t}}}(e,t)),setTimeout((function(){n({type:i.e})}),i.f)}}function y(e){return{type:i.j,payload:{message:e}}}function B(e,t){return{type:i.k,payload:{modal:e,modalParams:t||null}}}function O(){return{type:i.a}}function x(){return function(e){var t=s.a.getState().settingsState.settings;A.a.connect(t,(function(t){var n=t.connected,r=t.message;e(g(n,r))}))}}function C(){return{type:i.g}}function E(e){return localStorage.setItem("user",JSON.stringify(e)),{type:i.h,payload:{user:e}}}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return g}));var r=n(81),a=n(6),o=n(239),i=n(111),s=n(98),A=Object(r.a)(Object(r.a)({},{depth:0}),{label:"string",name:"string"}),c=n(105),l=Object.keys(A),u=function(e){var t=/^!/.test(e)?e.split("\n").slice(1).join("\n"):e;try{var n=o.parse(t);if("object"!==typeof n||null===n)throw new Error("Invalid YAML");return Object.keys(n.pods).forEach((function(e){n.pods[e].needs&&!Array.isArray(n.pods[e].needs)&&(n.pods[e].needs=[n.pods[e].needs])})),{data:n}}catch(r){alert("Error Parsing YAML:\n"+r.message)}},d=function(e,t){var n=e.with,i=e.elements,s=[],A=[];i.forEach((function(e){Object(c.d)(e)&&A.push(e),Object(c.e)(e)&&s.push(e)}));var u=t.pod,d=A.reduce((function(e,t){var n=t.source,r=t.target;return e[r]||(e[r]=[]),e[r].push(n),e}),{}),f=s.filter((function(e){return"gateway"!==e.data.label})).reduce((function(e,t){var n,o=t.data.label,i=Object.entries(t.data).reduce((function(e,t){var n=Object(a.a)(t,2),r=n[0],o=n[1];return l.includes(r)||(e[r]=function(e,t,n){var r=n.find((function(t){return t.name===e}));return r&&"boolean"===r.type?"true"===String(t):t}(r,o,u)),e}),{});return d[o]&&(i.needs=(n=d[o],Array.isArray(n)&&1===n.length?n[0]:n)),e[o]=Object(r.a)({},i),e}),{}),h=s.reduce((function(e,t){var n=t.position,r=n.x,a=n.y;return e[t.data.label||t.data.name]={x:parseInt(r),y:parseInt(a)},e}),{}),p={with:Object(r.a)(Object(r.a)({},n),{},{board:{canvas:h}}),pods:f};return"!Flow\n".concat(o.stringify(p))},f=function(e){var t=60,n=3600;return e<t?"".concat(Math.floor(e),"s"):e<n?"".concat(Math.floor(e/t),"m ").concat(Math.floor(e%t),"s"):"".concat(Math.floor(e/n),"h ").concat(Math.floor(e%n/t),"m ").concat(Math.floor(e%t),"s")},h=function(e){return e<1024?"".concat(e," Bytes"):e<Math.pow(1024,2)?"".concat((e/1024).toFixed(1)," KB"):e<Math.pow(1024,3)?"".concat((e/Math.pow(1024,2)).toFixed(1)," MB"):"".concat((e/Math.pow(1024,3)).toFixed(1)," GB")};function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=Object(i.c)(),o=e/t,A=[],c=Math.ceil(r/1e3/o)*o,l=Math.floor(r/1e3),u=function(e){for(var t=Object(s.cloneDeep)(a),r=e;r<e+o;++r){var i=n[r];i&&(t.lastLog=i.lastLog,Object.entries(i.levels).forEach((function(e){var n=e[0],r=e[1];t.levels[n]=t.levels[n]+r})))}A.push(t)},d=c-e;d<c;d+=o)u(d);return{data:A,numSeconds:e,numTicks:t,lastTimestamp:l}}function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"k",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"r",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"f",(function(){return w})),n.d(t,"p",(function(){return y})),n.d(t,"q",(function(){return B})),n.d(t,"g",(function(){return O})),n.d(t,"l",(function(){return x})),n.d(t,"d",(function(){return C})),n.d(t,"h",(function(){return E})),n.d(t,"n",(function(){return F})),n.d(t,"s",(function(){return _})),n.d(t,"o",(function(){return Q}));var r=n(19),a=n.n(r),o=n(26),i=n(126),s=n(89),A=n(150),c=n(88),l=n(106);function u(e){return{type:i.k,payload:e}}function d(){return{type:i.c}}function f(e){return{type:i.m,payload:e}}function h(e){return{type:i.p,payload:e}}function p(e){return{type:i.i,payload:e}}function g(e){return{type:i.j,payload:e}}function m(e){return{type:i.e,payload:e}}function b(e,t,n){return{type:i.b,payload:{data:n,id:e,position:t}}}function v(e,t){return{type:i.a,payload:{source:e,target:t}}}function w(e){return{type:i.f,payload:e}}function y(e,t){return{type:i.n,payload:{nodeId:e,nodeUpdate:t}}}function B(e,t){return{type:i.o,payload:{nodeId:e,nodeDataUpdate:t}}}function O(e){return{type:i.g,payload:e}}function x(e){return{type:i.l,payload:e}}function C(){return{type:i.d}}function E(e){return{type:i.h,payload:e}}function j(e){return{type:i.q,payload:e}}function F(e,t){return function(){var n=Object(o.a)(a.a.mark((function n(r){var o,i,A,u,d,f,p,g;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=9;break}return n.next=3,l.a.createWorkspace(["empty_blob"]);case 3:if(o=n.sent,i=o.status,A=o.message,u=o.workspace_id,"error"!==i){n.next=7;break}return n.abrupt("return",r(Object(s.g)(A,"error")));case 7:r(j({daemon_id:t=u}));case 9:return n.next=11,l.a.startFlow(e,t);case 11:if(d=n.sent,f=d.status,p=d.message,g=d.flow_id,c.a.log("startFlow result",d),"error"!==f){n.next=16;break}return n.abrupt("return",r(Object(s.g)(p,"error")));case 16:r(h({daemon_id:g})),r(Object(s.g)("Successfully started flow","success")),r(U(g));case 19:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function _(e,t){return function(){var n=Object(o.a)(a.a.mark((function n(r){var o,i,A,u,d,f,h,p;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=10;break}return n.next=3,l.a.createWorkspace(e);case 3:if(o=n.sent,i=o.status,A=o.message,u=o.workspace_id,"error"!==i){n.next=7;break}return n.abrupt("return",r(Object(s.g)(A,"error")));case 7:t=u,n.next=17;break;case 10:return n.next=12,l.a.uploadFilesToWorkspace(t,e);case 12:if(d=n.sent,f=d.status,h=d.message,c.a.log("uploadFilesToWorkspace result",d),"error"!==f){n.next=17;break}return n.abrupt("return",r(Object(s.g)(h,"error")));case 17:return n.next=19,l.a.getWorkspace(t);case 19:if("error"!==(p=n.sent).status){n.next=22;break}return n.abrupt("return",r(Object(s.g)(p.message,"error")));case 22:r(j({files:p.workspace.arguments,daemon_id:t})),r(Object(s.g)("Successfully uploaded files to workspace","success"));case 24:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function Q(e){return function(){var t=Object(o.a)(a.a.mark((function t(n){var r,o,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.terminateFlow(e);case 2:if(r=t.sent,o=r.status,i=r.message,c.a.log("stopFlow result: ",r),"error"!==o){t.next=7;break}return t.abrupt("return",n(Object(s.g)(i,"error")));case 7:n(Object(s.g)(i,"success")),n(h({daemon_id:null}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}function U(e){return function(){var t=Object(o.a)(a.a.mark((function t(n){var r,o,i,u,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.getFlow(e);case 2:if(r=t.sent,o=r.status,i=r.message,u=r.flow,c.a.log("got network flow:",u),"error"!==o){t.next=9;break}return t.abrupt("return",n(Object(s.g)(i,"error")));case 9:d=u.workspace_id,n(Object(A.a)(d,e));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},,function(e,t,n){"use strict";var r=n(175),a=n(81),o=n(6),i=n(98),s=n(126),A={example_workspace_pokedex:{jina_version:"latest",type:"example",name:"Pokedex Workspace",selectedFlowId:"example_flow_pokedex",flowArguments:s.r,isConnected:!1,daemon_endpoint:null,daemon_id:null,files:[]},example_workspace_flower:{jina_version:"latest",type:"example",name:"Flower Workspace",selectedFlowId:"example_flow_flower",flowArguments:s.r,isConnected:!1,daemon_endpoint:null,daemon_id:null,files:[]},example_workspace_southpark:{jina_version:"latest",type:"example",name:"Southpark Workspace",selectedFlowId:"example_flow_southpark",flowArguments:s.r,isConnected:!1,daemon_endpoint:null,daemon_id:null,files:[]},example_workspace_test:{jina_version:"latest",type:"example",name:"Example Workspace",selectedFlowId:"blankFlow",flowArguments:s.r,isConnected:!1,daemon_endpoint:null,daemon_id:null,files:[]}},c={example_flow_pokedex:{workspaceId:"example_workspace_pokedex",name:"Pokedex Query",yaml:"!Flow\n      with:\n        read_only: true\n        rest_api: true\n        port_expose: $JINA_PORT\n        board:\n          canvas:\n            gateway:\n              x: 250\n              y: 150\n            chunk_seg:\n              x: 250\n              y: 268\n            tf_encode:\n              x: 250\n              y: 420\n            chunk_idx:\n              x: 250\n              y: 600\n            ranker:\n              x: 250\n              y: 836\n            doc_idx:\n              x: 249\n              y: 985\n      pods:\n        gateway: {}\n        chunk_seg:\n          uses: pods/craft.yml\n          parallel: $PARALLEL\n          needs: gateway\n        tf_encode:\n          uses: pods/encode.yml\n          parallel: $PARALLEL\n          timeout_ready: 600000\n          needs: chunk_seg\n        chunk_idx:\n          uses: pods/chunk.yml\n          separated_workspace: true\n          polling: all\n          uses_reducing: _merge_all\n          timeout_ready: 100000\n          needs: tf_encode\n        ranker:\n          uses: BiMatchRanker\n          needs: chunk_idx\n        doc_idx:\n          uses: pods/doc.yml\n          needs: ranker\n      \n      "},example_flow_flower:{workspaceId:"example_workspace_flower",name:"Flower Query",yaml:"!Flow\n  with:\n    read_only: true\n    port_expose: $JINA_PORT\n    board:\n      canvas:\n        gateway:\n          x: 250\n          y: 150\n        loader:\n          x: 250\n          y: 257\n        flipper:\n          x: 252\n          y: 407\n        normalizer:\n          x: 239\n          y: 563\n        encoder:\n          x: 252\n          y: 712\n        chunk_indexer:\n          x: 250\n          y: 872\n        ranker:\n          x: 252\n          y: 1066\n        doc_indexer:\n          x: 253\n          y: 1199\n  pods:\n    gateway: {}\n    loader:\n      uses: yaml/craft-load.yml\n      read_only: true\n      needs: gateway\n    flipper:\n      uses: yaml/craft-flip.yml\n      read_only: true\n      needs: loader\n    normalizer:\n      uses: yaml/craft-normalize.yml\n      read_only: true\n      needs: flipper\n    encoder:\n      uses: $ENCODER\n      timeout_ready: 600000\n      read_only: true\n      needs: normalizer\n    chunk_indexer:\n      uses: yaml/index-chunk.yml\n      separated_workspace: true\n      polling: all\n      uses_reducing: _merge_all\n      needs: encoder\n    ranker:\n      uses: MinRanker\n      needs: chunk_indexer\n    doc_indexer:\n      uses: yaml/index-doc.yml\n      needs: ranker  \n  "},example_flow_southpark:{workspaceId:"example_workspace_southpark",name:"Southpark Query",yaml:"!Flow\nwith:\n  read_only: true\n  port_expose: $JINA_PORT\n  board:\n    canvas:\n      gateway:\n        x: 254\n        y: 147\n      splittor:\n        x: 254\n        y: 270\n      encoder:\n        x: 254\n        y: 448\n      chunk_indexer:\n        x: 251\n        y: 645\n      ranker:\n        x: 255\n        y: 862\n      doc_indexer:\n        x: 256\n        y: 1002\npods:\n  gateway: {}\n  splittor:\n    uses: pods/craft-split.yml\n    parallel: $PARALLEL\n    read_only: true\n    needs: gateway\n  encoder:\n    uses: pods/encode.yml\n    parallel: $PARALLEL\n    timeout_ready: 60000\n    read_only: true\n    needs: splittor\n  chunk_indexer:\n    uses: pods/index-chunk.yml\n    separated_workspace: true\n    polling: all\n    reducing_uses: _merge_all\n    needs: encoder\n  ranker:\n    uses: MinRanker\n    needs: chunk_indexer\n  doc_indexer:\n    uses: pods/index-doc.yml\n    needs: ranker\n"},blankFlow:{name:"Test Flow",workspaceId:"example_workspace_test",yaml:"!Flow\n    with:\n      rest_api: true\n      port_expose: 5555\n    pods:\n      pod1:\n        read_only: true\n      pod2:\n        read_only: true\n      pod3:\n        read_only: true"}},l=n(104),u=n(20),d=n(99);var f=n(105);function h(){var e={};return Object.entries(c).forEach((function(t){var n=Object(o.a)(t,2),r=n[0],i=n[1],s=Object(l.f)(i.yaml);if(null===s||void 0===s?void 0:s.data){var A=Object(l.d)(s.data);e[r]=Object(a.a)(Object(a.a)({},i),{},{type:"example",isConnected:!1,flowChart:A})}})),e}function p(){return A}var g=Object(a.a)(Object(a.a)({},function(){var e=localStorage.getItem("userWorkspaces"),t=e?JSON.parse(e):null;return Object(i.isEmpty)(t)?Object(i.cloneDeep)(s.u):t}()),p()),m=Object(a.a)(Object(a.a)({},function(){var e=localStorage.getItem("userFlows"),t=e?JSON.parse(e):null;return Object(i.isEmpty)(t)?Object(i.cloneDeep)(s.s):t}()),h()),b={selectedWorkspaceId:Object.keys(g)[0],workspaces:Object(a.a)({},g),flows:Object(a.a)({},m)};function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(u.a)(),r=arguments.length>3?arguments[3]:void 0,a="Custom Flow",o=Object.values(e.flows).filter((function(e){return e.name.startsWith(a)})),i=o.map((function(e){return parseInt(e.name.substring(a.length))||0})).sort((function(e,t){return e-t})),A=i[i.length-1]||0,c=s.v;if(t){var d=Object(l.f)(t);(null===d||void 0===d?void 0:d.data)&&(c=Object(l.d)(d.data))}return e.flows[n]={isConnected:!1,name:"".concat(a," ").concat(A+1),type:"user-generated",workspaceId:r||e.selectedWorkspaceId,flowChart:c},e}var w=Object(d.a)((function(e,t){switch(t.type){case s.c:e=v(e);break;case s.i:case s.j:e=v(e,t.payload);break;case s.e:var n=t.payload;e.flows=Object(i.omit)(e.flows,n);var r=e.selectedWorkspaceId,A=e.workspaces[r].selectedFlowId,c=Object.entries(e.flows).filter((function(e){var t=Object(o.a)(e,2);t[0];return t[1].workspaceId===r}));if(A===n&&c.length){var l=c[0][0];e.workspaces[r].selectedFlowId=l}else if(!c.length){var d=Object(u.a)();v(e,void 0,d,r),e.workspaces[r].selectedFlowId=d}break;case s.p:var g=t.payload;if(e.workspaces[e.selectedWorkspaceId].selectedFlowId){var m=e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId];e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId]=Object(a.a)(Object(a.a)({},m),g)}break;case s.m:e.workspaces[e.selectedWorkspaceId].flowArguments=t.payload;break;case s.k:e.workspaces[e.selectedWorkspaceId].selectedFlowId=t.payload;break;case s.n:var b=t.payload,w=b.nodeUpdate,y=b.nodeId,B=e.workspaces[e.selectedWorkspaceId].selectedFlowId,O=e.flows[B].flowChart.elements.findIndex((function(e){return e.id===y}));if(O>=0){var x=e.flows[B].flowChart.elements[O],C=Object(a.a)(Object(a.a)({},x),w);e.flows[B].flowChart.elements[O]=C}break;case s.o:var E=t.payload,j=E.nodeDataUpdate,F=E.nodeId,_=e.workspaces[e.selectedWorkspaceId].selectedFlowId,Q=e.flows[_].flowChart.elements.findIndex((function(e){return e.id===F}));if(Q>=0){var U=e.flows[_].flowChart.elements[Q],k=Object(a.a)(Object(a.a)({},U.data),j);e.flows[_].flowChart.elements[Q].data=k}break;case s.b:var S=t.payload,D=S.data,N=S.id,H=S.position,I=Object(f.b)(N,D,H);e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements.push(I);break;case s.g:var M=t.payload,T=e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements.filter((function(e){return Object(f.e)(e)?e.id!==M:!Object(f.d)(e)||e.source!==M&&e.target!==M}));e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements=T;break;case s.a:var R=t.payload,L=R.source,P=R.target,K=Object(f.a)(L,P);e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements.push(K);break;case s.f:if(void 0!==t.payload.source){var z=t.payload,V=z.source,W=z.target;e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements=e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements.filter((function(e){return!(Object(f.d)(e)&&(e.source===V||e.target===W))}))}else{var Y=t.payload;e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements=e.flows[e.workspaces[e.selectedWorkspaceId].selectedFlowId].flowChart.elements.filter((function(e){return Y!==e.id}))}break;case s.l:e.selectedWorkspaceId=t.payload;break;case s.d:e=function(e){var t="Workspace",n=Object.values(e.workspaces).filter((function(e){return e.name.startsWith(t)})).map((function(e){return parseInt(e.name.substring(t.length))||0})).sort((function(e,t){return e-t})),r=n[n.length-1]||0,a=Object(u.a)(),o=Object(u.a)();return e.workspaces[a]={jina_version:s.t,flowArguments:s.r,selectedFlowId:o,name:"".concat(t," ").concat(r+1),type:"user-generated",daemon_endpoint:"",isConnected:!1,daemon_id:null,files:[]},e=v(e,void 0,o,a)}(e);break;case s.q:var G=t.payload;if(e.selectedWorkspaceId){var X=e.workspaces[e.selectedWorkspaceId];e.workspaces[e.selectedWorkspaceId]=Object(a.a)(Object(a.a)({},X),G)}break;case s.h:var J=t.payload;e.workspaces=Object(i.omit)(e.workspaces,J),e.flows=Object(i.pickBy)(e.flows,(function(e){return e.workspaceId!==J}));var q=Object.entries(e.workspaces).filter((function(e){var t=Object(o.a)(e,2);t[0];return"example"!==t[1].type}));if(e.selectedWorkspaceId===J&&q.length){var Z=q[0][0];e.selectedWorkspaceId=Z}else q.length||(e.workspaces=Object(a.a)(Object(a.a)({},Object(i.cloneDeep)(s.u)),p()),e.flows=Object(a.a)(Object(a.a)({},Object(i.cloneDeep)(s.s)),h()),e.selectedWorkspaceId=Object.keys(e.workspaces)[0])}!function(e){var t={};Object.entries(e).forEach((function(e){var n=Object(o.a)(e,2),r=n[0],a=n[1];"user-generated"===a.type&&(t[r]=a)})),localStorage.setItem("userFlows",JSON.stringify(t))}(e.flows),function(e){var t={};Object.entries(e).forEach((function(e){var n=Object(o.a)(e,2),r=n[0],a=n[1];"user-generated"===a.type&&(t[r]=a)})),localStorage.setItem("userWorkspaces",JSON.stringify(t))}(e.workspaces)}),b),y=n(137),B=Object(d.a)((function(e,t){switch(t.type){case y.b:e.loading=!0;break;case y.d:e.loading=!1,e.images=t.payload.images,e.error=null;break;case y.c:e.images=[],e.loading=!1,e.error=t.payload.error;break;case y.e:e.selectedFilters=Object(i.xor)(e.selectedFilters,[t.payload.filter]);break;case y.a:e.selectedFilters=e.selectedFilters.filter((function(e){return!t.payload.filters.includes(e)}))}}),y.f),O=n(242),x=n(148),C=n(88);var E=Object(d.a)((function(e,t){switch(t.type){case x.a:e.settings=Object(a.a)(Object(a.a)({},e.settings),t.payload),C.a.log("saveSettings - settings",e.settings),n=e.settings,Object.keys(n).forEach((function(e){localStorage.setItem("preferences-".concat(e),n[e])}))}var n}),x.b),j=n(111),F=Object(d.a)((function(e,t){switch(t.type){case j.b:e.logIndex=t.payload;break;case j.a:!function(){var n=t.payload;C.a.log("_handleNewLog");var r=Object(l.j)(n,e.logs.length),o=r.name,i=r.level,s=r.unixTime;e.logs.push(r);var A=e.logSources[o]?e.logSources[o]+1:1;e.logSources[o]=A;var c=e.logLevels[i]?e.logLevels[i]+1:1;e.logLevels[i]=c;var u=e.logLevelOccurrences[s]?Object(a.a)({},e.logLevelOccurrences[s]):Object(j.c)();e.logLevelOccurrences[s]=u,e.logLevelOccurrences[s].levels[i]++,e.logLevelOccurrences[s].lastLog=r.idx}()}}),j.d),_=n(141),Q=Object(d.a)((function(e,t){switch(t.type){case _.d:C.a.log("handleLogConnectionStatus - status",t.payload.connected),C.a.log("handleLogConnectionStatus - message",t.payload.message),e.loading=!1,e.connected=t.payload.connected;break;case _.l:e.menuVisible=!e.menuVisible;break;case _.i:e.banners.push({message:t.payload.message,theme:t.payload.theme});break;case _.e:e.banners.shift();break;case _.j:e.banners.push({message:t.payload.message,theme:"error"});break;case _.k:e.modal=t.payload.modal,e.modalParams=t.payload.modalParams;break;case _.a:e.modal=null,e.modalParams=null;break;case j.a:e.processes[t.payload.process]=t.payload.name;break;case _.h:e.user=t.payload.user;break;case _.g:e.user=null,localStorage.removeItem("user")}}),Object(_.m)()),U=n(243),k=n(89),S={taskData:{qps:{current:"0",history:new Array(30).fill(0)},elapsed:{task_name:"No Current Task",seconds:"0s"},progress:{currentRequest:0,bar_len:0,num_bars:0},speed:{current:"0",unit:"units",history:new Array(30).fill(0)},lastUpdateChart:new Date,messages:[],bytes:[]}},D=Object(d.a)((function(e,t){switch(t.type){case"HANDLE_TASK":return function(){var n=t.payload,r=n.taskEvent,o=n.processes,i=Object(a.a)({},r),s=i.task_name,A=i.process,c=i.bar_len,u=i.num_bars,d=i.elapsed,f=i.speed,h=i.speed_unit,p=i.bytes_recv,g=i.bytes_sent,m=i.msg_recv,b=i.msg_sent,v=i.num_reqs,w=i.qps;c&&u&&(e.taskData.progress.currentRequest=v,e.taskData.progress.bar_len=c,e.taskData.progress.num_bars=u);if(m&&b){var y=e.taskData.messages.map((function(e){return e.process})).indexOf(A),B={process:A,sent:b,received:m,node:o[A]},O={process:A,sent:g,received:p,node:o[A]};y<0?(e.taskData.messages.push(B),e.taskData.bytes.push(O)):(e.taskData.messages[y]=B,e.taskData.bytes[y]=O),e.taskData.messages=e.taskData.messages.sort((function(e,t){return t.sent+t.received-(e.sent+e.received)})).slice(0,20),e.taskData.bytes=e.taskData.bytes.sort((function(e,t){return t.sent+t.received-(e.sent+e.received)})).slice(0,20)}e.taskData.lastUpdateChart=new Date,w&&(e.taskData.qps.current=parseFloat(w).toFixed(1),e.taskData.qps.history.push(parseFloat(w).toFixed(3)),e.taskData.qps.history.shift());f&&h&&(e.taskData.speed.unit=h,e.taskData.speed.current=parseFloat(f).toFixed(1),e.taskData.speed.history.push(parseFloat(f).toFixed(3)),e.taskData.speed.history.shift());d&&(e.taskData.elapsed.seconds=Object(l.e)(parseInt(d)),e.taskData.elapsed.task_name="Task: ".concat(s))}()}}),S),N=n(106),H=Object(r.combineReducers)({flowState:w,hubState:B,settingsState:E,logStreamState:F,globalState:Q,taskState:D}),I=Object(r.createStore)(H,Object(O.composeWithDevTools)(Object(r.applyMiddleware)(U.a)));N.a.connect(I.getState().settingsState.settings,(function(e){var t=e.connected,n=e.message;I.dispatch(Object(k.d)(t,n))}));t.a=I},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=(n(1),function(e){switch(e){case"primary":return"bg-primary-500 hover:bg-primary-700 ";case"secondary":return"bg-blue-500 hover:bg-blue-700 ";default:return"bg-gray-500 hover:bg-gray-700"}});function o(e){var t=e.label,n=e.onClick,o=e.children,i=e.variant;return Object(r.jsxs)("button",{className:"".concat(a(i)," text-white font-bold py-2 px-4 rounded"),onClick:n,children:[t,o]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),a=(n(1),n(119)),o=n.n(a);function i(e){var t=e.title,n=e.subtitle,a=e.className,i=o()(a,"text-center","text-md-left","mb-sm-0");return Object(r.jsxs)("div",{className:i,children:[Object(r.jsx)("h3",{className:"page-title","data-name":"title",children:t}),Object(r.jsx)("p",{className:"page-subtitle mt-2 mb-0",children:n})]})}},function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"i",(function(){return i})),n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return s.c})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return u.c})),n.d(t,"e",(function(){return u.d})),n.d(t,"b",(function(){return u.b})),n.d(t,"f",(function(){return u.f})),n.d(t,"a",(function(){return d.a}));var r=function(e){return new Blob([e],{type:"text,plain;charset=utf-8"})},a=function(e){return r(function(e){return e.reduce((function(e,t){return e+"".concat(t.uptime,',"').concat(t.formattedTimestamp,'",').concat(t.name,",").concat(t.process,",").concat(t.level,',"').concat(t.message,'",').concat(t.context,",").concat(t.host,",").concat(t.workspace_path,"\n")}),"created,formatted timestamp,name,process,level name,message,context,host,workspace\n")}(e))},o=function(e){return r(function(e){var t=e.reduce((function(t,n,r){return t+(JSON.stringify(n)+"".concat(r<e.length-1?",":"","\n"))}),"\n");return"[".concat(t,"]")}(e))},i=function(e){return r(function(e){return e.reduce((function(e,t){return e+"".concat(t.formattedTimestamp," ").concat(t.name,"@").concat(t.process," [").concat(t.level,"]: ").concat(t.message,"\n")}),"")}(e))},s=n(105),A=n(81),c=n(20);function l(e,t){var n=e.uptime,r=e.type,a=Object(c.a)(),o=new Date(n),i=Math.floor(o.valueOf()/1e3),s=o.toLocaleString();return Object(A.a)(Object(A.a)({},e),{},{id:a,idx:t,unixTime:i,timestamp:o,formattedTimestamp:s,level:r})}var u=n(91),d=n(28)},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(27),a=n(81),o=n(113),i=n(178),s=o.e,A=o.f,c=function(e,t,n){return{id:e,type:"gateway"===e?"gateway":"pod",data:t,position:n}},l=function(e,t){return{id:"e-".concat(e,"-to-").concat(t),source:e,target:t,type:"step"}},u=function(e){var t,n,r,o,s=e.pods,A=null===(t=e.with)||void 0===t||null===(n=t.board)||void 0===n?void 0:n.canvas,u={with:e.with},f=[],h=[];if(null===(r=e.version)||void 0===r?void 0:r.includes("1")){var p={};s.forEach((function(e){var t=e.name;delete e.name,p[t]=Object(a.a)({},e)})),s=p}s.gateway||(s=Object(a.a)({gateway:null},s)),Object.keys(s).forEach((function(e){var t,n=s[e]||{},r=c(e,n,{});if(r.data.label=e,r.data.name=e,o&&!r.data.needs&&"gateway"!==e&&(!r.data.needs&&(r.data.needs=[]),r.data.needs.push(o)),(null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.needs)&&r.data.needs.forEach((function(t){return h.push(l(t,e))})),A&&A[e]){var a=A[e],i=a.x,u=a.y;r.position={x:parseInt(i),y:parseInt(u)}}f.push(r),o=e}));var g={},m=i.nodeOffset.x,b=i.nodeOffset.y;return f.forEach((function(e){var t=d(f,e);e.data.depth=t,void 0===g[t]?g[t]=1:g[t]=g[t]+1,e.position.x||(e.position={y:t*b+b,x:g[t]*m})})),u.elements=[].concat(f,h),u};function d(e,t){var n=t.data.needs;if(n&&0!==n.length){var a=n.map((function(t){var n=e.find((function(e){return e.id===t}));return n.data.depth?n.data.depth:d(e,n)}));return Math.max.apply(Math,Object(r.a)(a))+1}return 0}},function(e,t,n){"use strict";var r=n(6),a=n(19),o=n.n(a),i=n(26),s=n(112),A=n.n(s),c=n(28),l=n(88),u=n(149),d=A.a.create(),f={connect:function(){var e=Object(i.a)(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l.a.log("api - connect - settings",t),r="".concat(t.jinadHost,":").concat(t.jinadPort),d=A.a.create({baseURL:r,timeout:u.c}),e.prev=3,e.next=6,d.get("/");case 6:if(200!==e.sent.status){e.next=10;break}return l.a.log("api - connect successfully connected to jinad"),e.abrupt("return",n({connected:!0,message:"Successfully connected to Jina at ".concat(r)}));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),l.a.log("api - connect could not connect to jinad:",e.t0);case 15:return e.abrupt("return",n({connected:!1,message:"failed to connect"}));case 16:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t,n){return e.apply(this,arguments)}}(),getJinaFlowArguments:function(){var e=Object(i.a)(o.a.mark((function e(){var t,n,r,a,i,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.get("/flows/arguments");case 2:return t=e.sent,n=p(t.data),e.next=6,d.get("/pods/arguments");case 6:return r=e.sent,a=p(r.data),e.next=10,d.get("/peas/arguments");case 10:return i=e.sent,s=p(i.data),e.abrupt("return",{flow:n,pod:a,pea:s});case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getDaemonStatus:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/status");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",daemonStatus:t.data});case 6:return e.abrupt("return",{status:"error",message:t.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),getWorkspaces:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/workspaces");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",workspaces:t.data});case 6:return e.abrupt("return",{status:"error",message:t.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),getWorkspace:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/workspaces/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",workspace:n.data});case 6:return e.abrupt("return",{status:"error",message:n.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),createWorkspace:function(){var e=Object(i.a)(o.a.mark((function e(t){var n,r,a,i,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="Successfully created workspace",r="Failed to create a workspace",a=new FormData,t&&t.forEach((function(e){"string"===typeof e?a.append("files",new Blob([e])):a.append("files",e)})),i={headers:{"Content-Type":"multipart/form-data"}},e.prev=5,e.next=8,d.post("/workspaces",a,i);case 8:if(201!==(s=e.sent).status){e.next=11;break}return e.abrupt("return",{status:"success",workspace_id:s.data,message:n});case 11:return e.abrupt("return",{status:"error",message:r});case 14:return e.prev=14,e.t0=e.catch(5),e.abrupt("return",{status:"error",message:r});case 17:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(t){return e.apply(this,arguments)}}(),uploadFilesToWorkspace:function(){var e=Object(i.a)(o.a.mark((function e(t,n){var r,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new FormData,n.forEach((function(e){"string"===typeof e?r.append("files",new Blob([e])):r.append("files",e)})),r.append("workspace_id",t),a={headers:{"Content-Type":"multipart/form-data"}},e.prev=4,e.next=7,d.post("/workspaces",r,a);case 7:if(201!==(i=e.sent).status){e.next=10;break}return e.abrupt("return",{status:"success",workspace_id:i.data});case 10:return e.abrupt("return",{status:"error",message:i.data});case 13:return e.prev=13,e.t0=e.catch(4),e.abrupt("return",{status:"error",message:e.t0});case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}(),deleteWorkspace:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/workspaces/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:n.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - deleteWorkspace ".concat(t," error: "),e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),deleteAllWorkspaces:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/workspaces/all");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:t.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - deleteAllWorkspaces error: ",e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),getArgumentsForFlow:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/flows/arguments");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",arguments:t.data});case 6:return e.abrupt("return",{status:"error",message:t.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),getFlow:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/flows/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",flow:n.data});case 6:return e.abrupt("return",{status:"error",message:n.data});case 9:e.prev=9,e.t0=e.catch(0),l.a.log("api - getFlow error getting flow: ",e.t0);case 12:return e.abrupt("return",{status:"error",message:"Could not get flow\nFlowId:".concat(t)});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),startFlow:function(){var e=Object(i.a)(o.a.mark((function e(t,n){var r,a,i,s,A,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="Successfully started flow",a="Failed to start flow",l.a.log("yamlString:",t),(i=new FormData).append("flow",new Blob([t])),n&&i.append("workspace_id",n),s={headers:{"Content-Type":"multipart/form-data"}},e.prev=7,e.next=10,d.post("/flows",i,s);case 10:if(201!==(A=e.sent).status){e.next=14;break}return c=A.data,e.abrupt("return",{status:"success",message:r,flow_id:c});case 14:return e.abrupt("return",{status:"error",message:a});case 17:return e.prev=17,e.t0=e.catch(7),l.a.log("api - startFlow error: ",e.t0),e.abrupt("return",{status:"error",message:a});case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n){return e.apply(this,arguments)}}(),terminateFlow:function(){var e=Object(i.a)(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="Successfully terminated flow",r="Failed to terminate flow",e.prev=2,e.next=5,d.delete("/flows/".concat(t));case 5:if(a=e.sent,l.a.log("terminate result",a),200!==a.status){e.next=9;break}return e.abrupt("return",{status:"success",message:n,flow:a.data});case 9:return e.abrupt("return",{status:"error",message:r});case 12:return e.prev=12,e.t0=e.catch(2),l.a.log("api - terminateFlow error: ",e.t0),e.abrupt("return",{status:"error",message:r});case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}(),terminateAllFlows:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/flows/all");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:t.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - terminateAllFlows error: ",e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),getLogs:function(){var e=Object(i.a)(o.a.mark((function e(t,n){var r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/logs/".concat(t,"/").concat(n));case 3:if(200!==(r=e.sent).status){e.next=7;break}return a=r.data.split("\n").filter((function(e){return""!==e})).map(JSON.parse),e.abrupt("return",{status:"success",logs:a});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),l.a.log("api - getLogs error: ",e.t0);case 12:return e.abrupt("return",{status:"error",message:"Could not get logs for flow.\nFlowId:".concat(n)});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),waitForFlow:function(){var e=Object(i.a)(o.a.mark((function e(t,n){var r,a,i,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=s.length>2&&void 0!==s[2]?s[2]:u.a,a=s.length>3&&void 0!==s[3]?s[3]:u.b,i=0;case 3:if(!(i<r)){e.next=21;break}return l.a.log("checking for flow logs [".concat(i+1,"]")),e.prev=5,e.next=8,d.get("/logs/".concat(t,"/").concat(n));case 8:if(200!==e.sent.status){e.next=11;break}return e.abrupt("return",{status:"success",message:"Successfuly stablished logstream.\nFlowId:".concat(n)});case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),l.a.log("no flow logs yet [".concat(i+1,"]"));case 16:return e.next=18,Object(c.g)(a);case 18:++i,e.next=3;break;case 21:return e.abrupt("return",{status:"error",message:"Could not establish log stream for flow.\nFlowId:".concat(n)});case 22:case"end":return e.stop()}}),e,null,[[5,13]])})));return function(t,n){return e.apply(this,arguments)}}(),listenForLogs:function(){var e=Object(i.a)(o.a.mark((function e(t,n,r,a,i){var s,A,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=r.jinadHost.replace("http://","ws://").replace("https://","wss://"),A="".concat(s,":").concat(r.jinadPort,"/logstream/").concat(t,"/").concat(n),l.a.log("api - listenForLogs - baseURl:",A),e.prev=3,c=new WebSocket(A),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",a({connected:!1,message:e.t0}));case 10:c.addEventListener("open",(function(){a({connected:!0,message:"Successfully Connected"}),c.send(JSON.stringify({from:0}))})),c.addEventListener("message",(function(e){l.a.log("api - logstream - message received: ",e);var t=JSON.parse(e.data);i(t)})),c.addEventListener("close",(function(e){a({connected:!1,message:"Connection closed"})})),c.addEventListener("error",(function(e){a({connected:!1,message:"Socket error"})}));case 14:case"end":return e.stop()}}),e,null,[[3,7]])})));return function(t,n,r,a,o){return e.apply(this,arguments)}}(),getArgumentsForPod:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/pods/arguments");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",arguments:t.data});case 6:return e.abrupt("return",{status:"error",message:t.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),getPod:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/pods/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",pod:n.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - getPod ".concat(t," error: "),e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),startPod:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.post("/pods",t);case 3:if(201!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",pod:n.data});case 6:return e.abrupt("return",{status:"error",message:n.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),terminatePod:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/pods/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:n.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - terminatePod ".concat(t," error: "),e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),terminateAllPods:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/pods/all");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:t.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - terminateAllPods error: ",e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),getArgumentsForPea:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/peas/arguments");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",arguments:t.data});case 6:return e.abrupt("return",{status:"error",message:t.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),getPea:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/peas/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",pea:n.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - getPea error getting pea ".concat(t,": "),e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),startPea:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.post("/peas",t);case 3:if(201!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",pea:n.data});case 6:return e.abrupt("return",{status:"error",message:n.data});case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",{status:"error",message:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),terminatePea:function(){var e=Object(i.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/peas/".concat(t));case 3:if(200!==(n=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:n.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - terminatePea ".concat(t," error: "),e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),terminateAllPeas:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.delete("/peas/all");case 3:if(200!==(t=e.sent).status){e.next=6;break}return e.abrupt("return",{status:"success",message:t.data});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.a.log("api - terminateAllPeas error: ",e.t0);case 11:return e.abrupt("return",{status:"error"});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()},h={string:"string",boolean:"boolean",integer:"integer",array:"string"},p=function(e){return Object.entries(e).map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1],o=a.description,i=a.default,s=a.type,A=h[s];return"undefined"===typeof i||null===i?{name:n,description:o,type:A}:{name:n,description:o,defaultValue:i,type:A}}))};t.a=f},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(250),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i}));var r="SHOW_LOG_INDEX",a="HANDLE_NEW_LOG",o={logIndex:0,logLevelOccurrences:{},logs:[],logLevels:{INFO:0,SUCCESS:0,WARNING:0,ERROR:0,CRITICAL:0,DEBUG:0},logSources:{}},i=function(){return{lastLog:0,levels:{INFO:0,SUCCESS:0,WARNING:0,ERROR:0,CRITICAL:0,DEBUG:0}}}},,,,function(e,t,n){e.exports=function(e){"use strict";function t(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e){return e&&e.default||e}e=e&&e.hasOwnProperty("default")?e.default:e;var r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},a=t((function(e){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[r[n]]=n);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in a)if(a.hasOwnProperty(o)){if(!("channels"in a[o]))throw new Error("missing channels property: "+o);if(!("labels"in a[o]))throw new Error("missing channel labels property: "+o);if(a[o].labels.length!==a[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=a[o].channels,s=a[o].labels;delete a[o].channels,delete a[o].labels,Object.defineProperty(a[o],"channels",{value:i}),Object.defineProperty(a[o],"labels",{value:s})}function A(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),s=Math.max(r,a,o),A=s-i;return s===i?t=0:r===s?t=(a-o)/A:a===s?t=2+(o-r)/A:o===s&&(t=4+(r-a)/A),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s===i?0:n<=.5?A/(s+i):A/(2-s-i)),100*n]},a.rgb.hsv=function(e){var t,n,r,a,o,i=e[0]/255,s=e[1]/255,A=e[2]/255,c=Math.max(i,s,A),l=c-Math.min(i,s,A),u=function(e){return(c-e)/6/l+.5};return 0===l?a=o=0:(o=l/c,t=u(i),n=u(s),r=u(A),i===c?a=r-n:s===c?a=1/3+t-r:A===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var n=t[e];if(n)return n;var a,o=1/0;for(var i in r)if(r.hasOwnProperty(i)){var s=A(e,r[i]);s<o&&(o=s,a=i)}return a},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,a,o,i=e[0]/360,s=e[1]/100,A=e[2]/100;if(0===s)return[o=255*A,o,o];t=2*A-(n=A<.5?A*(1+s):A+s-A*s),a=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*o;return a},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=o<=1?o:2-o,[t,100*(0===r?2*a/(o+a):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*o),A=255*r*(1-n*(1-o));switch(r*=255,a){case 0:return[r,A,i];case 1:return[s,r,i];case 2:return[i,r,A];case 3:return[i,s,r];case 4:return[A,i,r];case 5:return[r,i,s]}},a.hsv.hsl=function(e){var t,n,r,a=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return r=(2-o)*i,n=o*s,[a,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,a,o,i,s,A=e[0]/360,c=e[1]/100,l=e[2]/100,u=c+l;switch(u>1&&(c/=u,l/=u),r=6*A-(t=Math.floor(6*A)),0!==(1&t)&&(r=1-r),a=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,i=a,s=c;break;case 1:o=a,i=n,s=c;break;case 2:o=c,i=n,s=a;break;case 3:o=c,i=a,s=n;break;case 4:o=a,i=c,s=n;break;case 5:o=n,i=c,s=a}return[255*o,255*i,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},a.xyz.rgb=function(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(n,r),a),i=Math.min(Math.min(n,r),a),s=o-i;return t=s<=0?0:o===n?(r-a)/s%6:o===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a=[0,0,0],o=t%1*6,i=o%1,s=1-i,A=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return A=(1-n)*r,[255*(n*a[0]+A),255*(n*a[1]+A),255*(n*a[2]+A)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function o(){for(var e={},t=Object.keys(a),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){var t=o(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(a[r]),s=i.length,A=0;A<s;A++){var c=i[A],l=t[c];-1===l.distance&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(c))}return t}function s(e,t){return function(n){return t(e(n))}}function A(e,t){for(var n=[t[e].parent,e],r=a[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),r=s(a[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}a.rgb,a.hsl,a.hsv,a.hwb,a.cmyk,a.xyz,a.lab,a.lch,a.hex,a.keyword,a.ansi16,a.ansi256,a.hcg,a.apple,a.gray;var c=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,o=0;o<a;o++){var s=r[o];null!==t[s].parent&&(n[s]=A(s,t))}return n},l={};function u(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function d(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Object.keys(a).forEach((function(e){l[e]={},Object.defineProperty(l[e],"channels",{value:a[e].channels}),Object.defineProperty(l[e],"labels",{value:a[e].labels});var t=c(e);Object.keys(t).forEach((function(n){var r=t[n];l[e][n]=d(r),l[e][n].raw=u(r)}))}));var f=l,h={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},p={getRgba:g,getHsla:m,getRgb:v,getHsl:w,getHwb:b,getAlpha:y,hexString:B,rgbString:O,rgbaString:x,percentString:C,percentaString:E,hslString:j,hslaString:F,hwbString:_,keyword:Q};function g(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/(\w+)/,i=[0,0,0],s=1,A=e.match(t),c="";if(A){c=(A=A[1])[3];for(var l=0;l<i.length;l++)i[l]=parseInt(A[l]+A[l],16);c&&(s=Math.round(parseInt(c+c,16)/255*100)/100)}else if(A=e.match(n)){for(c=A[2],A=A[1],l=0;l<i.length;l++)i[l]=parseInt(A.slice(2*l,2*l+2),16);c&&(s=Math.round(parseInt(c,16)/255*100)/100)}else if(A=e.match(r)){for(l=0;l<i.length;l++)i[l]=parseInt(A[l+1]);s=parseFloat(A[4])}else if(A=e.match(a)){for(l=0;l<i.length;l++)i[l]=Math.round(2.55*parseFloat(A[l+1]));s=parseFloat(A[4])}else if(A=e.match(o)){if("transparent"==A[1])return[0,0,0,0];if(!(i=h[A[1]]))return}for(l=0;l<i.length;l++)i[l]=U(i[l],0,255);return s=s||0==s?U(s,0,1):1,i[3]=s,i}}function m(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[U(parseInt(n[1]),0,360),U(parseFloat(n[2]),0,100),U(parseFloat(n[3]),0,100),U(isNaN(r)?1:r,0,1)]}}}function b(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[U(parseInt(n[1]),0,360),U(parseFloat(n[2]),0,100),U(parseFloat(n[3]),0,100),U(isNaN(r)?1:r,0,1)]}}}function v(e){var t=g(e);return t&&t.slice(0,3)}function w(e){var t=m(e);return t&&t.slice(0,3)}function y(e){var t=g(e);return t||(t=m(e))||(t=b(e))?t[3]:void 0}function B(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+k(e[0])+k(e[1])+k(e[2])+(t>=0&&t<1?k(Math.round(255*t)):"")}function O(e,t){return t<1||e[3]&&e[3]<1?x(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function x(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function C(e,t){return t<1||e[3]&&e[3]<1?E(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function E(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function j(e,t){return t<1||e[3]&&e[3]<1?F(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function F(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function _(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function Q(e){return S[e.slice(0,3)]}function U(e,t,n){return Math.min(Math.max(t,e),n)}function k(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var S={};for(var D in h)S[h[D]]=D;var N=function e(t){return t instanceof e?t:this instanceof e?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof t?(n=p.getRgba(t))?this.setValues("rgb",n):(n=p.getHsla(t))?this.setValues("hsl",n):(n=p.getHwb(t))&&this.setValues("hwb",n):"object"===typeof t&&(void 0!==(n=t).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new e(t);var n};N.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return p.hexString(this.values.rgb)},rgbString:function(){return p.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return p.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return p.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return p.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return p.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return p.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return p.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,a=void 0===t?.5:t,o=2*a-1,i=n.alpha()-r.alpha(),s=((o*i===-1?o:(o+i)/(1+o*i))+1)/2,A=1-s;return this.rgb(s*n.red()+A*r.red(),s*n.green()+A*r.green(),s*n.blue()+A*r.blue()).alpha(n.alpha()*a+r.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new N,r=this.values,a=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],"[object Array]"===(t={}.toString.call(e))?a[o]=e.slice(0):"[object Number]"===t?a[o]=e:console.error("unexpected color value:",e));return n}},N.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},N.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},N.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},N.prototype.setValues=function(e,t){var n,r,a=this.values,o=this.spaces,i=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)a[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)a[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var A=o[e];for(n=0;n<e.length;n++)a[e][n]=t[A[n]];s=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(i[e][n],a[e][n])),a[e][n]=Math.round(r);for(var c in o)c!==e&&(a[c]=f[e][c](a[e]));return!0},N.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"===typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},N.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!==typeof window&&(window.Color=N);var H=N;function I(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var M={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||"undefined"===typeof e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return("number"===typeof e||e instanceof Number)&&isFinite(e)})),valueOrDefault:function(e,t){return"undefined"===typeof e?t:e},valueAtIndexOrDefault:function(e,t,n){return M.valueOrDefault(M.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var a,o,i;if(M.isArray(e))if(o=e.length,r)for(a=o-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<o;a++)t.call(n,e[a],a);else if(M.isObject(e))for(o=(i=Object.keys(e)).length,a=0;a<o;a++)t.call(n,e[i[a]],i[a])},arrayEquals:function(e,t){var n,r,a,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],o=t[n],a instanceof Array&&o instanceof Array){if(!M.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(e){if(M.isArray(e))return e.map(M.clone);if(M.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=M.clone(e[n[a]]);return t}return e},_merger:function(e,t,n,r){if(I(e)){var a=t[e],o=n[e];M.isObject(a)&&M.isObject(o)?M.merge(a,o,r):t[e]=M.clone(o)}},_mergerIf:function(e,t,n){if(I(e)){var r=t[e],a=n[e];M.isObject(r)&&M.isObject(a)?M.mergeIf(r,a):t.hasOwnProperty(e)||(t[e]=M.clone(a))}},merge:function(e,t,n){var r,a,o,i,s,A=M.isArray(t)?t:[t],c=A.length;if(!M.isObject(e))return e;for(r=(n=n||{}).merger||M._merger,a=0;a<c;++a)if(t=A[a],M.isObject(t))for(s=0,i=(o=Object.keys(t)).length;s<i;++s)r(o[s],e,t,n);return e},mergeIf:function(e,t){return M.merge(e,t,{merger:M._mergerIf})},extend:Object.assign||function(e){return M.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=M.inherits,e&&M.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},T=M;M.callCallback=M.callback,M.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},M.getValueOrDefault=M.valueOrDefault,M.getValueAtIndexOrDefault=M.valueAtIndexOrDefault;var R={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2===(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-R.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*R.easeInBounce(2*e):.5*R.easeOutBounce(2*e-1)+.5}},L={effects:R};T.easingEffects=R;var P=Math.PI,K=P/180,z=2*P,V=P/2,W=P/4,Y=2*P/3,G={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,o){if(o){var i=Math.min(o,a/2,r/2),s=t+i,A=n+i,c=t+r-i,l=n+a-i;e.moveTo(t,A),s<c&&A<l?(e.arc(s,A,i,-P,-V),e.arc(c,A,i,-V,0),e.arc(c,l,i,0,V),e.arc(s,l,i,V,P)):s<c?(e.moveTo(s,n),e.arc(c,A,i,-V,V),e.arc(s,A,i,V,P+V)):A<l?(e.arc(s,A,i,-P,0),e.arc(s,l,i,0,P)):e.arc(s,A,i,-P,P),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,o){var i,s,A,c,l,u=(o||0)*K;if(t&&"object"===typeof t&&("[object HTMLImageElement]"===(i=t.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(r,a),e.rotate(u),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,a,n,0,z),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(u)*n,a-Math.cos(u)*n),u+=Y,e.lineTo(r+Math.sin(u)*n,a-Math.cos(u)*n),u+=Y,e.lineTo(r+Math.sin(u)*n,a-Math.cos(u)*n),e.closePath();break;case"rectRounded":c=n-(l=.516*n),s=Math.cos(u+W)*c,A=Math.sin(u+W)*c,e.arc(r-s,a-A,l,u-P,u-V),e.arc(r+A,a-s,l,u-V,u),e.arc(r+s,a+A,l,u,u+V),e.arc(r-A,a+s,l,u+V,u+P),e.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*n,e.rect(r-c,a-c,2*c,2*c);break}u+=W;case"rectRot":s=Math.cos(u)*n,A=Math.sin(u)*n,e.moveTo(r-s,a-A),e.lineTo(r+A,a-s),e.lineTo(r+s,a+A),e.lineTo(r-A,a+s),e.closePath();break;case"crossRot":u+=W;case"cross":s=Math.cos(u)*n,A=Math.sin(u)*n,e.moveTo(r-s,a-A),e.lineTo(r+s,a+A),e.moveTo(r+A,a-s),e.lineTo(r-A,a+s);break;case"star":s=Math.cos(u)*n,A=Math.sin(u)*n,e.moveTo(r-s,a-A),e.lineTo(r+s,a+A),e.moveTo(r+A,a-s),e.lineTo(r-A,a+s),u+=W,s=Math.cos(u)*n,A=Math.sin(u)*n,e.moveTo(r-s,a-A),e.lineTo(r+s,a+A),e.moveTo(r+A,a-s),e.lineTo(r-A,a+s);break;case"line":s=Math.cos(u)*n,A=Math.sin(u)*n,e.moveTo(r-s,a-A),e.lineTo(r+s,a+A);break;case"dash":e.moveTo(r,a),e.lineTo(r+Math.cos(u)*n,a+Math.sin(u)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var a=n.steppedLine;if(a){if("middle"===a){var o=(t.x+n.x)/2;e.lineTo(o,r?n.y:t.y),e.lineTo(o,r?t.y:n.y)}else"after"===a&&!r||"after"!==a&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},X=G;T.clear=G.clear,T.drawRoundedRectangle=function(e){e.beginPath(),G.roundedRect.apply(G,arguments)};var J={_set:function(e,t){return T.merge(this[e]||(this[e]={}),t)}};J._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var q=J,Z=T.valueOrDefault;function $(e){return!e||T.isNullOrUndef(e.size)||T.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var ee={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,a;return T.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,a=+e.left||0):t=n=r=a=+e||0,{top:t,right:n,bottom:r,left:a,height:t+r,width:a+n}},_parseFont:function(e){var t=q.global,n=Z(e.fontSize,t.defaultFontSize),r={family:Z(e.fontFamily,t.defaultFontFamily),lineHeight:T.options.toLineHeight(Z(e.lineHeight,t.defaultLineHeight),n),size:n,style:Z(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=$(r),r},resolve:function(e,t,n,r){var a,o,i,s=!0;for(a=0,o=e.length;a<o;++a)if(void 0!==(i=e[a])&&(void 0!==t&&"function"===typeof i&&(i=i(t),s=!1),void 0!==n&&T.isArray(i)&&(i=i[n],s=!1),void 0!==i))return r&&!s&&(r.cacheable=!1),i}},te={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},ne=te;T.log10=te.log10;var re=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},ae=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},oe=T,ie=L,se=X,Ae=ee,ce=ne,le={getRtlAdapter:function(e,t,n){return e?re(t,n):ae()},overrideTextDirection:function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};function ue(e,t,n,r){var a,o,i,s,A,c,l,u,d,f=Object.keys(n);for(a=0,o=f.length;a<o;++a)if(c=n[i=f[a]],t.hasOwnProperty(i)||(t[i]=c),(s=t[i])!==c&&"_"!==i[0]){if(e.hasOwnProperty(i)||(e[i]=s),(l=typeof c)===typeof(A=e[i]))if("string"===l){if((u=H(A)).valid&&(d=H(c)).valid){t[i]=d.mix(u,r).rgbString();continue}}else if(oe.isFinite(A)&&oe.isFinite(c)){t[i]=A+(c-A)*r;continue}t[i]=c}}oe.easing=ie,oe.canvas=se,oe.options=Ae,oe.math=ce,oe.rtl=le;var de=function(e){oe.extend(this,e),this.initialize.apply(this,arguments)};oe.extend(de.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=oe.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,a=t._view;return n&&1!==e?(a||(a=t._view={}),r||(r=t._start={}),ue(r,a,n,e),t):(t._view=oe.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return oe.isNumber(this._model.x)&&oe.isNumber(this._model.y)}}),de.extend=oe.inherits;var fe=de,he=fe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),pe=he;Object.defineProperty(he.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(he.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),q._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:oe.noop,onComplete:oe.noop}});var ge={animations:[],request:null,addAnimation:function(e,t,n,r){var a,o,i=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),a=0,o=i.length;a<o;++a)if(i[a].chart===e)return void(i[a]=t);i.push(t),1===i.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=oe.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=oe.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,o=0;o<a.length;)t=(e=a[o]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),oe.callback(e.render,[t,e],t),oe.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(oe.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(o,1)):++o}},me=oe.options.resolve,be=["push","pop","shift","splice","unshift"];function ve(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return oe.each(e._chartjs.listeners,(function(e){"function"===typeof e[n]&&e[n].apply(e,t)})),a}})})))}function we(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(be.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ye=function(e,t){this.initialize(e,t)};oe.extend(ye.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,a=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!a.xAxisID||(t.xAxisID=a.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!a.yAxisID||(t.yAxisID=a.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&we(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),a=n.getDataset().data||[],o=r.data;for(e=0,t=a.length;e<t;++e)o[e]=o[e]||n.createMetaData(e);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&we(e._data,e),n&&Object.isExtensible(n)&&ve(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=oe.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&oe._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:oe.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this,r=n.getMeta(),a=r.dataset;return n._configure(),a&&void 0===e?t=n._resolveDatasetElementOptions(a||{}):(e=e||0,t=n._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,a,o,i=this,s=i.chart,A=i._config,c=e.custom||{},l=s.options.elements[i.datasetElementType.prototype._type]||{},u=i._datasetElementOptions,d={},f={chart:s,dataset:i.getDataset(),datasetIndex:i.index,hover:t};for(n=0,r=u.length;n<r;++n)a=u[n],o=t?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,d[a]=me([c[o],A[o],l[o]],f);return d},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,a=n._cachedDataOpts;if(a&&!r)return a;var o,i,s,A,c=n.chart,l=n._config,u=c.options.elements[n.dataElementType.prototype._type]||{},d=n._dataElementOptions,f={},h={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},p={cacheable:!r};if(r=r||{},oe.isArray(d))for(i=0,s=d.length;i<s;++i)f[A=d[i]]=me([r[A],l[A],u[A]],h,t,p);else for(i=0,s=(o=Object.keys(d)).length;i<s;++i)f[A=o[i]]=me([r[A],l[d[A]],l[A],u[A]],h,t,p);return p.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){oe.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model,o=oe.getHoverColor;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=me([r.hoverBackgroundColor,t.hoverBackgroundColor,o(a.backgroundColor)],void 0,n),a.borderColor=me([r.hoverBorderColor,t.hoverBorderColor,o(a.borderColor)],void 0,n),a.borderWidth=me([r.hoverBorderWidth,t.hoverBorderWidth,a.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,a,o,i=this.getMeta().dataset,s={};if(i){for(o=i._model,a=this._resolveDatasetElementOptions(i,!0),e=0,t=(r=Object.keys(a)).length;e<t;++e)s[n=r[e]]=o[n],o[n]=a[n];i.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,r=t.data.length,a=n.length;a<r?t.data.splice(a,r-a):a>r&&e.insertElements(r,a-r)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ye.extend=oe.inherits;var Be=ye,Oe=2*Math.PI;function xe(e,t){var n=t.startAngle,r=t.endAngle,a=t.pixelMargin,o=a/t.outerRadius,i=t.x,s=t.y;e.beginPath(),e.arc(i,s,t.outerRadius,n-o,r+o),t.innerRadius>a?(o=a/t.innerRadius,e.arc(i,s,t.innerRadius-a,r+o,n-o,!0)):e.arc(i,s,a,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Ce(e,t,n,r){var a,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+Oe,xe(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=Oe,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+Oe,n.startAngle,!0),a=0;a<n.fullCircles;++a)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+Oe),a=0;a<n.fullCircles;++a)e.stroke()}function Ee(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Ce(e,t,n,r),r&&xe(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}q._set("global",{elements:{arc:{backgroundColor:q.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var je=fe.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=oe.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,o=r.distance,i=n.startAngle,s=n.endAngle;s<i;)s+=Oe;for(;a>s;)a-=Oe;for(;a<i;)a+=Oe;var A=a>=i&&a<=s,c=o>=n.innerRadius&&o<=n.outerRadius;return A&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/Oe)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+Oe,t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),e=0;e<a.fullCircles;++e)t.fill();a.endAngle=a.startAngle+n.circumference%Oe}t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Ee(t,n,a),t.restore()}}),Fe=oe.valueOrDefault,_e=q.global.defaultColor;q._set("global",{elements:{line:{tension:.4,backgroundColor:_e,borderWidth:3,borderColor:_e,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Qe=fe.extend({_type:"line",draw:function(){var e,t,n,r=this,a=r._view,o=r._chart.ctx,i=a.spanGaps,s=r._children.slice(),A=q.global,c=A.elements.line,l=-1,u=r._loop;if(s.length){if(r._loop){for(e=0;e<s.length;++e)if(t=oe.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),u=i;break}u&&s.push(s[0])}for(o.save(),o.lineCap=a.borderCapStyle||c.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||c.borderDash),o.lineDashOffset=Fe(a.borderDashOffset,c.borderDashOffset),o.lineJoin=a.borderJoinStyle||c.borderJoinStyle,o.lineWidth=Fe(a.borderWidth,c.borderWidth),o.strokeStyle=a.borderColor||A.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),l=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===l?oe.previousItem(s,e):s[l],n.skip||(l!==e-1&&!i||-1===l?o.moveTo(n.x,n.y):oe.canvas.lineTo(o,t._view,n),l=e);u&&o.closePath(),o.stroke(),o.restore()}}}),Ue=oe.valueOrDefault,ke=q.global.defaultColor;function Se(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function De(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}q._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ke,borderColor:ke,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Ne=fe.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Se,inXRange:Se,inYRange:De,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,a=t.rotation,o=t.radius,i=t.x,s=t.y,A=q.global,c=A.defaultColor;t.skip||(void 0===e||oe.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=Ue(t.borderWidth,A.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,oe.canvas.drawPoint(n,r,o,i,s,a))}}),He=q.global.defaultColor;function Ie(e){return e&&void 0!==e.width}function Me(e){var t,n,r,a,o;return Ie(e)?(o=e.width/2,t=e.x-o,n=e.x+o,r=Math.min(e.y,e.base),a=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-o,a=e.y+o),{left:t,top:r,right:n,bottom:a}}function Te(e,t,n){return e===t?n:e===n?t:e}function Re(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=Te(t,"left","right")):e.base<e.y&&(t=Te(t,"bottom","top")),n[t]=!0,n):n}function Le(e,t,n){var r,a,o,i,s=e.borderWidth,A=Re(e);return oe.isObject(s)?(r=+s.top||0,a=+s.right||0,o=+s.bottom||0,i=+s.left||0):r=a=o=i=+s||0,{t:A.top||r<0?0:r>n?n:r,r:A.right||a<0?0:a>t?t:a,b:A.bottom||o<0?0:o>n?n:o,l:A.left||i<0?0:i>t?t:i}}function Pe(e){var t=Me(e),n=t.right-t.left,r=t.bottom-t.top,a=Le(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}function Ke(e,t,n){var r=null===t,a=null===n,o=!(!e||r&&a)&&Me(e);return o&&(r||t>=o.left&&t<=o.right)&&(a||n>=o.top&&n<=o.bottom)}q._set("global",{elements:{rectangle:{backgroundColor:He,borderColor:He,borderSkipped:"bottom",borderWidth:0}}});var ze=fe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=Pe(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Ke(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ie(n)?Ke(n,e,null):Ke(n,null,t)},inXRange:function(e){return Ke(this._view,e,null)},inYRange:function(e){return Ke(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ie(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Ie(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ve={},We=je,Ye=Qe,Ge=Ne,Xe=ze;Ve.Arc=We,Ve.Line=Ye,Ve.Point=Ge,Ve.Rectangle=Xe;var Je=oe._deprecated,qe=oe.valueOrDefault;function Ze(e,t){var n,r,a,o,i=e._length;for(a=1,o=t.length;a<o;++a)i=Math.min(i,Math.abs(t[a]-t[a-1]));for(a=0,o=e.getTicks().length;a<o;++a)r=e.getPixelForTick(a),i=a>0?Math.min(i,Math.abs(r-n)):i,n=r;return i}function $e(e,t,n){var r,a,o=n.barThickness,i=t.stackCount,s=t.pixels[e],A=oe.isNullOrUndef(o)?Ze(t.scale,t.pixels):-1;return oe.isNullOrUndef(o)?(r=A*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:s-r/2}}function et(e,t,n){var r,a=t.pixels,o=a[e],i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,A=n.categoryPercentage;return null===i&&(i=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-i),r=o-(o-Math.min(i,s))/2*A,{chunk:Math.abs(s-i)/2*A/t.stackCount,ratio:n.barPercentage,start:r}}q._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),q._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var tt=Be.extend({dataElementType:Ve.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;Be.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Je("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Je("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Je("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Je("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Je("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,a=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=r.getDataset(),i=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderSkipped:i.borderSkipped,borderWidth:i.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[t]},oe.isArray(o.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,i),e.pivot()},_updateElementGeometry:function(e,t,n,r){var a=this,o=e._model,i=a._getValueScale(),s=i.getBasePixel(),A=i.isHorizontal(),c=a._ruler||a.getRuler(),l=a.calculateBarValuePixels(a.index,t,r),u=a.calculateBarIndexPixels(a.index,t,c,r);o.horizontal=A,o.base=n?s:l.base,o.x=A?n?s:l.head:u.center,o.y=A?u.center:n?s:l.head,o.height=A?u.size:void 0,o.width=A?void 0:u.size},_getStacks:function(e){var t,n,r=this,a=r._getIndexScale(),o=a._getMatchingVisibleMetas(r._type),i=a.options.stacked,s=o.length,A=[];for(t=0;t<s&&(n=o[t],(!1===i||-1===A.indexOf(n.stack)||void 0===i&&void 0===n.stack)&&A.push(n.stack),n.index!==e);++t);return A},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this,r=n._getIndexScale(),a=[];for(e=0,t=n.getMeta().data.length;e<t;++e)a.push(r.getPixelForValue(null,e,n.index));return{pixels:a,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,n){var r,a,o,i,s,A,c,l=this,u=l.chart,d=l._getValueScale(),f=d.isHorizontal(),h=u.data.datasets,p=d._getMatchingVisibleMetas(l._type),g=d._parseValue(h[e].data[t]),m=n.minBarLength,b=d.options.stacked,v=l.getMeta().stack,w=void 0===g.start?0:g.max>=0&&g.min>=0?g.min:g.max,y=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,B=p.length;if(b||void 0===b&&void 0!==v)for(r=0;r<B&&(a=p[r]).index!==e;++r)a.stack===v&&(o=void 0===(c=d._parseValue(h[a.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(g.min<0&&o<0||g.max>=0&&o>0)&&(w+=o));return i=d.getPixelForValue(w),A=(s=d.getPixelForValue(w+y))-i,void 0!==m&&Math.abs(A)<m&&(A=m,s=y>=0&&!f||y<0&&f?i-m:i+m),{size:A,base:i,head:s,center:s+A/2}},calculateBarIndexPixels:function(e,t,n,r){var a=this,o="flex"===r.barThickness?et(t,n,r):$e(t,n,r),i=a.getStackIndex(e,a.getMeta().stack),s=o.start+o.chunk*i+o.chunk/2,A=Math.min(qe(r.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-A/2,head:s+A/2,center:s,size:A}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,a=e.getDataset(),o=r.length,i=0;for(oe.canvas.clipArea(t.ctx,t.chartArea);i<o;++i){var s=n._parseValue(a.data[i]);isNaN(s.min)||isNaN(s.max)||r[i].draw()}oe.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=oe.extend({},Be.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=qe(n.barPercentage,t.barPercentage),t.barThickness=qe(n.barThickness,t.barThickness),t.categoryPercentage=qe(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=qe(n.maxBarThickness,t.maxBarThickness),t.minBarLength=qe(r.minBarLength,t.minBarLength),t}}),nt=oe.valueOrDefault,rt=oe.options.resolve;q._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var at=Be.extend({dataElementType:Ve.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;oe.each(n,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=e.custom||{},i=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),A=r._resolveDataElementOptions(e,t),c=r.getDataset().data[t],l=r.index,u=n?i.getPixelForDecimal(.5):i.getPixelForValue("object"===typeof c?c:NaN,t,l),d=n?s.getBasePixel():s.getPixelForValue(c,t,l);e._xScale=i,e._yScale=s,e._options=A,e._datasetIndex=l,e._index=t,e._model={backgroundColor:A.backgroundColor,borderColor:A.borderColor,borderWidth:A.borderWidth,hitRadius:A.hitRadius,pointStyle:A.pointStyle,rotation:A.rotation,radius:n?0:A.radius,skip:o.skip||isNaN(u)||isNaN(d),x:u,y:d},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=oe.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=nt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=nt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=nt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,a=n.getDataset(),o=e.custom||{},i=a.data[t]||{},s=Be.prototype._resolveDataElementOptions.apply(n,arguments),A={chart:r,dataIndex:t,dataset:a,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=oe.extend({},s)),s.radius=rt([o.radius,i.r,n._config.radius,r.options.elements.point.radius],A,t),s}}),ot=oe.valueOrDefault,it=Math.PI,st=2*it,At=it/2;q._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),o=e.data,i=o.datasets,s=o.labels;if(a.setAttribute("class",e.id+"-legend"),i.length)for(t=0,n=i[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),o=a.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);i.update()}},cutoutPercentage:50,rotation:-At,circumference:st,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return oe.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var ct=Be.extend({dataElementType:Ve.Arc,linkScales:oe.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,a,o=this,i=o.chart,s=i.chartArea,A=i.options,c=1,l=1,u=0,d=0,f=o.getMeta(),h=f.data,p=A.cutoutPercentage/100||0,g=A.circumference,m=o._getRingWeight(o.index);if(g<st){var b=A.rotation%st,v=(b+=b>=it?-st:b<-it?st:0)+g,w=Math.cos(b),y=Math.sin(b),B=Math.cos(v),O=Math.sin(v),x=b<=0&&v>=0||v>=st,C=b<=At&&v>=At||v>=st+At,E=b<=-At&&v>=-At||v>=it+At,j=b===-it||v>=it?-1:Math.min(w,w*p,B,B*p),F=E?-1:Math.min(y,y*p,O,O*p),_=x?1:Math.max(w,w*p,B,B*p),Q=C?1:Math.max(y,y*p,O,O*p);c=(_-j)/2,l=(Q-F)/2,u=-(_+j)/2,d=-(Q+F)/2}for(r=0,a=h.length;r<a;++r)h[r]._options=o._resolveDataElementOptions(h[r],r);for(i.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-i.borderWidth)/c,n=(s.bottom-s.top-i.borderWidth)/l,i.outerRadius=Math.max(Math.min(t,n)/2,0),i.innerRadius=Math.max(i.outerRadius*p,0),i.radiusLength=(i.outerRadius-i.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),i.offsetX=u*i.outerRadius,i.offsetY=d*i.outerRadius,f.total=o.calculateTotal(),o.outerRadius=i.outerRadius-i.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-i.radiusLength*m,0),r=0,a=h.length;r<a;++r)o.updateElement(h[r],r,e)},updateElement:function(e,t,n){var r=this,a=r.chart,o=a.chartArea,i=a.options,s=i.animation,A=(o.left+o.right)/2,c=(o.top+o.bottom)/2,l=i.rotation,u=i.rotation,d=r.getDataset(),f=n&&s.animateRotate||e.hidden?0:r.calculateCircumference(d.data[t])*(i.circumference/st),h=n&&s.animateScale?0:r.innerRadius,p=n&&s.animateScale?0:r.outerRadius,g=e._options||{};oe.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:A+a.offsetX,y:c+a.offsetY,startAngle:l,endAngle:u,circumference:f,outerRadius:p,innerRadius:h,label:oe.valueAtIndexOrDefault(d.label,t,a.data.labels[t])}});var m=e._model;n&&s.animateRotate||(m.startAngle=0===t?i.rotation:r.getMeta().data[t-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return oe.each(n.data,(function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?st*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,o,i,s,A,c=this,l=0,u=c.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(r=u.getDatasetMeta(t)).data,t!==c.index&&(o=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)a=e[t],o?(o._configure(),i=o._resolveDataElementOptions(a,t)):i=a._options,"inner"!==i.borderAlign&&(s=i.borderWidth,l=(A=i.hoverBorderWidth)>(l=s>l?s:l)?A:l);return l},setHoverStyle:function(e){var t=e._model,n=e._options,r=oe.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=ot(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=ot(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=ot(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(ot(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});q._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),q._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var lt=tt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),ut=oe.valueOrDefault,dt=oe.options.resolve,ft=oe.canvas._isPointInArea;function ht(e,t){var n=e&&e.options.ticks||{},r=n.reverse,a=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:a,end:r?a:o}}function pt(e,t,n){var r=n/2,a=ht(e,r),o=ht(t,r);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function gt(e){var t,n,r,a;return oe.isObject(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a}}q._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var mt=Be.extend({datasetElementType:Ve.Line,dataElementType:Ve.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.chart.options,A=r._config,c=r._showLine=ut(A.showLine,s.showLines);for(r._xScale=r.getScaleForId(a.xAxisID),r._yScale=r.getScaleForId(a.yAxisID),c&&(void 0!==A.tension&&void 0===A.lineTension&&(A.lineTension=A.tension),o._scale=r._yScale,o._datasetIndex=r.index,o._children=i,o._model=r._resolveDatasetElementOptions(o),o.pivot()),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(c&&0!==o._model.tension&&r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r,a,o=this,i=o.getMeta(),s=e.custom||{},A=o.getDataset(),c=o.index,l=A.data[t],u=o._xScale,d=o._yScale,f=i.dataset._model,h=o._resolveDataElementOptions(e,t);r=u.getPixelForValue("object"===typeof l?l:NaN,t,c),a=n?d.getBasePixel():o.calculatePointY(l,t,c),e._xScale=u,e._yScale=d,e._options=h,e._datasetIndex=c,e._index=t,e._model={x:r,y:a,skip:s.skip||isNaN(r)||isNaN(a),radius:h.radius,pointStyle:h.pointStyle,rotation:h.rotation,backgroundColor:h.backgroundColor,borderColor:h.borderColor,borderWidth:h.borderWidth,tension:ut(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:h.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},a=t.chart.options,o=a.elements.line,i=Be.prototype._resolveDatasetElementOptions.apply(t,arguments);return i.spanGaps=ut(n.spanGaps,a.spanGaps),i.tension=ut(n.lineTension,o.tension),i.steppedLine=dt([r.steppedLine,n.steppedLine,o.stepped]),i.clip=gt(ut(n.clip,pt(t._xScale,t._yScale,i.borderWidth))),i},calculatePointY:function(e,t,n){var r,a,o,i,s,A,c,l=this,u=l.chart,d=l._yScale,f=0,h=0;if(d.options.stacked){for(s=+d.getRightValue(e),c=(A=u._getSortedVisibleDatasetMetas()).length,r=0;r<c&&(o=A[r]).index!==n;++r)a=u.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((i=+d.getRightValue(a.data[t]))<0?h+=i||0:f+=i||0);return s<0?d.getPixelForValue(h+s):d.getPixelForValue(f+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this,o=a.chart,i=a.getMeta(),s=i.dataset._model,A=o.chartArea,c=i.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(s.spanGaps&&(c=c.filter((function(e){return!e._model.skip}))),"monotone"===s.cubicInterpolationMode)oe.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,r=oe.splineCurve(oe.previousItem(c,e)._model,n,oe.nextItem(c,e)._model,s.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(o.options.elements.line.capBezierPoints)for(e=0,t=c.length;e<t;++e)n=c[e]._model,ft(n,A)&&(e>0&&ft(c[e-1]._model,A)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,A.left,A.right),n.controlPointPreviousY=l(n.controlPointPreviousY,A.top,A.bottom)),e<c.length-1&&ft(c[e+1]._model,A)&&(n.controlPointNextX=l(n.controlPointNextX,A.left,A.right),n.controlPointNextY=l(n.controlPointNextY,A.top,A.bottom)))},draw:function(){var e,t=this,n=t.chart,r=t.getMeta(),a=r.data||[],o=n.chartArea,i=n.canvas,s=0,A=a.length;for(t._showLine&&(e=r.dataset._model.clip,oe.canvas.clipArea(n.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?i.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?i.height:o.bottom+e.bottom}),r.dataset.draw(),oe.canvas.unclipArea(n.ctx));s<A;++s)a[s].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,r=oe.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ut(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=ut(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=ut(n.hoverBorderWidth,n.borderWidth),t.radius=ut(n.hoverRadius,n.radius)}}),bt=oe.options.resolve;q._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,a=document.createElement("ul"),o=e.data,i=o.datasets,s=o.labels;if(a.setAttribute("class",e.id+"-legend"),i.length)for(t=0,n=i[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),o=a.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var vt=Be.extend({dataElementType:Ve.Arc,linkScales:oe.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,a=this,o=a.getDataset(),i=a.getMeta(),s=a.chart.options.startAngle||0,A=a._starts=[],c=a._angles=[],l=i.data;for(a._updateRadius(),i.count=a.countVisibleElements(),t=0,n=o.data.length;t<n;t++)A[t]=s,r=a._computeAngle(t),c[t]=r,s+=r;for(t=0,n=l.length;t<n;++t)l[t]._options=a._resolveDataElementOptions(l[t],t),a.updateElement(l[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(a/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,o=r.getDataset(),i=a.options,s=i.animation,A=a.scale,c=a.data.labels,l=A.xCenter,u=A.yCenter,d=i.startAngle,f=e.hidden?0:A.getDistanceFromCenterForValue(o.data[t]),h=r._starts[t],p=h+(e.hidden?0:r._angles[t]),g=s.animateScale?0:A.getDistanceFromCenterForValue(o.data[t]),m=e._options||{};oe.extend(e,{_datasetIndex:r.index,_index:t,_scale:A,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l,y:u,innerRadius:0,outerRadius:n?g:f,startAngle:n&&s.animateRotate?d:h,endAngle:n&&s.animateRotate?d:p,label:oe.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return oe.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=oe.getHoverColor,a=oe.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=a(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=a(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return bt([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});q._set("pie",oe.clone(q.doughnut)),q._set("pie",{cutoutPercentage:0});var wt=ct,yt=oe.valueOrDefault;q._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Bt=Be.extend({datasetElementType:Ve.Line,dataElementType:Ve.Point,linkScales:oe.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.chart.scale,A=r._config;for(void 0!==A.tension&&void 0===A.lineTension&&(A.lineTension=A.tension),o._scale=s,o._datasetIndex=r.index,o._children=i,o._loop=!0,o._model=r._resolveDatasetElementOptions(o),o.pivot(),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r=this,a=e.custom||{},o=r.getDataset(),i=r.chart.scale,s=i.getPointPositionForValue(t,o.data[t]),A=r._resolveDataElementOptions(e,t),c=r.getMeta().dataset._model,l=n?i.xCenter:s.x,u=n?i.yCenter:s.y;e._scale=i,e._options=A,e._datasetIndex=r.index,e._index=t,e._model={x:l,y:u,skip:a.skip||isNaN(l)||isNaN(u),radius:A.radius,pointStyle:A.pointStyle,rotation:A.rotation,backgroundColor:A.backgroundColor,borderColor:A.borderColor,borderWidth:A.borderWidth,tension:yt(a.tension,c?c.tension:0),hitRadius:A.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=Be.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=yt(t.spanGaps,n.spanGaps),r.tension=yt(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,a=this,o=a.getMeta(),i=a.chart.chartArea,s=o.data||[];function A(e,t,n){return Math.max(Math.min(e,n),t)}for(o.dataset._model.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),e=0,t=s.length;e<t;++e)n=s[e]._model,r=oe.splineCurve(oe.previousItem(s,e,!0)._model,n,oe.nextItem(s,e,!0)._model,n.tension),n.controlPointPreviousX=A(r.previous.x,i.left,i.right),n.controlPointPreviousY=A(r.previous.y,i.top,i.bottom),n.controlPointNextX=A(r.next.x,i.left,i.right),n.controlPointNextY=A(r.next.y,i.top,i.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=oe.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=yt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=yt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=yt(n.hoverBorderWidth,n.borderWidth),t.radius=yt(n.hoverRadius,n.radius)}});q._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),q._set("global",{datasets:{scatter:{showLine:!1}}});var Ot={bar:tt,bubble:at,doughnut:ct,horizontalBar:lt,line:mt,polarArea:vt,pie:wt,radar:Bt,scatter:mt};function xt(e,t){return e.native?{x:e.x,y:e.y}:oe.getRelativePosition(e,t)}function Ct(e,t){var n,r,a,o,i,s,A=e._getSortedVisibleDatasetMetas();for(r=0,o=A.length;r<o;++r)for(a=0,i=(n=A[r].data).length;a<i;++a)(s=n[a])._view.skip||t(s)}function Et(e,t){var n=[];return Ct(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function jt(e,t,n,r){var a=Number.POSITIVE_INFINITY,o=[];return Ct(e,(function(e){if(!n||e.inRange(t.x,t.y)){var i=e.getCenterPoint(),s=r(t,i);s<a?(o=[e],a=s):s===a&&o.push(e)}})),o}function Ft(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function _t(e,t,n){var r=xt(t,e);n.axis=n.axis||"x";var a=Ft(n.axis),o=n.intersect?Et(e,r):jt(e,r,!1,a),i=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&i.push(t)})),i):[]}var Qt={modes:{single:function(e,t){var n=xt(t,e),r=[];return Ct(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:_t,index:_t,dataset:function(e,t,n){var r=xt(t,e);n.axis=n.axis||"xy";var a=Ft(n.axis),o=n.intersect?Et(e,r):jt(e,r,!1,a);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return _t(e,t,{intersect:!1})},point:function(e,t){return Et(e,xt(t,e))},nearest:function(e,t,n){var r=xt(t,e);n.axis=n.axis||"xy";var a=Ft(n.axis);return jt(e,r,n.intersect,a)},x:function(e,t,n){var r=xt(t,e),a=[],o=!1;return Ct(e,(function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(a=[]),a},y:function(e,t,n){var r=xt(t,e),a=[],o=!1;return Ct(e,(function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(a=[]),a}}},Ut=oe.extend;function kt(e,t){return oe.where(e,(function(e){return e.pos===t}))}function St(e,t){return e.sort((function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function Dt(e){var t,n,r,a=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],a.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return a}function Nt(e,t){var n,r,a;for(n=0,r=e.length;n<r;++n)(a=e[n]).width=a.horizontal?a.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,a.height=a.horizontal&&t.hBoxMaxHeight}function Ht(e){var t=Dt(e),n=St(kt(t,"left"),!0),r=St(kt(t,"right")),a=St(kt(t,"top"),!0),o=St(kt(t,"bottom"));return{leftAndTop:n.concat(a),rightAndBottom:r.concat(o),chartArea:kt(t,"chartArea"),vertical:n.concat(r),horizontal:a.concat(o)}}function It(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Mt(e,t,n){var r,a,o=n.box,i=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();i.top=Math.max(i.top,s.top),i.left=Math.max(i.left,s.left),i.bottom=Math.max(i.bottom,s.bottom),i.right=Math.max(i.right,s.right)}if(r=t.outerWidth-It(i,e,"left","right"),a=t.outerHeight-It(i,e,"top","bottom"),r!==e.w||a!==e.h){e.w=r,e.h=a;var A=n.horizontal?[r,e.w]:[a,e.h];return A[0]!==A[1]&&(!isNaN(A[0])||!isNaN(A[1]))}}function Tt(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Rt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function Lt(e,t,n){var r,a,o,i,s,A,c=[];for(r=0,a=e.length;r<a;++r)(i=(o=e[r]).box).update(o.width||t.w,o.height||t.h,Rt(o.horizontal,t)),Mt(t,n,o)&&(A=!0,c.length&&(s=!0)),i.fullWidth||c.push(o);return s&&Lt(c,t,n)||A}function Pt(e,t,n){var r,a,o,i,s=n.padding,A=t.x,c=t.y;for(r=0,a=e.length;r<a;++r)i=(o=e[r]).box,o.horizontal?(i.left=i.fullWidth?s.left:t.left,i.right=i.fullWidth?n.outerWidth-s.right:t.left+t.w,i.top=c,i.bottom=c+i.height,i.width=i.right-i.left,c=i.bottom):(i.left=A,i.right=A+i.width,i.top=t.top,i.bottom=t.top+t.h,i.height=i.bottom-i.top,A=i.right);t.x=A,t.y=c}q._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Kt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,a=["fullWidth","position","weight"],o=a.length,i=0;i<o;++i)r=a[i],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},a=oe.options.toPadding(r.padding),o=t-a.width,i=n-a.height,s=Ht(e.boxes),A=s.vertical,c=s.horizontal,l=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:o,vBoxMaxWidth:o/2/A.length,hBoxMaxHeight:i/2}),u=Ut({maxPadding:Ut({},a),w:o,h:i,x:a.left,y:a.top},a);Nt(A.concat(c),l),Lt(A,u,l),Lt(c,u,l)&&Lt(A,u,l),Tt(u),Pt(s.leftAndTop,u,l),u.x+=u.w,u.y+=u.h,Pt(s.rightAndBottom,u,l),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},oe.each(s.chartArea,(function(t){var n=t.box;Ut(n,e.chartArea),n.update(u.w,u.h)}))}}},zt={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Vt="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Wt=n(Object.freeze({__proto__:null,default:Vt})),Yt="$chartjs",Gt="chartjs-",Xt=Gt+"size-monitor",Jt=Gt+"render-monitor",qt=Gt+"render-animation",Zt=["animationstart","webkitAnimationStart"],$t={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function en(e,t){var n=oe.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function tn(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Yt]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var o=en(e,"width");void 0!==o&&(e.width=o)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var i=en(e,"height");void 0!==o&&(e.height=i)}return e}var nn=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0};function rn(e,t,n){e.addEventListener(t,n,nn)}function an(e,t,n){e.removeEventListener(t,n,nn)}function on(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function sn(e,t){var n=$t[e.type]||e.type,r=oe.getRelativePosition(e,t);return on(n,t,r.x,r.y,e)}function An(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,oe.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function cn(e){var t=document.createElement("div");return t.className=e||"",t}function ln(e){var t=1e6,n=cn(Xt),r=cn(Xt+"-expand"),a=cn(Xt+"-shrink");r.appendChild(cn()),a.appendChild(cn()),n.appendChild(r),n.appendChild(a),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,a.scrollLeft=t,a.scrollTop=t};var o=function(){n._reset(),e()};return rn(r,"scroll",o.bind(r,"expand")),rn(a,"scroll",o.bind(a,"shrink")),n}function un(e,t){var n=e[Yt]||(e[Yt]={}),r=n.renderProxy=function(e){e.animationName===qt&&t()};oe.each(Zt,(function(t){rn(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add(Jt)}function dn(e){var t=e[Yt]||{},n=t.renderProxy;n&&(oe.each(Zt,(function(t){an(e,t,n)})),delete t.renderProxy),e.classList.remove(Jt)}function fn(e,t,n){var r=e[Yt]||(e[Yt]={}),a=r.resizer=ln(An((function(){if(r.resizer){var a=n.options.maintainAspectRatio&&e.parentNode,o=a?a.clientWidth:0;t(on("resize",n)),a&&a.clientWidth<o&&n.canvas&&t(on("resize",n))}})));un(e,(function(){if(r.resizer){var t=e.parentNode;t&&t!==a.parentNode&&t.insertBefore(a,t.firstChild),a._reset()}}))}function hn(e){var t=e[Yt]||{},n=t.resizer;delete t.resizer,dn(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function pn(e,t){var n=e[Yt]||(e[Yt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}var gn={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;pn(t.host?t:document.head,Wt)}},acquireContext:function(e,t){"string"===typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),tn(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Yt]){var n=t[Yt].initial;["height","width"].forEach((function(e){var r=n[e];oe.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),oe.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[Yt]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n[Yt]||(n[Yt]={});rn(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(sn(t,e))})}else fn(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=((n[Yt]||{}).proxies||{})[e.id+"_"+t];a&&an(r,t,a)}else hn(r)}};oe.addEvent=rn,oe.removeEvent=an;var mn=gn._enabled?gn:zt,bn=oe.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},mn);q._set("global",{plugins:{}});var vn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,a,o,i,s,A=this.descriptors(e),c=A.length;for(r=0;r<c;++r)if("function"===typeof(s=(o=(a=A[r]).plugin)[t])&&((i=[e].concat(n||[])).push(a.options),!1===s.apply(o,i)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},o=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,a=o[t];!1!==a&&(!0===a&&(a=oe.clone(q.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},wn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=oe.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?oe.merge(Object.create(null),[q.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=oe.extend(n.defaults[e],t))},addScalesToLayout:function(e){oe.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Kt.addBox(e,t)}))}},yn=oe.valueOrDefault,Bn=oe.rtl.getRtlAdapter;q._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:oe.noop,title:function(e,t){var n="",r=t.labels,a=r?r.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:a>0&&o.index<a&&(n=r[o.index])}return n},afterTitle:oe.noop,beforeBody:oe.noop,beforeLabel:oe.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),oe.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:oe.noop,afterBody:oe.noop,beforeFooter:oe.noop,footer:oe.noop,afterFooter:oe.noop}}});var On={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,o=0;for(t=0,n=e.length;t<n;++t){var i=e[t];if(i&&i.hasValue()){var s=i.tooltipPosition();r+=s.x,a+=s.y,++o}}return{x:r/o,y:a/o}},nearest:function(e,t){var n,r,a,o=t.x,i=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var A=e[n];if(A&&A.hasValue()){var c=A.getCenterPoint(),l=oe.distanceBetweenPoints(t,c);l<s&&(s=l,a=A)}}if(a){var u=a.tooltipPosition();o=u.x,i=u.y}return{x:o,y:i}}};function xn(e,t){return t&&(oe.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Cn(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function En(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,a=e._datasetIndex,o=e._chart.getDatasetMeta(a).controller,i=o._getIndexScale(),s=o._getValueScale();return{xLabel:t?t.getLabelForIndex(r,a):"",yLabel:n?n.getLabelForIndex(r,a):"",label:i?""+i.getLabelForIndex(r,a):"",value:s?""+s.getLabelForIndex(r,a):"",index:r,datasetIndex:a,x:e._model.x,y:e._model.y}}function jn(e){var t=q.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:yn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:yn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:yn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:yn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:yn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:yn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:yn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:yn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:yn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Fn(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,o=t.body,i=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);i+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,A=t.footer.length,c=t.titleFontSize,l=t.bodyFontSize,u=t.footerFontSize;r+=s*c,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=i*l,r+=i?(i-1)*t.bodySpacing:0,r+=A?t.footerMarginTop:0,r+=A*u,r+=A?(A-1)*t.footerSpacing:0;var d=0,f=function(e){a=Math.max(a,n.measureText(e).width+d)};return n.font=oe.fontString(c,t._titleFontStyle,t._titleFontFamily),oe.each(t.title,f),n.font=oe.fontString(l,t._bodyFontStyle,t._bodyFontFamily),oe.each(t.beforeBody.concat(t.afterBody),f),d=t.displayColors?l+2:0,oe.each(o,(function(e){oe.each(e.before,f),oe.each(e.lines,f),oe.each(e.after,f)})),d=0,n.font=oe.fontString(u,t._footerFontStyle,t._footerFontFamily),oe.each(t.footer,f),{width:a+=2*t.xPadding,height:r}}function _n(e,t){var n,r,a,o,i,s=e._model,A=e._chart,c=e._chart.chartArea,l="center",u="center";s.y<t.height?u="top":s.y>A.height-t.height&&(u="bottom");var d=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===u?(n=function(e){return e<=d},r=function(e){return e>d}):(n=function(e){return e<=t.width/2},r=function(e){return e>=A.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>A.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},i=function(e){return e<=f?"top":"bottom"},n(s.x)?(l="left",a(s.x)&&(l="center",u=i(s.y))):r(s.x)&&(l="right",o(s.x)&&(l="center",u=i(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:l,yAlign:h.yAlign?h.yAlign:u}}function Qn(e,t,n,r){var a=e.x,o=e.y,i=e.caretSize,s=e.caretPadding,A=e.cornerRadius,c=n.xAlign,l=n.yAlign,u=i+s,d=A+s;return"right"===c?a-=t.width:"center"===c&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===l?o+=u:o-="bottom"===l?t.height+u:t.height/2,"center"===l?"left"===c?a+=u:"right"===c&&(a-=u):"left"===c?a-=d:"right"===c&&(a+=d),{x:a,y:o}}function Un(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function kn(e){return xn([],Cn(e))}var Sn=fe.extend({initialize:function(){this._model=jn(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),a=t.afterTitle.apply(e,arguments),o=[];return o=xn(o,Cn(n)),o=xn(o,Cn(r)),o=xn(o,Cn(a))},getBeforeBody:function(){return kn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return oe.each(e,(function(e){var o={before:[],lines:[],after:[]};xn(o.before,Cn(r.beforeLabel.call(n,e,t))),xn(o.lines,r.label.call(n,e,t)),xn(o.after,Cn(r.afterLabel.call(n,e,t))),a.push(o)})),a},getAfterBody:function(){return kn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),o=[];return o=xn(o,Cn(n)),o=xn(o,Cn(r)),o=xn(o,Cn(a))},update:function(e){var t,n,r=this,a=r._options,o=r._model,i=r._model=jn(a),s=r._active,A=r._data,c={xAlign:o.xAlign,yAlign:o.yAlign},l={x:o.x,y:o.y},u={width:o.width,height:o.height},d={x:o.caretX,y:o.caretY};if(s.length){i.opacity=1;var f=[],h=[];d=On[a.position].call(r,s,r._eventPosition);var p=[];for(t=0,n=s.length;t<n;++t)p.push(En(s[t]));a.filter&&(p=p.filter((function(e){return a.filter(e,A)}))),a.itemSort&&(p=p.sort((function(e,t){return a.itemSort(e,t,A)}))),oe.each(p,(function(e){f.push(a.callbacks.labelColor.call(r,e,r._chart)),h.push(a.callbacks.labelTextColor.call(r,e,r._chart))})),i.title=r.getTitle(p,A),i.beforeBody=r.getBeforeBody(p,A),i.body=r.getBody(p,A),i.afterBody=r.getAfterBody(p,A),i.footer=r.getFooter(p,A),i.x=d.x,i.y=d.y,i.caretPadding=a.caretPadding,i.labelColors=f,i.labelTextColors=h,i.dataPoints=p,l=Qn(i,u=Fn(this,i),c=_n(this,u),r._chart)}else i.opacity=0;return i.xAlign=c.xAlign,i.yAlign=c.yAlign,i.x=l.x,i.y=l.y,i.width=u.width,i.height=u.height,i.caretX=d.x,i.caretY=d.y,r._model=i,e&&a.custom&&a.custom.call(r,i),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,a=this.getCaretPosition(e,t,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(e,t,n){var r,a,o,i,s,A,c=n.caretSize,l=n.cornerRadius,u=n.xAlign,d=n.yAlign,f=e.x,h=e.y,p=t.width,g=t.height;if("center"===d)s=h+g/2,"left"===u?(a=(r=f)-c,o=r,i=s+c,A=s-c):(a=(r=f+p)+c,o=r,i=s-c,A=s+c);else if("left"===u?(r=(a=f+l+c)-c,o=a+c):"right"===u?(r=(a=f+p-l-c)-c,o=a+c):(r=(a=n.caretX)-c,o=a+c),"top"===d)s=(i=h)-c,A=i;else{s=(i=h+g)+c,A=i;var m=o;o=r,r=m}return{x1:r,x2:a,x3:o,y1:i,y2:s,y3:A}},drawTitle:function(e,t,n){var r,a,o,i=t.title,s=i.length;if(s){var A=Bn(t.rtl,t.x,t.width);for(e.x=Un(t,t._titleAlign),n.textAlign=A.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,a=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=oe.fontString(r,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(i[o],A.x(e.x),e.y+r/2),e.y+=r+a,o+1===s&&(e.y+=t.titleMarginBottom-a)}},drawBody:function(e,t,n){var r,a,o,i,s,A,c,l,u=t.bodyFontSize,d=t.bodySpacing,f=t._bodyAlign,h=t.body,p=t.displayColors,g=0,m=p?Un(t,"left"):0,b=Bn(t.rtl,t.x,t.width),v=function(t){n.fillText(t,b.x(e.x+g),e.y+u/2),e.y+=u+d},w=b.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=oe.fontString(u,t._bodyFontStyle,t._bodyFontFamily),e.x=Un(t,w),n.fillStyle=t.bodyFontColor,oe.each(t.beforeBody,v),g=p&&"right"!==w?"center"===f?u/2+1:u+2:0,s=0,c=h.length;s<c;++s){for(r=h[s],a=t.labelTextColors[s],o=t.labelColors[s],n.fillStyle=a,oe.each(r.before,v),A=0,l=(i=r.lines).length;A<l;++A){if(p){var y=b.x(m);n.fillStyle=t.legendColorBackground,n.fillRect(b.leftForLtr(y,u),e.y,u,u),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(b.leftForLtr(y,u),e.y,u,u),n.fillStyle=o.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(y,1),u-2),e.y+1,u-2,u-2),n.fillStyle=a}v(i[A])}oe.each(r.after,v)}g=0,oe.each(t.afterBody,v),e.y-=d},drawFooter:function(e,t,n){var r,a,o=t.footer,i=o.length;if(i){var s=Bn(t.rtl,t.x,t.width);for(e.x=Un(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=oe.fontString(r,t._footerFontStyle,t._footerFontFamily),a=0;a<i;++a)n.fillText(o[a],s.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var a=t.xAlign,o=t.yAlign,i=e.x,s=e.y,A=r.width,c=r.height,l=t.cornerRadius;n.beginPath(),n.moveTo(i+l,s),"top"===o&&this.drawCaret(e,r),n.lineTo(i+A-l,s),n.quadraticCurveTo(i+A,s,i+A,s+l),"center"===o&&"right"===a&&this.drawCaret(e,r),n.lineTo(i+A,s+c-l),n.quadraticCurveTo(i+A,s+c,i+A-l,s+c),"bottom"===o&&this.drawCaret(e,r),n.lineTo(i+l,s+c),n.quadraticCurveTo(i,s+c,i,s+c-l),"center"===o&&"left"===a&&this.drawCaret(e,r),n.lineTo(i,s+l),n.quadraticCurveTo(i,s,i+l,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,oe.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),oe.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!oe.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Dn=On,Nn=Sn;Nn.positioners=Dn;var Hn=oe.valueOrDefault;function In(){return oe.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,o,i,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a<s;++a)i=n[e][a],o=Hn(i.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||i.type&&i.type!==t[e][a].type?oe.merge(t[e][a],[wn.getScaleDefaults(o),i]):oe.merge(t[e][a],i)}else oe._merger(e,t,n,r)}})}function Mn(){return oe.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=In(a,o):"scale"===e?t[e]=oe.merge(a,[wn.getScaleDefaults(o.type),o]):oe._merger(e,t,n,r)}})}function Tn(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Mn(q.global,q[e.type],e.options||{}),e}function Rn(e){var t=e.options;oe.each(e.scales,(function(t){Kt.removeBox(e,t)})),t=Mn(q.global,q[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Ln(e,t,n){var r,a=function(e){return e.id===r};do{r=t+n++}while(oe.findIndex(e,a)>=0);return r}function Pn(e){return"top"===e||"bottom"===e}function Kn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}q._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var zn=function(e,t){return this.construct(e,t),this};oe.extend(zn.prototype,{construct:function(e,t){var n=this;t=Tn(t);var r=bn.acquireContext(e,t),a=r&&r.canvas,o=a&&a.height,i=a&&a.width;n.id=oe.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=i,n.height=o,n.aspectRatio=o?i/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,zn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return vn.notify(e,"beforeInit"),oe.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),vn.notify(e,"afterInit"),e},clear:function(){return oe.canvas.clear(this),this},stop:function(){return ge.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(oe.getMaximumWidth(r))),i=Math.max(0,Math.floor(a?o/a:oe.getMaximumHeight(r)));if((t.width!==o||t.height!==i)&&(r.width=t.width=o,r.height=t.height=i,r.style.width=o+"px",r.style.height=i+"px",oe.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:i};vn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;oe.each(t.xAxes,(function(e,n){e.id||(e.id=Ln(t.xAxes,"x-axis-",n))})),oe.each(t.yAxes,(function(e,n){e.id||(e.id=Ln(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),oe.each(r,(function(t){var r=t.options,o=r.id,i=Hn(r.type,t.dtype);Pn(r.position)!==Pn(t.dposition)&&(r.position=t.dposition),a[o]=!0;var s=null;if(o in n&&n[o].type===i)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var A=wn.getScaleConstructor(i);if(!A)return;s=new A({id:o,type:i,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),oe.each(a,(function(e,t){e||delete n[t]})),e.scales=n,wn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],a=n.data.datasets;for(e=0,t=a.length;e<t;e++){var o=a[e],i=n.getDatasetMeta(e),s=o.type||n.config.type;if(i.type&&i.type!==s&&(n.destroyDatasetMeta(e),i=n.getDatasetMeta(e)),i.type=s,i.order=o.order||0,i.index=e,i.controller)i.controller.updateIndex(e),i.controller.linkScales();else{var A=Ot[i.type];if(void 0===A)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new A(n,e),r.push(i.controller)}}return r},resetElements:function(){var e=this;oe.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]}),Rn(r),vn._invalidate(r),!1!==vn.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var a=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&oe.each(a,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],vn.notify(r,"afterUpdate"),r._layers.sort(Kn("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==vn.notify(e,"beforeLayout")&&(Kt.update(this,this.width,this.height),e._layers=[],oe.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),vn.notify(e,"afterScaleUpdate"),vn.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==vn.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);vn.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),r={meta:n,index:e};!1!==vn.notify(t,"beforeDatasetUpdate",[r])&&(n.controller._update(),vn.notify(t,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=Hn(e.duration,n&&n.duration),a=e.lazy;if(!1!==vn.notify(t,"beforeRender")){var o=function(e){vn.notify(t,"afterRender"),oe.callback(n&&n.onComplete,[e],t)};if(n&&r){var i=new pe({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=oe.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});ge.addAnimation(t,i,r,a)}else t.draw(),o(new pe({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),oe.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==vn.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),vn.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,r=(t.data.datasets||[]).length;n<r;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=this,a=[];for(t=0,n=(r.data.datasets||[]).length;t<n;++t)e&&!r.isDatasetVisible(t)||a.push(r.getDatasetMeta(t));return a.sort(Kn("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,r=this;if(!1!==vn.notify(r,"beforeDatasetsDraw",[e])){for(n=(t=r._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)r.drawDataset(t[n],e);vn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==vn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),vn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==vn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),vn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Qt.modes.single(this,e)},getElementsAtEvent:function(e){return Qt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Qt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Qt.modes[t];return"function"===typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Qt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"===typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),oe.canvas.clear(n),bn.releaseContext(n.ctx),n.canvas=null,n.ctx=null),vn.notify(n,"destroy"),delete zn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Nn({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};oe.each(e.options.events,(function(r){bn.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},bn.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,oe.each(t,(function(t,n){bn.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,a,o,i=n?"set":"remove";for(a=0,o=e.length;a<o;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[i+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+i+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==vn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),vn.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},r=n.hover,a=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,r.mode,r),oe.callback(n.onHover||n.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,r.mode,!1),t.active.length&&r.mode&&t.updateHoverStyle(t.active,r.mode,!0),a=!oe.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,a}}),zn.instances={};var Vn=zn;zn.Controller=zn,zn.types={},oe.configMerge=Mn,oe.scaleMerge=In;var Wn=function(){function e(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return void 0!==e&&null!==e&&"none"!==e}function n(n,r,a){var o=document.defaultView,i=oe._getParentNode(n),s=o.getComputedStyle(n)[r],A=o.getComputedStyle(i)[r],c=t(s),l=t(A),u=Number.POSITIVE_INFINITY;return c||l?Math.min(c?e(s,n,a):u,l?e(A,i,a):u):"none"}oe.where=function(e,t){if(oe.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return oe.each(e,(function(e){t(e)&&n.push(e)})),n},oe.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},oe.findNextWhere=function(e,t,n){oe.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},oe.findPreviousWhere=function(e,t,n){oe.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},oe.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},oe.almostEquals=function(e,t,n){return Math.abs(e-t)<n},oe.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},oe.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},oe.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},oe.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},oe.toRadians=function(e){return e*(Math.PI/180)},oe.toDegrees=function(e){return e*(180/Math.PI)},oe._decimalPlaces=function(e){if(oe.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},oe.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},oe.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},oe.aliasPixel=function(e){return e%2===0?0:.5},oe._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},oe.splineCurve=function(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),A=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),c=s/(s+A),l=A/(s+A),u=r*(c=isNaN(c)?0:c),d=r*(l=isNaN(l)?0:l);return{previous:{x:o.x-u*(i.x-a.x),y:o.y-u*(i.y-a.y)},next:{x:o.x+d*(i.x-a.x),y:o.y+d*(i.y-a.y)}}},oe.EPSILON=Number.EPSILON||1e-14,oe.splineCurveMonotone=function(e){var t,n,r,a,o,i,s,A,c,l=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),u=l.length;for(t=0;t<u;++t)if(!(r=l[t]).model.skip){if(n=t>0?l[t-1]:null,(a=t<u-1?l[t+1]:null)&&!a.model.skip){var d=a.model.x-r.model.x;r.deltaK=0!==d?(a.model.y-r.model.y)/d:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<u-1;++t)r=l[t],a=l[t+1],r.model.skip||a.model.skip||(oe.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(o=r.mK/r.deltaK,i=a.mK/r.deltaK,(A=Math.pow(o,2)+Math.pow(i,2))<=9||(s=3/Math.sqrt(A),r.mK=o*s*r.deltaK,a.mK=i*s*r.deltaK)));for(t=0;t<u;++t)(r=l[t]).model.skip||(n=t>0?l[t-1]:null,a=t<u-1?l[t+1]:null,n&&!n.model.skip&&(c=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-c,r.model.controlPointPreviousY=r.model.y-c*r.mK),a&&!a.model.skip&&(c=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+c,r.model.controlPointNextY=r.model.y+c*r.mK))},oe.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},oe.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},oe.niceNum=function(e,t){var n=Math.floor(oe.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},oe.requestAnimFrame="undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},oe.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,o=e.target||e.srcElement,i=o.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var A=parseFloat(oe.getStyle(o,"padding-left")),c=parseFloat(oe.getStyle(o,"padding-top")),l=parseFloat(oe.getStyle(o,"padding-right")),u=parseFloat(oe.getStyle(o,"padding-bottom")),d=i.right-i.left-A-l,f=i.bottom-i.top-c-u;return{x:n=Math.round((n-i.left-A)/d*o.width/t.currentDevicePixelRatio),y:r=Math.round((r-i.top-c)/f*o.height/t.currentDevicePixelRatio)}},oe.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},oe.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},oe._calculatePadding=function(e,t,n){return(t=oe.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},oe._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},oe.getMaximumWidth=function(e){var t=oe._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-oe._calculatePadding(t,"padding-left",n)-oe._calculatePadding(t,"padding-right",n),a=oe.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},oe.getMaximumHeight=function(e){var t=oe._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-oe._calculatePadding(t,"padding-top",n)-oe._calculatePadding(t,"padding-bottom",n),a=oe.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},oe.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},oe.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,o=e.width;r.height=a*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=o+"px")}},oe.fontString=function(e,t,n){return t+" "+e+"px "+n},oe.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var i,s,A,c,l,u=0,d=n.length;for(i=0;i<d;i++)if(void 0!==(c=n[i])&&null!==c&&!0!==oe.isArray(c))u=oe.measureText(e,a,o,u,c);else if(oe.isArray(c))for(s=0,A=c.length;s<A;s++)void 0===(l=c[s])||null===l||oe.isArray(l)||(u=oe.measureText(e,a,o,u,l));var f=o.length/2;if(f>n.length){for(i=0;i<f;i++)delete a[o[i]];o.splice(0,f)}return u},oe.measureText=function(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r},oe.numberOfLabelLines=function(e){var t=1;return oe.each(e,(function(e){oe.isArray(e)&&e.length>t&&(t=e.length)})),t},oe.color=H?function(e){return e instanceof CanvasGradient&&(e=q.global.defaultColor),H(e)}:function(e){return console.error("Color.js not found!"),e},oe.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:oe.color(e).saturate(.5).darken(.1).rgbString()}};function Yn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Gn(e){this.options=e||{}}oe.extend(Gn.prototype,{formats:Yn,parse:Yn,format:Yn,add:Yn,diff:Yn,startOf:Yn,endOf:Yn,_create:function(e){return e}}),Gn.override=function(e){oe.extend(Gn.prototype,e)};var Xn={_date:Gn},Jn={formatters:{values:function(e){return oe.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=oe.log10(Math.abs(r)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var i=oe.log10(Math.abs(e)),s=Math.floor(i)-Math.floor(a);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var A=-1*Math.floor(a);A=Math.max(Math.min(A,20),0),o=e.toFixed(A)}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(oe.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},qn=oe.isArray,Zn=oe.isNullOrUndef,$n=oe.valueOrDefault,er=oe.valueAtIndexOrDefault;function tr(e,t){for(var n=[],r=e.length/t,a=0,o=e.length;a<o;a+=r)n.push(e[Math.floor(a)]);return n}function nr(e,t,n){var r,a=e.getTicks().length,o=Math.min(t,a-1),i=e.getPixelForTick(o),s=e._startPixel,A=e._endPixel,c=1e-6;if(!(n&&(r=1===a?Math.max(i-s,A-i):0===t?(e.getPixelForTick(1)-i)/2:(i-e.getPixelForTick(o-1))/2,(i+=o<t?r:-r)<s-c||i>A+c)))return i}function rr(e,t){oe.each(e,(function(e){var n,r=e.gc,a=r.length/2;if(a>t){for(n=0;n<a;++n)delete e.data[r[n]];r.splice(0,a)}}))}function ar(e,t,n,r){var a,o,i,s,A,c,l,u,d,f,h,p,g,m=n.length,b=[],v=[],w=[],y=0,B=0;for(a=0;a<m;++a){if(s=n[a].label,A=n[a].major?t.major:t.minor,e.font=c=A.string,l=r[c]=r[c]||{data:{},gc:[]},u=A.lineHeight,d=f=0,Zn(s)||qn(s)){if(qn(s))for(o=0,i=s.length;o<i;++o)h=s[o],Zn(h)||qn(h)||(d=oe.measureText(e,l.data,l.gc,d,h),f+=u)}else d=oe.measureText(e,l.data,l.gc,d,s),f=u;b.push(d),v.push(f),w.push(u/2),y=Math.max(d,y),B=Math.max(f,B)}function O(e){return{width:b[e]||0,height:v[e]||0,offset:w[e]||0}}return rr(r,m),p=b.indexOf(y),g=v.indexOf(B),{first:O(0),last:O(m-1),widest:O(p),highest:O(g)}}function or(e){return e.drawTicks?e.tickMarkLength:0}function ir(e){var t,n;return e.display?(t=oe.options._parseFont(e),n=oe.options.toPadding(e.padding),t.lineHeight+n.height):0}function sr(e,t){return oe.extend(oe.options._parseFont({fontFamily:$n(t.fontFamily,e.fontFamily),fontSize:$n(t.fontSize,e.fontSize),fontStyle:$n(t.fontStyle,e.fontStyle),lineHeight:$n(t.lineHeight,e.lineHeight)}),{color:oe.options.resolve([t.fontColor,e.fontColor,q.global.defaultFontColor])})}function Ar(e){var t=sr(e,e.minor);return{minor:t,major:e.major.enabled?sr(e,e.major):t}}function cr(e){var t,n,r,a=[];for(n=0,r=e.length;n<r;++n)"undefined"!==typeof(t=e[n])._index&&a.push(t);return a}function lr(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}function ur(e,t,n,r){var a,o,i,s,A=lr(e),c=(t.length-1)/r;if(!A)return Math.max(c,1);for(i=0,s=(a=oe.math._factorize(A)).length-1;i<s;i++)if((o=a[i])>c)return o;return Math.max(c,1)}function dr(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}function fr(e,t,n){var r,a,o=0,i=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)a=e[r],r===i?(a._index=r,i=t[++o*n]):delete a.label}function hr(e,t,n,r){var a,o,i,s,A=$n(n,0),c=Math.min($n(r,e.length),e.length),l=0;for(t=Math.ceil(t),r&&(t=(a=r-n)/Math.floor(a/t)),s=A;s<0;)l++,s=Math.round(A+l*t);for(o=Math.max(A,0);o<c;o++)i=e[o],o===s?(i._index=o,l++,s=Math.round(A+l*t)):delete i.label}q._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Jn.formatters.values,minor:{},major:{}}});var pr=fe.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){oe.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,a,o,i,s,A=this,c=A.options.ticks,l=c.sampleSize;if(A.beforeUpdate(),A.maxWidth=e,A.maxHeight=t,A.margins=oe.extend({left:0,right:0,top:0,bottom:0},n),A._ticks=null,A.ticks=null,A._labelSizes=null,A._maxLabelLines=0,A.longestLabelWidth=0,A.longestTextCache=A.longestTextCache||{},A._gridLineItems=null,A._labelItems=null,A.beforeSetDimensions(),A.setDimensions(),A.afterSetDimensions(),A.beforeDataLimits(),A.determineDataLimits(),A.afterDataLimits(),A.beforeBuildTicks(),i=A.buildTicks()||[],(!(i=A.afterBuildTicks(i)||i)||!i.length)&&A.ticks)for(i=[],r=0,a=A.ticks.length;r<a;++r)i.push({value:A.ticks[r],major:!1});return A._ticks=i,s=l<i.length,o=A._convertTicksToLabels(s?tr(i,l):i),A._configure(),A.beforeCalculateTickRotation(),A.calculateTickRotation(),A.afterCalculateTickRotation(),A.beforeFit(),A.fit(),A.afterFit(),A._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?A._autoSkip(i):i,s&&(o=A._convertTicksToLabels(A._ticksToDraw)),A.ticks=o,A.afterUpdate(),A.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){oe.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){oe.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){oe.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){oe.callback(this.options.beforeDataLimits,[this])},determineDataLimits:oe.noop,afterDataLimits:function(){oe.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){oe.callback(this.options.beforeBuildTicks,[this])},buildTicks:oe.noop,afterBuildTicks:function(e){var t=this;return qn(e)&&e.length?oe.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=oe.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){oe.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){oe.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){oe.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,a,o,i,s=this,A=s.options,c=A.ticks,l=s.getTicks().length,u=c.minRotation||0,d=c.maxRotation,f=u;!s._isVisible()||!c.display||u>=d||l<=1||!s.isHorizontal()?s.labelRotation=u:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(a=A.offset?s.maxWidth/l:r/(l-1))&&(a=r/(l-(A.offset?.5:1)),o=s.maxHeight-or(A.gridLines)-c.padding-ir(A.scaleLabel),i=Math.sqrt(t*t+n*n),f=oe.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/a,1)),Math.asin(Math.min(o/i,1))-Math.asin(n/i))),f=Math.max(u,Math.min(d,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){oe.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){oe.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,a=r.ticks,o=r.scaleLabel,i=r.gridLines,s=e._isVisible(),A="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=or(i)+ir(o)),c?s&&(t.height=or(i)+ir(o)):t.height=e.maxHeight,a.display&&s){var l=Ar(a),u=e._getLabelSizes(),d=u.first,f=u.last,h=u.widest,p=u.highest,g=.4*l.minor.lineHeight,m=a.padding;if(c){var b=0!==e.labelRotation,v=oe.toRadians(e.labelRotation),w=Math.cos(v),y=Math.sin(v),B=y*h.width+w*(p.height-(b?p.offset:0))+(b?0:g);t.height=Math.min(e.maxHeight,t.height+B+m);var O,x,C=e.getPixelForTick(0)-e.left,E=e.right-e.getPixelForTick(e.getTicks().length-1);b?(O=A?w*d.width+y*d.offset:y*(d.height-d.offset),x=A?y*(f.height-f.offset):w*f.width+y*f.offset):(O=d.width/2,x=f.width/2),e.paddingLeft=Math.max((O-C)*e.width/(e.width-C),0)+3,e.paddingRight=Math.max((x-E)*e.width/(e.width-E),0)+3}else{var j=a.mirror?0:h.width+m+g;t.width=Math.min(e.maxWidth,t.width+j),e.paddingTop=d.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){oe.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Zn(e))return NaN;if(("number"===typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,a=this;for(a.ticks=e.map((function(e){return e.value})),a.beforeTickToLabelConversion(),t=a.convertTicksToLabels(e)||a.ticks,a.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ar(e.ctx,Ar(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,a;return qn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),a=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),r=e,a=e),{min:r,max:a,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:oe.noop,getPixelForValue:oe.noop,getValueForPixel:oe.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,r=t._ticks.length,a=1/Math.max(r-(n?0:1),1);return e<0||e>r-1?null:t.getPixelForDecimal(e*a+(n?a/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,a,o=this,i=o.options.ticks,s=o._length,A=i.maxTicksLimit||s/o._tickSize()+1,c=i.major.enabled?dr(e):[],l=c.length,u=c[0],d=c[l-1];if(l>A)return fr(e,c,l/A),cr(e);if(r=ur(c,e,s,A),l>0){for(t=0,n=l-1;t<n;t++)hr(e,r,c[t],c[t+1]);return a=l>1?(d-u)/(l-1):null,hr(e,r,oe.isNullOrUndef(a)?0:u-a,u),hr(e,r,d,oe.isNullOrUndef(a)?e.length:d+a),cr(e)}return hr(e,r),cr(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=oe.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),o=e._getLabelSizes(),i=t.autoSkipPadding||0,s=o?o.widest.width+i:0,A=o?o.highest.height+i:0;return e.isHorizontal()?A*r>s*a?s/r:A/a:A*a<s*r?A/r:s/a},_isVisible:function(){var e,t,n,r=this,a=r.chart,o=r.options.display;if("auto"!==o)return!!o;for(e=0,t=a.data.datasets.length;e<t;++e)if(a.isDatasetVisible(e)&&((n=a.getDatasetMeta(e)).xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,a,o,i,s,A,c,l,u,d,f,h,p,g,m,b=this,v=b.chart,w=b.options,y=w.gridLines,B=w.position,O=y.offsetGridLines,x=b.isHorizontal(),C=b._ticksToDraw,E=C.length+(O?1:0),j=or(y),F=[],_=y.drawBorder?er(y.lineWidth,0,0):0,Q=_/2,U=oe._alignPixel,k=function(e){return U(v,e,_)};for("top"===B?(t=k(b.bottom),s=b.bottom-j,c=t-Q,u=k(e.top)+Q,f=e.bottom):"bottom"===B?(t=k(b.top),u=e.top,f=k(e.bottom)-Q,s=t+Q,c=b.top+j):"left"===B?(t=k(b.right),i=b.right-j,A=t-Q,l=k(e.left)+Q,d=e.right):(t=k(b.left),l=e.left,d=k(e.right)-Q,i=t+Q,A=b.left+j),n=0;n<E;++n)r=C[n]||{},Zn(r.label)&&n<C.length||(n===b.zeroLineIndex&&w.offset===O?(h=y.zeroLineWidth,p=y.zeroLineColor,g=y.zeroLineBorderDash||[],m=y.zeroLineBorderDashOffset||0):(h=er(y.lineWidth,n,1),p=er(y.color,n,"rgba(0,0,0,0.1)"),g=y.borderDash||[],m=y.borderDashOffset||0),void 0!==(a=nr(b,r._index||n,O))&&(o=U(v,a,h),x?i=A=l=d=o:s=c=u=f=o,F.push({tx1:i,ty1:s,tx2:A,ty2:c,x1:l,y1:u,x2:d,y2:f,width:h,color:p,borderDash:g,borderDashOffset:m})));return F.ticksLength=E,F.borderValue=t,F},_computeLabelItems:function(){var e,t,n,r,a,o,i,s,A,c,l,u,d=this,f=d.options,h=f.ticks,p=f.position,g=h.mirror,m=d.isHorizontal(),b=d._ticksToDraw,v=Ar(h),w=h.padding,y=or(f.gridLines),B=-oe.toRadians(d.labelRotation),O=[];for("top"===p?(o=d.bottom-y-w,i=B?"left":"center"):"bottom"===p?(o=d.top+y+w,i=B?"right":"center"):"left"===p?(a=d.right-(g?0:y)-w,i=g?"left":"right"):(a=d.left+(g?0:y)+w,i=g?"right":"left"),e=0,t=b.length;e<t;++e)r=(n=b[e]).label,Zn(r)||(s=d.getPixelForTick(n._index||e)+h.labelOffset,c=(A=n.major?v.major:v.minor).lineHeight,l=qn(r)?r.length:1,m?(a=s,u="top"===p?((B?1:.5)-l)*c:(B?0:.5)*c):(o=s,u=(1-l)*c/2),O.push({x:a,y:o,rotation:B,label:r,font:A,textOffset:u,textAlign:i}));return O},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,a,o,i,s,A=t.ctx,c=t.chart,l=oe._alignPixel,u=n.drawBorder?er(n.lineWidth,0,0):0,d=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,i=d.length;o<i;++o)r=(s=d[o]).width,a=s.color,r&&a&&(A.save(),A.lineWidth=r,A.strokeStyle=a,A.setLineDash&&(A.setLineDash(s.borderDash),A.lineDashOffset=s.borderDashOffset),A.beginPath(),n.drawTicks&&(A.moveTo(s.tx1,s.ty1),A.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(A.moveTo(s.x1,s.y1),A.lineTo(s.x2,s.y2)),A.stroke(),A.restore());if(u){var f,h,p,g,m=u,b=er(n.lineWidth,d.ticksLength-1,1),v=d.borderValue;t.isHorizontal()?(f=l(c,t.left,m)-m/2,h=l(c,t.right,b)+b/2,p=g=v):(p=l(c,t.top,m)-m/2,g=l(c,t.bottom,b)+b/2,f=h=v),A.lineWidth=u,A.strokeStyle=er(n.color,0),A.beginPath(),A.moveTo(f,p),A.lineTo(h,g),A.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,r,a,o,i,s,A,c=e.ctx,l=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,r=l.length;t<r;++t){if(i=(o=l[t]).font,c.save(),c.translate(o.x,o.y),c.rotate(o.rotation),c.font=i.string,c.fillStyle=i.color,c.textBaseline="middle",c.textAlign=o.textAlign,s=o.label,A=o.textOffset,qn(s))for(n=0,a=s.length;n<a;++n)c.fillText(""+s[n],0,A),A+=i.lineHeight;else c.fillText(s,0,A);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var a,o,i=$n(r.fontColor,q.global.defaultFontColor),s=oe.options._parseFont(r),A=oe.options.toPadding(r.padding),c=s.lineHeight/2,l=n.position,u=0;if(e.isHorizontal())a=e.left+e.width/2,o="bottom"===l?e.bottom-c-A.bottom:e.top+c+A.top;else{var d="left"===l;a=d?e.left+c+A.top:e.right-c-A.top,o=e.top+e.height/2,u=d?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(a,o),t.rotate(u),t.textAlign="center",t.textBaseline="middle",t.fillStyle=i,t.font=s.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});pr.prototype._draw=pr.prototype.draw;var gr=pr,mr=oe.isNullOrUndef,br={position:"bottom"},vr=gr.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,a=r.min,o=r.max,i=0,s=n.length-1;void 0!==a&&(e=n.indexOf(a))>=0&&(i=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=i,t.maxIndex=s,t.min=n[i],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;gr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,a,o,i=this;return mr(t)||mr(n)||(e=i.chart.data.datasets[n].data[t]),mr(e)||(r=i.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(a=i._getLabels(),e=oe.valueOrDefault(r,e),t=-1!==(o=a.indexOf(e))?o:t,isNaN(t)&&(t=e)),i.getPixelForDecimal((t-i._startValue)/i._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wr=br;vr._defaults=wr;var yr=oe.noop,Br=oe.isNullOrUndef;function Or(e,t){var n,r,a,o,i=[],s=1e-14,A=e.stepSize,c=A||1,l=e.maxTicks-1,u=e.min,d=e.max,f=e.precision,h=t.min,p=t.max,g=oe.niceNum((p-h)/l/c)*c;if(g<s&&Br(u)&&Br(d))return[h,p];(o=Math.ceil(p/g)-Math.floor(h/g))>l&&(g=oe.niceNum(o*g/l/c)*c),A||Br(f)?n=Math.pow(10,oe._decimalPlaces(g)):(n=Math.pow(10,f),g=Math.ceil(g*n)/n),r=Math.floor(h/g)*g,a=Math.ceil(p/g)*g,A&&(!Br(u)&&oe.almostWhole(u/g,g/1e3)&&(r=u),!Br(d)&&oe.almostWhole(d/g,g/1e3)&&(a=d)),o=(a-r)/g,o=oe.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,a=Math.round(a*n)/n,i.push(Br(u)?r:u);for(var m=1;m<o;++m)i.push(Math.round((r+m*g)*n)/n);return i.push(Br(d)?a:d),i}var xr=gr.extend({getRightValue:function(e){return"string"===typeof e?+e:gr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=oe.sign(e.min),r=oe.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==o&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,a=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),a=a||11),a&&(e=Math.min(a,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:oe.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=Or(r,e);e.handleDirectionalChanges(),e.max=oe.max(a),e.min=oe.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),gr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,a=t.max;gr.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(a-r)/Math.max(n.length-1,1)/2,a+=e),t._startValue=r,t._endValue=a,t._valueRange=a-r}}),Cr={position:"left",ticks:{callback:Jn.formatters.linear}},Er=0,jr=1;function Fr(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function _r(e,t,n,r){var a,o,i=e.options,s=Fr(t,i.stacked,n),A=s.pos,c=s.neg,l=r.length;for(a=0;a<l;++a)o=e._parseValue(r[a]),isNaN(o.min)||isNaN(o.max)||n.data[a].hidden||(A[a]=A[a]||0,c[a]=c[a]||0,i.relativePoints?A[a]=100:o.min<0||o.max<0?c[a]+=o.min:A[a]+=o.max)}function Qr(e,t,n){var r,a,o=n.length;for(r=0;r<o;++r)a=e._parseValue(n[r]),isNaN(a.min)||isNaN(a.max)||t.data[r].hidden||(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}var Ur=xr.extend({determineDataLimits:function(){var e,t,n,r,a=this,o=a.options,i=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),A=o.stacked,c={},l=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===A)for(e=0;!A&&e<l;++e)A=void 0!==(t=s[e]).stack;for(e=0;e<l;++e)n=i[(t=s[e]).index].data,A?_r(a,c,t,n):Qr(a,t,n);oe.each(c,(function(e){r=e.pos.concat(e.neg),a.min=Math.min(a.min,oe.min(r)),a.max=Math.max(a.max,oe.max(r))})),a.min=oe.isFinite(a.min)&&!isNaN(a.min)?a.min:Er,a.max=oe.isFinite(a.max)&&!isNaN(a.max)?a.max:jr,a.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=oe.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),kr=Cr;Ur._defaults=kr;var Sr=oe.valueOrDefault,Dr=oe.math.log10;function Nr(e,t){var n,r,a=[],o=Sr(e.min,Math.pow(10,Math.floor(Dr(t.min)))),i=Math.floor(Dr(t.max)),s=Math.ceil(t.max/Math.pow(10,i));0===o?(n=Math.floor(Dr(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(o),o=r*Math.pow(10,n)):(n=Math.floor(Dr(o)),r=Math.floor(o/Math.pow(10,n)));var A=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(o),10===++r&&(r=1,A=++n>=0?1:A),o=Math.round(r*Math.pow(10,n)*A)/A}while(n<i||n===i&&r<s);var c=Sr(e.max,o);return a.push(c),a}var Hr={position:"left",ticks:{callback:Jn.formatters.logarithmic}};function Ir(e,t){return oe.isFinite(e)&&e>=0?e:t}var Mr=gr.extend({determineDataLimits:function(){var e,t,n,r,a,o,i=this,s=i.options,A=i.chart,c=A.data.datasets,l=i.isHorizontal();function u(e){return l?e.xAxisID===i.id:e.yAxisID===i.id}i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,i.minNotZero=Number.POSITIVE_INFINITY;var d=s.stacked;if(void 0===d)for(e=0;e<c.length;e++)if(t=A.getDatasetMeta(e),A.isDatasetVisible(e)&&u(t)&&void 0!==t.stack){d=!0;break}if(s.stacked||d){var f={};for(e=0;e<c.length;e++){var h=[(t=A.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(A.isDatasetVisible(e)&&u(t))for(void 0===f[h]&&(f[h]=[]),a=0,o=(r=c[e].data).length;a<o;a++){var p=f[h];n=i._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(p[a]=p[a]||0,p[a]+=n.max)}}oe.each(f,(function(e){if(e.length>0){var t=oe.min(e),n=oe.max(e);i.min=Math.min(i.min,t),i.max=Math.max(i.max,n)}}))}else for(e=0;e<c.length;e++)if(t=A.getDatasetMeta(e),A.isDatasetVisible(e)&&u(t))for(a=0,o=(r=c[e].data).length;a<o;a++)n=i._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(i.min=Math.min(n.min,i.min),i.max=Math.max(n.max,i.max),0!==n.min&&(i.minNotZero=Math.min(n.min,i.minNotZero)));i.min=oe.isFinite(i.min)?i.min:null,i.max=oe.isFinite(i.max)?i.max:null,i.minNotZero=oe.isFinite(i.minNotZero)?i.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,r=10;e.min=Ir(t.min,e.min),e.max=Ir(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Dr(e.min))-1),e.max=Math.pow(10,Math.floor(Dr(e.max))+1)):(e.min=n,e.max=r)),null===e.min&&(e.min=Math.pow(10,Math.floor(Dr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Dr(e.min))+1):r),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dr(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Ir(t.min),max:Ir(t.max)},a=e.ticks=Nr(r,e);e.max=oe.max(a),e.min=oe.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),gr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;gr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Sr(e.options.ticks.fontSize,q.global.defaultFontSize)/e._length),e._startValue=Dr(t),e._valueOffset=n,e._valueRange=(Dr(e.max)-Dr(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Tr=Hr;Mr._defaults=Tr;var Rr=oe.valueOrDefault,Lr=oe.valueAtIndexOrDefault,Pr=oe.options.resolve,Kr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Jn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function zr(e){var t=e.ticks;return t.display&&e.display?Rr(t.fontSize,q.global.defaultFontSize)+2*t.backdropPaddingY:0}function Vr(e,t,n){return oe.isArray(n)?{w:oe.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function Wr(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function Yr(e){var t,n,r,a=oe.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={};e.ctx.font=a.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){r=e.getPointPosition(t,e.drawingArea+5),n=Vr(e.ctx,a.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var A=e.getIndexAngle(t),c=oe.toDegrees(A)%360,l=Wr(c,r.x,n.w,0,180),u=Wr(c,r.y,n.h,90,270);l.start<o.l&&(o.l=l.start,i.l=A),l.end>o.r&&(o.r=l.end,i.r=A),u.start<o.t&&(o.t=u.start,i.t=A),u.end>o.b&&(o.b=u.end,i.b=A)}e.setReductions(e.drawingArea,o,i)}function Gr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Xr(e,t,n,r){var a,o,i=n.y+r/2;if(oe.isArray(t))for(a=0,o=t.length;a<o;++a)e.fillText(t[a],n.x,i),i+=r;else e.fillText(t,n.x,i)}function Jr(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function qr(e){var t=e.ctx,n=e.options,r=n.pointLabels,a=zr(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),i=oe.options._parseFont(r);t.save(),t.font=i.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var A=0===s?a/2:0,c=e.getPointPosition(s,o+A+5),l=Lr(r.fontColor,s,q.global.defaultFontColor);t.fillStyle=l;var u=e.getIndexAngle(s),d=oe.toDegrees(u);t.textAlign=Gr(d),Jr(d,e._pointLabelSizes[s],c),Xr(t,e.pointLabels[s],c,i.lineHeight)}t.restore()}function Zr(e,t,n,r){var a,o=e.ctx,i=t.circular,s=e.chart.data.labels.length,A=Lr(t.color,r-1),c=Lr(t.lineWidth,r-1);if((i||s)&&A&&c){if(o.save(),o.strokeStyle=A,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),i)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),o.moveTo(a.x,a.y);for(var l=1;l<s;l++)a=e.getPointPosition(l,n),o.lineTo(a.x,a.y)}o.closePath(),o.stroke(),o.restore()}}function $r(e){return oe.isNumber(e)?e:0}var ea=xr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=zr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;oe.each(t.data.datasets,(function(a,o){if(t.isDatasetVisible(o)){var i=t.getDatasetMeta(o);oe.each(a.data,(function(t,a){var o=+e.getRightValue(t);isNaN(o)||i.data[a].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/zr(this.options))},convertTicksToLabels:function(){var e=this;xr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=oe.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?Yr(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),i=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=$r(a),o=$r(o),i=$r(i),s=$r(s),r.drawingArea=Math.min(Math.floor(e-(a+o)/2),Math.floor(e-(i+s)/2)),r.setCenterPoint(a,o,i,s)},setCenterPoint:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,s=n+a.drawingArea,A=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((i+o)/2+a.left),a.yCenter=Math.floor((s+A)/2+a.top+a.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(oe.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,a=r.ctx,o=r.options,i=o.gridLines,s=o.angleLines,A=Rr(s.lineWidth,i.lineWidth),c=Rr(s.color,i.color);if(o.pointLabels.display&&qr(r),i.display&&oe.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),Zr(r,i,t,n))})),s.display&&A&&c){for(a.save(),a.lineWidth=A,a.strokeStyle=c,a.setLineDash&&(a.setLineDash(Pr([s.borderDash,i.borderDash,[]])),a.lineDashOffset=Pr([s.borderDashOffset,i.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),a.beginPath(),a.moveTo(r.xCenter,r.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,a,o=e.getIndexAngle(0),i=oe.options._parseFont(n),s=Rr(n.fontColor,q.global.defaultFontColor);t.save(),t.font=i.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",oe.each(e.ticks,(function(o,A){(0!==A||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[A]),n.showLabelBackdrop&&(a=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-a/2-n.backdropPaddingX,-r-i.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,i.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-r))})),t.restore()}},_drawTitle:oe.noop}),ta=Kr;ea._defaults=ta;var na=oe._deprecated,ra=oe.options.resolve,aa=oe.valueOrDefault,oa=Number.MIN_SAFE_INTEGER||-9007199254740991,ia=Number.MAX_SAFE_INTEGER||9007199254740991,sa={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Aa=Object.keys(sa);function ca(e,t){return e-t}function la(e){var t,n,r,a={},o=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,o.push(r));return o}function ua(e){return oe.valueOrDefault(e.time.min,e.ticks.min)}function da(e){return oe.valueOrDefault(e.time.max,e.ticks.max)}function fa(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,o,i,s,A,c=[],l=[t];for(a=0,o=e.length;a<o;++a)(s=e[a])>t&&s<n&&l.push(s);for(l.push(n),a=0,o=l.length;a<o;++a)A=l[a+1],i=l[a-1],s=l[a],void 0!==i&&void 0!==A&&Math.round((A+i)/2)===s||c.push({time:s,pos:a/(o-1)});return c}function ha(e,t,n){for(var r,a,o,i=0,s=e.length-1;i>=0&&i<=s;){if(a=e[(r=i+s>>1)-1]||null,o=e[r],!a)return{lo:null,hi:o};if(o[t]<n)i=r+1;else{if(!(a[t]>n))return{lo:a,hi:o};s=r-1}}return{lo:o,hi:null}}function pa(e,t,n,r){var a=ha(e,t,n),o=a.lo?a.hi?a.lo:e[e.length-2]:e[0],i=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=i[t]-o[t],A=s?(n-o[t])/s:0,c=(i[r]-o[r])*A;return o[r]+c}function ga(e,t){var n=e._adapter,r=e.options.time,a=r.parser,o=a||r.format,i=t;return"function"===typeof a&&(i=a(i)),oe.isFinite(i)||(i="string"===typeof o?n.parse(i,o):n.parse(i)),null!==i?+i:(a||"function"!==typeof o||(i=o(t),oe.isFinite(i)||(i=n.parse(i))),i)}function ma(e,t){if(oe.isNullOrUndef(t))return null;var n=e.options.time,r=ga(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ba(e,t,n,r){var a,o,i,s=Aa.length;for(a=Aa.indexOf(e);a<s-1;++a)if(i=(o=sa[Aa[a]]).steps?o.steps:ia,o.common&&Math.ceil((n-t)/(i*o.size))<=r)return Aa[a];return Aa[s-1]}function va(e,t,n,r,a){var o,i;for(o=Aa.length-1;o>=Aa.indexOf(n);o--)if(i=Aa[o],sa[i].common&&e._adapter.diff(a,r,i)>=t-1)return i;return Aa[n?Aa.indexOf(n):0]}function wa(e){for(var t=Aa.indexOf(e)+1,n=Aa.length;t<n;++t)if(sa[Aa[t]].common)return Aa[t]}function ya(e,t,n,r){var a,o=e._adapter,i=e.options,s=i.time,A=s.unit||ba(s.minUnit,t,n,r),c=ra([s.stepSize,s.unitStepSize,1]),l="week"===A&&s.isoWeekday,u=t,d=[];if(l&&(u=+o.startOf(u,"isoWeek",l)),u=+o.startOf(u,l?"day":A),o.diff(n,t,A)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+A;for(a=u;a<n;a=+o.add(a,c,A))d.push(a);return a!==n&&"ticks"!==i.bounds||d.push(a),d}function Ba(e,t,n,r,a){var o,i,s=0,A=0;return a.offset&&t.length&&(o=pa(e,"time",t[0],"pos"),s=1===t.length?1-o:(pa(e,"time",t[1],"pos")-o)/2,i=pa(e,"time",t[t.length-1],"pos"),A=1===t.length?i:(i-pa(e,"time",t[t.length-2],"pos"))/2),{start:s,end:A,factor:1/(s+1+A)}}function Oa(e,t,n,r){var a,o,i=e._adapter,s=+i.startOf(t[0].value,r),A=t[t.length-1].value;for(a=s;a<=A;a=+i.add(a,1,r))(o=n[a])>=0&&(t[o].major=!0);return t}function xa(e,t,n){var r,a,o=[],i={},s=t.length;for(r=0;r<s;++r)i[a=t[r]]=r,o.push({value:a,major:!1});return 0!==s&&n?Oa(e,o,i,n):o}var Ca={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Ea=gr.extend({initialize:function(){this.mergeTicksOptions(),gr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new Xn._date(t.adapters.date);return na("time scale",n.format,"time.format","time.parser"),na("time scale",n.min,"time.min","ticks.min"),na("time scale",n.max,"time.max","ticks.max"),oe.mergeIf(n.displayFormats,r.formats()),gr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),gr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,a,o,i,s=this,A=s.chart,c=s._adapter,l=s.options,u=l.time.unit||"day",d=ia,f=oa,h=[],p=[],g=[],m=s._getLabels();for(e=0,n=m.length;e<n;++e)g.push(ma(s,m[e]));for(e=0,n=(A.data.datasets||[]).length;e<n;++e)if(A.isDatasetVisible(e))if(a=A.data.datasets[e].data,oe.isObject(a[0]))for(p[e]=[],t=0,r=a.length;t<r;++t)o=ma(s,a[t]),h.push(o),p[e][t]=o;else p[e]=g.slice(0),i||(h=h.concat(g),i=!0);else p[e]=[];g.length&&(d=Math.min(d,g[0]),f=Math.max(f,g[g.length-1])),h.length&&(h=n>1?la(h).sort(ca):h.sort(ca),d=Math.min(d,h[0]),f=Math.max(f,h[h.length-1])),d=ma(s,ua(l))||d,f=ma(s,da(l))||f,d=d===ia?+c.startOf(Date.now(),u):d,f=f===oa?+c.endOf(Date.now(),u)+1:f,s.min=Math.min(d,f),s.max=Math.max(d+1,f),s._table=[],s._timestamps={data:h,datasets:p,labels:g}},buildTicks:function(){var e,t,n,r=this,a=r.min,o=r.max,i=r.options,s=i.ticks,A=i.time,c=r._timestamps,l=[],u=r.getLabelCapacity(a),d=s.source,f=i.distribution;for(c="data"===d||"auto"===d&&"series"===f?c.data:"labels"===d?c.labels:ya(r,a,o,u),"ticks"===i.bounds&&c.length&&(a=c[0],o=c[c.length-1]),a=ma(r,ua(i))||a,o=ma(r,da(i))||o,e=0,t=c.length;e<t;++e)(n=c[e])>=a&&n<=o&&l.push(n);return r.min=a,r.max=o,r._unit=A.unit||(s.autoSkip?ba(A.minUnit,r.min,r.max,u):va(r,l.length,A.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?wa(r._unit):void 0,r._table=fa(r._timestamps.data,a,o,f),r._offsets=Ba(r._table,l,a,o,i),s.reverse&&l.reverse(),xa(r,l,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,o=n.options.time,i=a.labels&&e<a.labels.length?a.labels[e]:"",s=a.datasets[t].data[e];return oe.isObject(s)&&(i=n.getRightValue(s)),o.tooltipFormat?r.format(ga(n,i),o.tooltipFormat):"string"===typeof i?i:r.format(ga(n,i),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var a=this,o=a._adapter,i=a.options,s=i.time.displayFormats,A=s[a._unit],c=a._majorUnit,l=s[c],u=n[t],d=i.ticks,f=c&&l&&u&&u.major,h=o.format(e,r||(f?l:A)),p=f?d.major:d.minor,g=ra([p.callback,p.userCallback,d.callback,d.userCallback]);return g?g(h,t,n):h},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t._offsets,r=pa(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(e,t,n){var r=this,a=null;if(void 0!==t&&void 0!==n&&(a=r._timestamps.datasets[n][t]),null===a&&(a=ma(r,e)),null!==a)return r.getPixelForOffset(a)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end,a=pa(t._table,"pos",r,"time");return t._adapter._create(a)},_getLabelSize:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,a=oe.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(a),i=Math.sin(a),s=aa(n.fontSize,q.global.defaultFontSize);return{w:r*o+s*i,h:r*i+s*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,o=t.tickFormatFunction(e,0,xa(t,[e],t._majorUnit),a),i=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/i.w:t.height/i.h);return t.options.offset&&s--,s>0?s:1}}),ja=Ca;Ea._defaults=ja;var Fa={category:vr,linear:Ur,logarithmic:Mr,radialLinear:ea,time:Ea},_a={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Xn._date.override("function"===typeof e?{_id:"moment",formats:function(){return _a},parse:function(t,n){return"string"===typeof t&&"string"===typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),q._set("global",{plugins:{filler:{propagate:!0}}});var Qa={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=a.length||0;return o?function(e,t){return t<o&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return oe.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function Ua(e,t,n){var r,a=e._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function ka(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(oe.isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function Sa(e){var t,n,r,a,o,i=e.el._scale,s=i.options,A=i.chart.data.labels.length,c=e.fill,l=[];if(!A)return null;for(t=s.ticks.reverse?i.max:i.min,n=s.ticks.reverse?i.min:i.max,r=i.getPointPositionForValue(0,t),a=0;a<A;++a)o="start"===c||"end"===c?i.getPointPositionForValue(a,"start"===c?t:n):i.getBasePosition(a),s.gridLines.circular&&(o.cx=r.x,o.cy=r.y,o.angle=i.getIndexAngle(a)-Math.PI/2),l.push(o);return l}function Da(e){return(e.el._scale||{}).getPointPositionForValue?Sa(e):ka(e)}function Na(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function Ha(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Qa[n](e))}function Ia(e){return e&&!e.skip}function Ma(e,t,n,r,a){var o,i,s,A;if(r&&a){for(e.moveTo(t[0].x,t[0].y),o=1;o<r;++o)oe.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[a-1].x,n[a-1].y),o=a-1;o>0;--o)oe.canvas.lineTo(e,n[o],n[o-1],!0);else for(i=n[0].cx,s=n[0].cy,A=Math.sqrt(Math.pow(n[0].x-i,2)+Math.pow(n[0].y-s,2)),o=a-1;o>0;--o)e.arc(i,s,A,n[o].angle,n[o-1].angle,!0)}}function Ta(e,t,n,r,a,o){var i,s,A,c,l,u,d,f,h=t.length,p=r.spanGaps,g=[],m=[],b=0,v=0;for(e.beginPath(),i=0,s=h;i<s;++i)l=n(c=t[A=i%h]._view,A,r),u=Ia(c),d=Ia(l),o&&void 0===f&&u&&(s=h+(f=i+1)),u&&d?(b=g.push(c),v=m.push(l)):b&&v&&(p?(u&&g.push(c),d&&m.push(l)):(Ma(e,g,m,b,v),b=v=0,g=[],m=[]));Ma(e,g,m,b,v),e.closePath(),e.fillStyle=a,e.fill()}var Ra={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,a,o,i=(e.data.datasets||[]).length,s=t.propagate,A=[];for(r=0;r<i;++r)o=null,(a=(n=e.getDatasetMeta(r)).dataset)&&a._model&&a instanceof Ve.Line&&(o={visible:e.isDatasetVisible(r),fill:Ua(a,r,i),chart:e,el:a}),n.$filler=o,A.push(o);for(r=0;r<i;++r)(o=A[r])&&(o.fill=Na(A,r,s),o.boundary=Da(o),o.mapper=Ha(o))},beforeDatasetsDraw:function(e){var t,n,r,a,o,i,s,A=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=A.length-1;n>=0;--n)(t=A[n].$filler)&&t.visible&&(a=(r=t.el)._view,o=r._children||[],i=t.mapper,s=a.backgroundColor||q.global.defaultColor,i&&s&&o.length&&(oe.canvas.clipArea(c,e.chartArea),Ta(c,o,i,a,s,r._loop),oe.canvas.unclipArea(c)))}},La=oe.rtl.getRtlAdapter,Pa=oe.noop,Ka=oe.valueOrDefault;function za(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:a.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),o=e.data.datasets;for(a.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&r.appendChild(document.createTextNode(o[t].label));return a.outerHTML}});var Va=fe.extend({initialize:function(e){var t=this;oe.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Pa,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Pa,beforeSetDimensions:Pa,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Pa,beforeBuildLabels:Pa,buildLabels:function(){var e=this,t=e.options.labels||{},n=oe.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Pa,beforeFit:Pa,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,o=oe.options._parseFont(n),i=o.size,s=e.legendHitBoxes=[],A=e.minSize,c=e.isHorizontal();if(c?(A.width=e.maxWidth,A.height=r?10:0):(A.width=r?10:0,A.height=e.maxHeight),r){if(a.font=o.string,c){var l=e.lineWidths=[0],u=0;a.textAlign="left",a.textBaseline="middle",oe.each(e.legendItems,(function(e,t){var r=za(n,i)+i/2+a.measureText(e.text).width;(0===t||l[l.length-1]+r+2*n.padding>A.width)&&(u+=i+n.padding,l[l.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:i},l[l.length-1]+=r+n.padding})),A.height+=u}else{var d=n.padding,f=e.columnWidths=[],h=e.columnHeights=[],p=n.padding,g=0,m=0;oe.each(e.legendItems,(function(e,t){var r=za(n,i)+i/2+a.measureText(e.text).width;t>0&&m+i+2*d>A.height&&(p+=g+n.padding,f.push(g),h.push(m),g=0,m=0),g=Math.max(g,r),m+=i+d,s[t]={left:0,top:0,width:r,height:i}})),p+=g,f.push(g),h.push(m),A.width+=p}e.width=A.width,e.height=A.height}else e.width=A.width=e.height=A.height=0},afterFit:Pa,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=q.global,a=r.defaultColor,o=r.elements.line,i=e.height,s=e.columnHeights,A=e.width,c=e.lineWidths;if(t.display){var l,u=La(t.rtl,e.left,e.minSize.width),d=e.ctx,f=Ka(n.fontColor,r.defaultFontColor),h=oe.options._parseFont(n),p=h.size;d.textAlign=u.textAlign("left"),d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=h.string;var g=za(n,p),m=e.legendHitBoxes,b=function(e,t,r){if(!(isNaN(g)||g<=0)){d.save();var i=Ka(r.lineWidth,o.borderWidth);if(d.fillStyle=Ka(r.fillStyle,a),d.lineCap=Ka(r.lineCap,o.borderCapStyle),d.lineDashOffset=Ka(r.lineDashOffset,o.borderDashOffset),d.lineJoin=Ka(r.lineJoin,o.borderJoinStyle),d.lineWidth=i,d.strokeStyle=Ka(r.strokeStyle,a),d.setLineDash&&d.setLineDash(Ka(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,A=u.xPlus(e,g/2),c=t+p/2;oe.canvas.drawPoint(d,r.pointStyle,s,A,c,r.rotation)}else d.fillRect(u.leftForLtr(e,g),t,g,p),0!==i&&d.strokeRect(u.leftForLtr(e,g),t,g,p);d.restore()}},v=function(e,t,n,r){var a=p/2,o=u.xPlus(e,g+a),i=t+a;d.fillText(n.text,o,i),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,i),d.lineTo(u.xPlus(o,r),i),d.stroke())},w=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},y=e.isHorizontal();l=y?{x:e.left+w(A,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+w(i,s[0]),line:0},oe.rtl.overrideTextDirection(e.ctx,t.textDirection);var B=p+n.padding;oe.each(e.legendItems,(function(t,r){var a=d.measureText(t.text).width,o=g+p/2+a,f=l.x,h=l.y;u.setWidth(e.minSize.width),y?r>0&&f+o+n.padding>e.left+e.minSize.width&&(h=l.y+=B,l.line++,f=l.x=e.left+w(A,c[l.line])):r>0&&h+B>e.top+e.minSize.height&&(f=l.x=f+e.columnWidths[l.line]+n.padding,l.line++,h=l.y=e.top+w(i,s[l.line]));var O=u.x(f);b(O,h,t),m[r].left=u.leftForLtr(O,m[r].width),m[r].top=h,v(O,h,t,a),y?l.x+=o+n.padding:l.y+=B})),oe.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,a,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(a=o.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Wa(e,t){var n=new Va({ctx:e.ctx,options:t,chart:e});Kt.configure(e,n,t),Kt.addBox(e,n),e.legend=n}var Ya={id:"legend",_element:Va,beforeInit:function(e){var t=e.options.legend;t&&Wa(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(oe.mergeIf(t,q.global.legend),n?(Kt.configure(e,n,t),n.options=t):Wa(e,t)):n&&(Kt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Ga=oe.noop;q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Xa=fe.extend({initialize:function(e){var t=this;oe.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Ga,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Ga,beforeSetDimensions:Ga,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ga,beforeBuildLabels:Ga,buildLabels:Ga,afterBuildLabels:Ga,beforeFit:Ga,fit:function(){var e,t=this,n=t.options,r=t.minSize={},a=t.isHorizontal();n.display?(e=(oe.isArray(n.text)?n.text.length:1)*oe.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=a?t.maxWidth:e,t.height=r.height=a?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Ga,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,o,i=oe.options._parseFont(n),s=i.lineHeight,A=s/2+n.padding,c=0,l=e.top,u=e.left,d=e.bottom,f=e.right;t.fillStyle=oe.valueOrDefault(n.fontColor,q.global.defaultFontColor),t.font=i.string,e.isHorizontal()?(a=u+(f-u)/2,o=l+A,r=f-u):(a="left"===n.position?u+A:f-A,o=l+(d-l)/2,r=d-l,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(oe.isArray(h))for(var p=0,g=0;g<h.length;++g)t.fillText(h[g],0,p,r),p+=s;else t.fillText(h,0,0,r);t.restore()}}});function Ja(e,t){var n=new Xa({ctx:e.ctx,options:t,chart:e});Kt.configure(e,n,t),Kt.addBox(e,n),e.titleBlock=n}var qa={},Za=Ra,$a=Ya,eo={id:"title",_element:Xa,beforeInit:function(e){var t=e.options.title;t&&Ja(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(oe.mergeIf(t,q.global.title),n?(Kt.configure(e,n,t),n.options=t):Ja(e,t)):n&&(Kt.removeBox(e,n),delete e.titleBlock)}};for(var to in qa.filler=Za,qa.legend=$a,qa.title=eo,Vn.helpers=oe,Wn(),Vn._adapters=Xn,Vn.Animation=pe,Vn.animationService=ge,Vn.controllers=Ot,Vn.DatasetController=Be,Vn.defaults=q,Vn.Element=fe,Vn.elements=Ve,Vn.Interaction=Qt,Vn.layouts=Kt,Vn.platform=bn,Vn.plugins=vn,Vn.Scale=gr,Vn.scaleService=wn,Vn.Ticks=Jn,Vn.Tooltip=Nn,Vn.helpers.each(Fa,(function(e,t){Vn.scaleService.registerScaleType(t,e,e._defaults)})),qa)qa.hasOwnProperty(to)&&Vn.plugins.register(qa[to]);Vn.platform.initialize();var no=Vn;return"undefined"!==typeof window&&(window.Chart=Vn),Vn.Chart=Vn,Vn.Legend=qa.legend._element,Vn.Title=qa.title._element,Vn.pluginService=Vn.plugins,Vn.PluginBase=Vn.Element.extend({}),Vn.canvasHelpers=Vn.helpers.canvas,Vn.layoutService=Vn.layouts,Vn.LinearScaleBase=xr,Vn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Vn[e]=function(t,n){return new Vn(t,Vn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),no}(function(){try{return n(259)}catch(e){}}())},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=c,t.cloneLayout=function(e){for(var t=Array(e.length),n=0,r=e.length;n<r;n++)t[n]=u(e[n]);return t},t.modifyLayout=l,t.withLayoutItem=function(e,t,n){var r=v(e,t);return r?(r=n(u(r)),[e=l(e,r),r]):[e,null]},t.cloneLayoutItem=u,t.childrenEqual=function(e,t){return(0,r.default)(a.default.Children.map(e,(function(e){return e.key})),a.default.Children.map(t,(function(e){return e.key})))},t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.collides=f,t.compact=h,t.compactItem=m,t.correctBounds=b,t.getLayoutItem=v,t.getFirstCollision=w,t.getAllCollisions=y,t.getStatics=B,t.moveElement=O,t.moveElementAwayFromCollision=x,t.perc=function(e){return 100*e+"%"},t.setTransform=function(e){var t=e.top,n=e.left,r=e.width,a=e.height,o="translate(".concat(n,"px,").concat(t,"px)");return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:"".concat(r,"px"),height:"".concat(a,"px"),position:"absolute"}},t.setTopLeft=function(e){var t=e.top,n=e.left,r=e.width,a=e.height;return{top:"".concat(t,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(a,"px"),position:"absolute"}},t.sortLayoutItems=C,t.sortLayoutItemsByRowCol=E,t.sortLayoutItemsByColRow=j,t.synchronizeLayoutWithChildren=function(e,t,n,r){e=e||[];var o=[];return a.default.Children.forEach(t,(function(t,n){var r=v(e,String(t.key));if(r)o[n]=u(r);else{0;var a=t.props["data-grid"]||t.props._grid;o[n]=u(a?s(s({},a),{},{i:t.key}):{w:1,h:1,x:0,y:c(o),i:String(t.key)})}})),h(b(o,{cols:n}),r,n)},t.validateLayout=F,t.compactType=function(e){var t=e||{},n=t.verticalCompact,r=t.compactType;return!1===n?null:r},t.autoBindHandlers=function(e,t){t.forEach((function(t){return e[t]=e[t].bind(e)}))},t.noop=t.fastRGLPropsEqual=void 0;var r=o(n(152)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t,n=0,r=0,a=e.length;r<a;r++)(t=e[r].y+e[r].h)>n&&(n=t);return n}function l(e,t){for(var n=Array(e.length),r=0,a=e.length;r<a;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function u(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}var d=n(269);function f(e,t){return e.i!==t.i&&(!(e.x+e.w<=t.x)&&(!(e.x>=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function h(e,t,n){for(var r=B(e),a=C(e,t),o=Array(e.length),i=0,s=a.length;i<s;i++){var A=u(a[i]);A.static||(A=m(r,A,t,n,a),r.push(A)),o[e.indexOf(a[i])]=A,A.moved=!1}return o}t.fastRGLPropsEqual=d;var p={x:"w",y:"h"};function g(e,t,n,r){var a=p[r];t[r]+=1;for(var o=e.map((function(e){return e.i})).indexOf(t.i)+1;o<e.length;o++){var i=e[o];if(!i.static){if(i.y>t.y+t.h)break;f(t,i)&&g(e,i,n+t[a],r)}}t[r]=n}function m(e,t,n,r,a){var o,i="horizontal"===n;if("vertical"===n)for(t.y=Math.min(c(e),t.y);t.y>0&&!w(e,t);)t.y--;else if(i)for(;t.x>0&&!w(e,t);)t.x--;for(;o=w(e,t);)i?g(a,t,o.x+o.w,"x"):g(a,t,o.y+o.h,"y"),i&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t}function b(e,t){for(var n=B(e),r=0,a=e.length;r<a;r++){var o=e[r];if(o.x+o.w>t.cols&&(o.x=t.cols-o.w),o.x<0&&(o.x=0,o.w=t.cols),o.static)for(;w(n,o);)o.y++;else n.push(o)}return e}function v(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function w(e,t){for(var n=0,r=e.length;n<r;n++)if(f(e[n],t))return e[n]}function y(e,t){return e.filter((function(e){return f(e,t)}))}function B(e){return e.filter((function(e){return e.static}))}function O(e,t,n,r,a,o,i,s){if(t.static&&!0!==t.isDraggable)return e;if(t.y===r&&t.x===n)return e;_("Moving element ".concat(t.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(t.x,",").concat(t.y,"]"));var A=t.x,c=t.y;"number"===typeof n&&(t.x=n),"number"===typeof r&&(t.y=r),t.moved=!0;var l=C(e,i);("vertical"===i&&"number"===typeof r?c>=r:"horizontal"===i&&"number"===typeof n&&A>=n)&&(l=l.reverse());var u=y(l,t);if(o&&u.length)return _("Collision prevented on ".concat(t.i,", reverting.")),t.x=A,t.y=c,t.moved=!1,e;for(var d=0,f=u.length;d<f;d++){var h=u[d];_("Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(h.i," at [").concat(h.x,",").concat(h.y,"]")),h.moved||(e=h.static?x(e,h,t,a,i,s):x(e,t,h,a,i,s))}return e}function x(e,t,n,r,a,o){var i="horizontal"===a,s="horizontal"!==a,A=t.static;if(r){r=!1;var c={x:i?Math.max(t.x-n.w,0):n.x,y:s?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"};if(!w(e,c))return _("Doing reverse collision on ".concat(n.i," up to [").concat(c.x,",").concat(c.y,"].")),O(e,n,i?c.x:void 0,s?c.y:void 0,r,A,a,o)}return O(e,n,i?n.x+1:void 0,s?n.y+1:void 0,r,A,a,o)}function C(e,t){return"horizontal"===t?j(e):E(e)}function E(e){return e.slice(0).sort((function(e,t){return e.y>t.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1}))}function j(e){return e.slice(0).sort((function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1}))}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,a=e.length;r<a;r++){for(var o=e[r],i=0;i<n.length;i++)if("number"!==typeof o[n[i]])throw new Error("ReactGridLayout: "+t+"["+r+"]."+n[i]+" must be a number!");if(o.i&&"string"!==typeof o.i)throw new Error("ReactGridLayout: "+t+"["+r+"].i must be a string!");if(void 0!==o.static&&"boolean"!==typeof o.static)throw new Error("ReactGridLayout: "+t+"["+r+"].static must be a boolean!")}}function _(){}t.noop=function(){}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"p",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return A})),n.d(t,"n",(function(){return c})),n.d(t,"o",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"j",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"v",(function(){return w})),n.d(t,"t",(function(){return y})),n.d(t,"r",(function(){return B})),n.d(t,"s",(function(){return O})),n.d(t,"u",(function(){return x}));var r="LOAD_FLOW",a="CREATE_NEW_FLOW",o="UPDATE_SELECTED_FLOW",i="DUPLICATE_FLOW",s="ADD_NODE",A="DELETE_FLOW",c="UPDATE_NODE",l="UPDATE_NODE_DATA",u="DELETE_NODE",d="ADD_LINK",f="DELETE_LINK",h="IMPORT_FLOW",p="SET_FLOW_ARGUMENTS",g="LOAD_WORKSPACE",m="CREATE_NEW_WORKSPACE",b="UPDATE_SELECTED_WORKSPACE",v="DELETE_WORKSPACE",w={elements:[{id:"gateway",type:"gateway",data:{name:"gateway",label:"gateway"},position:{x:629,y:72}}]},y="1",B={version:"0.0",flow:[],pea:[],pod:[]},O={_userFlow:{name:"Custom Flow 1",workspaceId:"_userWorkspace",type:"user-generated",flowChart:w,isConnected:!1,daemon_id:null}},x={_userWorkspace:{name:"Workspace 1",jina_version:"latest",type:"user-generated",daemon_endpoint:"",isConnected:!1,daemon_id:"",files:[],selectedFlowId:"_userFlow",flowArguments:B}}},function(e,t,n){"use strict";var r=n(79),a=n(80),o=n(73);function i(){var e=Object(r.a)(["\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return i=function(){return e},e}function s(){var e=Object(r.a)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 48px;\n  width: 48px;\n  background: transparent;\n  border-radius: 50%;\n  animation: "," 1s infinite ease-in-out;\n"]);return s=function(){return e},e}function A(){var e=Object(r.a)(["\n  50%{\n    border-color: transparent;\n  }\n  100%{\n    transform:rotatez(360deg);\n  }\n"]);return A=function(){return e},e}function c(){var e=Object(r.a)(["\n  position: absolute;\n  height: 32px;\n  width: 32px;\n  animation: "," 1s infinite ease-in;\n"]);return c=function(){return e},e}function l(){var e=Object(r.a)(["\n  border-radius: 50%;\n  border: 8px solid white;\n  border-color: ",";\n"]);return l=function(){return e},e}function u(){var e=Object(r.a)(["\n  100%{\n    transform:rotatez(-720deg);\n  }\n"]);return u=function(){return e},e}var d=Object(o.d)(u()),f=a.a.div(l(),(function(e){var t=e.theme.palette.primary.main,n=e.theme.palette.background.default;return"".concat(t," ").concat(n," ").concat(t," ").concat(n)})),h=Object(a.a)(f)(c(),d),p=Object(o.d)(A()),g=Object(a.a)(f)(s(),p),m=a.a.div(i());t.a=function(){return Object(o.c)(m,null,Object(o.c)(g,null,Object(o.c)(h,null)))}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return c}));var r="FETCH_HUB_IMAGES",a="FETCH_HUB_IMAGES_SUCCESS",o="FETCH_HUB_IMAGES_FAILURE",i="PICK_FILTER",s="CLEAR_FILTERS",A={images:[],loading:!1,error:null,selectedFilters:[]},c=["name increasing","name decreasing","author increasing","author decreasing"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"===typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"l",(function(){return a})),n.d(t,"i",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"k",(function(){return A})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"m",(function(){return g}));var r="HANDLE_CONNECTION_STATUS",a="TOGGLE_SIDE_BAR",o="SHOW_BANNER",i="HIDE_BANNER",s="SHOW_ERROR",A="SHOW_MODAL",c="CLOSE_MODAL",l="FETCH_ARGUMENTS_FROM_API",u="FETCH_ARGUMENTS_FROM_DAEMON",d="LOGOUT",f="SETUSER",h=5e3,p=[{title:"Home",to:"/home",iconName:"home",matches:["home"]},{title:"Log Stream",to:"/logs",iconName:"insert_comment",matches:["logs"]},{title:"Flow Design",to:"/flow",iconName:"device_hub",matches:["flow"]},{title:"Hub",to:"/hub",iconName:"store",matches:["hub","package"]},{title:"Debug",to:"/debug",iconName:"pest_control",matches:["debug"]},{title:"Settings",to:"/settings",iconName:"settings",matches:["settings"]},{title:"Help",to:"/help",iconName:"help",matches:["help"]}];function g(){var e=null,t=localStorage.getItem("user");return t&&(e=JSON.parse(t)),{user:e,banners:[],connected:!1,currentTab:"logStream",loading:!0,menuVisible:!1,modal:null,modalParams:null,navItems:p,processes:{}}}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="UPDATE_SETTINGS",a={settings:{jinadHost:localStorage.getItem("preferences-jinadhost")||"http://localhost",jinadPort:localStorage.getItem("preferences-jinadPort")||"5000",gatewayHost:localStorage.getItem("preferences-gatewayHost")||"http://localhost",gatewayPort:localStorage.getItem("preferences-gatewayPort")||"5555",log:localStorage.getItem("preferences-log")||"/stream/log",profile:localStorage.getItem("preferences-profile")||"/stream/profile",yaml:localStorage.getItem("preferences-yaml")||"/data/yaml",shutdown:localStorage.getItem("preferences-shutdown")||"/action/shutdown",ready:localStorage.getItem("preferences-ready")||"/status/ready"}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=4e4,a=10,o=3e3},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return f}));var r=n(19),a=n.n(r),o=n(26),i=n(111),s=n(94),A=n(89),c=n(88),l=n(106);function u(e){return{type:i.b,payload:e}}function d(e){return{type:i.a,payload:e}}function f(e,t){return function(){var n=Object(o.a)(a.a.mark((function n(r){var o,i,u,f,h,p;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return f=function(e){r(d(e))},o=function(e){var t=e.connected,n=e.message;if(!t)return r(Object(A.g)(n,"error"))},n.next=4,l.a.waitForFlow(e,t);case 4:if("error"!==(i=n.sent).status){n.next=7;break}return n.abrupt("return",r(Object(A.g)(i.message,"error")));case 7:return n.next=9,l.a.getLogs(e,t);case 9:if("error"!==(u=n.sent).status){n.next=13;break}return u.message&&r(Object(A.g)(u.message,"error")),n.abrupt("return");case 13:h=u.logs,c.a.log("got logs:",h),h.forEach(f),p=s.a.getState().settingsState.settings,l.a.listenForLogs(e,t,p,o,f);case 18:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,a=n(255);var o=((r=a)&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=i},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Array]",s="[object Boolean]",A="[object Date]",c="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",y="[object DataView]",B=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[w]=x[s]=x[y]=x[A]=x[c]=x[l]=x[u]=x[d]=x[f]=x[p]=x[g]=x[m]=x[v]=!1;var C="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,j=C||E||Function("return this")(),F=t&&!t.nodeType&&t,_=F&&"object"==typeof n&&n&&!n.nodeType&&n,Q=_&&_.exports===F,U=Q&&C.process,k=function(){try{return U&&U.binding&&U.binding("util")}catch(e){}}(),S=k&&k.isTypedArray;function D(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I,M,T=Array.prototype,R=Function.prototype,L=Object.prototype,P=j["__core-js_shared__"],K=R.toString,z=L.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),W=L.toString,Y=RegExp("^"+K.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=Q?j.Buffer:void 0,X=j.Symbol,J=j.Uint8Array,q=L.propertyIsEnumerable,Z=T.splice,$=X?X.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=G?G.isBuffer:void 0,ne=(I=Object.keys,M=Object,function(e){return I(M(e))}),re=Ue(j,"DataView"),ae=Ue(j,"Map"),oe=Ue(j,"Promise"),ie=Ue(j,"Set"),se=Ue(j,"WeakMap"),Ae=Ue(Object,"create"),ce=Ne(re),le=Ne(ae),ue=Ne(oe),de=Ne(ie),fe=Ne(se),he=X?X.prototype:void 0,pe=he?he.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new me(e);this.size=t.size}function ye(e,t){var n=Me(e),r=!n&&Ie(e),a=!n&&!r&&Te(e),o=!n&&!r&&!a&&ze(e),i=n||r||a||o,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],A=s.length;for(var c in e)!t&&!z.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||De(c,A))||s.push(c);return s}function Be(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=z.call(e,$),n=e[$];try{e[$]=void 0;var r=!0}catch(o){}var a=W.call(e);r&&(t?e[$]=n:delete e[$]);return a}(e):function(e){return W.call(e)}(e)}function xe(e){return Ke(e)&&Oe(e)==o}function Ce(e,t,n,r,a){return e===t||(null==e||null==t||!Ke(e)&&!Ke(t)?e!==e&&t!==t:function(e,t,n,r,a,l){var h=Me(e),v=Me(t),B=h?i:Se(e),O=v?i:Se(t),x=(B=B==o?f:B)==f,C=(O=O==o?f:O)==f,E=B==O;if(E&&Te(e)){if(!Te(t))return!1;h=!0,x=!1}if(E&&!x)return l||(l=new we),h||ze(e)?Fe(e,t,n,r,a,l):function(e,t,n,r,a,o,i){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!o(new J(e),new J(t)));case s:case A:case d:return He(+e,+t);case c:return e.name==t.name&&e.message==t.message;case p:case m:return e==t+"";case u:var l=N;case g:var f=1&r;if(l||(l=H),e.size!=t.size&&!f)return!1;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var v=Fe(l(e),l(t),r,a,o,i);return i.delete(e),v;case b:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,B,n,r,a,l);if(!(1&n)){var j=x&&z.call(e,"__wrapped__"),F=C&&z.call(t,"__wrapped__");if(j||F){var _=j?e.value():e,Q=F?t.value():t;return l||(l=new we),a(_,Q,n,r,l)}}if(!E)return!1;return l||(l=new we),function(e,t,n,r,a,o){var i=1&n,s=_e(e),A=s.length,c=_e(t).length;if(A!=c&&!i)return!1;var l=A;for(;l--;){var u=s[l];if(!(i?u in t:z.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);var h=i;for(;++l<A;){var p=e[u=s[l]],g=t[u];if(r)var m=i?r(g,p,u,t,e,o):r(p,g,u,e,t,o);if(!(void 0===m?p===g||a(p,g,n,r,o):m)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,a,l)}(e,t,n,r,Ce,a))}function Ee(e){return!(!Pe(e)||function(e){return!!V&&V in e}(e))&&(Re(e)?Y:B).test(Ne(e))}function je(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||L;return e===n}(e))return ne(e);var t=[];for(var n in Object(e))z.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fe(e,t,n,r,a,o){var i=1&n,s=e.length,A=t.length;if(s!=A&&!(i&&A>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,u=!0,d=2&n?new ve:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var f=e[l],h=t[l];if(r)var p=i?r(h,f,l,t,e,o):r(f,h,l,e,t,o);if(void 0!==p){if(p)continue;u=!1;break}if(d){if(!D(t,(function(e,t){if(i=t,!d.has(i)&&(f===e||a(f,e,n,r,o)))return d.push(t);var i}))){u=!1;break}}else if(f!==h&&!a(f,h,n,r,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function _e(e){return function(e,t,n){var r=t(e);return Me(e)?r:function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}(r,n(e))}(e,Ve,ke)}function Qe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ee(n)?n:void 0}ge.prototype.clear=function(){this.__data__=Ae?Ae(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(Ae){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return Ae?void 0!==t[e]:z.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ae&&void 0===t?r:t,this},me.prototype.clear=function(){this.__data__=[],this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},me.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},me.prototype.has=function(e){return Be(this.__data__,e)>-1},me.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ae||me),string:new ge}},be.prototype.delete=function(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Qe(this,e).get(e)},be.prototype.has=function(e){return Qe(this,e).has(e)},be.prototype.set=function(e,t){var n=Qe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,r),this},ve.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new me,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof me){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var ke=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}(ee(e),(function(t){return q.call(e,t)})))}:function(){return[]},Se=Oe;function De(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ne(e){if(null!=e){try{return K.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function He(e,t){return e===t||e!==e&&t!==t}(re&&Se(new re(new ArrayBuffer(1)))!=y||ae&&Se(new ae)!=u||oe&&Se(oe.resolve())!=h||ie&&Se(new ie)!=g||se&&Se(new se)!=v)&&(Se=function(e){var t=Oe(e),n=t==f?e.constructor:void 0,r=n?Ne(n):"";if(r)switch(r){case ce:return y;case le:return u;case ue:return h;case de:return g;case fe:return v}return t});var Ie=xe(function(){return arguments}())?xe:function(e){return Ke(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Me=Array.isArray;var Te=te||function(){return!1};function Re(e){if(!Pe(e))return!1;var t=Oe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Pe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ke(e){return null!=e&&"object"==typeof e}var ze=S?function(e){return function(t){return e(t)}}(S):function(e){return Ke(e)&&Le(e.length)&&!!x[Oe(e)]};function Ve(e){return null!=(t=e)&&Le(t.length)&&!Re(t)?ye(e):je(e);var t}n.exports=function(e,t){return Ce(e,t)}}).call(this,n(90),n(166)(e))},function(e,t,n){"use strict";var r=n(271),a=r.default,o=r.DraggableCore;e.exports=a,e.exports.default=a,e.exports.DraggableCore=o},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=u,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(u(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var a=A({capture:!0},r);e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var a=A({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,a.int)(n.borderTopWidth),t+=(0,a.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,a.int)(n.borderLeftWidth),t+=(0,a.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,a.int)(n.paddingTop),t-=(0,a.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,a.int)(n.paddingLeft),t-=(0,a.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:a,y:o}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return c({},(0,o.browserPrefixToKey)("transform",o.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,a.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,a.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&f(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=f,t.removeClassName=h;var a=n(138),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(272));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="";function u(e,t){return l||(l=(0,a.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,a.isFunction)(e[t])}))),!!(0,a.isFunction)(e[l])&&e[l](t)}function d(e,t,n){var r=e.x,a=e.y,o="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(t){var i="".concat("string"===typeof t.x?t.x:t.x+n),s="".concat("string"===typeof t.y?t.y:t.y+n);o="translate(".concat(i,", ").concat(s,")")+o}return o}function f(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},,,,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(3),o=n(81),i=n(79),s=n(1),A=n(1271),c=n(1278),l=n(1289),u=n(1259),d=n(1286),f=n(1272),h=n(1260),p=n(1261),g=n(80),m=n(282),b=n(113),v=n(46),w=n(1277),y=n(1283),B=n(1284),O=n(1276),x=n(443),C=n(1285),E=n(28),j=n(98);function F(){var e=Object(i.a)(["\n  color: ",";\n"]);return F=function(){return e},e}function _(){var e=Object(i.a)(["\n  word-break: break-word;\n  padding-left: 1rem;\n  width: 100%;\n"]);return _=function(){return e},e}function Q(){var e=Object(i.a)(["\n  display: inline-block;\n  height: 0.5rem;\n  width: 0.75rem;\n  border-top: 1px solid ",";\n  margin-right: 0.5rem;\n"]);return Q=function(){return e},e}function U(){var e=Object(i.a)(["\n  font-size: 3rem;\n  margin-bottom: 0.5rem;\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  word-break: break-word;\n"]);return U=function(){return e},e}function k(){var e=Object(i.a)(["\n  display: block;\n  margin-bottom: 0.5rem;\n  margin-top: 0.5rem;\n  width: 100%;\n"]);return k=function(){return e},e}function S(){var e=Object(i.a)(["\n  width: 100%;\n  margin-bottom: 0.5rem;\n  margin-top: 0.5rem;\n"]);return S=function(){return e},e}function D(){var e=Object(i.a)(["\n  display: block;\n  width: 100%;\n  margin-bottom: 0.5rem;\n  margin-top: 0.5rem;\n"]);return D=function(){return e},e}var N=g.a.img(D()),H=g.a.audio(S()),I=g.a.video(k()),M=g.a.p(U()),T=g.a.span(Q(),(function(e){return e.color})),R=g.a.div(_()),L=g.a.i(F(),(function(e){return e.color})),P=function(e){var t=e.src;return Object(a.jsx)(I,{src:t,controls:!0})},K=function(e){var t=e.src;return Object(a.jsx)(H,{src:t,controls:!0})},z=function(e){var t=e.uri,n=Object(E.d)(t);return n.startsWith("image")?Object(a.jsx)(N,{src:t}):n.startsWith("audio")?Object(a.jsx)(K,{src:t}):n.startsWith("video")?Object(a.jsx)(P,{src:t}):Object(a.jsx)(M,{children:t})},V=function(e){var t=e.data,n=e.selected,r=e.isDragging,o=e.type,i=Object(v.f)().palette,s=t.item,A=t.onScoreClick,l=t.hasInput,d=void 0===l||l,h=t.hasOutput,p=void 0===h||h,g=(t.name,"parent_id"in s?s.parent_id:void 0),m="score"in s?s.score:void 0,O=(s.id,s.uri),x=s.mime_type,C=s.text,j=r?20:n?10:2,F={};return"match"===o?F={backgroundColor:i.filters[0].main}:"chunk"===o&&(F={backgroundColor:i.filters[3].main}),Object(a.jsxs)("div",{children:[d&&Object(a.jsx)(b.b,{type:"source",position:b.c.Left}),Object(a.jsxs)(w.a,{elevation:j,color:"red",style:F,children:[Object(a.jsx)(y.a,{style:{paddingBottom:".5em"},action:m&&Object(a.jsxs)(c.a,{size:"large",onClick:function(){return A(m)},children:["score: ",m.value||"0.0"]})}),Object(a.jsxs)(u.a,{maxWidth:"30rem",padding:"1em",paddingTop:"0em",children:[C&&Object(a.jsxs)(M,{children:['"',C,'"']}),O&&Object(E.d)(O)&&Object(a.jsx)(z,{uri:O}),Object(a.jsxs)(f.a,{container:!0,children:[Object(a.jsx)(f.a,{item:!0,xs:6,children:x&&Object(a.jsx)(B.a,{color:"textSecondary",gutterBottom:!0,children:x})}),Object(a.jsx)(f.a,{item:!0,xs:6,children:Object(a.jsx)(u.a,{textAlign:"right"})})]}),Object(a.jsx)("div",{style:{backgroundColor:"#ffffff80"},children:Object(a.jsx)(W,{data:s},"main table")}),g&&Object(a.jsx)(u.a,{marginTop:"0.5rem",children:Object(a.jsxs)(B.a,{color:"textSecondary",children:["ParentId: ",g]})})]})]}),p&&Object(a.jsx)(b.b,{type:"target",position:b.c.Right})]})},W=function(e){var t=e.data,n=e.nested;return Object(a.jsx)(O.a,{disablePadding:!0,dense:!0,children:Object.entries(t).map((function(e){var t=Object(r.a)(e,2),o=t[0],i=t[1];return Object(a.jsx)(Y,{itemKey:o,itemValue:i,nested:n},o)}))})},Y=function(e){var t=e.itemKey,n=e.itemValue,o=e.nested,i=Object(s.useState)(!1),A=Object(r.a)(i,2),c=A[0],l=A[1],u=Object(v.f)().palette,g=!1;return"object"===typeof n&&null!==n&&(g=!0),g&&Object(j.isEmpty)(n)||0===n||"unset"===n||null===n||""===n||n==={}?null:Object(a.jsxs)("div",{style:{marginLeft:o?"2em":"0px",borderLeft:"1px solid ".concat(u.grey[500]),backgroundColor:c?g?"".concat(u.grey[100],"80"):u.grey[200]:"inherit"},children:[Object(a.jsxs)(x.b,{button:!0,onClick:function(){l((function(e){return!e}))},style:{paddingLeft:"0px"},children:[Object(a.jsxs)(f.a,{container:!0,children:[Object(a.jsx)(f.a,{item:!0,xs:6,children:Object(a.jsxs)(B.a,{noWrap:!0,children:[Object(a.jsx)(T,{color:u.grey[500]}),t]})}),Object(a.jsx)(f.a,{item:!0,xs:6,children:Object(a.jsx)(B.a,{noWrap:!0,children:g?Object(a.jsx)(L,{color:u.grey[500],children:"Object"}):String(n)})})]}),Object(a.jsxs)(C.a,{children:[g&&Object(a.jsxs)(a.Fragment,{children:["(",Object.keys(n).length,")"]}),c?Object(a.jsx)(h.a,{}):Object(a.jsx)(p.a,{})]})]}),Object(a.jsx)(d.a,{in:c,children:g?Object.keys(n).length?c&&Object(a.jsx)(W,{data:n,nested:!0}):Object(a.jsx)(x.b,{children:Object(a.jsx)(R,{children:"This Object is empty"})}):Object(a.jsx)(x.b,{children:Object(a.jsxs)(R,{children:[Object(a.jsxs)("div",{children:[Object(a.jsx)("b",{children:"key: "}),t]}),Object(a.jsxs)("div",{children:[Object(a.jsx)("b",{children:"value: "}),n]})]})})})]})};function G(){var e=Object(i.a)(["\n  background: white;\n  padding: 1em;\n  border-radius: 0.25em;\n"]);return G=function(){return e},e}var X=function(e){var t=e.headers;return Object(a.jsxs)("div",{children:[Object(a.jsx)("h5",{children:"Response headers"}),Object(a.jsx)("pre",{className:"microlight",children:t})]})},J=function(e){var t=e.duration;return Object(a.jsxs)("div",{children:[Object(a.jsx)("h5",{children:"Request duration"}),Object(a.jsxs)("pre",{className:"microlight",children:[t," ms"]})]})},q=g.a.div(G()),Z=function(e){var t=e.response,n=e.getComponent,o=e.getConfigs,i=e.displayRequestDuration,A=e.specSelectors,c=e.path,l=e.method,u=o(),d=u.showMutatedRequest,f=u.requestSnippetsEnabled,h=Object(s.useState)("raw"),p=Object(r.a)(h,2),g=p[0],m=p[1],b=d?A.mutatedRequestFor(c,l):A.requestFor(c,l),v=t.get("status"),w=b.get("url"),y=t.get("headers").toJS(),B=t.get("notDocumented"),O=t.get("error"),x=t.get("text"),C=t.get("duration"),E=Object.keys(y),j=y["content-type"]||y["Content-Type"],F=n("responseBody"),_=n("debugResponse"),Q=E.map((function(e){var t=Array.isArray(y[e])?y[e].join():y[e];return Object(a.jsxs)("span",{className:"headerline",children:[" ",e,": ",t," "]},e)})),U=0!==Q.length,k=n("Markdown",!0),S=n("RequestSnippets",!0),D=n("curl");return Object(a.jsxs)("div",{children:[b&&(!0===f||"true"===f?Object(a.jsx)(S,{request:b}):Object(a.jsx)(D,{request:b,getConfigs:o})),w&&Object(a.jsxs)("div",{children:[Object(a.jsx)("h4",{children:"Request URL"}),Object(a.jsx)("div",{className:"request-url",children:Object(a.jsx)("pre",{className:"microlight",children:w})})]}),Object(a.jsx)("h4",{children:"Server response"}),Object(a.jsxs)("table",{className:"responses-table live-responses-table",style:{tableLayout:"fixed",width:"100%"},children:[Object(a.jsx)("thead",{children:Object(a.jsxs)("tr",{className:"responses-header",children:[Object(a.jsx)("td",{className:"col_header response-col_status",children:"Code"}),Object(a.jsx)("td",{className:"col_header response-col_description",style:{paddingLeft:"75px"},children:"Details"})]})}),Object(a.jsx)("tbody",{children:Object(a.jsxs)("tr",{className:"response",children:[Object(a.jsxs)("td",{className:"response-col_status",children:[v,B?Object(a.jsx)("div",{className:"response-undocumented",children:Object(a.jsx)("i",{children:" Undocumented "})}):null]}),Object(a.jsxs)("td",{className:"response-col_description",style:{paddingLeft:"75px"},children:[Object(a.jsxs)("div",{className:"tab-header",children:[Object(a.jsx)("div",{onClick:function(){return m("raw")},className:"tab-item ".concat("raw"===g&&"active"),children:Object(a.jsx)("h4",{className:"opblock-title",children:Object(a.jsx)("span",{children:"Raw"})})}),Object(a.jsx)("div",{onClick:function(){return m("list")},className:"tab-item ".concat("list"===g&&"active"),children:Object(a.jsx)("h4",{className:"opblock-title",children:Object(a.jsx)("span",{children:"List"})})}),Object(a.jsx)("div",{onClick:function(){return m("visual")},className:"tab-item ".concat("visual"===g&&"active"),children:Object(a.jsx)("h4",{className:"opblock-title",children:Object(a.jsx)("span",{children:"Visual"})})})]}),O?Object(a.jsx)(k,{source:"".concat(""!==t.get("name")?"".concat(t.get("name"),": "):"").concat(t.get("message"))}):null,x?Object(a.jsxs)(a.Fragment,{children:["raw"===g&&Object(a.jsx)(F,{content:x,contentType:j,url:w,headers:y,getConfigs:o,getComponent:n}),"visual"===g&&Object(a.jsx)(_,{response:JSON.parse(x)}),"list"===g&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("h5",{children:"Response body"}),Object(a.jsx)(q,{children:Object(a.jsx)(W,{data:JSON.parse(x)})})]})]}):null,U?Object(a.jsx)(X,{headers:Q}):null,i&&C?Object(a.jsx)(J,{duration:C}):null]})]})})]})]})},$=n(27),ee=n(19),te=n.n(ee),ne=n(26),re=n(20),ae=n(1287),oe=n(1282),ie=n(1267),se=n(1288),Ae=n(1258),ce=n(1262);function le(){var e=Object(i.a)(["\n  textarea {\n    min-height: auto !important;\n    background: none;\n    border: none;\n    padding: none !important;\n    font-size: 1rem;\n    font-family: inherit !important;\n    font-weight: 400;\n  }\n\n  textarea:focus {\n    border: none;\n  }\n\n  input[disabled] {\n    background-color: transparent;\n  }\n"]);return le=function(){return e},e}function ue(){var e=Object(i.a)(["\n  display: none;\n"]);return ue=function(){return e},e}function de(){var e=Object(i.a)(["\n  width: 100%;\n"]);return de=function(){return e},e}var fe=Object(g.a)(A.a)(de()),he=g.a.input(ue());var pe=function(e){var t=e.requestBody,n=e.defaultRequestBody,i=e.setRequestBody,A=Object(s.useState)(""),l=Object(r.a)(A,2),h=l[0],p=l[1],g=Object(s.useState)([]),m=Object(r.a)(g,2),b=m[0],v=m[1],w=Object(s.useState)(!1),y=Object(r.a)(w,2),B=y[0],O=y[1],x=Object(s.useState)([]),C=Object(r.a)(x,2),F=C[0],_=C[1],Q=Object(s.useState)({}),U=Object(r.a)(Q,2),k=U[0],S=U[1],D=Object(s.useState)({}),N=Object(r.a)(D,2),H=N[0],I=N[1],M=Object(s.useState)({}),T=Object(r.a)(M,2),R=T[0],L=T[1];Object(s.useEffect)((function(){var e=Object(E.f)(t,n),r=e.rows,a=e.keys,o=e.values,i=e.text,s=e.uris,A=e.placeholders;S(A),p(i),_(r.length?r:[Object(re.a)()]),L(o),I(a),v(s)}),[]),Object(s.useEffect)((function(){(function(){var e=Object(ne.a)(te.a.mark((function e(){var t;return te.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(E.c)(h,b,F,H,R);case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[h,b,F,H,R,i]);var P=function(){var e=Object(ne.a)(te.a.mark((function e(t){var n,r,a,o,i,s;return te.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=Array.from(t||[]),a=0,o=r;case 3:if(!(a<o.length)){e.next=12;break}return i=o[a],e.next=7,Object(E.b)(i);case 7:s=e.sent,n.push(s);case 9:a++,e.next=3;break;case 12:v(n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K=function(e,t){L((function(n){return n[e]=t,Object(o.a)({},n)}))},z=Object(j.reduce)(F,(function(e,t){return R[t]&&H[t]?e+1:e}),0);return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(u.a,{mb:2,children:Object(a.jsx)(f.a,{container:!0,spacing:2,children:Object(a.jsx)(f.a,{item:!0,xs:12,children:Object(a.jsx)(fe,{label:"Text Documents",placeholder:"Text Documents",variant:"outlined",multiline:!0,minRows:3,maxRows:25,type:"custom-text",value:h,onChange:function(e){return p(e.target.value)}})})})}),Object(a.jsxs)(f.a,{container:!0,children:[Object(a.jsxs)(f.a,{item:!0,xs:6,children:[Object(a.jsx)(he,{type:"file",multiple:!0,id:"attach-files-button",onChange:function(e){return P(e.target.files)}}),Object(a.jsx)("label",{htmlFor:"attach-files-button",children:Object(a.jsx)(c.a,{size:"large",component:"span",children:"Select Files"})}),(null===b||void 0===b?void 0:b.length)?Object(a.jsxs)(u.a,{display:"inline",marginLeft:3,children:[b.length," files selected"," ",Object(a.jsx)(c.a,{onClick:function(){v([])},children:"Remove"})]}):""]}),Object(a.jsx)(f.a,{item:!0,xs:6,children:Object(a.jsx)(u.a,{textAlign:"right",onClick:function(){return O((function(e){return!e}))},children:Object(a.jsxs)(c.a,{size:"large",children:[B?"Hide ":"Show ","Additional Fields",z?" (".concat(z,")"):""]})})})]}),Object(a.jsx)(d.a,{in:B,children:Object(a.jsxs)(u.a,{width:"100%",children:[Object(a.jsx)(ae.a,{}),F.map((function(e){return Object(a.jsxs)(f.a,{container:!0,spacing:2,paddingTop:3,children:[Object(a.jsx)(f.a,{item:!0,xs:4,children:Object(a.jsx)(fe,{label:"Key",variant:"outlined",type:"custom-input",disabled:"string"===typeof k[e],value:H[e]||"",onChange:function(t){return n=e,r=t.target.value,void I((function(e){return e[n]=r,Object(o.a)({},e)}));var n,r}})}),Object(a.jsx)(f.a,{item:!0,xs:7,children:Object(a.jsx)(fe,{label:"Value",variant:"outlined",type:"custom-input",value:R[e]||"",placeholder:k[e]||"",onChange:function(t){return K(e,t.target.value)},InputLabelProps:{shrink:!0}})}),Object(a.jsx)(f.a,{item:!0,xs:1,children:!k[e]||R[e]?Object(a.jsx)(c.a,{size:"large",onClick:function(){return function(e){if(k[e])return K(e,"");var t=F.indexOf(e);_((function(e){return e.splice(t,1),0===e.length?[Object(re.a)()]:Object($.a)(e)}))}(e)},children:Object(a.jsx)(Ae.a,{})}):Object(a.jsx)(a.Fragment,{})})]},e)})),Object(a.jsx)(u.a,{paddingTop:3,children:Object(a.jsxs)(c.a,{size:"large",onClick:function(){var e=Object(re.a)();_((function(t){return[].concat(Object($.a)(t),[e])}))},children:[Object(a.jsx)(ce.a,{})," Add Field"]})})]})})]})},ge=Object(g.a)(w.a)(le()),me=function(e){var t=e.requestBody,n=e.defaultRequestBody,r=e.setRequestBody,o=0;try{o=JSON.parse(t).data.length}catch(i){}return Object(a.jsxs)(ge,{children:[Object(a.jsx)(y.a,{title:"Documents (".concat(o,")"),titleTypographyProps:{variant:"subtitle1"}}),Object(a.jsx)(oe.a,{children:Object(a.jsx)(pe,{defaultRequestBody:n,requestBody:t,setRequestBody:r})})]})},be=function(e){var t=Object(s.useState)("raw"),n=Object(r.a)(t,2),o=n[0],i=n[1],A=Object(s.useState)(e.value),c=Object(r.a)(A,2),l=c[0],u=c[1],d=e.errors,f=e.getComponent,h=e.onChange,p=e.defaultValue,g=d.size>0,m=f("TextArea"),b=function(e){u(e)};return Object(s.useEffect)((function(){h(l)}),[l,h]),Object(a.jsxs)("div",{className:"body-param",children:[Object(a.jsxs)("div",{className:"tab-header",children:[Object(a.jsx)("div",{onClick:function(){return i("raw")},className:"tab-item ".concat("raw"===o&&"active"),children:Object(a.jsx)("h4",{className:"opblock-title",children:Object(a.jsx)("span",{children:"Raw"})})}),Object(a.jsx)("div",{onClick:function(){return i("formatted")},className:"tab-item ".concat("formatted"===o&&"active"),children:Object(a.jsx)("h4",{className:"opblock-title",children:Object(a.jsx)("span",{children:"Formatted Document"})})})]}),"raw"===o?Object(a.jsx)(m,{className:"body-param__text ".concat(g?"invalid":""),title:d.size?d.join(", "):"",value:l||p,onChange:function(e){return b(e.target.value)}}):Object(a.jsx)(me,{requestBody:l,defaultRequestBody:p,setRequestBody:b})]})},ve={doc:V,chunk:V,match:V},we=function(e){var t=50;return e.uri&&(t+=300),e.text&&(t+=80),t+50*Object.values(e).reduce((function(e,t){return 0!==t&&"unset"!==t&&null!==t&&""!==t&&t!=={}?e+1:e}),0)},ye=function(e){var t=Object.values(e||{}).map((function(e){return we(e)}));return Math.max.apply(Math,Object($.a)(t))},Be=function(e,t,n,r,a){return{id:"edge-".concat(e,"-").concat(t),source:e,target:t,animated:n,label:r,labelBgPadding:[8,4],labelBgBorderRadius:4,labelBgStyle:{fill:a.info.light,color:a.text.primary,fillOpacity:.7},style:{stroke:a.primary.main}}},Oe=function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Match";return e.reduce((function(e,r,i){return[].concat(Object($.a)(e),[{id:r.id,type:"match",data:{name:o,item:r,onScoreClick:a,hasOutput:!1},position:{x:700*Math.floor(i%6),y:500*Math.floor(i/6)}},Be(r.id,t,!1,"match",n)])}),[])},xe=function(e,t,n){var r,a,o,i=1;(null===(r=e.chunks)||void 0===r?void 0:r.length)&&i++,null===e||void 0===e||null===(a=e.chunks)||void 0===a||a.forEach((function(e){(null===e||void 0===e?void 0:e.matches)&&i++}));var s=0;if(null===e||void 0===e||null===(o=e.chunks)||void 0===o?void 0:o.length){var A=ye(e.chunks),c=we(e);s=A*e.chunks.length/2-c/2}return[{id:"1",type:"doc",data:{name:"Document",item:e,onScoreClick:n,hasInput:!1},position:{x:0,y:s}}].concat(Object($.a)(e.chunks?function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Chunk",o=ye(e);return e.reduce((function(e,i,s){return[].concat(Object($.a)(e),[{id:i.id,type:"chunk",data:{name:a,item:i,onScoreClick:r},position:{x:700*n,y:s*o}},Be(i.id,"1",!1,"chunk",t)],Object($.a)(i.matches?Oe(i.matches,i.id,t,n+s+1,r,"Chunk Match"):[]))}),[])}(e.chunks,t,1,n):[]),Object($.a)(e.matches?Oe(e.matches,"1",t,i,n,"Document Match"):[]))},Ce=function(e){var t=e.doc,n=e.onScoreClick,o=e.height,i=Object(v.f)().palette,A=Object(s.useState)([]),c=Object(r.a)(A,2),l=c[0],u=c[1];return Object(s.useEffect)((function(){var e=xe(t,i,n);u(e)}),[t,i,n]),Object(a.jsx)("div",{style:{height:o,background:"white"},children:Object(a.jsx)(b.d,{elements:l,nodeTypes:ve,minZoom:.2,defaultZoom:.25,defaultPosition:[10,10],children:Object(a.jsx)(b.a,{})})})},Ee=n(1274);function je(){var e=Object(i.a)(["\n  height: 100%;\n  overflow-y: auto;\n"]);return je=function(){return e},e}function Fe(){var e=Object(i.a)(["\n  position: absolute;\n  top: 1em;\n  right: 1em;\n  height: calc(800px - 2em);\n  width: 300px;\n  background: white;\n  z-index: 10;\n"]);return Fe=function(){return e},e}var _e=Object(g.a)(w.a)(Fe()),Qe=Object(g.a)(oe.a)(je()),Ue=function e(t){var n=t.score,o=t.nested,i=Object(s.useState)(!1),A=Object(r.a)(i,2),c=A[0],l=A[1],g=Object(v.f)().palette,m=n.op_name,b=n.operands,w=n.value,y=n.ref_id,E=n.description;if(!m&&!b&&!w)return Object(a.jsx)(a.Fragment,{});var j=b&&b.length>0;return Object(a.jsxs)("div",{style:{paddingLeft:o?"10px":"0px"},children:[Object(a.jsxs)(x.b,{button:j,onClick:function(){l((function(e){return!e}))},children:[Object(a.jsxs)(f.a,{container:!0,children:[Object(a.jsx)(f.a,{item:!0,xs:4,children:Object(a.jsx)(u.a,{paddingTop:"0.75rem",children:Object(a.jsx)(B.a,{noWrap:!0,fontSize:"1.25rem",children:n.value||"0.12341234"})})}),Object(a.jsx)(f.a,{item:!0,xs:7,children:Object(a.jsxs)(u.a,{children:[Object(a.jsx)(B.a,{noWrap:!0,children:m}),Object(a.jsx)(B.a,{noWrap:!0,color:g.grey[500],children:E})]})})]}),j&&Object(a.jsxs)(C.a,{children:["(",null===b||void 0===b?void 0:b.length,")",c?Object(a.jsx)(h.a,{}):Object(a.jsx)(p.a,{})]})]}),b&&Object(a.jsx)("div",{children:Object(a.jsx)(d.a,{in:c,children:Object(a.jsx)(O.a,{children:b.map((function(t,n){return Object(a.jsx)(e,{score:t,nested:!0},"".concat(n,"-").concat(y))}))})})})]})},ke=function(e){var t=e.score,n=e.close;return Object(a.jsxs)(_e,{elevation:5,children:[Object(a.jsx)(y.a,{action:Object(a.jsx)(Ee.a,{"aria-label":"close",onClick:n,children:Object(a.jsx)(Ae.a,{})}),title:"Score"}),Object(a.jsx)(Qe,{children:Object(a.jsx)(O.a,{children:Object(a.jsx)(Ue,{score:t})})})]})};function Se(){var e=Object(i.a)(["\n  position: absolute;\n  left: 50%;\n  right: 0;\n  top: 0;\n  bottom: 0;\n"]);return Se=function(){return e},e}function De(){var e=Object(i.a)(["\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  text-align: left;\n  width: 100%;\n"]);return De=function(){return e},e}var Ne=g.a.span(De()),He=g.a.div(Se()),Ie=function(e){var t=e.text,n=e.uri,r=e.idx,o=e.selectedIndex;return Object(a.jsxs)(a.Fragment,{children:[t&&Object(a.jsxs)(Ne,{children:['"',t,'"']}),n&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(z,{uri:n}),o!==r&&Object(a.jsx)(He,{})]})]})},Me=function(e){var t=e.docs,n=e.docIndex,r=e.height,o=e.setDocIndex,i=Object(v.f)().palette;return Object(a.jsx)(ie.a,{style:{height:r,width:"12em"},orientation:"vertical",variant:"scrollable",value:n,onChange:function(e,t){return o(t)},scrollButtons:"auto",children:t.map((function(e,t){var r=e.text,o=e.uri;return Object(a.jsx)(se.a,{style:{borderBottom:"1px solid ".concat(i.grey[300])},label:Object(a.jsx)(Ie,{text:r,uri:o,idx:t,selectedIndex:n}),value:t},t)}))})},Te=function(e){var t,n,o=e.response,i=Object(s.useState)(0),A=Object(r.a)(i,2),c=A[0],l=A[1],d=Object(s.useState)(null),f=Object(r.a)(d,2),h=f[0],p=f[1],g=Object(s.useState)(!1),m=Object(r.a)(g,2),b=m[0],v=m[1];Object(s.useEffect)((function(){p(null),l(0)}),[o]);var B=null!==o&&(null===o||void 0===o||null===(t=o.data)||void 0===t||null===(n=t.docs)||void 0===n?void 0:n.length)>0;return Object(a.jsxs)(w.a,{children:[Object(a.jsx)(y.a,{title:"Documents and matches",titleTypographyProps:{variant:"subtitle1"}}),Object(a.jsx)(oe.a,{children:Object(a.jsx)(u.a,{display:"flex",flexDirection:"row",children:(null===o||void 0===o?void 0:o.data.docs)&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(Me,{height:600,docs:null===o||void 0===o?void 0:o.data.docs,docIndex:c,setDocIndex:l}),Object(a.jsxs)(u.a,{position:"relative",flex:"1",children:[B&&Object(a.jsx)(Ce,{height:600,doc:o.data.docs[c],onScoreClick:function(e){console.log("on score click: ",e),v(!0),p(e)}}),B&&h&&b&&Object(a.jsx)(ke,{score:h,close:function(){return v(!1)}})]})]})})})]})};function Re(){var e=Object(i.a)(["\n  width: 100%;\n  height: 100%;\n"]);return Re=function(){return e},e}function Le(){var e=Object(i.a)(["\n  width: 100%;\n"]);return Le=function(){return e},e}var Pe=Object(g.a)(A.a)(Le()),Ke=Object(g.a)(c.a)(Re()),ze=function(){return{wrapComponents:{liveResponse:function(e,t){return function(e){return Object(a.jsx)(Z,Object(o.a)({},e))}},RequestBodyEditor:function(e,t){return function(e){return Object(a.jsx)(be,Object(o.a)({},e))}},initializedInput:function(){return Object(a.jsx)("h1",{children:"Hello"})}},components:{debugResponse:function(e){var t=e.response;return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("h5",{children:"Response body"}),Object(a.jsx)(Te,{response:t})]})}}}};function Ve(){var e=new URLSearchParams(window.location.search||window.location.hash.split("?")[1]),t=e.get("host"),n=e.get("port");return t?{host:t,port:n}:function(){var e=window.location;return{host:e.protocol+"//"+e.hostname,port:e.port}}()}function We(e,t,n){return t?"".concat(e,":").concat(t,"/").concat(n):"".concat(e,"/").concat(n)}t.a=function(){var e=Object(s.useState)(!1),t=Object(r.a)(e,2),n=t[0],o=t[1],i=Object(s.useState)(Ve().host),A=Object(r.a)(i,2),g=A[0],b=A[1],v=Object(s.useState)(Ve().port),w=Object(r.a)(v,2),y=w[0],B=w[1],O=Object(s.useState)("openapi.json"),x=Object(r.a)(O,2),C=x[0],E=x[1],j=Object(s.useState)(We(g,y,C)),F=Object(r.a)(j,2),_=F[0],Q=F[1];return Object(a.jsxs)(l.a,{"data-name":"debuggingTool",children:[Object(a.jsx)(u.a,{textAlign:"right",children:Object(a.jsxs)(c.a,{onClick:function(){o((function(e){return!e}))},children:["endpoint settings ",n?Object(a.jsx)(h.a,{}):Object(a.jsx)(p.a,{})]})}),Object(a.jsx)(d.a,{in:n,children:Object(a.jsx)(u.a,{paddingTop:"2.5em",children:Object(a.jsxs)(f.a,{container:!0,spacing:2,children:[Object(a.jsx)(f.a,{item:!0,xs:4,children:Object(a.jsx)(Pe,{label:"Host",variant:"outlined",value:g,onChange:function(e){return b(e.target.value)}})}),Object(a.jsx)(f.a,{item:!0,xs:2,children:Object(a.jsx)(Pe,{label:"Port",variant:"outlined",value:y,onChange:function(e){return B(e.target.value)}})}),Object(a.jsx)(f.a,{item:!0,xs:4,children:Object(a.jsx)(Pe,{label:"OpenAPI Schema",variant:"outlined",value:C,onChange:function(e){return E(e.target.value)}})}),Object(a.jsx)(f.a,{item:!0,xs:2,children:Object(a.jsx)(Ke,{onClick:function(){Q(We(g,y,C))},variant:"contained",children:"Set"})})]})})}),Object(a.jsx)(m.a,{url:_,presets:[ze],requestInterceptor:function(e){return console.log("request:",e)},responseInterceptor:function(e){return console.log("response:",e)}})]})}},,,,,,,,,function(e,t,n){"use strict";n(0);t.a=function(e,t){return function(){return null}}},function(e,t,n){"use strict";t.a=function(e,t,n,r,a){return null}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"nodeOffset",(function(){return r}));var r={x:250,y:150}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)};var r=/input|select|textarea|button|object/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(a(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=A,t.setElement=function(e){var t=e;if("string"===typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);A(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=c,t.hide=function(e){c(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){c(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,a=n(254),o=(r=a)&&r.__esModule?r:{default:r},i=n(151);var s=null;function A(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),i=A(o),s=A(n(18));function A(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],u=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f()},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||f()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(u(e,this.sizer),this.placeHolderSizer&&u(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!==e&&void 0!==e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},,function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=u(n(152)),i=u(n(119)),s=n(116),A=n(187),c=u(n(270)),l=u(n(192));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(A){a=!0,o=A}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E="react-grid-layout",j=!1;try{j=/firefox/i.test(navigator.userAgent)}catch(_){}var F=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(u,e);var t,n,r,l=y(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),C(O(n=l.call(this,e,t)),"state",{activeDrag:null,layout:(0,s.synchronizeLayoutWithChildren)(n.props.layout,n.props.children,n.props.cols,(0,s.compactType)(n.props)),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),C(O(n),"dragEnterCounter",0),C(O(n),"onDragOver",(function(e){var t;if(j&&(null===(t=e.nativeEvent.target)||void 0===t||!t.classList.contains(E)))return e.preventDefault(),!1;var r=n.props,o=r.droppingItem,i=r.margin,s=r.cols,c=r.rowHeight,l=r.maxRows,u=r.width,d=r.containerPadding,f=n.state.layout,h=e.nativeEvent,m=h.layerX,b=h.layerY,v={left:m,top:b,e:e};if(n.state.droppingDOMNode){if(n.state.droppingPosition){var w=n.state.droppingPosition,y=w.left,B=w.top;(y!=m||B!=b)&&n.setState({droppingPosition:v})}}else{var O={cols:s,margin:i,maxRows:l,rowHeight:c,containerWidth:u,containerPadding:d||i},x=(0,A.calcXY)(O,b,m,o.w,o.h);n.setState({droppingDOMNode:a.createElement("div",{key:o.i}),droppingPosition:v,layout:[].concat(g(f),[p(p({},o),{},{x:x.x,y:x.y,static:!1,isDraggable:!0})])})}e.stopPropagation(),e.preventDefault()})),C(O(n),"removeDroppingPlaceholder",(function(){var e=n.props,t=e.droppingItem,r=e.cols,a=n.state.layout,o=(0,s.compact)(a.filter((function(e){return e.i!==t.i})),(0,s.compactType)(n.props),r);n.setState({layout:o,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})})),C(O(n),"onDragLeave",(function(){n.dragEnterCounter--,0===n.dragEnterCounter&&n.removeDroppingPlaceholder()})),C(O(n),"onDragEnter",(function(){n.dragEnterCounter++})),C(O(n),"onDrop",(function(e){var t=n.props.droppingItem,r=n.state.layout,a=r.find((function(e){return e.i===t.i}));n.dragEnterCounter=0,n.removeDroppingPlaceholder(),n.props.onDrop(r,a,e)})),(0,s.autoBindHandlers)(O(n),["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),n}return t=u,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n;return t.activeDrag?null:((0,o.default)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,s.childrenEqual)(e.children,t.children)||(n=t.layout):n=e.layout,n?{layout:(0,s.synchronizeLayoutWithChildren)(n,e.children,e.cols,(0,s.compactType)(e)),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}}],(n=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.children!==e.children||!(0,s.fastRGLPropsEqual)(this.props,e,o.default)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.activeDrag){var n=this.state.layout,r=t.layout;this.onLayoutMaybeChanged(n,r)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var e=(0,s.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}}},{key:"onDragStart",value:function(e,t,n,r){var a=r.e,o=r.node,i=this.state.layout,A=(0,s.getLayoutItem)(i,e);if(A)return this.setState({oldDragItem:(0,s.cloneLayoutItem)(A),oldLayout:this.state.layout}),this.props.onDragStart(i,A,A,null,a,o)}},{key:"onDrag",value:function(e,t,n,r){var a=r.e,o=r.node,i=this.state.oldDragItem,A=this.state.layout,c=this.props.cols,l=(0,s.getLayoutItem)(A,e);if(l){var u={w:l.w,h:l.h,x:l.x,y:l.y,placeholder:!0,i:e};A=(0,s.moveElement)(A,l,t,n,!0,this.props.preventCollision,(0,s.compactType)(this.props),c),this.props.onDrag(A,i,l,u,a,o),this.setState({layout:(0,s.compact)(A,(0,s.compactType)(this.props),c),activeDrag:u})}}},{key:"onDragStop",value:function(e,t,n,r){var a=r.e,o=r.node;if(this.state.activeDrag){var i=this.state.oldDragItem,A=this.state.layout,c=this.props,l=c.cols,u=c.preventCollision,d=(0,s.getLayoutItem)(A,e);if(d){A=(0,s.moveElement)(A,d,t,n,!0,u,(0,s.compactType)(this.props),l),this.props.onDragStop(A,i,d,null,a,o);var f=(0,s.compact)(A,(0,s.compactType)(this.props),l),h=this.state.oldLayout;this.setState({activeDrag:null,layout:f,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(f,h)}}}},{key:"onLayoutMaybeChanged",value:function(e,t){t||(t=this.state.layout),(0,o.default)(t,e)||this.props.onLayoutChange(e)}},{key:"onResizeStart",value:function(e,t,n,r){var a=r.e,o=r.node,i=this.state.layout,A=(0,s.getLayoutItem)(i,e);A&&(this.setState({oldResizeItem:(0,s.cloneLayoutItem)(A),oldLayout:this.state.layout}),this.props.onResizeStart(i,A,A,null,a,o))}},{key:"onResize",value:function(e,t,n,r){var a=r.e,o=r.node,i=this.state,A=i.layout,c=i.oldResizeItem,l=this.props,u=l.cols,d=l.preventCollision,h=f((0,s.withLayoutItem)(A,e,(function(e){var r;if(d){var a=(0,s.getAllCollisions)(A,p(p({},e),{},{w:t,h:n})).filter((function(t){return t.i!==e.i}));if(r=a.length>0){var o=1/0,i=1/0;a.forEach((function(t){t.x>e.x&&(o=Math.min(o,t.x)),t.y>e.y&&(i=Math.min(i,t.y))})),Number.isFinite(o)&&(e.w=o-e.x),Number.isFinite(i)&&(e.h=i-e.y)}}return r||(e.w=t,e.h=n),e})),2),g=h[0],m=h[1];if(m){var b={w:m.w,h:m.h,x:m.x,y:m.y,static:!0,i:e};this.props.onResize(g,c,m,b,a,o),this.setState({layout:(0,s.compact)(g,(0,s.compactType)(this.props),u),activeDrag:b})}}},{key:"onResizeStop",value:function(e,t,n,r){var a=r.e,o=r.node,i=this.state,A=i.layout,c=i.oldResizeItem,l=this.props.cols,u=(0,s.getLayoutItem)(A,e);this.props.onResizeStop(A,c,u,null,a,o);var d=(0,s.compact)(A,(0,s.compactType)(this.props),l),f=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,f)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,r=t.cols,o=t.margin,i=t.containerPadding,s=t.rowHeight,A=t.maxRows,l=t.useCSSTransforms,u=t.transformScale;return a.createElement(c.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:o,containerPadding:i||o,maxRows:A,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:l,transformScale:u},a.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var n=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!n)return null;var r=this.props,o=r.width,i=r.cols,A=r.margin,l=r.containerPadding,u=r.rowHeight,d=r.maxRows,f=r.isDraggable,h=r.isResizable,p=r.isBounded,g=r.useCSSTransforms,m=r.transformScale,b=r.draggableCancel,v=r.draggableHandle,w=r.resizeHandles,y=r.resizeHandle,B=this.state,O=B.mounted,x=B.droppingPosition,C="boolean"===typeof n.isDraggable?n.isDraggable:!n.static&&f,E="boolean"===typeof n.isResizable?n.isResizable:!n.static&&h,j=n.resizeHandles||w,F=C&&p&&!1!==n.isBounded;return a.createElement(c.default,{containerWidth:o,cols:i,margin:A,containerPadding:l||A,maxRows:d,rowHeight:u,cancel:b,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:C,isResizable:E,isBounded:F,useCSSTransforms:g&&O,usePercentages:!O,transformScale:m,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:t?x:void 0,resizeHandles:j,resizeHandle:y},e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.style,o=t.isDroppable,A=t.innerRef,c=(0,i.default)(E,n),l=p({height:this.containerHeight()},r);return a.createElement("div",{ref:A,className:c,style:l,onDrop:o?this.onDrop:s.noop,onDragLeave:o?this.onDragLeave:s.noop,onDragEnter:o?this.onDragEnter:s.noop,onDragOver:o?this.onDragOver:s.noop},a.Children.map(this.props.children,(function(t){return e.processGridItem(t)})),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&v(t.prototype,n),r&&v(t,r),u}(a.Component);t.default=F,C(F,"displayName","ReactGridLayout"),C(F,"propTypes",l.default),C(F,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop,onDrop:s.noop})},function(e,t,n){"use strict";function r(e){var t=e.margin,n=e.containerPadding,r=e.containerWidth,a=e.cols;return(r-t[0]*(a-1)-2*n[0])/a}function a(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function o(e,t,n){return Math.max(Math.min(e,n),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=r,t.calcGridItemWHPx=a,t.calcGridItemPosition=function(e,t,n,o,i,s){var A=e.margin,c=e.containerPadding,l=e.rowHeight,u=r(e),d={};s&&s.resizing?(d.width=Math.round(s.resizing.width),d.height=Math.round(s.resizing.height)):(d.width=a(o,u,A[0]),d.height=a(i,l,A[1]));s&&s.dragging?(d.top=Math.round(s.dragging.top),d.left=Math.round(s.dragging.left)):(d.top=Math.round((l+A[1])*n+c[1]),d.left=Math.round((u+A[0])*t+c[0]));return d},t.calcXY=function(e,t,n,a,i){var s=e.margin,A=e.cols,c=e.rowHeight,l=e.maxRows,u=r(e),d=Math.round((n-s[0])/(u+s[0])),f=Math.round((t-s[1])/(c+s[1]));return d=o(d,0,A-a),f=o(f,0,l-i),{x:d,y:f}},t.calcWH=function(e,t,n,a,i){var s=e.margin,A=e.maxRows,c=e.cols,l=e.rowHeight,u=r(e),d=Math.round((t+s[0])/(u+s[0])),f=Math.round((n+s[1])/(l+s[1]));return d=o(d,0,c-a),f=o(f,0,A-i),{w:d,h:f}},t.clamp=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var i=e.props.bounds;i="string"===typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var s=o(e);if("string"===typeof i){var A,c=s.ownerDocument,l=c.defaultView;if(!((A="parent"===i?s.parentNode:c.querySelector(i))instanceof l.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var u=l.getComputedStyle(s),d=l.getComputedStyle(A);i={left:-s.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(u.marginLeft),top:-s.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(u.marginTop),right:(0,a.innerWidth)(A)-(0,a.outerWidth)(s)-s.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(u.marginRight),bottom:(0,a.innerHeight)(A)-(0,a.outerHeight)(s)-s.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(u.marginBottom)}}(0,r.isNum)(i.right)&&(t=Math.min(t,i.right));(0,r.isNum)(i.bottom)&&(n=Math.min(n,i.bottom));(0,r.isNum)(i.left)&&(t=Math.max(t,i.left));(0,r.isNum)(i.top)&&(n=Math.max(n,i.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[r,a]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"===typeof t?(0,a.getTouch)(e,t):null;if("number"===typeof t&&!r)return null;var i=o(n),s=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,a.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var a=e.state,i=!(0,r.isNum)(a.lastX),s=o(e);return i?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-a.lastX,deltaY:n-a.lastY,lastX:a.lastX,lastY:a.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(138),a=n(154);function o(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,a=(r=n(1))&&r.__esModule?r:{default:r},o=n(153),i=n(275),s=n(191);function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return d(u(t=e.call.apply(e,[this].concat(r))||this),"state",void 0),d(u(t),"lastHandleRect",null),d(u(t),"slack",null),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=r.prototype;return s.componentWillUnmount=function(){this.resetData()},s.lockAspectRatio=function(e,t,n){return[e=(t=e/n)*n,t]},s.resetData=function(){this.lastHandleRect=this.slack=null},s.runConstraints=function(e,t){var n=[this.props.minConstraints,this.props.maxConstraints],r=n[0],a=n[1];if(!r&&!a)return[e,t];if(this.props.lockAspectRatio)if(t===this.props.height){var o=this.props.width/this.props.height;e=(t=e/o)*o}else{var i=this.props.height/this.props.width;t=(e=t/i)*i}var s=e,A=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),a&&(e=Math.min(a[0],e),t=Math.min(a[1],t)),this.slack=[l+(s-e),u+(A-t)],[e,t]},s.resizeHandler=function(e,t){var n=this;return function(r,a){var o=a.node,i=a.deltaX,s=a.deltaY;"onResizeStart"===e&&n.resetData();var A=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(A||c){var l=t[0],u=t[t.length-1],d=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===u)i+=d.left-n.lastHandleRect.left;if("n"===l)s+=d.top-n.lastHandleRect.top}n.lastHandleRect=d,"w"===u&&(i=-i),"n"===l&&(s=-s);var f=n.props.width+(A?i/n.props.transformScale:0),h=n.props.height+(c?s/n.props.transformScale:0),p=n.runConstraints(f,h);f=p[0],h=p[1];var g=f!==n.props.width||h!==n.props.height,m="function"===typeof n.props[e]?n.props[e]:null;m&&!("onResize"===e&&!g)&&("function"===typeof r.persist&&r.persist(),m(r,{node:o,size:{width:f,height:h},handle:t})),"onResizeStop"===e&&n.resetData()}}},s.renderResizeHandle=function(e){var t=this.props.handle;return t?"function"===typeof t?t(e):t:a.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e})},s.render=function(){var e=this,t=this.props,n=t.children,r=t.className,s=t.draggableOpts,c=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),u=(t.transformScale,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]));return(0,i.cloneElement)(n,l(l({},u),{},{className:(r?r+" ":"")+"react-resizable",children:[].concat(n.props.children,c.map((function(t){return a.default.createElement(o.DraggableCore,A({},s,{key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t))})))}))},r}(a.default.Component);t.default=f,d(f,"propTypes",s.resizableProps),d(f,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},function(e,t,n){"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,a=(r=n(18))&&r.__esModule?r:{default:r};n(153);var o={axis:a.default.oneOf(["both","x","y","none"]),className:a.default.string,children:a.default.element.isRequired,draggableOpts:a.default.shape({allowAnyClick:a.default.bool,cancel:a.default.string,children:a.default.node,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:a.default.node,grid:a.default.arrayOf(a.default.number),handle:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number}),height:a.default.number.isRequired,handle:a.default.oneOfType([a.default.node,a.default.func]),handleSize:a.default.arrayOf(a.default.number),lockAspectRatio:a.default.bool,maxConstraints:a.default.arrayOf(a.default.number),minConstraints:a.default.arrayOf(a.default.number),onResizeStop:a.default.func,onResizeStart:a.default.func,onResize:a.default.func,resizeHandles:a.default.arrayOf(a.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:a.default.number,width:a.default.number.isRequired};t.resizableProps=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resizeHandleType=t.resizeHandlesType=void 0;var r=o(n(18)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var i=r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandlesType=i;var s=r.default.oneOfType([r.default.node,r.default.func]);t.resizeHandleType=s;var A={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&n(116).validateLayout(t,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isBounded:r.default.bool,isDraggable:r.default.bool,isResizable:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(e,t){var n=e[t],r={};a.default.Children.forEach(n,(function(e){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0}))},innerRef:r.default.any};t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBreakpointFromWidth=function(e,t){for(var n=a(e),r=n[0],o=1,i=n.length;o<i;o++){var s=n[o];t>e[s]&&(r=s)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.findOrGenerateResponsiveLayout=function(e,t,n,o,i,s){if(e[n])return(0,r.cloneLayout)(e[n]);for(var A=e[o],c=a(t),l=c.slice(c.indexOf(n)),u=0,d=l.length;u<d;u++){var f=l[u];if(e[f]){A=e[f];break}}return A=(0,r.cloneLayout)(A||[]),(0,r.compact)((0,r.correctBounds)(A,{cols:i}),s,i)},t.sortBreakpoints=a;var r=n(116);function a(e){return Object.keys(e).sort((function(t,n){return e[t]-e[n]}))}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=(n(1),n(1289)),o=function(e){var t=e.children;return Object(r.jsx)(a.a,{children:t})}},function(e,t,n){},,function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return a})),n.d(t,"createSvgIcon",(function(){return o.a})),n.d(t,"debounce",(function(){return i.a})),n.d(t,"deprecatedPropType",(function(){return s})),n.d(t,"isMuiElement",(function(){return A.a})),n.d(t,"ownerDocument",(function(){return c.a})),n.d(t,"ownerWindow",(function(){return l.a})),n.d(t,"requirePropFactory",(function(){return u.a})),n.d(t,"setRef",(function(){return d})),n.d(t,"unstable_useEnhancedEffect",(function(){return f.a})),n.d(t,"unstable_useId",(function(){return g})),n.d(t,"unsupportedProp",(function(){return m.a})),n.d(t,"useControlled",(function(){return b.a})),n.d(t,"useEventCallback",(function(){return v.a})),n.d(t,"useForkRef",(function(){return w.a})),n.d(t,"useIsFocusVisible",(function(){return y.a}));var r=n(95),a=n(1255).a,o=n(140),i=n(145);var s=function(e,t){return function(){return null}},A=n(172),c=n(129),l=n(147),u=n(173),d=n(461).a,f=n(134),h=n(6),p=n(1);var g=function(e){var t=p.useState(e),n=Object(h.a)(t,2),r=n[0],a=n[1],o=e||r;return p.useEffect((function(){null==r&&a("mui-".concat(Math.round(1e5*Math.random())))}),[r]),o},m=n(174),b=n(210),v=n(125),w=n(110),y=n(209)},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return o(this,n)}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(3),a=n(79),o=(n(1),n(80)),i=n(96),s=n(107);function A(){var e=Object(a.a)(["\n  padding: 0 1.5rem;\n  width: 1.25rem;\n  opacity: 0.75;\n"]);return A=function(){return e},e}function c(){var e=Object(a.a)(["\n  display: flex;\n  padding: 1rem 0;\n  text-decoration: none;\n  border-radius: 0.25rem;\n  ","\n"]);return c=function(){return e},e}var l=Object(o.a)(i.d)(c(),(function(e){var t=e.theme.palette;return e.selected?"color: ".concat(t.primary.main,";\n      background-color: #00919119;"):"color: ".concat(t.text.secondary,";")})),u=o.a.div(A()),d=function(e){var t,n,a=e.item,o=e.toggleSidebar,i=null===(t=Object(s.h)())||void 0===t||null===(n=t.pathname)||void 0===n?void 0:n.substring(1),A=a.matches.includes(i);return Object(r.jsxs)(l,{to:a.to,selected:A,onClick:o,children:[Object(r.jsx)(u,{children:a.icon&&Object(r.jsx)(a.icon,{})}),a.title&&Object(r.jsx)("span",{children:a.title})]})};function f(){var e=Object(a.a)(["\n  width: 4.5rem;\n"]);return f=function(){return e},e}function h(){var e=Object(a.a)(["\n  padding: 0.5rem 1.5rem;\n"]);return h=function(){return e},e}var p=o.a.div(h()),g=o.a.img(f()),m=function(){return Object(r.jsx)("a",{href:"/#",children:Object(r.jsx)(p,{children:Object(r.jsx)(g,{id:"main-logo",src:"/jina-light.svg",alt:"Jina logo"})})})};function b(){var e=Object(a.a)(["\n  height: 100vh;\n  background-color: ",";\n  border: 1px solid ",";\n  border-top: 0;\n"]);return b=function(){return e},e}var v=o.a.div(b(),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.grey[300]}));t.a=function(e){var t=e.sidebarNavItems,n=e.toggleSidebar;return Object(r.jsxs)(v,{className:"w-2/12 ",children:[Object(r.jsx)(m,{}),"undefined"!==typeof t&&t.length&&Object(r.jsx)("div",{children:t.map((function(e,t){return Object(r.jsx)(d,{item:e,toggleSidebar:n},t)}))})]})}},,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return a}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(245),a=n(246);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),i=(0,r(n(248)).default)(o.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.default=i},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(247);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(206)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),i=h(o),s=h(n(29)),A=h(n(18)),c=h(n(251)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(182)),u=n(151),d=h(u),f=n(258);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var m=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=void 0!==s.default.createPortal,w=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function y(e){return e()}var B=function(e){function t(){var e,n,a;p(this,t);for(var o=arguments.length,A=Array(o),l=0;l<o;l++)A[l]=arguments[l];return n=a=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(A))),a.removePortal=function(){!v&&s.default.unmountComponentAtNode(a.node);var e=y(a.props.parentSelector);e?e.removeChild(a.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},a.portalRef=function(e){a.portal=e},a.renderPortal=function(e){var n=w()(a,i.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),a.node);a.portalRef(n)},g(a,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){u.canUseDOM&&(v||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,y(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:y(e.parentSelector),nextParent:y(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(u.canUseDOM){var r=this.props,a=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||a)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(u.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return u.canUseDOM&&v?(!this.node&&v&&(this.node=document.createElement("div")),w()(i.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(o.Component);B.propTypes={isOpen:A.default.bool.isRequired,style:A.default.shape({content:A.default.object,overlay:A.default.object}),portalClassName:A.default.string,bodyOpenClassName:A.default.string,htmlOpenClassName:A.default.string,className:A.default.oneOfType([A.default.string,A.default.shape({base:A.default.string.isRequired,afterOpen:A.default.string.isRequired,beforeClose:A.default.string.isRequired})]),overlayClassName:A.default.oneOfType([A.default.string,A.default.shape({base:A.default.string.isRequired,afterOpen:A.default.string.isRequired,beforeClose:A.default.string.isRequired})]),appElement:A.default.instanceOf(d.default),onAfterOpen:A.default.func,onRequestClose:A.default.func,closeTimeoutMS:A.default.number,ariaHideApp:A.default.bool,shouldFocusAfterRender:A.default.bool,shouldCloseOnOverlayClick:A.default.bool,shouldReturnFocusAfterClose:A.default.bool,parentSelector:A.default.func,aria:A.default.object,data:A.default.object,role:A.default.string,contentLabel:A.default.string,shouldCloseOnEsc:A.default.bool,overlayRef:A.default.func,contentRef:A.default.func},B.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},B.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(B),t.default=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),s=g(i),A=g(n(18)),c=p(n(252)),l=g(n(253)),u=p(n(182)),d=p(n(256)),f=g(n(151)),h=g(n(183));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(257);var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=0,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,a=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.remove(document.body,o),a&&d.remove(document.getElementsByTagName("html")[0],a),r&&b>0&&0===(b-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===("undefined"===typeof t?"undefined":a(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"===typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&d.add(document.body,a),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(b+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,a=e.overlayClassName,o=e.defaultStyles,i=n?{}:o.content,A=a?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:r({},A,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},s.default.createElement("div",r({id:t,ref:this.setContentRef,style:r({},i,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(i.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:A.default.bool.isRequired,defaultStyles:A.default.shape({content:A.default.object,overlay:A.default.object}),style:A.default.shape({content:A.default.object,overlay:A.default.object}),className:A.default.oneOfType([A.default.string,A.default.object]),overlayClassName:A.default.oneOfType([A.default.string,A.default.object]),bodyOpenClassName:A.default.string,htmlOpenClassName:A.default.string,ariaHideApp:A.default.bool,appElement:A.default.instanceOf(f.default),onAfterOpen:A.default.func,onAfterClose:A.default.func,onRequestClose:A.default.func,closeTimeoutMS:A.default.number,shouldFocusAfterRender:A.default.bool,shouldCloseOnOverlayClick:A.default.bool,shouldReturnFocusAfterClose:A.default.bool,role:A.default.string,contentLabel:A.default.string,aria:A.default.object,data:A.default.object,children:A.default.node,shouldCloseOnEsc:A.default.bool,overlayRef:A.default.func,contentRef:A.default.func,id:A.default.string,testId:A.default.string},t.default=v,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=c,t.handleFocus=l,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==i.length&&(e=i.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",l))};var r,a=n(181),o=(r=a)&&r.__esModule?r:{default:r};var i=[],s=null,A=!1;function c(){A=!0}function l(){if(A){if(A=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,i=n[0],s=n[n.length-1];if(e===document.activeElement){if(!a)return;r=s}s!==document.activeElement||a||(r=i);i===document.activeElement&&a&&(r=s);if(r)return t.preventDefault(),void r.focus();var A=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==A||"Chrome"==A[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(document.activeElement);c>-1&&(c+=a?-1:1);if("undefined"===typeof(r=n[c]))return t.preventDefault(),void(r=a?s:i).focus();t.preventDefault(),r.focus()};var r,a=n(181),o=(r=a)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;!function(){"use strict";var a=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:a,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},a={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:a,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:a,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";var r,a=n(183),o=(r=a)&&r.__esModule?r:{default:r};var i=void 0,s=void 0,A=[];function c(){0!==A.length&&A[A.length-1].focusContent()}o.default.subscribe((function(e,t){i&&s||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",c),(s=i.cloneNode()).addEventListener("focus",c)),(A=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var A=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+A+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==i?"\n  "+i:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=a),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Yn(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function m(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function b(e){var t=h(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],w=!1;function y(e,t){var n,r,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)c(a=t[r=v[n]])||(e[r]=a);return e}function B(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function O(e){return e instanceof B||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,o,i,A=[];for(o=0;o<arguments.length;o++){if(a="","object"===typeof arguments[o]){for(i in a+="\n["+o+"] ",arguments[0])s(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[o];A.push(a)}x(e+"\nArguments: "+Array.prototype.slice.call(A).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,j={};function F(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(x(t),j[e]=!0)}function _(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e){var t,n;for(n in e)s(e,n)&&(_(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function U(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function k(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var S={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},T={};function R(e,t,n,r){var a=r;"string"===typeof r&&(a=function(){return this[r]()}),e&&(T[e]=a),t&&(T[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(T[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function L(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function P(e){var t,n,r=e.match(H);for(t=0,n=r.length;t<n;t++)T[r[t]]?r[t]=T[r[t]]:r[t]=L(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=_(r[a])?r[a].call(t,e):r[a];return o}}function K(e,t){return e.isValid()?(t=z(t,e.localeData()),M[t]=M[t]||P(t),M[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Y="Invalid date";function G(){return this._invalidDate}var X="%d",J=/\d{1,2}/;function q(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,t,n,r){var a=this._relativeTime[n];return _(a)?a(e,t,n,r):a.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ie(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function Ae(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function le(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function ue(e,t){return function(n){return null!=n?(fe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ae(e.year())&&1===e.month()&&29===e.date()?(n=le(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),$e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return _(this[e=re(e)])?this[e]():this}function pe(e,t){if("object"===typeof e){var n,r=se(e=ae(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(_(this[e=re(e)]))return this[e](t);return this}var ge,me=/\d/,be=/\d\d/,ve=/\d{3}/,we=/\d{4}/,ye=/[+-]?\d{6}/,Be=/\d\d?/,Oe=/\d\d\d\d?/,xe=/\d\d\d\d\d\d?/,Ce=/\d{1,3}/,Ee=/\d{1,4}/,je=/[+-]?\d{1,6}/,Fe=/\d+/,_e=/[+-]?\d+/,Qe=/Z|[+-]\d\d:?\d\d/gi,Ue=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function De(e,t,n){ge[e]=_(t)?t:function(e,r){return e&&n?n:t}}function Ne(e,t){return s(ge,e)?ge[e](t._strict,t._locale):new RegExp(He(e))}function He(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Me={};function Te(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=le(e)}),n=0;n<e.length;n++)Me[e[n]]=r}function Re(e,t){Te(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Le(e,t,n){null!=t&&s(Me,e)&&Me[e](t,n._a,n,e)}var Pe,Ke=0,ze=1,Ve=2,We=3,Ye=4,Ge=5,Xe=6,Je=7,qe=8;function Ze(e,t){return(e%t+t)%t}function $e(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ze(t,12);return e+=(t-n)/12,1===n?Ae(e)?29:28:31-n%7%2}Pe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ie("month",8),De("M",Be),De("MM",Be,be),De("MMM",(function(e,t){return t.monthsShortRegex(e)})),De("MMMM",(function(e,t){return t.monthsRegex(e)})),Te(["M","MM"],(function(e,t){t[ze]=le(e)-1})),Te(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[ze]=a:g(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Se,at=Se;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function it(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Pe.call(this._shortMonthsParse,i))?a:null:-1!==(a=Pe.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Pe.call(this._shortMonthsParse,i))||-1!==(a=Pe.call(this._longMonthsParse,i))?a:null:-1!==(a=Pe.call(this._longMonthsParse,i))||-1!==(a=Pe.call(this._shortMonthsParse,i))?a:null}function At(e,t,n){var r,a,o;if(this._monthsParseExact)return st.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=le(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function lt(e){return null!=e?(ct(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function ut(){return $e(this.year(),this.month())}function dt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Ie(r[t]),a[t]=Ie(a[t]);for(t=0;t<24;t++)o[t]=Ie(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function pt(e){return Ae(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ie("year",1),De("Y",_e),De("YY",Be,be),De("YYYY",Ee,we),De("YYYYY",je,ye),De("YYYYYY",je,ye),Te(["YYYYY","YYYYYY"],Ke),Te("YYYY",(function(e,t){t[Ke]=2===e.length?r.parseTwoDigitYear(e):le(e)})),Te("YY",(function(e,t){t[Ke]=r.parseTwoDigitYear(e)})),Te("Y",(function(e,t){t[Ke]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return le(e)+(le(e)>68?1900:2e3)};var gt=ue("FullYear",!0);function mt(){return Ae(this.year())}function bt(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+vt(e,0,r).getUTCDay()-t)%7+r-1}function yt(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,a);return s<=0?i=pt(o=e-1)+s:s>pt(e)?(o=e+1,i=s-pt(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Bt(e,t,n){var r,a,o=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Ot(a=e.year()-1,t,n):i>Ot(e.year(),t,n)?(r=i-Ot(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Ot(e,t,n){var r=wt(e,t,n),a=wt(e+1,t,n);return(pt(e)-r+a)/7}function xt(e){return Bt(e,this._week.dow,this._week.doy).week}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ie("week",5),ie("isoWeek",5),De("w",Be),De("ww",Be,be),De("W",Be),De("WW",Be,be),Re(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=le(e)}));var Ct={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function Ft(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function _t(e){var t=Bt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Qt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ut(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kt(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),De("d",Be),De("e",Be),De("E",Be),De("dd",(function(e,t){return t.weekdaysMinRegex(e)})),De("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),De("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:g(n).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,n,r){t[r]=le(e)}));var St="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=Se,It=Se,Mt=Se;function Tt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?kt(n,this._week.dow):e?n[e.day()]:n}function Rt(e){return!0===e?kt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Lt(e){return!0===e?kt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pt(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Pe.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Pe.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Pe.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Pe.call(this._weekdaysParse,i))||-1!==(a=Pe.call(this._shortWeekdaysParse,i))||-1!==(a=Pe.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Pe.call(this._shortWeekdaysParse,i))||-1!==(a=Pe.call(this._weekdaysParse,i))||-1!==(a=Pe.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Pe.call(this._minWeekdaysParse,i))||-1!==(a=Pe.call(this._weekdaysParse,i))||-1!==(a=Pe.call(this._shortWeekdaysParse,i))?a:null}function Kt(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Pt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Qt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ut(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],A=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),a=Ie(this.weekdaysShort(n,"")),o=Ie(this.weekdays(n,"")),i.push(r),s.push(a),A.push(o),c.push(r),c.push(a),c.push(o);i.sort(e),s.sort(e),A.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function qt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function $t(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,qt),R("k",["kk",2],0,Zt),R("hmm",0,0,(function(){return""+qt.apply(this)+N(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),$t("a",!0),$t("A",!1),ne("hour","h"),ie("hour",13),De("a",en),De("A",en),De("H",Be),De("h",Be),De("k",Be),De("HH",Be,be),De("hh",Be,be),De("kk",Be,be),De("hmm",Oe),De("hmmss",xe),De("Hmm",Oe),De("Hmmss",xe),Te(["H","HH"],We),Te(["k","kk"],(function(e,t,n){var r=le(e);t[We]=24===r?0:r})),Te(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Te(["h","hh"],(function(e,t,n){t[We]=le(e),g(n).bigHour=!0})),Te("hmm",(function(e,t,n){var r=e.length-2;t[We]=le(e.substr(0,r)),t[Ye]=le(e.substr(r)),g(n).bigHour=!0})),Te("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[We]=le(e.substr(0,r)),t[Ye]=le(e.substr(r,2)),t[Ge]=le(e.substr(a)),g(n).bigHour=!0})),Te("Hmm",(function(e,t,n){var r=e.length-2;t[We]=le(e.substr(0,r)),t[Ye]=le(e.substr(r))})),Te("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[We]=le(e.substr(0,r)),t[Ye]=le(e.substr(r,2)),t[Ge]=le(e.substr(a))}));var nn=/[ap]\.?m?\.?/i,rn=ue("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,sn={calendar:S,longDateFormat:V,invalidDate:Y,ordinal:X,dayOfMonthOrdinalParse:J,relativeTime:Z,months:et,monthsShort:tt,week:Ct,weekdays:St,weekdaysMin:Nt,weekdaysShort:Dt,meridiemParse:nn},An={},cn={};function ln(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function un(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=un(e[o]).split("-")).length,n=(n=un(e[o+1]))?n.split("-"):null;t>0;){if(r=fn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ln(a,n)>=t-1)break;t--}o++}return on}function fn(t){var n=null;if(void 0===An[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=on._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),hn(n)}catch(r){An[t]=null}return An[t]}function hn(e,t){var n;return e&&((n=c(t)?mn(e):pn(e,t))?on=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function pn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=An[e])F("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=An[e]._config;else if(null!=t.parentLocale)if(null!=An[t.parentLocale])r=An[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return An[e]=new k(U(r,t)),cn[e]&&cn[e].forEach((function(e){pn(e.name,e.config)})),hn(e),An[e]}return delete An[e],null}function gn(e,t){if(null!=t){var n,r,a=sn;null!=An[e]&&null!=An[e].parentLocale?An[e].set(U(An[e]._config,t)):(null!=(r=fn(e))&&(a=r._config),t=U(a,t),null==r&&(t.abbr=e),(n=new k(t)).parentLocale=An[e],An[e]=n),hn(e)}else null!=An[e]&&(null!=An[e].parentLocale?(An[e]=An[e].parentLocale,e===hn()&&hn(e)):null!=An[e]&&delete An[e]);return An[e]}function mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!o(e)){if(t=fn(e))return t;e=[e]}return dn(e)}function bn(){return E(An)}function vn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[ze]<0||n[ze]>11?ze:n[Ve]<1||n[Ve]>$e(n[Ke],n[ze])?Ve:n[We]<0||n[We]>24||24===n[We]&&(0!==n[Ye]||0!==n[Ge]||0!==n[Xe])?We:n[Ye]<0||n[Ye]>59?Ye:n[Ge]<0||n[Ge]>59?Ge:n[Xe]<0||n[Xe]>999?Xe:-1,g(e)._overflowDayOfYear&&(t<Ke||t>Ve)&&(t=Ve),g(e)._overflowWeeks&&-1===t&&(t=Je),g(e)._overflowWeekday&&-1===t&&(t=qe),g(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bn=/Z|[+-]\d\d(?::?\d\d)?/,On=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(e){var t,n,r,a,o,i,s=e._i,A=wn.exec(s)||yn.exec(s);if(A){for(g(e).iso=!0,t=0,n=On.length;t<n;t++)if(On[t][1].exec(A[1])){a=On[t][0],r=!1!==On[t][2];break}if(null==a)return void(e._isValid=!1);if(A[3]){for(t=0,n=xn.length;t<n;t++)if(xn[t][1].exec(A[3])){o=(A[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(A[4]){if(!Bn.exec(A[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Rn(e)}else e._isValid=!1}function _n(e,t,n,r,a,o){var i=[Qn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}function Qn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Un(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kn(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Sn(e,t,n){if(e)return jn[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function Dn(e){var t,n=En.exec(Un(e._i));if(n){if(t=_n(n[4],n[3],n[2],n[5],n[6],n[7]),!kn(n[1],t,e))return;e._a=t,e._tzm=Sn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Nn(e){var t=Cn.exec(e._i);null===t?(Fn(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hn(e,t,n){return null!=e?e:null!=t?t:n}function In(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Mn(e){var t,n,r,a,o,i=[];if(!e._d){for(r=In(e),e._w&&null==e._a[Ve]&&null==e._a[ze]&&Tn(e),null!=e._dayOfYear&&(o=Hn(e._a[Ke],r[Ke]),(e._dayOfYear>pt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[We]&&0===e._a[Ye]&&0===e._a[Ge]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[We]=0),e._d=(e._useUTC?vt:bt).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[We]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(g(e).weekdayMismatch=!0)}}function Tn(e){var t,n,r,a,o,i,s,A,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=Hn(t.GG,e._a[Ke],Bt(Gn(),1,4).year),r=Hn(t.W,1),((a=Hn(t.E,1))<1||a>7)&&(A=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,c=Bt(Gn(),o,i),n=Hn(t.gg,e._a[Ke],c.year),r=Hn(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(A=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(A=!0)):a=o),r<1||r>Ot(n,o,i)?g(e)._overflowWeeks=!0:null!=A?g(e)._overflowWeekday=!0:(s=yt(n,r,a,o,i),e._a[Ke]=s.year,e._dayOfYear=s.dayOfYear)}function Rn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,a,o,i,s,A=""+e._i,c=A.length,l=0;for(a=z(e._f,e._locale).match(H)||[],t=0;t<a.length;t++)o=a[t],(n=(A.match(Ne(o,e))||[])[0])&&((i=A.substr(0,A.indexOf(n))).length>0&&g(e).unusedInput.push(i),A=A.slice(A.indexOf(n)+n.length),l+=n.length),T[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Le(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=c-l,A.length>0&&g(e).unusedInput.push(A),e._a[We]<=12&&!0===g(e).bigHour&&e._a[We]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[We]=Ln(e._locale,e._a[We],e._meridiem),null!==(s=g(e).era)&&(e._a[Ke]=e._locale.erasConvertYear(s,e._a[Ke])),Mn(e),vn(e)}else Dn(e);else Fn(e)}function Ln(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Pn(e){var t,n,r,a,o,i,s=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,i=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Rn(t),m(t)&&(i=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!0));f(e,n||t)}function Kn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Mn(e)}}function zn(e){var t=new B(vn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||mn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),O(t)?new B(vn(t)):(u(t)?e._d=t:o(n)?Pn(e):n?Rn(e):Wn(e),m(e)||(e._d=null),e))}function Wn(e){var t=e._i;c(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Nn(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Mn(e)):i(t)?Kn(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Yn(e,t,n,r,a){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&A(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=e,s._f=t,s._strict=r,zn(s)}function Gn(e,t,n,r){return Yn(e,t,n,r,!1)}r.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Jn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Zn(){return qn("isBefore",[].slice.call(arguments,0))}function $n(){return qn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nr(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===Pe.call(tr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<tr.length;++n)if(e[tr[n]]){if(r)return!1;parseFloat(e[tr[n]])!==le(e[tr[n]])&&(r=!0)}return!0}function rr(){return this._isValid}function ar(){return jr(NaN)}function or(e){var t=ae(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,A=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=nr(t),this._milliseconds=+l+1e3*c+6e4*A+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=mn(),this._bubble()}function ir(e){return e instanceof or}function sr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ar(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&le(e[r])!==le(t[r]))&&i++;return i+o}function cr(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),De("Z",Ue),De("ZZ",Ue),Te(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=ur(Ue,e)}));var lr=/([\+\-]|\d\d)/gi;function ur(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(lr)||["-",0,0])[1]+le(n[2]))?0:"+"===n[0]?r:-r}function dr(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(O(e)||u(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Gn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function hr(e,t,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=ur(Ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=fr(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?kr(this,jr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:fr(this)}function pr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function mr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=ur(Qe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vr(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=Vn(t))._a?(e=t._isUTC?h(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&Ar(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Br(){return!!this.isValid()&&!this._isUTC}function Or(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,a,o=e,i=null;return ir(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=Cr.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:le(i[Ve])*n,h:le(i[We])*n,m:le(i[Ye])*n,s:le(i[Ge])*n,ms:le(sr(1e3*i[Xe]))*n}):(i=Er.exec(e))?(n="-"===i[1]?-1:1,o={y:Fr(i[2],n),M:Fr(i[3],n),w:Fr(i[4],n),d:Fr(i[5],n),h:Fr(i[6],n),m:Fr(i[7],n),s:Fr(i[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(a=Qr(Gn(o.from),Gn(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),r=new or(o),ir(e)&&s(e,"_locale")&&(r._locale=e._locale),ir(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Fr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function _r(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=_r(e,t):((n=_r(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ur(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(F(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),kr(this,jr(n,r),e),this}}function kr(e,t,n,a){var o=t._milliseconds,i=sr(t._days),s=sr(t._months);e.isValid()&&(a=null==a||a,s&&ct(e,de(e,"Month")+s*n),i&&fe(e,"Date",de(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&r.updateOffset(e,i||s))}jr.fn=or.prototype,jr.invalid=ar;var Sr=Ur(1,"add"),Dr=Ur(-1,"subtract");function Nr(e){return"string"===typeof e||e instanceof String}function Hr(e){return O(e)||u(e)||Nr(e)||l(e)||Mr(e)||Ir(e)||null===e||void 0===e}function Ir(e){var t,n,r=i(e)&&!A(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],a=a||s(e,n);return r&&a}function Mr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&Nr(e)})).length),t&&n}function Tr(e){var t,n,r=i(e)&&!A(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||s(e,n);return r&&a}function Rr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Lr(e,t){1===arguments.length&&(arguments[0]?Hr(arguments[0])?(e=arguments[0],t=void 0):Tr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),a=dr(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",i=t&&(_(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Gn(n)))}function Pr(){return new B(this)}function Kr(e,t){var n=O(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=O(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var a=O(e)?e:Gn(e),o=O(t)?t:Gn(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Wr(e,t){var n,r=O(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Yr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=dr(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:ce(o)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?K(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K(n,"Z")):K(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $r(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ea(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=K(this,e);return this.localeData().postformat(t)}function ta(e,t){return this.isValid()&&(O(e)&&e.isValid()||Gn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function na(e){return this.from(Gn(),e)}function ra(e,t){return this.isValid()&&(O(e)&&e.isValid()||Gn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.to(Gn(),e)}function oa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ia=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var Aa=1e3,ca=60*Aa,la=60*ca,ua=3506328*la;function da(e,t){return(e%t+t)%t}function fa(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ua:new Date(e,t,n).valueOf()}function ha(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ua:Date.UTC(e,t,n)}function pa(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=da(t+(this._isUTC?0:this.utcOffset()*ca),la);break;case"minute":t=this._d.valueOf(),t-=da(t,ca);break;case"second":t=this._d.valueOf(),t-=da(t,Aa)}return this._d.setTime(t),r.updateOffset(this,!0),this}function ga(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=la-da(t+(this._isUTC?0:this.utcOffset()*ca),la)-1;break;case"minute":t=this._d.valueOf(),t+=ca-da(t,ca)-1;break;case"second":t=this._d.valueOf(),t+=Aa-da(t,Aa)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function ma(){return this._d.valueOf()-6e4*(this._offset||0)}function ba(){return Math.floor(this.valueOf()/1e3)}function va(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ya(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ba(){return this.isValid()?this.toISOString():null}function Oa(){return m(this)}function xa(){return f({},g(this))}function Ca(){return g(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ja(e,t){var n,a,o,i=this._eras||mn("en")._eras;for(n=0,a=i.length;n<a;++n){switch(typeof i[n].since){case"string":o=r(i[n].since).startOf("day"),i[n].since=o.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=r(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i}function Fa(e,t,n){var r,a,o,i,s,A=this.eras();for(e=e.toUpperCase(),r=0,a=A.length;r<a;++r)if(o=A[r].name.toUpperCase(),i=A[r].abbr.toUpperCase(),s=A[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return A[r];break;case"NNNN":if(o===e)return A[r];break;case"NNNNN":if(s===e)return A[r]}else if([o,i,s].indexOf(e)>=0)return A[r]}function _a(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Qa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ua(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ka(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Sa(){var e,t,n,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Da(e){return s(this,"_erasNameRegex")||La.call(this),e?this._erasNameRegex:this._erasRegex}function Na(e){return s(this,"_erasAbbrRegex")||La.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ha(e){return s(this,"_erasNarrowRegex")||La.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ia(e,t){return t.erasAbbrRegex(e)}function Ma(e,t){return t.erasNameRegex(e)}function Ta(e,t){return t.erasNarrowRegex(e)}function Ra(e,t){return t._eraYearOrdinalRegex||Fe}function La(){var e,t,n=[],r=[],a=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Ie(i[e].name)),n.push(Ie(i[e].abbr)),a.push(Ie(i[e].narrow)),o.push(Ie(i[e].name)),o.push(Ie(i[e].abbr)),o.push(Ie(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Pa(e,t){R(0,[e,e.length],0,t)}function Ka(e){return Xa.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function za(e){return Xa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Va(){return Ot(this.year(),1,4)}function Wa(){return Ot(this.isoWeekYear(),1,4)}function Ya(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)}function Ga(){var e=this.localeData()._week;return Ot(this.weekYear(),e.dow,e.doy)}function Xa(e,t,n,r,a){var o;return null==e?Bt(this,r,a).year:(t>(o=Ot(e,r,a))&&(t=o),Ja.call(this,e,t,n,r,a))}function Ja(e,t,n,r,a){var o=yt(e,t,n,r,a),i=vt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function qa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),De("N",Ia),De("NN",Ia),De("NNN",Ia),De("NNNN",Ma),De("NNNNN",Ta),Te(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?g(n).era=a:g(n).invalidEra=e})),De("y",Fe),De("yy",Fe),De("yyy",Fe),De("yyyy",Fe),De("yo",Ra),Te(["y","yy","yyy","yyyy"],Ke),Te(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ke]=n._locale.eraYearOrdinalParse(e,a):t[Ke]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Pa("gggg","weekYear"),Pa("ggggg","weekYear"),Pa("GGGG","isoWeekYear"),Pa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),De("G",_e),De("g",_e),De("GG",Be,be),De("gg",Be,be),De("GGGG",Ee,we),De("gggg",Ee,we),De("GGGGG",je,ye),De("ggggg",je,ye),Re(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=le(e)})),Re(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),ne("quarter","Q"),ie("quarter",7),De("Q",me),Te("Q",(function(e,t){t[ze]=3*(le(e)-1)})),R("D",["DD",2],"Do","date"),ne("date","D"),ie("date",9),De("D",Be),De("DD",Be,be),De("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Te(["D","DD"],Ve),Te("Do",(function(e,t){t[Ve]=le(e.match(Be)[0])}));var Za=ue("Date",!0);function $a(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}R("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ie("dayOfYear",4),De("DDD",Ce),De("DDDD",ve),Te(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=le(e)})),R("m",["mm",2],0,"minute"),ne("minute","m"),ie("minute",14),De("m",Be),De("mm",Be,be),Te(["m","mm"],Ye);var eo=ue("Minutes",!1);R("s",["ss",2],0,"second"),ne("second","s"),ie("second",15),De("s",Be),De("ss",Be,be),Te(["s","ss"],Ge);var to,no,ro=ue("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ie("millisecond",16),De("S",Ce,me),De("SS",Ce,be),De("SSS",Ce,ve),to="SSSS";to.length<=9;to+="S")De(to,Fe);function ao(e,t){t[Xe]=le(1e3*("0."+e))}for(to="S";to.length<=9;to+="S")Te(to,ao);function oo(){return this._isUTC?"UTC":""}function io(){return this._isUTC?"Coordinated Universal Time":""}no=ue("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var so=B.prototype;function Ao(e){return Gn(1e3*e)}function co(){return Gn.apply(null,arguments).parseZone()}function lo(e){return e}so.add=Sr,so.calendar=Lr,so.clone=Pr,so.diff=Xr,so.endOf=ga,so.format=ea,so.from=ta,so.fromNow=na,so.to=ra,so.toNow=aa,so.get=he,so.invalidAt=Ca,so.isAfter=Kr,so.isBefore=zr,so.isBetween=Vr,so.isSame=Wr,so.isSameOrAfter=Yr,so.isSameOrBefore=Gr,so.isValid=Oa,so.lang=ia,so.locale=oa,so.localeData=sa,so.max=Jn,so.min=Xn,so.parsingFlags=xa,so.set=pe,so.startOf=pa,so.subtract=Dr,so.toArray=wa,so.toObject=ya,so.toDate=va,so.toISOString=Zr,so.inspect=$r,"undefined"!==typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=Ba,so.toString=qr,so.unix=ba,so.valueOf=ma,so.creationData=Ea,so.eraName=Qa,so.eraNarrow=Ua,so.eraAbbr=ka,so.eraYear=Sa,so.year=gt,so.isLeapYear=mt,so.weekYear=Ka,so.isoWeekYear=za,so.quarter=so.quarters=qa,so.month=lt,so.daysInMonth=ut,so.week=so.weeks=Ft,so.isoWeek=so.isoWeeks=_t,so.weeksInYear=Ya,so.weeksInWeekYear=Ga,so.isoWeeksInYear=Va,so.isoWeeksInISOWeekYear=Wa,so.date=Za,so.day=so.days=zt,so.weekday=Vt,so.isoWeekday=Wt,so.dayOfYear=$a,so.hour=so.hours=rn,so.minute=so.minutes=eo,so.second=so.seconds=ro,so.millisecond=so.milliseconds=no,so.utcOffset=hr,so.utc=gr,so.local=mr,so.parseZone=br,so.hasAlignedHourOffset=vr,so.isDST=wr,so.isLocal=Br,so.isUtcOffset=Or,so.isUtc=xr,so.isUTC=xr,so.zoneAbbr=oo,so.zoneName=io,so.dates=C("dates accessor is deprecated. Use date instead.",Za),so.months=C("months accessor is deprecated. Use month instead",lt),so.years=C("years accessor is deprecated. Use year instead",gt),so.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pr),so.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yr);var uo=k.prototype;function fo(e,t,n,r){var a=mn(),o=h().set(r,t);return a[n](o,e)}function ho(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return fo(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=fo(e,r,n,"month");return a}function po(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var a,o=mn(),i=e?o._week.dow:0,s=[];if(null!=n)return fo(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=fo(t,(a+i)%7,r,"day");return s}function go(e,t){return ho(e,t,"months")}function mo(e,t){return ho(e,t,"monthsShort")}function bo(e,t,n){return po(e,t,n,"weekdays")}function vo(e,t,n){return po(e,t,n,"weekdaysShort")}function wo(e,t,n){return po(e,t,n,"weekdaysMin")}uo.calendar=D,uo.longDateFormat=W,uo.invalidDate=G,uo.ordinal=q,uo.preparse=lo,uo.postformat=lo,uo.relativeTime=$,uo.pastFuture=ee,uo.set=Q,uo.eras=ja,uo.erasParse=Fa,uo.erasConvertYear=_a,uo.erasAbbrRegex=Na,uo.erasNameRegex=Da,uo.erasNarrowRegex=Ha,uo.months=ot,uo.monthsShort=it,uo.monthsParse=At,uo.monthsRegex=ft,uo.monthsShortRegex=dt,uo.week=xt,uo.firstDayOfYear=jt,uo.firstDayOfWeek=Et,uo.weekdays=Tt,uo.weekdaysMin=Lt,uo.weekdaysShort=Rt,uo.weekdaysParse=Kt,uo.weekdaysRegex=Yt,uo.weekdaysShortRegex=Gt,uo.weekdaysMinRegex=Xt,uo.isPM=tn,uo.meridiem=an,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===le(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",hn),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",mn);var yo=Math.abs;function Bo(){var e=this._data;return this._milliseconds=yo(this._milliseconds),this._days=yo(this._days),this._months=yo(this._months),e.milliseconds=yo(e.milliseconds),e.seconds=yo(e.seconds),e.minutes=yo(e.minutes),e.hours=yo(e.hours),e.months=yo(e.months),e.years=yo(e.years),this}function Oo(e,t,n,r){var a=jr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function xo(e,t){return Oo(this,e,t,1)}function Co(e,t){return Oo(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function jo(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,A=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Eo(_o(s)+i),i=0,s=0),A.milliseconds=o%1e3,e=ce(o/1e3),A.seconds=e%60,t=ce(e/60),A.minutes=t%60,n=ce(t/60),A.hours=n%24,i+=ce(n/24),s+=a=ce(Fo(i)),i-=Eo(_o(a)),r=ce(s/12),s%=12,A.days=i,A.months=s,A.years=r,this}function Fo(e){return 4800*e/146097}function _o(e){return 146097*e/4800}function Qo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Fo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_o(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Uo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*le(this._months/12):NaN}function ko(e){return function(){return this.as(e)}}var So=ko("ms"),Do=ko("s"),No=ko("m"),Ho=ko("h"),Io=ko("d"),Mo=ko("w"),To=ko("M"),Ro=ko("Q"),Lo=ko("y");function Po(){return jr(this)}function Ko(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function zo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vo=zo("milliseconds"),Wo=zo("seconds"),Yo=zo("minutes"),Go=zo("hours"),Xo=zo("days"),Jo=zo("months"),qo=zo("years");function Zo(){return ce(this.days()/7)}var $o=Math.round,ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ti(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function ni(e,t,n,r){var a=jr(e).abs(),o=$o(a.as("s")),i=$o(a.as("m")),s=$o(a.as("h")),A=$o(a.as("d")),c=$o(a.as("M")),l=$o(a.as("w")),u=$o(a.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||A<=1&&["d"]||A<n.d&&["dd",A];return null!=n.w&&(d=d||l<=1&&["w"]||l<n.w&&["ww",l]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,d[3]=+e>0,d[4]=r,ti.apply(null,d)}function ri(e){return void 0===e?$o:"function"===typeof e&&($o=e,!0)}function ai(e,t){return void 0!==ei[e]&&(void 0===t?ei[e]:(ei[e]=t,"s"===e&&(ei.ss=t-1),!0))}function oi(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=ei;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(o=Object.assign({},ei,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ni(this,!a,o,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ii=Math.abs;function si(e){return(e>0)-(e<0)||+e}function Ai(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,A=ii(this._milliseconds)/1e3,c=ii(this._days),l=ii(this._months),u=this.asSeconds();return u?(e=ce(A/60),t=ce(e/60),A%=60,e%=60,n=ce(l/12),l%=12,r=A?A.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",o=si(this._months)!==si(u)?"-":"",i=si(this._days)!==si(u)?"-":"",s=si(this._milliseconds)!==si(u)?"-":"",a+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?i+c+"D":"")+(t||e||A?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(A?s+r+"S":"")):"P0D"}var ci=or.prototype;return ci.isValid=rr,ci.abs=Bo,ci.add=xo,ci.subtract=Co,ci.as=Qo,ci.asMilliseconds=So,ci.asSeconds=Do,ci.asMinutes=No,ci.asHours=Ho,ci.asDays=Io,ci.asWeeks=Mo,ci.asMonths=To,ci.asQuarters=Ro,ci.asYears=Lo,ci.valueOf=Uo,ci._bubble=jo,ci.clone=Po,ci.get=Ko,ci.milliseconds=Vo,ci.seconds=Wo,ci.minutes=Yo,ci.hours=Go,ci.days=Xo,ci.weeks=Zo,ci.months=Jo,ci.years=qo,ci.humanize=oi,ci.toISOString=Ai,ci.toString=Ai,ci.toJSON=Ai,ci.locale=oa,ci.localeData=sa,ci.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ai),ci.lang=ia,R("X",0,0,"unix"),R("x",0,0,"valueOf"),De("x",_e),De("X",ke),Te("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Te("x",(function(e,t,n){n._d=new Date(le(e))})),r.version="2.29.1",a(Gn),r.fn=so,r.min=Zn,r.max=$n,r.now=er,r.utc=h,r.unix=Ao,r.months=go,r.isDate=u,r.locale=hn,r.invalid=b,r.duration=jr,r.isMoment=O,r.weekdays=bo,r.parseZone=co,r.localeData=mn,r.isDuration=ir,r.monthsShort=mo,r.weekdaysMin=wo,r.defineLocale=pn,r.updateLocale=gn,r.locales=bn,r.weekdaysShort=vo,r.normalizeUnits=re,r.relativeTimeRounding=ri,r.relativeTimeThreshold=ai,r.calendarFormat=Rr,r.prototype=so,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(166)(e))},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";(function(e){var r=n(1);function a(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof self?self:e;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var a=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),o=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),i=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,a=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,a.style.width=n.offsetWidth+1+"px",a.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;i(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},A=!1,c="",l="animationstart",u="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(A=!0),!1===A)for(var h=0;h<u.length;h++)if(void 0!==f.style[u[h]+"AnimationName"]){c="-"+u[h].toLowerCase()+"-",l=d[h],A=!0;break}var p="resizeanim",g="@"+c+"keyframes "+p+" { from { opacity: 0; } to { opacity: 0; } } ",m=c+"animation: 1ms "+p+"; "}return{addResizeListener:function(e,a){if(r)e.attachEvent("onresize",a);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,A=n.getComputedStyle(e);A&&"static"==A.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(g||"")+".resize-triggers { "+(m||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],a=e.createElement("style");a.id="detectElementResize",a.type="text/css",null!=t&&a.setAttribute("nonce",t),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(e.createTextNode(n)),r.appendChild(a)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),i(e),e.addEventListener("scroll",s,!0),l&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==p&&i(e)},e.__resizeTriggers__.addEventListener(l,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(l,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},c=function(e){function t(){var e,n,r;o(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=A(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,a=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,i=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},A=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,l=parseInt(s.paddingTop,10)||0,u=parseInt(s.paddingBottom,10)||0,d=o-l-u,f=i-A-c;(!t&&r.state.height!==d||!n&&r.state.width!==f)&&(r.setState({height:o-l-u,width:i-A-c}),a({height:o,width:i}))}},r._setRef=function(e){r._autoSizer=e},A(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=a(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,a=e.disableHeight,o=e.disableWidth,i=e.style,A=this.state,c=A.height,l=A.width,u={overflow:"visible"},d={},f=!1;return a||(0===c&&(f=!0),u.height=0,d.height=c),o||(0===l&&(f=!0),u.width=0,d.width=l),Object(r.createElement)("div",{className:n,ref:this._setRef,style:s({},u,i)},!f&&t(d))}}]),t}(r.PureComponent);c.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.a=c}).call(this,n(90))},function(e,t,n){"use strict";!function(t,n,r){var a;(a=r.define)&&a.amd?a([],(function(){return n})):(a=r.modules)?a["FlexSearch".toLowerCase()]=n:e.exports=n}(0,function e(t){function n(e,t){var n=t?t.id:e&&e.id;this.id=n||0===n?n:U++,this.init(e,t),s(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),s(this,"length",(function(){return this.index.length}))}function r(e,t,n,r){return this.u!==this.g&&(this.o=this.o.concat(n),this.u++,r&&this.o.length>=r&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(t,this.o),this.F&&this.F(this.o))),this}function a(e){var t=x();for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];v(r)?t[n]=r.slice(0):y(r)?t[n]=a(r):t[n]=r}return t}function o(e,t){for(var n=e.length,r=w(t),a=[],o=0,i=0;o<n;o++){var s=e[o];(r&&t(s)||!r&&!t[s])&&(a[i++]=s)}return a}function i(e,t,n,r,a,o,i,s,A,c){var l;if(n=m(n,i?0:a,s,o,t,A,c),s&&(s=n.page,l=n.next,n=n.result),i)t=this.where(i,null,a,n);else{for(t=n,n=this.l,a=t.length,o=Array(a),i=0;i<a;i++)o[i]=n[t[i]];t=o}return n=t,r&&(w(r)||(1<(j=r.split(":")).length?r=p:(j=j[0],r=h)),n.sort(r)),n=g(s,l,n),this.cache&&this.j.set(e,n),n}function s(e,t,n){Object.defineProperty(e,t,{get:n})}function A(e){return new RegExp(e,"g")}function c(e,t){for(var n=0;n<t.length;n+=2)e=e.replace(t[n],t[n+1]);return e}function l(e,t,n,r,a,o,i,s){return t[n]?t[n]:(a=a?(s-(i||s/1.5))*o+(i||s/1.5)*a:o,t[n]=a,a>=i&&((e=(e=e[s-(a+.5>>0)])[n]||(e[n]=[]))[e.length]=r),a)}function u(e,t){if(e)for(var n=Object.keys(e),r=0,a=n.length;r<a;r++){var o=n[r],i=e[o];if(i)for(var s=0,A=i.length;s<A;s++){if(i[s]===t){1===A?delete e[o]:i.splice(s,1);break}y(i[s])&&u(i[s],t)}}}function d(e){for(var t="",n="",r="",a=0;a<e.length;a++){var o=e[a];o!==n&&(a&&"h"===o?(r="a"===r||"e"===r||"i"===r||"o"===r||"u"===r||"y"===r,(("a"===n||"e"===n||"i"===n||"o"===n||"u"===n||"y"===n)&&r||" "===n)&&(t+=o)):t+=o),r=a===e.length-1?"":e[a+1],n=o}return t}function f(e,t){return 0>(e=e.length-t.length)?1:e?-1:0}function h(e,t){return(e=e[j])<(t=t[j])?-1:e>t?1:0}function p(e,t){for(var n=j.length,r=0;r<n;r++)e=e[j[r]],t=t[j[r]];return e<t?-1:e>t?1:0}function g(e,t,n){return e?{page:e,next:t?""+t:null,result:n}:n}function m(e,t,n,r,a,o,i){var s,A=[];if(!0===n){n="0";var c=""}else c=n&&n.split(":");var l=e.length;if(1<l){var u,d,f,h,p,m,v,w,y,O,C=x(),E=[],j=0,F=!0,_=0;if(c&&(2===c.length?(w=c,c=!1):c=y=parseInt(c[0],10)),i){for(u=x();j<l;j++)if("not"===a[j])for(h=(d=e[j]).length,f=0;f<h;f++)u["@"+d[f]]=1;else v=j+1;if(B(v))return g(n,s,A);j=0}else m=b(a)&&a;for(;j<l;j++){var Q=j===(v||l)-1;if(!m||!j)if((f=m||a&&a[j])&&"and"!==f){if("or"!==f)continue;O=!1}else O=o=!0;if(h=(d=e[j]).length){if(F){if(!p){p=d;continue}var U=p.length;for(f=0;f<U;f++){var k="@"+(F=p[f]);i&&u[k]||(C[k]=1,o||(A[_++]=F))}p=null,F=!1}for(k=!1,f=0;f<h;f++){var S="@"+(U=d[f]),D=o?C[S]||0:j;if(!(!D&&!r||i&&u[S]||!o&&C[S]))if(D===j){if(Q){if((!y||--y<_)&&(A[_++]=U,t&&_===t))return g(n,_+(c||0),A)}else C[S]=j+1;k=!0}else r&&((S=E[D]||(E[D]=[]))[S.length]=U)}if(O&&!k&&!r)break}else if(O&&!r)return g(n,s,d)}if(p)if(j=p.length,i)for(f=c?parseInt(c,10):0;f<j;f++)u["@"+(e=p[f])]||(A[_++]=e);else A=p;if(r)for(_=A.length,w?(j=parseInt(w[0],10)+1,f=parseInt(w[1],10)+1):(j=E.length,f=0);j--;)if(U=E[j]){for(h=U.length;f<h;f++)if(r=U[f],(!i||!u["@"+r])&&(A[_++]=r,t&&_===t))return g(n,j+":"+f,A);f=0}}else!l||a&&"not"===a[0]||(A=e[0],c&&(c=parseInt(c[0],10)));return t&&(i=A.length,c&&c>i&&(c=0),(s=(c=c||0)+t)<i?A=A.slice(c,s):(s=0,c&&(A=A.slice(c)))),g(n,s,A)}function b(e){return"string"===typeof e}function v(e){return e.constructor===Array}function w(e){return"function"===typeof e}function y(e){return"object"===typeof e}function B(e){return"undefined"===typeof e}function O(e){for(var t=Array(e),n=0;n<e;n++)t[n]=x();return t}function x(){return Object.create(null)}function C(){var e,t;self.onmessage=function(n){if(n=n.data)if(n.search){var r=t.search(n.content,n.threshold?{limit:n.limit,threshold:n.threshold,where:n.where}:n.limit);self.postMessage({id:e,content:n.content,limit:n.limit,result:r})}else n.add?t.add(n.id,n.content):n.update?t.update(n.id,n.content):n.remove?t.remove(n.id):n.clear?t.clear():n.info?((n=t.info()).worker=e,console.log(n)):n.register&&(e=n.id,n.options.cache=!1,n.options.async=!1,n.options.worker=!1,t=new(t=new Function(n.register.substring(n.register.indexOf("{")+1,n.register.lastIndexOf("}")))())(n.options))}}function E(n,r,a,o){n=t("flexsearch","id"+n,C,(function(e){(e=e.data)&&e.result&&o(e.id,e.content,e.result,e.limit,e.where,e.cursor,e.suggest)}),r);var i=e.toString();return a.id=r,n.postMessage({register:i,options:a,id:r}),n}var j,F={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},_={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Q=[],U=0,k={},S={};n.create=function(e,t){return new n(e,t)},n.registerMatcher=function(e){for(var t in e)e.hasOwnProperty(t)&&Q.push(A(t),e[t]);return this},n.registerEncoder=function(e,t){return N[e]=t.bind(N),this},n.registerLanguage=function(e,t){return k[e]=t.filter,S[e]=t.stemmer,this},n.encode=function(e,t){return N[e](t)},n.prototype.init=function(e,t){if(this.v=[],t){var o=t.preset;e=t}else e||(e=F),o=e.preset;if(t={},b(e)?(t=_[e],e={}):o&&(t=_[o]),o=e.worker)if("undefined"===typeof Worker)e.worker=!1,this.m=null;else{var i=parseInt(o,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(i);for(var s=0;s<i;s++)this.m[s]=E(this.id,s,e,r.bind(this))}if(this.f=e.tokenize||t.f||this.f||F.f,this.split=B(o=e.split)?this.split||F.split:b(o)?A(o):o,this.D=e.rtl||this.D||F.D,this.async="undefined"===typeof Promise||B(o=e.async)?this.async||F.async:o,this.g=B(o=e.worker)?this.g||F.g:o,this.threshold=B(o=e.threshold)?t.threshold||this.threshold||F.threshold:o,this.b=B(o=e.resolution)?o=t.b||this.b||F.b:o,o<=this.threshold&&(this.b=this.threshold+1),this.depth="strict"!==this.f||B(o=e.depth)?t.depth||this.depth||F.depth:o,this.w=(o=B(o=e.encode)?t.encode||F.encode:o)&&N[o]&&N[o].bind(N)||(w(o)?o:this.w||!1),(o=e.matcher)&&this.addMatcher(o),o=(t=e.lang)||e.filter){if(b(o)&&(o=k[o]),v(o)){i=this.w,s=x();for(var c=0;c<o.length;c++){var l=i?i(o[c]):o[c];s[l]=1}o=s}this.filter=o}if(o=t||e.stemmer){var u;for(u in t=b(o)?S[o]:o,i=this.w,s=[],t)t.hasOwnProperty(u)&&(c=i?i(u):u,s.push(A(c+"($|\\W)"),i?i(t[u]):t[u]));this.stemmer=u=s}if(this.a=s=(o=e.doc)?a(o):this.a||F.a,this.i=O(this.b-(this.threshold||0)),this.h=x(),this.c=x(),s){if(this.l=x(),e.doc=null,u=s.index={},t=s.keys=[],i=s.field,c=s.tag,l=s.store,v(s.id)||(s.id=s.id.split(":")),l){var d=x();if(b(l))d[l]=1;else if(v(l))for(var f=0;f<l.length;f++)d[l[f]]=1;else y(l)&&(d=l);s.store=d}if(c){if(this.G=x(),l=x(),i)if(b(i))l[i]=e;else if(v(i))for(d=0;d<i.length;d++)l[i[d]]=e;else y(i)&&(l=i);for(v(c)||(s.tag=c=[c]),i=0;i<c.length;i++)this.G[c[i]]=x();this.I=c,i=l}var h;if(i)for(v(i)||(y(i)?(h=i,s.field=i=Object.keys(i)):s.field=i=[i]),s=0;s<i.length;s++)v(c=i[s])||(h&&(e=h[c]),t[s]=c,i[s]=c.split(":")),u[c]=new n(e);e.doc=o}return this.B=!0,this.j=!!(this.cache=o=B(o=e.cache)?this.cache||F.cache:o)&&new H(o),this},n.prototype.encode=function(e){return e&&(Q.length&&(e=c(e,Q)),this.v.length&&(e=c(e,this.v)),this.w&&(e=this.w(e)),this.stemmer&&(e=c(e,this.stemmer))),e},n.prototype.addMatcher=function(e){var t=this.v;for(var n in e)e.hasOwnProperty(n)&&t.push(A(n),e[n]);return this},n.prototype.add=function(e,t,n,r,a){if(this.a&&y(e))return this.A("add",e,t);if(t&&b(t)&&(e||0===e)){var i="@"+e;if(this.c[i]&&!r)return this.update(e,t);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:e,content:t}),this.c[i]=""+this.C,n&&n(),this;if(!a){if(this.async&&"function"!==typeof importScripts){var s=this;return i=new Promise((function(n){setTimeout((function(){s.add(e,t,null,r,!0),s=null,n()}))})),n?(i.then(n),this):i}if(n)return this.add(e,t,null,r,!0),n(),this}if(!(t=this.encode(t)).length)return this;a=w(n=this.f)?n(t):t.split(this.split),this.filter&&(a=o(a,this.filter));var A=x();A._ctx=x();for(var c=a.length,u=this.threshold,d=this.depth,f=this.b,h=this.i,p=this.D,g=0;g<c;g++){var m=a[g];if(m){var v=m.length,B=(p?g+1:c-g)/c,C="";switch(n){case"reverse":case"both":for(var E=v;--E;)l(h,A,C=m[E]+C,e,p?1:(v-E)/v,B,u,f-1);C="";case"forward":for(E=0;E<v;E++)l(h,A,C+=m[E],e,p?(E+1)/v:1,B,u,f-1);break;case"full":for(E=0;E<v;E++)for(var j=(p?E+1:v-E)/v,F=v;F>E;F--)l(h,A,C=m.substring(E,F),e,j,B,u,f-1);break;default:if(v=l(h,A,m,e,1,B,u,f-1),d&&1<c&&v>=u)for(v=A._ctx[m]||(A._ctx[m]=x()),m=this.h[m]||(this.h[m]=O(f-(u||0))),0>(B=g-d)&&(B=0),(C=g+d+1)>c&&(C=c);B<C;B++)B!==g&&l(m,v,a[B],e,0,f-(B<g?g-B:B-g),u,f-1)}}}this.c[i]=1,this.B=!1}return this},n.prototype.A=function(e,t,n){if(v(t)){var r=t.length;if(r--){for(var a=0;a<r;a++)this.A(e,t[a]);return this.A(e,t[r],n)}}else{var o,i=this.a.index,s=this.a.keys,A=this.a.tag;a=this.a.store;var c=this.a.id;r=t;for(var l=0;l<c.length;l++)r=r[c[l]];if("remove"===e&&(delete this.l[r],c=s.length,c--)){for(t=0;t<c;t++)i[s[t]].remove(r);return i[s[c]].remove(r,n)}if(A){for(o=0;o<A.length;o++){var u=A[o],d=t;for(c=u.split(":"),l=0;l<c.length;l++)d=d[c[l]];d="@"+d}o=(o=this.G[u])[d]||(o[d]=[])}for(var f=0,h=(c=this.a.field).length;f<h;f++){for(u=c[f],A=t,d=0;d<u.length;d++)A=A[u[d]];u=i[s[f]],d="add"===e?u.add:u.update,f===h-1?d.call(u,r,A,n):d.call(u,r,A)}if(a){for(n=Object.keys(a),e=x(),i=0;i<n.length;i++)if(a[s=n[i]]){s=s.split(":");var p=void 0,g=void 0;for(c=0;c<s.length;c++)p=(p||t)[A=s[c]],g=(g||e)[A]=p}t=e}o&&(o[o.length]=t),this.l[r]=t}return this},n.prototype.update=function(e,t,n){return this.a&&y(e)?this.A("update",e,t):(this.c["@"+e]&&b(t)&&(this.remove(e),this.add(e,t,n,!0)),this)},n.prototype.remove=function(e,t,n){if(this.a&&y(e))return this.A("remove",e,t);var r="@"+e;if(this.c[r]){if(this.g)return this.m[this.c[r]].postMessage({remove:!0,id:e}),delete this.c[r],t&&t(),this;if(!n){if(this.async&&"function"!==typeof importScripts){var a=this;return r=new Promise((function(t){setTimeout((function(){a.remove(e,null,!0),a=null,t()}))})),t?(r.then(t),this):r}if(t)return this.remove(e,null,!0),t(),this}for(t=0;t<this.b-(this.threshold||0);t++)u(this.i[t],e);this.depth&&u(this.h,e),delete this.c[r],this.B=!1}return this},n.prototype.search=function(e,t,n,r){if(y(t)){if(v(t))for(var a=0;a<t.length;a++)t[a].query=e;else t.query=e;e=t,t=1e3}else t&&w(t)?(n=t,t=1e3):t||0===t||(t=1e3);if(!this.g){var s=[],A=e;if(y(e)&&!v(e)){n||(n=e.callback)&&(A.callback=null);var c=e.sort,l=e.page;t=e.limit,T=e.threshold;var u=e.suggest;e=e.query}if(this.a){T=this.a.index;var d,h,p=A.where,g=A.bool||"or",B=A.field,O=g;if(B)v(B)||(B=[B]);else if(v(A)){var C=A;B=[],O=[];for(var E=0;E<A.length;E++)a=(r=A[E]).bool||g,B[E]=r.field,O[E]=a,"not"===a?d=!0:"and"===a&&(h=!0)}else B=this.a.keys;for(g=B.length,E=0;E<g;E++)C&&(A=C[E]),l&&!b(A)&&(A.page=null,A.limit=0),s[E]=T[B[E]].search(A,0);if(n)return n(i.call(this,e,O,s,c,t,u,p,l,h,d));if(this.async){var j=this;return new Promise((function(n){Promise.all(s).then((function(r){n(i.call(j,e,O,r,c,t,u,p,l,h,d))}))}))}return i.call(this,e,O,s,c,t,u,p,l,h,d)}if(T||(T=this.threshold||0),!r){if(this.async&&"function"!==typeof importScripts){var F=this;return T=new Promise((function(e){setTimeout((function(){e(F.search(A,t,null,!0)),F=null}))})),n?(T.then(n),this):T}if(n)return n(this.search(A,t,null,!0)),this}if(!e||!b(e))return s;if(A=e,this.cache)if(this.B){if(n=this.j.get(e))return n}else this.j.clear(),this.B=!0;if(!(A=this.encode(A)).length)return s;n=w(n=this.f)?n(A):A.split(this.split),this.filter&&(n=o(n,this.filter)),C=n.length,r=!0,a=[];var _=x(),Q=0;if(1<C&&(this.depth&&"strict"===this.f?g=!0:n.sort(f)),!g||(E=this.h))for(var U=this.b;Q<C;Q++){var k=n[Q];if(k){if(g){if(!B)if(E[k])B=k,_[k]=1;else if(!u)return s;if(u&&Q===C-1&&!a.length)g=!1,_[k=B||k]=0;else if(!B)continue}if(!_[k]){var S=[],D=!1,N=0,H=g?E[B]:this.i;if(H)for(var I=void 0,M=0;M<U-T;M++)(I=H[M]&&H[M][k])&&(S[N++]=I,D=!0);if(D)B=k,a[a.length]=1<N?S.concat.apply([],S):S[0];else if(!u){r=!1;break}_[k]=1}}}else r=!1;return r&&(s=m(a,t,l,u)),this.cache&&this.j.set(e,s),s}this.F=n,this.u=0,this.o=[];for(var T=0;T<this.g;T++)this.m[T].postMessage({search:!0,limit:t,content:e})},n.prototype.find=function(e,t){return this.where(e,t,1)[0]||null},n.prototype.where=function(e,t,n,r){var a,o,i,s=this.l,A=[],c=0;if(y(e)){n||(n=t);var l=Object.keys(e),u=l.length;if(a=!1,1===u&&"id"===l[0])return[s[e.id]];if((o=this.I)&&!r)for(var d=0;d<o.length;d++){var f=o[d],h=e[f];if(!B(h)){if(i=this.G[f]["@"+h],0===--u)return i;l.splice(l.indexOf(f),1),delete e[f];break}}for(o=Array(u),d=0;d<u;d++)o[d]=l[d].split(":")}else{if(w(e)){for(n=(t=r||Object.keys(s)).length,l=0;l<n;l++)e(u=s[t[l]])&&(A[c++]=u);return A}if(B(t))return[s[e]];if("id"===e)return[s[t]];l=[e],u=1,o=[e.split(":")],a=!0}for(d=(r=i||r||Object.keys(s)).length,f=0;f<d;f++){h=i?r[f]:s[r[f]];for(var p=!0,g=0;g<u;g++){a||(t=e[l[g]]);var m=o[g],b=m.length,v=h;if(1<b)for(var O=0;O<b;O++)v=v[m[O]];else v=v[m[0]];if(v!==t){p=!1;break}}if(p&&(A[c++]=h,n&&c===n))break}return A},n.prototype.info=function(){if(!this.g)return{id:this.id,items:this.length,cache:!(!this.cache||!this.cache.s)&&this.cache.s.length,matcher:Q.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.f};for(var e=0;e<this.g;e++)this.m[e].postMessage({info:!0,id:this.id})},n.prototype.clear=function(){return this.destroy().init()},n.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){for(var e=this.a.keys,t=0;t<e.length;t++)this.a.index[e[t]].destroy();this.a=this.l=null}return this},n.prototype.export=function(e){var t=!e||B(e.serialize)||e.serialize;if(this.a){var n=!e||B(e.doc)||e.doc,r=!e||B(e.index)||e.index;e=[];var a=0;if(r)for(r=this.a.keys;a<r.length;a++){var o=this.a.index[r[a]];e[a]=[o.i,o.h,Object.keys(o.c)]}n&&(e[a]=this.l)}else e=[this.i,this.h,Object.keys(this.c)];return t&&(e=JSON.stringify(e)),e},n.prototype.import=function(e,t){(!t||B(t.serialize)||t.serialize)&&(e=JSON.parse(e));var n=x();if(this.a){var r=!t||B(t.doc)||t.doc,a=0;if(!t||B(t.index)||t.index){for(var o=(t=this.a.keys).length,i=e[0][2];a<i.length;a++)n[i[a]]=1;for(a=0;a<o;a++){i=this.a.index[t[a]];var s=e[a];s&&(i.i=s[0],i.h=s[1],i.c=n)}}r&&(this.l=y(r)?r:e[a])}else{for(r=e[2],a=0;a<r.length;a++)n[r[a]]=1;this.i=e[0],this.h=e[1],this.c=n}};var D=function(){var e=A("\\s+"),t=A("[^a-z0-9 ]"),n=[A("[-/]")," ",t,"",e," "];return function(e){return d(c(e.toLowerCase(),n))}}(),N={icase:function(e){return e.toLowerCase()},simple:function(){var e=A("\\s+"),t=A("[^a-z0-9 ]"),n=A("[-/]"),r=[A("[\xe0\xe1\xe2\xe3\xe4\xe5]"),"a",A("[\xe8\xe9\xea\xeb]"),"e",A("[\xec\xed\xee\xef]"),"i",A("[\xf2\xf3\xf4\xf5\xf6\u0151]"),"o",A("[\xf9\xfa\xfb\xfc\u0171]"),"u",A("[\xfd\u0177\xff]"),"y",A("\xf1"),"n",A("[\xe7c]"),"k",A("\xdf"),"s",A(" & ")," and ",n," ",t,"",e," "];return function(e){return" "===(e=c(e.toLowerCase(),r))?"":e}}(),advanced:function(){var e=A("ae"),t=A("ai"),n=A("ay"),r=A("ey"),a=A("oe"),o=A("ue"),i=A("ie"),s=A("sz"),l=A("zs"),u=A("ck"),f=A("cc"),h=[e,"a",t,"ei",n,"ei",r,"ei",a,"o",o,"u",i,"i",s,"s",l,"s",A("sh"),"s",u,"k",f,"k",A("th"),"t",A("dt"),"t",A("ph"),"f",A("pf"),"f",A("ou"),"o",A("uo"),"u"];return function(e,t){return e?(2<(e=this.simple(e)).length&&(e=c(e,h)),t||1<e.length&&(e=d(e)),e):e}}(),extra:function(){var e=[A("p"),"b",A("z"),"s",A("[cgq]"),"k",A("n"),"m",A("d"),"t",A("[vw]"),"f",A("[aeiouy]"),""];return function(t){if(!t)return t;if(1<(t=this.advanced(t,!0)).length){t=t.split(" ");for(var n=0;n<t.length;n++){var r=t[n];1<r.length&&(t[n]=r[0]+c(r.substring(1),e))}t=d(t=t.join(" "))}return t}}(),balance:D},H=function(){function e(e){this.clear(),this.H=!0!==e&&e}return e.prototype.clear=function(){this.cache=x(),this.count=x(),this.index=x(),this.s=[]},e.prototype.set=function(e,t){if(this.H&&B(this.cache[e])){var n=this.s.length;if(n===this.H){n--;var r=this.s[n];delete this.cache[r],delete this.count[r],delete this.index[r]}this.index[e]=n,this.s[n]=e,this.count[e]=-1,this.cache[e]=t,this.get(e)}else this.cache[e]=t},e.prototype.get=function(e){var t=this.cache[e];if(this.H&&t){var n=++this.count[e],r=this.index,a=r[e];if(0<a){for(var o=this.s,i=a;this.count[o[--a]]<=n&&-1!==a;);if(++a!==i){for(n=i;n>a;n--)i=o[n-1],o[n]=i,r[i]=n;o[a]=e,r[e]=a}}}return t},e}();return n}(function(){var e={},t="undefined"!==typeof Blob&&"undefined"!==typeof URL&&URL.createObjectURL;return function(n,r,a,o,i){return a=t?URL.createObjectURL(new Blob(["("+a.toString()+")()"],{type:"text/javascript"})):n+".min.js",e[n+="-"+r]||(e[n]=[]),e[n][i]=new Worker(a),e[n][i].onmessage=o,e[n][i]}}()),this)},,,function(e,t,n){"use strict";var r=n(266),a=n(22);function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function i(e){return Array.isArray(e)?e.sort():"object"===typeof e?i(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=a({arrayFormat:"none"},t)),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),a=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),n(decodeURIComponent(a),o,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=i(n):e[t]=n,e}),Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[o(t,e),"[",r,"]"].join(""):[o(t,e),"[",o(r,e),"]=",o(n,e)].join("")};case"bracket":return function(t,n){return null===n?o(t,e):[o(t,e),"[]=",o(n,e)].join("")};default:return function(t,n){return null===n?o(t,e):[o(t,e),"=",o(n,e)].join("")}}}(t=a({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(r){var a=e[r];if(void 0===a)return"";if(null===a)return o(r,t);if(Array.isArray(a)){var i=[];return a.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return o(r,t)+"="+o(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},,function(e,t,n){e.exports=n(186).default,e.exports.utils=n(116),e.exports.Responsive=n(277).default,e.exports.Responsive.utils=n(193),e.exports.WidthProvider=n(278).default},function(e,t){e.exports=function(e,t,n){return e===t||e.className===t.className&&n(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&n(e.verticalCompact,t.verticalCompact)&&n(e.compactType,t.compactType)&&n(e.layout,t.layout)&&n(e.margin,t.margin)&&n(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&n(e.resizeHandles,t.resizeHandles)&&n(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&n(e.droppingItem,t.droppingItem)&&n(e.innerRef,t.innerRef)}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=d(n(1)),o=d(n(18)),i=n(153),s=n(274),A=n(116),c=n(187),l=n(192),u=d(n(119));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,r,o=b(l);function l(){var e;p(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return B(w(e=o.call.apply(o,[this].concat(n))),"state",{resizing:null,dragging:null,className:""}),B(w(e),"elementRef",a.default.createRef()),B(w(e),"onDragStart",(function(t,n){var r=n.node,a=e.props,o=a.onDragStart,i=a.transformScale;if(o){var s={top:0,left:0},A=r.offsetParent;if(A){var l=A.getBoundingClientRect(),u=r.getBoundingClientRect(),d=u.left/i,f=l.left/i,h=u.top/i,p=l.top/i;s.left=d-f+A.scrollLeft,s.top=h-p+A.scrollTop,e.setState({dragging:s});var g=(0,c.calcXY)(e.getPositionParams(),s.top,s.left,e.props.w,e.props.h),m=g.x,b=g.y;return o.call(w(e),e.props.i,m,b,{e:t,node:r,newPosition:s})}}})),B(w(e),"onDrag",(function(t,n){var r=n.node,a=n.deltaX,o=n.deltaY,i=e.props.onDrag;if(i){if(!e.state.dragging)throw new Error("onDrag called before onDragStart.");var s=e.state.dragging.top+o,A=e.state.dragging.left+a,l=e.props,u=l.isBounded,d=l.i,f=l.w,h=l.h,p=l.containerWidth,g=e.getPositionParams();if(u){var m=r.offsetParent;if(m){var b=e.props,v=b.margin,y=b.rowHeight,B=m.clientHeight-(0,c.calcGridItemWHPx)(h,y,v[1]);s=(0,c.clamp)(s,0,B);var O=(0,c.calcGridColWidth)(g),x=p-(0,c.calcGridItemWHPx)(f,O,v[0]);A=(0,c.clamp)(A,0,x)}}var C={top:s,left:A};e.setState({dragging:C});var E=(0,c.calcXY)(g,s,A,f,h),j=E.x,F=E.y;return i.call(w(e),d,j,F,{e:t,node:r,newPosition:C})}})),B(w(e),"onDragStop",(function(t,n){var r=n.node,a=e.props.onDragStop;if(a){if(!e.state.dragging)throw new Error("onDragEnd called before onDragStart.");var o=e.props,i=o.w,s=o.h,A=o.i,l=e.state.dragging,u=l.left,d=l.top,f={top:d,left:u};e.setState({dragging:null});var h=(0,c.calcXY)(e.getPositionParams(),d,u,i,s),p=h.x,g=h.y;return a.call(w(e),A,p,g,{e:t,node:r,newPosition:f})}})),B(w(e),"onResizeStop",(function(t,n){e.onResizeHandler(t,n,"onResizeStop")})),B(w(e),"onResizeStart",(function(t,n){e.onResizeHandler(t,n,"onResizeStart")})),B(w(e),"onResize",(function(t,n){e.onResizeHandler(t,n,"onResize")})),e}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e,t){if(this.props.children!==e.children)return!0;if(this.props.droppingPosition!==e.droppingPosition)return!0;var n=(0,c.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),r=(0,c.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,t);return!(0,A.fastPositionEqual)(n,r)||this.props.useCSSTransforms!==e.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(e){this.moveDroppingItem(e)}},{key:"moveDroppingItem",value:function(e){var t=this.props.droppingPosition;if(t){var n=this.elementRef.current;if(n){var r=e.droppingPosition||{left:0,top:0},a=this.state.dragging,o=a&&t.left!==r.left||t.top!==r.top;if(a){if(o){var i=t.left-a.left,s=t.top-a.top;this.onDrag(t.e,{node:n,deltaX:i,deltaY:s})}}else this.onDragStart(t.e,{node:n,deltaX:t.left,deltaY:t.top})}}}},{key:"getPositionParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,n=this.props,r=n.usePercentages,a=n.containerWidth;return n.useCSSTransforms?t=(0,A.setTransform)(e):(t=(0,A.setTopLeft)(e),r&&(t.left=(0,A.perc)(e.left/a),t.width=(0,A.perc)(e.width/a))),t}},{key:"mixinDraggable",value:function(e,t){return a.default.createElement(i.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}},{key:"mixinResizable",value:function(e,t,n){var r=this.props,o=r.cols,i=r.x,A=r.minW,l=r.minH,u=r.maxW,d=r.maxH,f=r.transformScale,h=r.resizeHandles,p=r.resizeHandle,g=this.getPositionParams(),m=(0,c.calcGridItemPosition)(g,0,0,o-i,0).width,b=(0,c.calcGridItemPosition)(g,0,0,A,l),v=(0,c.calcGridItemPosition)(g,0,0,u,d),w=[b.width,b.height],y=[Math.min(v.width,m),Math.min(v.height,1/0)];return a.default.createElement(s.Resizable,{draggableOpts:{disabled:!n,nodeRef:this.elementRef},className:n?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:w,maxConstraints:y,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:f,resizeHandles:h,handle:p},e)}},{key:"onResizeHandler",value:function(e,t,n){var r=t.node,a=t.size,o=this.props[n];if(o){var i=this.props,s=i.cols,A=i.x,l=i.y,u=i.i,d=i.maxH,f=i.minH,h=this.props,p=h.minW,g=h.maxW,m=(0,c.calcWH)(this.getPositionParams(),a.width,a.height,A,l),b=m.w,v=m.h;p=Math.max(p,1),g=Math.min(g,s-A),b=(0,c.clamp)(b,p,g),v=(0,c.clamp)(v,f,d),this.setState({resizing:"onResizeStop"===n?null:a}),o.call(this,u,b,v,{e:e,node:r,size:a})}}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.w,o=e.h,i=e.isDraggable,s=e.isResizable,A=e.droppingPosition,l=e.useCSSTransforms,d=(0,c.calcGridItemPosition)(this.getPositionParams(),t,n,r,o,this.state),f=a.default.Children.only(this.props.children),p=a.default.cloneElement(f,{ref:this.elementRef,className:(0,u.default)("react-grid-item",f.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":i,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(A),cssTransforms:l}),style:h(h(h({},this.props.style),f.props.style),this.createStyle(d))});return p=this.mixinResizable(p,d,s),p=this.mixinDraggable(p,i)}}])&&g(t.prototype,n),r&&g(t,r),l}(a.default.Component);t.default=O,B(O,"propTypes",{children:o.default.element,cols:o.default.number.isRequired,containerWidth:o.default.number.isRequired,rowHeight:o.default.number.isRequired,margin:o.default.array.isRequired,maxRows:o.default.number.isRequired,containerPadding:o.default.array.isRequired,x:o.default.number.isRequired,y:o.default.number.isRequired,w:o.default.number.isRequired,h:o.default.number.isRequired,minW:function(e,t){var n=e[t];return"number"!==typeof n?new Error("minWidth not Number"):n>e.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!==typeof n?new Error("maxWidth not Number"):n<e.w||n<e.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(e,t){var n=e[t];return"number"!==typeof n?new Error("minHeight not Number"):n>e.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!==typeof n?new Error("maxHeight not Number"):n<e.h||n<e.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:o.default.string.isRequired,resizeHandles:l.resizeHandlesType,resizeHandle:l.resizeHandleType,onDragStop:o.default.func,onDragStart:o.default.func,onDrag:o.default.func,onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,isDraggable:o.default.bool.isRequired,isResizable:o.default.bool.isRequired,isBounded:o.default.bool.isRequired,static:o.default.bool,useCSSTransforms:o.default.bool.isRequired,transformScale:o.default.number,className:o.default.string,handle:o.default.string,cancel:o.default.string,droppingPosition:o.default.shape({e:o.default.object.isRequired,left:o.default.number.isRequired,top:o.default.number.isRequired})}),B(O,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(1)),a=d(n(18)),o=d(n(29)),i=d(n(119)),s=n(154),A=n(188),c=n(138),l=d(n(273)),u=d(n(189));function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(A){a=!0,o=A}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var a=j(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,e);var t=x(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),F(E(r=t.call(this,e)),"onDragStart",(function(e,t){if((0,u.default)("Draggable: onDragStart: %j",t),!1===r.props.onStart(e,(0,A.createDraggableData)(E(r),t)))return!1;r.setState({dragging:!0,dragged:!0})})),F(E(r),"onDrag",(function(e,t){if(!r.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);var n=(0,A.createDraggableData)(E(r),t),a={x:n.x,y:n.y};if(r.props.bounds){var o=a.x,i=a.y;a.x+=r.state.slackX,a.y+=r.state.slackY;var s=m((0,A.getBoundPosition)(E(r),a.x,a.y),2),c=s[0],l=s[1];a.x=c,a.y=l,a.slackX=r.state.slackX+(o-a.x),a.slackY=r.state.slackY+(i-a.y),n.x=a.x,n.y=a.y,n.deltaX=a.x-r.state.x,n.deltaY=a.y-r.state.y}if(!1===r.props.onDrag(e,n))return!1;r.setState(a)})),F(E(r),"onDragStop",(function(e,t){if(!r.state.dragging)return!1;if(!1===r.props.onStop(e,(0,A.createDraggableData)(E(r),t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var a=r.props.position,o=a.x,i=a.y;n.x=o,n.y=i}r.setState(n)})),r.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:w({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),r}return B(n,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:w({},n)})}}]),B(n,[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),a=t.defaultPosition,o=t.defaultClassName,c=t.defaultClassNameDragging,u=t.defaultClassNameDragged,d=t.position,f=t.positionOffset,h=(t.scale,g(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),m={},b=null,v=!Boolean(d)||this.state.dragging,y=d||a,B={x:(0,A.canDragX)(this)&&v?this.state.x:y.x,y:(0,A.canDragY)(this)&&v?this.state.y:y.y};this.state.isElementSVG?b=(0,s.createSVGTransform)(B,f):m=(0,s.createCSSTransform)(B,f);var O=(0,i.default)(n.props.className||"",o,(F(e={},c,this.state.dragging),F(e,u,this.state.dragged),e));return r.createElement(l.default,p({},h,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:O,style:w(w({},n.props.style),m),transform:b}))}}]),n}(r.Component);t.default=_,F(_,"displayName","Draggable"),F(_,"propTypes",w(w({},l.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),F(_,"defaultProps",w(w({},l.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=a,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var r=["Moz","Webkit","O","ms"];function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window||"undefined"===typeof window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<r.length;n++)if(o(e,r[n])in t)return r[n];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=a();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(1)),a=l(n(18)),o=l(n(29)),i=n(154),s=n(188),A=n(138),c=l(n(189));function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(A){a=!0,o=A}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},C=x,E=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,a,A=b(l);function l(){var e;p(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return B(w(e=A.call.apply(A,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),B(w(e),"mounted",!1),B(w(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"===typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,i.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,i.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var a=(0,i.getTouchIdentifier)(t);e.setState({touchIdentifier:a});var o=(0,s.getControlPosition)(t,a,w(e));if(null!=o){var A=o.x,l=o.y,u=(0,s.createCoreData)(w(e),A,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,u)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:A,lastY:l}),(0,i.addEvent)(r,C.move,e.handleDrag),(0,i.addEvent)(r,C.stop,e.handleDragStop))}}})),B(w(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,a=n.y;if(Array.isArray(e.props.grid)){var o=r-e.state.lastX,i=a-e.state.lastY,A=f((0,s.snapToGrid)(e.props.grid,o,i),2);if(o=A[0],i=A[1],!o&&!i)return;r=e.state.lastX+o,a=e.state.lastY+i}var l=(0,s.createCoreData)(w(e),r,a);if((0,c.default)("DraggableCore: handleDrag: %j",l),!1!==e.props.onDrag(t,l)&&!1!==e.mounted)e.setState({lastX:r,lastY:a});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(d){var u=document.createEvent("MouseEvents");u.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(u)}}})),B(w(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,a=n.y,o=(0,s.createCoreData)(w(e),r,a);if(!1===e.props.onStop(t,o)||!1===e.mounted)return!1;var A=e.findDOMNode();A&&e.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(A.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),A&&((0,c.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(A.ownerDocument,C.move,e.handleDrag),(0,i.removeEvent)(A.ownerDocument,C.stop,e.handleDragStop))}}})),B(w(e),"onMouseDown",(function(t){return C=x,e.handleDragStart(t)})),B(w(e),"onMouseUp",(function(t){return C=x,e.handleDragStop(t)})),B(w(e),"onTouchStart",(function(t){return C=O,e.handleDragStart(t)})),B(w(e),"onTouchEnd",(function(t){return C=O,e.handleDragStop(t)})),e}return t=l,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,i.addEvent)(e,O.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,i.removeEvent)(t,x.move,this.handleDrag),(0,i.removeEvent)(t,O.move,this.handleDrag),(0,i.removeEvent)(t,x.stop,this.handleDragStop),(0,i.removeEvent)(t,O.stop,this.handleDragStop),(0,i.removeEvent)(e,O.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&g(t.prototype,n),a&&g(t,a),l}(r.Component);t.default=E,B(E,"displayName","DraggableCore"),B(E,"propTypes",{allowAnyClick:a.default.bool,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:A.dontSetMe,style:A.dontSetMe,transform:A.dontSetMe}),B(E,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},function(e,t,n){"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n(190).default,e.exports.ResizableBox=n(276).default},function(e,t,n){"use strict";t.__esModule=!0,t.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=i(i({},e.props.style),t.style));t.className&&e.props.className&&(t.className=e.props.className+" "+t.className);return a.default.cloneElement(e,t)};var r,a=(r=n(1))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=A();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(1)),a=s(n(18)),o=s(n(190)),i=n(191);function s(e){return e&&e.__esModule?e:{default:e}}function A(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return A=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return f(d(t=e.call.apply(e,[this].concat(r))||this),"state",{width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height}),f(d(t),"onResize",(function(e,n){var r=n.size;t.props.onResize?(e.persist&&e.persist(),t.setState(r,(function(){return t.props.onResize&&t.props.onResize(e,n)}))):t.setState(r)})),t}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},a.prototype.render=function(){var e=this.props,t=e.handle,n=e.handleSize,a=(e.onResize,e.onResizeStart),i=e.onResizeStop,s=e.draggableOpts,A=e.minConstraints,l=e.maxConstraints,d=e.lockAspectRatio,f=e.axis,h=(e.width,e.height,e.resizeHandles),p=e.style,g=e.transformScale,m=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return r.createElement(o.default,{axis:f,draggableOpts:s,handle:t,handleSize:n,height:this.state.height,lockAspectRatio:d,maxConstraints:l,minConstraints:A,onResizeStart:a,onResize:this.onResize,onResizeStop:i,resizeHandles:h,transformScale:g,width:this.state.width},r.createElement("div",c({},m,{style:u(u({},p),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},a}(r.Component);t.default=h,f(h,"propTypes",u(u({},i.resizableProps),{},{children:a.default.element}))},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=l(n(18)),i=l(n(152)),s=n(116),A=n(193),c=l(n(186));function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var a=B(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){return Object.prototype.toString.call(e)};function C(e,t){return null==e?null:Array.isArray(e)?e:e[t]}var E=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(l,e);var t,n,r,o=v(l);function l(){var e;g(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return O(y(e=o.call.apply(o,[this].concat(n))),"state",e.generateInitialState()),O(y(e),"onLayoutChange",(function(t){e.props.onLayoutChange(t,p(p({},e.props.layouts),{},O({},e.state.breakpoint,t)))})),e}return t=l,r=[{key:"getDerivedStateFromProps",value:function(e,t){if(!(0,i.default)(e.layouts,t.layouts)){var n=t.breakpoint,r=t.cols;return{layout:(0,A.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,n,n,r,e.compactType),layouts:e.layouts}}return null}}],(n=[{key:"generateInitialState",value:function(){var e=this.props,t=e.width,n=e.breakpoints,r=e.layouts,a=e.cols,o=(0,A.getBreakpointFromWidth)(n,t),i=(0,A.getColsFromBreakpoint)(o,a),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,A.findOrGenerateResponsiveLayout)(r,n,o,o,i,s),breakpoint:o,cols:i}}},{key:"componentDidUpdate",value:function(e){this.props.width==e.width&&this.props.breakpoint===e.breakpoint&&(0,i.default)(this.props.breakpoints,e.breakpoints)&&(0,i.default)(this.props.cols,e.cols)||this.onWidthChange(e)}},{key:"onWidthChange",value:function(e){var t=this.props,n=t.breakpoints,r=t.cols,a=t.layouts,o=t.compactType,i=this.props.breakpoint||(0,A.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),c=this.state.breakpoint,l=(0,A.getColsFromBreakpoint)(i,r),u=p({},a);if(c!==i||e.breakpoints!==n||e.cols!==r){c in u||(u[c]=(0,s.cloneLayout)(this.state.layout));var d=(0,A.findOrGenerateResponsiveLayout)(u,n,i,c,l,o);d=(0,s.synchronizeLayoutWithChildren)(d,this.props.children,l,o),u[i]=d,this.props.onLayoutChange(d,u),this.props.onBreakpointChange(i,l),this.setState({breakpoint:i,layout:d,cols:l})}var f=C(this.props.margin,i),h=C(this.props.containerPadding,i);this.props.onWidthChange(this.props.width,f,l,h)}},{key:"render",value:function(){var e=this.props,t=(e.breakpoint,e.breakpoints,e.cols,e.layouts,e.margin),n=e.containerPadding,r=(e.onBreakpointChange,e.onLayoutChange,e.onWidthChange,f(e,["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"]));return a.createElement(c.default,d({},r,{margin:C(t,this.state.breakpoint),containerPadding:C(n,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&m(t.prototype,n),r&&m(t,r),l}(a.Component);t.default=E,O(E,"propTypes",{breakpoint:o.default.string,breakpoints:o.default.object,cols:o.default.object,margin:o.default.oneOfType([o.default.array,o.default.object]),containerPadding:o.default.oneOfType([o.default.array,o.default.object]),layouts:function(e,t){if("[object Object]"!==x(e[t]))throw new Error("Layout property must be an object. Received: "+x(e[t]));Object.keys(e[t]).forEach((function(t){if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,s.validateLayout)(e.layouts[t],"layouts."+t)}))},width:o.default.number.isRequired,onBreakpointChange:o.default.func,onLayoutChange:o.default.func,onWidthChange:o.default.func}),O(E,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],onBreakpointChange:s.noop,onLayoutChange:s.noop,onWidthChange:s.noop})},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;return n=t=function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,t);var n=function(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}(r);function r(){var e;l(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return g(h(e=n.call.apply(n,[this].concat(o))),"state",{width:1280}),g(h(e),"elementRef",a.createRef()),g(h(e),"mounted",!1),g(h(e),"onWindowResize",(function(){if(e.mounted){var t=e.elementRef.current;t instanceof HTMLElement&&t.offsetWidth&&e.setState({width:t.offsetWidth})}})),e}return function(e,t,n){t&&u(e.prototype,t);n&&u(e,n)}(r,[{key:"componentDidMount",value:function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var t=this.props,n=t.measureBeforeMount,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["measureBeforeMount"]);return n&&!this.mounted?a.createElement("div",{className:(0,i.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):a.createElement(e,c({innerRef:this.elementRef},r,this.state))}}]),r}(a.Component),g(t,"defaultProps",{measureBeforeMount:!1}),g(t,"propTypes",{measureBeforeMount:o.default.bool}),n};var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=A();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=s(n(18)),i=s(n(119));function s(e){return e&&e.__esModule?e:{default:e}}function A(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return A=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};function t(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{A(r.next(e))}catch(Qt){o(Qt)}}function s(e){try{A(r.throw(e))}catch(Qt){o(Qt)}}function A(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(i,s)}A((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return A([e,t])}}function A(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(Qt){o=[6,Qt],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,a){return new e(this.left+t,this.top+n,this.width+r,this.height+a)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),i=function(e){return o.fromClientRect(e.getBoundingClientRect())},s=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),a=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new o(0,0,r,a)},A=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=e.charCodeAt(n++);56320===(64512&o)?t.push(((1023&a)<<10)+(1023&o)+65536):(t.push(a),n--)}else t.push(a)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],a=-1,o="";++a<n;){var i=e[a];i<=65535?r.push(i):(i-=65536,r.push(55296+(i>>10),i%1024+56320)),(a+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),d=0;d<l.length;d++)u[l.charCodeAt(d)]=d;var f,h=function(e){var t,n,r,a,o,i=.75*e.length,s=e.length,A=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=u[e.charCodeAt(t)],r=u[e.charCodeAt(t+1)],a=u[e.charCodeAt(t+2)],o=u[e.charCodeAt(t+3)],l[A++]=n<<2|r>>4,l[A++]=(15&r)<<4|a>>2,l[A++]=(3&a)<<6|63&o;return c},p=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},g=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},m=5,b=11,v=2,w=65536>>m,y=(1<<m)-1,B=w+(1024>>m)+32,O=65536>>b,x=(1<<b-m)-1,C=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},E=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},j=function(e){var t=h(e),n=Array.isArray(t)?g(t):new Uint32Array(t),r=Array.isArray(t)?p(t):new Uint16Array(t),a=24,o=C(r,a/2,n[4]/2),i=2===n[5]?C(r,(a+n[4])/2):E(n,Math.ceil((a+n[4])/4));return new F(n[0],n[1],n[2],n[3],o,i)},F=function(){function e(e,t,n,r,a,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=a,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>m])<<v)+(e&y),this.data[t];if(e<=65535)return t=((t=this.index[w+(e-55296>>m)])<<v)+(e&y),this.data[t];if(e<this.highStart)return t=B-O+(e>>b),t=this.index[t],t+=e>>m&x,t=((t=this.index[t])<<v)+(e&y),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),_=50,Q=1,U=2,k=3,S=4,D=5,N=7,H=8,I=9,M=10,T=11,R=12,L=13,P=14,K=15,z=16,V=17,W=18,Y=19,G=20,X=21,J=22,q=23,Z=24,$=25,ee=26,te=27,ne=28,re=29,ae=30,oe=31,ie=32,se=33,Ae=34,ce=35,le=36,ue=37,de=38,fe=39,he=40,pe=41,ge=42,me=43,be="!",ve="\xd7",we="\xf7",ye=j("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),Be=[ae,le],Oe=[Q,U,k,D],xe=[M,H],Ce=[te,ee],Ee=Oe.concat(xe),je=[de,fe,he,Ae,ce],Fe=[K,L],_e=function(e,t){void 0===t&&(t="strict");var n=[],r=[],a=[];return e.forEach((function(e,o){var i=ye.get(e);if(i>_?(a.push(!0),i-=_):a.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(z);if(i===S||i===T){if(0===o)return r.push(o),n.push(ae);var s=n[o-1];return-1===Ee.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(ae))}return r.push(o),i===oe?n.push("strict"===t?X:ue):i===ge||i===re?n.push(ae):i===me?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(ue):n.push(ae):void n.push(i)})),[r,n,a]},Qe=function(e,t,n,r){var a=r[n];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var o=n;o<=r.length;){if((A=r[++o])===t)return!0;if(A!==M)break}if(a===M)for(o=n;o>0;){var i=r[--o];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var s=n;s<=r.length;){var A;if((A=r[++s])===t)return!0;if(A!==M)break}if(i!==M)break}return!1},Ue=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==M)return r;n--}return 0},ke=function(e,t,n,r,a){if(0===n[r])return ve;var o=r-1;if(Array.isArray(a)&&!0===a[o])return ve;var i=o-1,s=o+1,A=t[o],c=i>=0?t[i]:0,l=t[s];if(A===U&&l===k)return ve;if(-1!==Oe.indexOf(A))return be;if(-1!==Oe.indexOf(l))return ve;if(-1!==xe.indexOf(l))return ve;if(Ue(o,t)===H)return we;if(ye.get(e[o])===T&&(l===ue||l===ie||l===se))return ve;if(A===N||l===N)return ve;if(A===I)return ve;if(-1===[M,L,K].indexOf(A)&&l===I)return ve;if(-1!==[V,W,Y,Z,ne].indexOf(l))return ve;if(Ue(o,t)===J)return ve;if(Qe(q,J,o,t))return ve;if(Qe([V,W],X,o,t))return ve;if(Qe(R,R,o,t))return ve;if(A===M)return we;if(A===q||l===q)return ve;if(l===z||A===z)return we;if(-1!==[L,K,X].indexOf(l)||A===P)return ve;if(c===le&&-1!==Fe.indexOf(A))return ve;if(A===ne&&l===le)return ve;if(l===G&&-1!==Be.concat(G,Y,$,ue,ie,se).indexOf(A))return ve;if(-1!==Be.indexOf(l)&&A===$||-1!==Be.indexOf(A)&&l===$)return ve;if(A===te&&-1!==[ue,ie,se].indexOf(l)||-1!==[ue,ie,se].indexOf(A)&&l===ee)return ve;if(-1!==Be.indexOf(A)&&-1!==Ce.indexOf(l)||-1!==Ce.indexOf(A)&&-1!==Be.indexOf(l))return ve;if(-1!==[te,ee].indexOf(A)&&(l===$||-1!==[J,K].indexOf(l)&&t[s+1]===$)||-1!==[J,K].indexOf(A)&&l===$||A===$&&-1!==[$,ne,Z].indexOf(l))return ve;if(-1!==[$,ne,Z,V,W].indexOf(l))for(var u=o;u>=0;){if((d=t[u])===$)return ve;if(-1===[ne,Z].indexOf(d))break;u--}if(-1!==[te,ee].indexOf(l))for(u=-1!==[V,W].indexOf(A)?i:o;u>=0;){var d;if((d=t[u])===$)return ve;if(-1===[ne,Z].indexOf(d))break;u--}if(de===A&&-1!==[de,fe,Ae,ce].indexOf(l)||-1!==[fe,Ae].indexOf(A)&&-1!==[fe,he].indexOf(l)||-1!==[he,ce].indexOf(A)&&l===he)return ve;if(-1!==je.indexOf(A)&&-1!==[G,ee].indexOf(l)||-1!==je.indexOf(l)&&A===te)return ve;if(-1!==Be.indexOf(A)&&-1!==Be.indexOf(l))return ve;if(A===Z&&-1!==Be.indexOf(l))return ve;if(-1!==Be.concat($).indexOf(A)&&l===J||-1!==Be.concat($).indexOf(l)&&A===W)return ve;if(A===pe&&l===pe){for(var f=n[o],h=1;f>0&&t[--f]===pe;)h++;if(h%2!==0)return ve}return A===ie&&l===se?ve:we},Se=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=_e(e,t.lineBreak),r=n[0],a=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(a=a.map((function(e){return-1!==[$,ae,ge].indexOf(e)?ue:e}))),[r,a,"keep-all"===t.wordBreak?o.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0]},De=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===be,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ne=function(e,t){var n=A(e),r=Se(n,t),a=r[0],o=r[1],i=r[2],s=n.length,c=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var e=ve;l<s&&(e=ke(n,o,a,++l,i))===ve;);if(e!==ve||l===s){var t=new De(n,e,c,l);return c=l,{value:t,done:!1}}return{done:!0,value:null}}}};!function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(f||(f={}));var He=1,Ie=2,Me=4,Te=8,Re=10,Le=47,Pe=92,Ke=9,ze=32,Ve=34,We=61,Ye=35,Ge=36,Xe=37,Je=39,qe=40,Ze=41,$e=95,et=45,tt=33,nt=60,rt=62,at=64,ot=91,it=93,st=61,At=123,ct=63,lt=125,ut=124,dt=126,ft=128,ht=65533,pt=42,gt=43,mt=44,bt=58,vt=59,wt=46,yt=0,Bt=8,Ot=11,xt=14,Ct=31,Et=127,jt=-1,Ft=48,_t=97,Qt=101,Ut=102,kt=117,St=122,Dt=65,Nt=69,Ht=70,It=85,Mt=90,Tt=function(e){return e>=Ft&&e<=57},Rt=function(e){return e>=55296&&e<=57343},Lt=function(e){return Tt(e)||e>=Dt&&e<=Ht||e>=_t&&e<=Ut},Pt=function(e){return e>=_t&&e<=St},Kt=function(e){return e>=Dt&&e<=Mt},zt=function(e){return Pt(e)||Kt(e)},Vt=function(e){return e>=ft},Wt=function(e){return e===Re||e===Ke||e===ze},Yt=function(e){return zt(e)||Vt(e)||e===$e},Gt=function(e){return Yt(e)||Tt(e)||e===et},Xt=function(e){return e>=yt&&e<=Bt||e===Ot||e>=xt&&e<=Ct||e===Et},Jt=function(e,t){return e===Pe&&t!==Re},qt=function(e,t,n){return e===et?Yt(t)||Jt(t,n):!!Yt(e)||!(e!==Pe||!Jt(e,t))},Zt=function(e,t,n){return e===gt||e===et?!!Tt(t)||t===wt&&Tt(n):Tt(e===wt?t:e)},$t=function(e){var t=0,n=1;e[t]!==gt&&e[t]!==et||(e[t]===et&&(n=-1),t++);for(var r=[];Tt(e[t]);)r.push(e[t++]);var a=r.length?parseInt(c.apply(void 0,r),10):0;e[t]===wt&&t++;for(var o=[];Tt(e[t]);)o.push(e[t++]);var i=o.length,s=i?parseInt(c.apply(void 0,o),10):0;e[t]!==Nt&&e[t]!==Qt||t++;var A=1;e[t]!==gt&&e[t]!==et||(e[t]===et&&(A=-1),t++);for(var l=[];Tt(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(a+s*Math.pow(10,-i))*Math.pow(10,A*u)},en={type:f.LEFT_PARENTHESIS_TOKEN},tn={type:f.RIGHT_PARENTHESIS_TOKEN},nn={type:f.COMMA_TOKEN},rn={type:f.SUFFIX_MATCH_TOKEN},an={type:f.PREFIX_MATCH_TOKEN},on={type:f.COLUMN_TOKEN},sn={type:f.DASH_MATCH_TOKEN},An={type:f.INCLUDE_MATCH_TOKEN},cn={type:f.LEFT_CURLY_BRACKET_TOKEN},ln={type:f.RIGHT_CURLY_BRACKET_TOKEN},un={type:f.SUBSTRING_MATCH_TOKEN},dn={type:f.BAD_URL_TOKEN},fn={type:f.BAD_STRING_TOKEN},hn={type:f.CDO_TOKEN},pn={type:f.CDC_TOKEN},gn={type:f.COLON_TOKEN},mn={type:f.SEMICOLON_TOKEN},bn={type:f.LEFT_SQUARE_BRACKET_TOKEN},vn={type:f.RIGHT_SQUARE_BRACKET_TOKEN},wn={type:f.WHITESPACE_TOKEN},yn={type:f.EOF_TOKEN},Bn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(A(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==yn;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ve:return this.consumeStringToken(Ve);case Ye:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Gt(t)||Jt(n,r)){var a=qt(t,n,r)?Ie:He,o=this.consumeName();return{type:f.HASH_TOKEN,value:o,flags:a}}break;case Ge:if(this.peekCodePoint(0)===We)return this.consumeCodePoint(),rn;break;case Je:return this.consumeStringToken(Je);case qe:return en;case Ze:return tn;case pt:if(this.peekCodePoint(0)===We)return this.consumeCodePoint(),un;break;case gt:if(Zt(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case mt:return nn;case et:var i=e,s=this.peekCodePoint(0),A=this.peekCodePoint(1);if(Zt(i,s,A))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(qt(i,s,A))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===et&&A===rt)return this.consumeCodePoint(),this.consumeCodePoint(),pn;break;case wt:if(Zt(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Le:if(this.peekCodePoint(0)===pt)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===pt&&(l=this.consumeCodePoint())===Le)return this.consumeToken();if(l===jt)return this.consumeToken()}break;case bt:return gn;case vt:return mn;case nt:if(this.peekCodePoint(0)===tt&&this.peekCodePoint(1)===et&&this.peekCodePoint(2)===et)return this.consumeCodePoint(),this.consumeCodePoint(),hn;break;case at:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(qt(u,d,h))return o=this.consumeName(),{type:f.AT_KEYWORD_TOKEN,value:o};break;case ot:return bn;case Pe:if(Jt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case it:return vn;case st:if(this.peekCodePoint(0)===We)return this.consumeCodePoint(),an;break;case At:return cn;case lt:return ln;case kt:case It:var p=this.peekCodePoint(0),g=this.peekCodePoint(1);return p!==gt||!Lt(g)&&g!==ct||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ut:if(this.peekCodePoint(0)===We)return this.consumeCodePoint(),sn;if(this.peekCodePoint(0)===ut)return this.consumeCodePoint(),on;break;case dt:if(this.peekCodePoint(0)===We)return this.consumeCodePoint(),An;break;case jt:return yn}return Wt(e)?(this.consumeWhiteSpace(),wn):Tt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Yt(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:f.DELIM_TOKEN,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Lt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===ct&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(c.apply(void 0,e.map((function(e){return e===ct?Ft:e}))),16),a=parseInt(c.apply(void 0,e.map((function(e){return e===ct?Ht:e}))),16);return{type:f.UNICODE_RANGE_TOKEN,start:r,end:a}}var o=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===et&&Lt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];Lt(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return a=parseInt(c.apply(void 0,i),16),{type:f.UNICODE_RANGE_TOKEN,start:o,end:a}}return{type:f.UNICODE_RANGE_TOKEN,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===qe?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qe?(this.consumeCodePoint(),{type:f.FUNCTION_TOKEN,value:e}):{type:f.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jt)return{type:f.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(t===Je||t===Ve){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===f.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jt||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),dn)}for(;;){var r=this.consumeCodePoint();if(r===jt||r===Ze)return{type:f.URL_TOKEN,value:c.apply(void 0,e)};if(Wt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jt||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),dn);if(r===Ve||r===Je||r===qe||Xt(r))return this.consumeBadUrlRemnants(),dn;if(r===Pe){if(!Jt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),dn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Wt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Ze||e===jt)return;Jt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=6e4,n="";e>0;){var r=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===jt||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:f.STRING_TOKEN,value:t};if(r===Re)return this._value.splice(0,n),fn;if(r===Pe){var a=this._value[n+1];a!==jt&&void 0!==a&&(a===Re?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Jt(r,a)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=Me,n=this.peekCodePoint(0);for(n!==gt&&n!==et||e.push(this.consumeCodePoint());Tt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===wt&&Tt(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Te;Tt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===Nt||n===Qt)&&((r===gt||r===et)&&Tt(a)||Tt(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Te;Tt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[$t(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(qt(r,a,o)){var i=this.consumeName();return{type:f.DIMENSION_TOKEN,number:t,flags:n,unit:i}}return r===Xe?(this.consumeCodePoint(),{type:f.PERCENTAGE_TOKEN,number:t,flags:n}):{type:f.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Lt(e)){for(var t=c(e);Lt(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Wt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Rt(n)||n>1114111?ht:n}return e===jt?ht:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Gt(t))e+=c(t);else{if(!Jt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),On=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Bn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===f.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===f.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===f.WHITESPACE_TOKEN);if(e.type===f.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===f.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case f.LEFT_CURLY_BRACKET_TOKEN:case f.LEFT_SQUARE_BRACKET_TOKEN:case f.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case f.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===f.EOF_TOKEN||kn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:f.FUNCTION};;){var n=this.consumeToken();if(n.type===f.EOF_TOKEN||n.type===f.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?yn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),xn=function(e){return e.type===f.DIMENSION_TOKEN},Cn=function(e){return e.type===f.NUMBER_TOKEN},En=function(e){return e.type===f.IDENT_TOKEN},jn=function(e){return e.type===f.STRING_TOKEN},Fn=function(e,t){return En(e)&&e.value===t},_n=function(e){return e.type!==f.WHITESPACE_TOKEN},Qn=function(e){return e.type!==f.WHITESPACE_TOKEN&&e.type!==f.COMMA_TOKEN},Un=function(e){var t=[],n=[];return e.forEach((function(e){if(e.type===f.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==f.WHITESPACE_TOKEN&&n.push(e)})),n.length&&t.push(n),t},kn=function(e,t){return t===f.LEFT_CURLY_BRACKET_TOKEN&&e.type===f.RIGHT_CURLY_BRACKET_TOKEN||t===f.LEFT_SQUARE_BRACKET_TOKEN&&e.type===f.RIGHT_SQUARE_BRACKET_TOKEN||t===f.LEFT_PARENTHESIS_TOKEN&&e.type===f.RIGHT_PARENTHESIS_TOKEN},Sn=function(e){return e.type===f.NUMBER_TOKEN||e.type===f.DIMENSION_TOKEN},Dn=function(e){return e.type===f.PERCENTAGE_TOKEN||Sn(e)},Nn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Hn={type:f.NUMBER_TOKEN,number:0,flags:Me},In={type:f.PERCENTAGE_TOKEN,number:50,flags:Me},Mn={type:f.PERCENTAGE_TOKEN,number:100,flags:Me},Tn=function(e,t,n){var r=e[0],a=e[1];return[Rn(r,t),Rn("undefined"!==typeof a?a:r,n)]},Rn=function(e,t){if(e.type===f.PERCENTAGE_TOKEN)return e.number/100*t;if(xn(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Ln="deg",Pn="grad",Kn="rad",zn="turn",Vn={name:"angle",parse:function(e){if(e.type===f.DIMENSION_TOKEN)switch(e.unit){case Ln:return Math.PI*e.number/180;case Pn:return Math.PI/200*e.number;case Kn:return e.number;case zn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},Wn=function(e){return e.type===f.DIMENSION_TOKEN&&(e.unit===Ln||e.unit===Pn||e.unit===Kn||e.unit===zn)},Yn=function(e){switch(e.filter(En).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Hn,Hn];case"to top":case"bottom":return Gn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Hn,Mn];case"to right":case"left":return Gn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Mn,Mn];case"to bottom":case"top":return Gn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Mn,Hn];case"to left":case"right":return Gn(270)}return 0},Gn=function(e){return Math.PI*e/180},Xn={name:"color",parse:function(e){if(e.type===f.FUNCTION){var t=or[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===f.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),a=e.value.substring(2,3);return Zn(parseInt(n+n,16),parseInt(r+r,16),parseInt(a+a,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return Zn(parseInt(n+n,16),parseInt(r+r,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),a=e.value.substring(4,6),Zn(parseInt(n,16),parseInt(r,16),parseInt(a,16),1);if(8===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),Zn(parseInt(n,16),parseInt(r,16),parseInt(a,16),parseInt(o,16)/255)}if(e.type===f.IDENT_TOKEN){var i=ir[e.value.toUpperCase()];if("undefined"!==typeof i)return i}return ir.TRANSPARENT}},Jn=function(e){return 0===(255&e)},qn=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+r+","+n+","+t/255+")":"rgb("+a+","+r+","+n+")"},Zn=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},$n=function(e,t){if(e.type===f.NUMBER_TOKEN)return e.number;if(e.type===f.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},er=function(e){var t=e.filter(Qn);if(3===t.length){var n=t.map($n),r=n[0],a=n[1],o=n[2];return Zn(r,a,o,1)}if(4===t.length){var i=t.map($n),s=(r=i[0],a=i[1],o=i[2],i[3]);return Zn(r,a,o,s)}return 0};function tr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var nr,rr,ar=function(e){var t=e.filter(Qn),n=t[0],r=t[1],a=t[2],o=t[3],i=(n.type===f.NUMBER_TOKEN?Gn(n.number):Vn.parse(n))/(2*Math.PI),s=Dn(r)?r.number/100:0,A=Dn(a)?a.number/100:0,c="undefined"!==typeof o&&Dn(o)?Rn(o,1):1;if(0===s)return Zn(255*A,255*A,255*A,1);var l=A<=.5?A*(s+1):A+s-A*s,u=2*A-l,d=tr(u,l,i+1/3),h=tr(u,l,i),p=tr(u,l,i-1/3);return Zn(255*d,255*h,255*p,c)},or={hsl:ar,hsla:ar,rgb:er,rgba:er},ir={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(nr||(nr={})),function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(rr||(rr={}));var sr,Ar={name:"background-clip",initialValue:"border-box",prefix:!1,type:nr.LIST,parse:function(e){return e.map((function(e){if(En(e))switch(e.value){case"padding-box":return rr.PADDING_BOX;case"content-box":return rr.CONTENT_BOX}return rr.BORDER_BOX}))}},cr={name:"background-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},lr=function(e){var t=Xn.parse(e[0]),n=e[1];return n&&Dn(n)?{color:t,stop:n}:{color:t,stop:null}},ur=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Hn),null===r.stop&&(r.stop=Mn);for(var a=[],o=0,i=0;i<e.length;i++){var s=e[i].stop;if(null!==s){var A=Rn(s,t);A>o?a.push(A):a.push(o),o=A}else a.push(null)}var c=null;for(i=0;i<a.length;i++){var l=a[i];if(null===l)null===c&&(c=i);else if(null!==c){for(var u=i-c,d=(l-a[c-1])/(u+1),f=1;f<=u;f++)a[c+f-1]=d*f;c=null}}return e.map((function(e,n){return{color:e.color,stop:Math.max(Math.min(1,a[n]/t),0)}}))},dr=function(e,t,n){var r=t/2,a=n/2,o=Rn(e[0],t)-r,i=a-Rn(e[1],n);return(Math.atan2(i,o)+2*Math.PI)%(2*Math.PI)},fr=function(e,t,n){var r="number"===typeof e?e:dr(e,t,n),a=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,i=n/2,s=a/2,A=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[a,o-c,o+c,i-A,i+A]},hr=function(e,t){return Math.sqrt(e*e+t*t)},pr=function(e,t,n,r,a){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var o=t[0],i=t[1],s=hr(n-o,r-i);return(a?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e}),{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},gr=function(e,t,n,r,a){var o=0,i=0;switch(e.size){case qr.CLOSEST_SIDE:e.shape===Jr.CIRCLE?o=i=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-a)):e.shape===Jr.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-r)),i=Math.min(Math.abs(n),Math.abs(n-a)));break;case qr.CLOSEST_CORNER:if(e.shape===Jr.CIRCLE)o=i=Math.min(hr(t,n),hr(t,n-a),hr(t-r,n),hr(t-r,n-a));else if(e.shape===Jr.ELLIPSE){var s=Math.min(Math.abs(n),Math.abs(n-a))/Math.min(Math.abs(t),Math.abs(t-r)),A=pr(r,a,t,n,!0),c=A[0],l=A[1];i=s*(o=hr(c-t,(l-n)/s))}break;case qr.FARTHEST_SIDE:e.shape===Jr.CIRCLE?o=i=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-a)):e.shape===Jr.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-r)),i=Math.max(Math.abs(n),Math.abs(n-a)));break;case qr.FARTHEST_CORNER:if(e.shape===Jr.CIRCLE)o=i=Math.max(hr(t,n),hr(t,n-a),hr(t-r,n),hr(t-r,n-a));else if(e.shape===Jr.ELLIPSE){s=Math.max(Math.abs(n),Math.abs(n-a))/Math.max(Math.abs(t),Math.abs(t-r));var u=pr(r,a,t,n,!1);c=u[0],l=u[1],i=s*(o=hr(c-t,(l-n)/s))}}return Array.isArray(e.size)&&(o=Rn(e.size[0],r),i=2===e.size.length?Rn(e.size[1],a):o),[o,i]},mr=function(e){var t=Gn(180),n=[];return Un(e).forEach((function(e,r){if(0===r){var a=e[0];if(a.type===f.IDENT_TOKEN&&"to"===a.value)return void(t=Yn(e));if(Wn(a))return void(t=Vn.parse(a))}var o=lr(e);n.push(o)})),{angle:t,stops:n,type:sr.LINEAR_GRADIENT}},br=function(e){var t=Gn(180),n=[];return Un(e).forEach((function(e,r){if(0===r){var a=e[0];if(a.type===f.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(t=Yn(e));if(Wn(a))return void(t=(Vn.parse(a)+Gn(270))%Gn(360))}var o=lr(e);n.push(o)})),{angle:t,stops:n,type:sr.LINEAR_GRADIENT}},vr=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=t+"px",r.style.display="block",e.body.appendChild(r),n.selectNode(r);var a=n.getBoundingClientRect(),o=Math.round(a.height);if(e.body.removeChild(r),o===t)return!0}}return!1},wr=function(){return"undefined"!==typeof(new Image).crossOrigin},yr=function(){return"string"===typeof(new XMLHttpRequest).responseType},Br=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(Qt){return!1}return!0},Or=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},xr=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var a=new Image,o=t.toDataURL();a.src=o;var i=Cr(n,n,0,0,a);return r.fillStyle="red",r.fillRect(0,0,n,n),Er(i).then((function(t){r.drawImage(t,0,0);var a=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var i=e.createElement("div");return i.style.backgroundImage="url("+o+")",i.style.height=n+"px",Or(a)?Er(Cr(n,n,0,0,i)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),Or(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},Cr=function(e,t,n,r,a){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(a),i},Er=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},jr={get SUPPORT_RANGE_BOUNDS(){var e=vr(document);return Object.defineProperty(jr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Br(document);return Object.defineProperty(jr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?xr(document):Promise.resolve(!1);return Object.defineProperty(jr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=wr();return Object.defineProperty(jr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=yr();return Object.defineProperty(jr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jr,"SUPPORT_CORS_XHR",{value:e}),e}},Fr=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if("undefined"===typeof n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),_r=function(){function e(){}return e.create=function(t,n){return e._caches[t]=new Qr(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if("undefined"!==typeof n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),Qr=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ir(e)||Dr(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,i=this;return a(this,(function(a){switch(a.label){case 0:return t=_r.isSameOrigin(e),n=!Nr(e)&&!0===this._options.useCORS&&jr.SUPPORT_CORS_IMAGES&&!t,r=!Nr(e)&&!t&&"string"===typeof this._options.proxy&&jr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Nr(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=a.sent(),a.label=2;case 2:return Fr.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Hr(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout((function(){return e(r)}),500),i._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,a.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(a,o){var i=jr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===i)a(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return a(e.result)}),!1),e.addEventListener("error",(function(e){return o(e)}),!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o,s.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),t._options.imageTimeout){var A=t._options.imageTimeout;s.timeout=A,s.ontimeout=function(){return o("Timed out ("+A+"ms) proxying "+r)}}s.send()}))},e}(),Ur=/^data:image\/svg\+xml/i,kr=/^data:image\/.*;base64,/i,Sr=/^data:image\/.*/i,Dr=function(e){return jr.SUPPORT_SVG_DRAWING||!Mr(e)},Nr=function(e){return Sr.test(e)},Hr=function(e){return kr.test(e)},Ir=function(e){return"blob"===e.substr(0,4)},Mr=function(e){return"svg"===e.substr(-3).toLowerCase()||Ur.test(e)},Tr=function(e){var t=Gn(180),n=[],r=sr.LINEAR_GRADIENT,a=Jr.CIRCLE,o=qr.FARTHEST_CORNER,i=[];return Un(e).forEach((function(e,t){var a=e[0];if(0===t){if(En(a)&&"linear"===a.value)return void(r=sr.LINEAR_GRADIENT);if(En(a)&&"radial"===a.value)return void(r=sr.RADIAL_GRADIENT)}if(a.type===f.FUNCTION)if("from"===a.name){var o=Xn.parse(a.values[0]);n.push({stop:Hn,color:o})}else if("to"===a.name)o=Xn.parse(a.values[0]),n.push({stop:Mn,color:o});else if("color-stop"===a.name){var i=a.values.filter(Qn);if(2===i.length){o=Xn.parse(i[1]);var s=i[0];Cn(s)&&n.push({stop:{type:f.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),r===sr.LINEAR_GRADIENT?{angle:(t+Gn(180))%Gn(360),stops:n,type:r}:{size:o,shape:a,stops:n,position:i,type:r}},Rr="closest-side",Lr="farthest-side",Pr="closest-corner",Kr="farthest-corner",zr="circle",Vr="ellipse",Wr="cover",Yr="contain",Gr=function(e){var t=Jr.CIRCLE,n=qr.FARTHEST_CORNER,r=[],a=[];return Un(e).forEach((function(e,o){var i=!0;if(0===o){var s=!1;i=e.reduce((function(e,r){if(s)if(En(r))switch(r.value){case"center":return a.push(In),e;case"top":case"left":return a.push(Hn),e;case"right":case"bottom":return a.push(Mn),e}else(Dn(r)||Sn(r))&&a.push(r);else if(En(r))switch(r.value){case zr:return t=Jr.CIRCLE,!1;case Vr:return t=Jr.ELLIPSE,!1;case"at":return s=!0,!1;case Rr:return n=qr.CLOSEST_SIDE,!1;case Wr:case Lr:return n=qr.FARTHEST_SIDE,!1;case Yr:case Pr:return n=qr.CLOSEST_CORNER,!1;case Kr:return n=qr.FARTHEST_CORNER,!1}else if(Sn(r)||Dn(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e}),i)}if(i){var A=lr(e);r.push(A)}})),{size:n,shape:t,stops:r,position:a,type:sr.RADIAL_GRADIENT}},Xr=function(e){var t=Jr.CIRCLE,n=qr.FARTHEST_CORNER,r=[],a=[];return Un(e).forEach((function(e,o){var i=!0;if(0===o?i=e.reduce((function(e,t){if(En(t))switch(t.value){case"center":return a.push(In),!1;case"top":case"left":return a.push(Hn),!1;case"right":case"bottom":return a.push(Mn),!1}else if(Dn(t)||Sn(t))return a.push(t),!1;return e}),i):1===o&&(i=e.reduce((function(e,r){if(En(r))switch(r.value){case zr:return t=Jr.CIRCLE,!1;case Vr:return t=Jr.ELLIPSE,!1;case Yr:case Rr:return n=qr.CLOSEST_SIDE,!1;case Lr:return n=qr.FARTHEST_SIDE,!1;case Pr:return n=qr.CLOSEST_CORNER,!1;case Wr:case Kr:return n=qr.FARTHEST_CORNER,!1}else if(Sn(r)||Dn(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e}),i)),i){var s=lr(e);r.push(s)}})),{size:n,shape:t,stops:r,position:a,type:sr.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(sr||(sr={}));var Jr,qr,Zr=function(e){return e.type===sr.LINEAR_GRADIENT},$r=function(e){return e.type===sr.RADIAL_GRADIENT};(function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"})(Jr||(Jr={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(qr||(qr={}));var ea={name:"image",parse:function(e){if(e.type===f.URL_TOKEN){var t={url:e.value,type:sr.URL};return _r.getInstance().addImage(e.value),t}if(e.type===f.FUNCTION){var n=ra[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")}};function ta(e){return e.type!==f.FUNCTION||ra[e.name]}var na,ra={"linear-gradient":mr,"-moz-linear-gradient":br,"-ms-linear-gradient":br,"-o-linear-gradient":br,"-webkit-linear-gradient":br,"radial-gradient":Gr,"-moz-radial-gradient":Xr,"-ms-radial-gradient":Xr,"-o-radial-gradient":Xr,"-webkit-radial-gradient":Xr,"-webkit-gradient":Tr},aa={name:"background-image",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===f.IDENT_TOKEN&&"none"===t.value?[]:e.filter((function(e){return Qn(e)&&ta(e)})).map(ea.parse)}},oa={name:"background-origin",initialValue:"border-box",prefix:!1,type:nr.LIST,parse:function(e){return e.map((function(e){if(En(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ia={name:"background-position",initialValue:"0% 0%",type:nr.LIST,prefix:!1,parse:function(e){return Un(e).map((function(e){return e.filter(Dn)})).map(Nn)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(na||(na={}));var sa,Aa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:nr.LIST,parse:function(e){return Un(e).map((function(e){return e.filter(En).map((function(e){return e.value})).join(" ")})).map(ca)}},ca=function(e){switch(e){case"no-repeat":return na.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return na.REPEAT_X;case"repeat-y":case"no-repeat repeat":return na.REPEAT_Y;case"repeat":default:return na.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(sa||(sa={}));var la,ua={name:"background-size",initialValue:"0",prefix:!1,type:nr.LIST,parse:function(e){return Un(e).map((function(e){return e.filter(da)}))}},da=function(e){return En(e)||Dn(e)},fa=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"}},ha=fa("top"),pa=fa("right"),ga=fa("bottom"),ma=fa("left"),ba=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:nr.LIST,parse:function(e){return Nn(e.filter(Dn))}}},va=ba("top-left"),wa=ba("top-right"),ya=ba("bottom-right"),Ba=ba("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(la||(la={}));var Oa,xa=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"none":return la.NONE}return la.SOLID}}},Ca=xa("top"),Ea=xa("right"),ja=xa("bottom"),Fa=xa("left"),_a=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:nr.VALUE,prefix:!1,parse:function(e){return xn(e)?e.number:0}}},Qa=_a("top"),Ua=_a("right"),ka=_a("bottom"),Sa=_a("left"),Da={name:"color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},Na={name:"display",initialValue:"inline-block",prefix:!1,type:nr.LIST,parse:function(e){return e.filter(En).reduce((function(e,t){return e|Ha(t.value)}),0)}},Ha=function(e){switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(Oa||(Oa={}));var Ia,Ma={name:"float",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"left":return Oa.LEFT;case"right":return Oa.RIGHT;case"inline-start":return Oa.INLINE_START;case"inline-end":return Oa.INLINE_END}return Oa.NONE}},Ta={name:"letter-spacing",initialValue:"0",prefix:!1,type:nr.VALUE,parse:function(e){return e.type===f.IDENT_TOKEN&&"normal"===e.value?0:e.type===f.NUMBER_TOKEN||e.type===f.DIMENSION_TOKEN?e.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Ia||(Ia={}));var Ra,La={name:"line-break",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"strict":return Ia.STRICT;case"normal":default:return Ia.NORMAL}}},Pa={name:"line-height",initialValue:"normal",prefix:!1,type:nr.TOKEN_VALUE},Ka=function(e,t){return En(e)&&"normal"===e.value?1.2*t:e.type===f.NUMBER_TOKEN?t*e.number:Dn(e)?Rn(e,t):t},za={name:"list-style-image",initialValue:"none",type:nr.VALUE,prefix:!1,parse:function(e){return e.type===f.IDENT_TOKEN&&"none"===e.value?null:ea.parse(e)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Ra||(Ra={}));var Va,Wa={name:"list-style-position",initialValue:"outside",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"inside":return Ra.INSIDE;case"outside":default:return Ra.OUTSIDE}}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Va||(Va={}));var Ya,Ga={name:"list-style-type",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"disc":return Va.DISC;case"circle":return Va.CIRCLE;case"square":return Va.SQUARE;case"decimal":return Va.DECIMAL;case"cjk-decimal":return Va.CJK_DECIMAL;case"decimal-leading-zero":return Va.DECIMAL_LEADING_ZERO;case"lower-roman":return Va.LOWER_ROMAN;case"upper-roman":return Va.UPPER_ROMAN;case"lower-greek":return Va.LOWER_GREEK;case"lower-alpha":return Va.LOWER_ALPHA;case"upper-alpha":return Va.UPPER_ALPHA;case"arabic-indic":return Va.ARABIC_INDIC;case"armenian":return Va.ARMENIAN;case"bengali":return Va.BENGALI;case"cambodian":return Va.CAMBODIAN;case"cjk-earthly-branch":return Va.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Va.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Va.CJK_IDEOGRAPHIC;case"devanagari":return Va.DEVANAGARI;case"ethiopic-numeric":return Va.ETHIOPIC_NUMERIC;case"georgian":return Va.GEORGIAN;case"gujarati":return Va.GUJARATI;case"gurmukhi":return Va.GURMUKHI;case"hebrew":return Va.HEBREW;case"hiragana":return Va.HIRAGANA;case"hiragana-iroha":return Va.HIRAGANA_IROHA;case"japanese-formal":return Va.JAPANESE_FORMAL;case"japanese-informal":return Va.JAPANESE_INFORMAL;case"kannada":return Va.KANNADA;case"katakana":return Va.KATAKANA;case"katakana-iroha":return Va.KATAKANA_IROHA;case"khmer":return Va.KHMER;case"korean-hangul-formal":return Va.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Va.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Va.KOREAN_HANJA_INFORMAL;case"lao":return Va.LAO;case"lower-armenian":return Va.LOWER_ARMENIAN;case"malayalam":return Va.MALAYALAM;case"mongolian":return Va.MONGOLIAN;case"myanmar":return Va.MYANMAR;case"oriya":return Va.ORIYA;case"persian":return Va.PERSIAN;case"simp-chinese-formal":return Va.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Va.SIMP_CHINESE_INFORMAL;case"tamil":return Va.TAMIL;case"telugu":return Va.TELUGU;case"thai":return Va.THAI;case"tibetan":return Va.TIBETAN;case"trad-chinese-formal":return Va.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Va.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Va.UPPER_ARMENIAN;case"disclosure-open":return Va.DISCLOSURE_OPEN;case"disclosure-closed":return Va.DISCLOSURE_CLOSED;case"none":default:return Va.NONE}}},Xa=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:nr.TOKEN_VALUE}},Ja=Xa("top"),qa=Xa("right"),Za=Xa("bottom"),$a=Xa("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(Ya||(Ya={}));var eo,to={name:"overflow",initialValue:"visible",prefix:!1,type:nr.LIST,parse:function(e){return e.filter(En).map((function(e){switch(e.value){case"hidden":return Ya.HIDDEN;case"scroll":return Ya.SCROLL;case"auto":return Ya.AUTO;case"visible":default:return Ya.VISIBLE}}))}};!function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(eo||(eo={}));var no,ro={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return eo.BREAK_WORD;case"normal":default:return eo.NORMAL}}},ao=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:nr.TYPE_VALUE,format:"length-percentage"}},oo=ao("top"),io=ao("right"),so=ao("bottom"),Ao=ao("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(no||(no={}));var co,lo={name:"text-align",initialValue:"left",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"right":return no.RIGHT;case"center":case"justify":return no.CENTER;case"left":default:return no.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(co||(co={}));var uo,fo={name:"position",initialValue:"static",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"relative":return co.RELATIVE;case"absolute":return co.ABSOLUTE;case"fixed":return co.FIXED;case"sticky":return co.STICKY}return co.STATIC}},ho={name:"text-shadow",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(e){return 1===e.length&&Fn(e[0],"none")?[]:Un(e).map((function(e){for(var t={color:ir.TRANSPARENT,offsetX:Hn,offsetY:Hn,blur:Hn},n=0,r=0;r<e.length;r++){var a=e[r];Sn(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:t.blur=a,n++):t.color=Xn.parse(a)}return t}))}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(uo||(uo={}));var po,go={name:"text-transform",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return uo.UPPERCASE;case"lowercase":return uo.LOWERCASE;case"capitalize":return uo.CAPITALIZE}return uo.NONE}},mo={name:"transform",initialValue:"none",prefix:!0,type:nr.VALUE,parse:function(e){if(e.type===f.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===f.FUNCTION){var t=bo[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},bo={matrix:function(e){var t=e.filter((function(e){return e.type===f.NUMBER_TOKEN})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return e.type===f.NUMBER_TOKEN})).map((function(e){return e.number})),n=t[0],r=t[1],a=(t[2],t[3],t[4]),o=t[5],i=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),s=t[13];return t[14],t[15],16===t.length?[n,r,a,o,i,s]:null}},vo={type:f.PERCENTAGE_TOKEN,number:50,flags:Me},wo=[vo,vo],yo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:nr.LIST,parse:function(e){var t=e.filter(Dn);return 2!==t.length?wo:[t[0],t[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(po||(po={}));var Bo,Oo={name:"visible",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return po.HIDDEN;case"collapse":return po.COLLAPSE;case"visible":default:return po.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(Bo||(Bo={}));var xo,Co={name:"word-break",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return Bo.BREAK_ALL;case"keep-all":return Bo.KEEP_ALL;case"normal":default:return Bo.NORMAL}}},Eo={name:"z-index",initialValue:"auto",prefix:!1,type:nr.VALUE,parse:function(e){if(e.type===f.IDENT_TOKEN)return{auto:!0,order:0};if(Cn(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},jo={name:"opacity",initialValue:"1",type:nr.VALUE,prefix:!1,parse:function(e){return Cn(e)?e.number:1}},Fo={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},_o={name:"text-decoration-line",initialValue:"none",prefix:!1,type:nr.LIST,parse:function(e){return e.filter(En).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},Qo={name:"font-family",initialValue:"",prefix:!1,type:nr.LIST,parse:function(e){var t=[],n=[];return e.forEach((function(e){switch(e.type){case f.IDENT_TOKEN:case f.STRING_TOKEN:t.push(e.value);break;case f.NUMBER_TOKEN:t.push(e.number.toString());break;case f.COMMA_TOKEN:n.push(t.join(" ")),t.length=0}})),t.length&&n.push(t.join(" ")),n.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},Uo={name:"font-size",initialValue:"0",prefix:!1,type:nr.TYPE_VALUE,format:"length"},ko={name:"font-weight",initialValue:"normal",type:nr.VALUE,prefix:!1,parse:function(e){if(Cn(e))return e.number;if(En(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},So={name:"font-variant",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(e){return e.filter(En).map((function(e){return e.value}))}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(xo||(xo={}));var Do,No={name:"font-style",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return xo.OBLIQUE;case"italic":return xo.ITALIC;case"normal":default:return xo.NORMAL}}},Ho=function(e,t){return 0!==(e&t)},Io={name:"content",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===f.IDENT_TOKEN&&"none"===t.value?[]:e}},Mo={name:"counter-increment",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===f.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],r=e.filter(_n),a=0;a<r.length;a++){var o=r[a],i=r[a+1];if(o.type===f.IDENT_TOKEN){var s=i&&Cn(i)?i.number:1;n.push({counter:o.value,increment:s})}}return n}},To={name:"counter-reset",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(_n),r=0;r<n.length;r++){var a=n[r],o=n[r+1];if(En(a)&&"none"!==a.value){var i=o&&Cn(o)?o.number:0;t.push({counter:a.value,reset:i})}}return t}},Ro={name:"quotes",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===f.IDENT_TOKEN&&"none"===t.value)return null;var n=[],r=e.filter(jn);if(r.length%2!==0)return null;for(var a=0;a<r.length;a+=2){var o=r[a].value,i=r[a+1].value;n.push({open:o,close:i})}return n}},Lo=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Po={name:"box-shadow",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(e){return 1===e.length&&Fn(e[0],"none")?[]:Un(e).map((function(e){for(var t={color:255,offsetX:Hn,offsetY:Hn,blur:Hn,spread:Hn,inset:!1},n=0,r=0;r<e.length;r++){var a=e[r];Fn(a,"inset")?t.inset=!0:Sn(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:2===n?t.blur=a:t.spread=a,n++):t.color=Xn.parse(a)}return t}))}},Ko=function(){function e(e){this.backgroundClip=Wo(Ar,e.backgroundClip),this.backgroundColor=Wo(cr,e.backgroundColor),this.backgroundImage=Wo(aa,e.backgroundImage),this.backgroundOrigin=Wo(oa,e.backgroundOrigin),this.backgroundPosition=Wo(ia,e.backgroundPosition),this.backgroundRepeat=Wo(Aa,e.backgroundRepeat),this.backgroundSize=Wo(ua,e.backgroundSize),this.borderTopColor=Wo(ha,e.borderTopColor),this.borderRightColor=Wo(pa,e.borderRightColor),this.borderBottomColor=Wo(ga,e.borderBottomColor),this.borderLeftColor=Wo(ma,e.borderLeftColor),this.borderTopLeftRadius=Wo(va,e.borderTopLeftRadius),this.borderTopRightRadius=Wo(wa,e.borderTopRightRadius),this.borderBottomRightRadius=Wo(ya,e.borderBottomRightRadius),this.borderBottomLeftRadius=Wo(Ba,e.borderBottomLeftRadius),this.borderTopStyle=Wo(Ca,e.borderTopStyle),this.borderRightStyle=Wo(Ea,e.borderRightStyle),this.borderBottomStyle=Wo(ja,e.borderBottomStyle),this.borderLeftStyle=Wo(Fa,e.borderLeftStyle),this.borderTopWidth=Wo(Qa,e.borderTopWidth),this.borderRightWidth=Wo(Ua,e.borderRightWidth),this.borderBottomWidth=Wo(ka,e.borderBottomWidth),this.borderLeftWidth=Wo(Sa,e.borderLeftWidth),this.boxShadow=Wo(Po,e.boxShadow),this.color=Wo(Da,e.color),this.display=Wo(Na,e.display),this.float=Wo(Ma,e.cssFloat),this.fontFamily=Wo(Qo,e.fontFamily),this.fontSize=Wo(Uo,e.fontSize),this.fontStyle=Wo(No,e.fontStyle),this.fontVariant=Wo(So,e.fontVariant),this.fontWeight=Wo(ko,e.fontWeight),this.letterSpacing=Wo(Ta,e.letterSpacing),this.lineBreak=Wo(La,e.lineBreak),this.lineHeight=Wo(Pa,e.lineHeight),this.listStyleImage=Wo(za,e.listStyleImage),this.listStylePosition=Wo(Wa,e.listStylePosition),this.listStyleType=Wo(Ga,e.listStyleType),this.marginTop=Wo(Ja,e.marginTop),this.marginRight=Wo(qa,e.marginRight),this.marginBottom=Wo(Za,e.marginBottom),this.marginLeft=Wo($a,e.marginLeft),this.opacity=Wo(jo,e.opacity);var t=Wo(to,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Wo(ro,e.overflowWrap),this.paddingTop=Wo(oo,e.paddingTop),this.paddingRight=Wo(io,e.paddingRight),this.paddingBottom=Wo(so,e.paddingBottom),this.paddingLeft=Wo(Ao,e.paddingLeft),this.position=Wo(fo,e.position),this.textAlign=Wo(lo,e.textAlign),this.textDecorationColor=Wo(Fo,e.textDecorationColor||e.color),this.textDecorationLine=Wo(_o,e.textDecorationLine),this.textShadow=Wo(ho,e.textShadow),this.textTransform=Wo(go,e.textTransform),this.transform=Wo(mo,e.transform),this.transformOrigin=Wo(yo,e.transformOrigin),this.visibility=Wo(Oo,e.visibility),this.wordBreak=Wo(Co,e.wordBreak),this.zIndex=Wo(Eo,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===po.VISIBLE},e.prototype.isTransparent=function(){return Jn(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==co.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==Oa.NONE},e.prototype.isInlineLevel=function(){return Ho(this.display,4)||Ho(this.display,33554432)||Ho(this.display,268435456)||Ho(this.display,536870912)||Ho(this.display,67108864)||Ho(this.display,134217728)},e}(),zo=function(){function e(e){this.content=Wo(Io,e.content),this.quotes=Wo(Ro,e.quotes)}return e}(),Vo=function(){function e(e){this.counterIncrement=Wo(Mo,e.counterIncrement),this.counterReset=Wo(To,e.counterReset)}return e}(),Wo=function(e,t){var n=new Bn,r=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;n.write(r);var a=new On(n.read());switch(e.type){case nr.IDENT_VALUE:var o=a.parseComponentValue();return e.parse(En(o)?o.value:e.initialValue);case nr.VALUE:return e.parse(a.parseComponentValue());case nr.LIST:return e.parse(a.parseComponentValues());case nr.TOKEN_VALUE:return a.parseComponentValue();case nr.TYPE_VALUE:switch(e.format){case"angle":return Vn.parse(a.parseComponentValue());case"color":return Xn.parse(a.parseComponentValue());case"image":return ea.parse(a.parseComponentValue());case"length":var i=a.parseComponentValue();return Sn(i)?i:Hn;case"length-percentage":var s=a.parseComponentValue();return Dn(s)?s:Hn}}throw new Error("Attempting to parse unsupported css format type "+e.format)},Yo=function(){function e(e){this.styles=new Ko(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Qi(e)&&(e.style.transform="none"),this.bounds=i(e),this.flags=0}return e}(),Go=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Xo=function(e,t,n){var r=Zo(e,t),a=[],o=0;return r.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(jr.SUPPORT_RANGE_BOUNDS)a.push(new Go(e,qo(n,o,e.length)));else{var r=n.splitText(e.length);a.push(new Go(e,Jo(n))),n=r}else jr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));o+=e.length})),a},Jo=function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var a=i(n);return n.firstChild&&r.replaceChild(n.firstChild,n),a}}return new o(0,0,0,0)},qo=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var a=r.createRange();return a.setStart(e,t),a.setEnd(e,t+n),o.fromClientRect(a.getBoundingClientRect())},Zo=function(e,t){return 0!==t.letterSpacing?A(e).map((function(e){return c(e)})):$o(e,t)},$o=function(e,t){for(var n,r=Ne(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===eo.BREAK_WORD?"break-word":t.wordBreak}),a=[];!(n=r.next()).done;)n.value&&a.push(n.value.slice());return a},ei=function(){function e(e,t){this.text=ti(e.data,t.textTransform),this.textBounds=Xo(this.text,t,e)}return e}(),ti=function(e,t){switch(t){case uo.LOWERCASE:return e.toLowerCase();case uo.CAPITALIZE:return e.replace(ni,ri);case uo.UPPERCASE:return e.toUpperCase();default:return e}},ni=/(^|\s|:|-|\(|\))([a-z])/g,ri=function(e,t,n){return e.length>0?t+n.toUpperCase():e},ai=function(e){function n(t){var n=e.call(this,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,_r.getInstance().addImage(n.src),n}return t(n,e),n}(Yo),oi=function(e){function n(t){var n=e.call(this,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return t(n,e),n}(Yo),ii=function(e){function n(t){var n=e.call(this,t)||this,r=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,_r.getInstance().addImage(n.svg),n}return t(n,e),n}(Yo),si=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(Yo),Ai=function(e){function n(t){var n=e.call(this,t)||this;return n.start=t.start,n.reversed="boolean"===typeof t.reversed&&!0===t.reversed,n}return t(n,e),n}(Yo),ci=[{type:f.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],li=[{type:f.PERCENTAGE_TOKEN,flags:0,number:50}],ui=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},di=function(e){var t=e.type===pi?new Array(e.value.length+1).join("\u2022"):e.value;return 0===t.length?e.placeholder||"":t},fi="checkbox",hi="radio",pi="password",gi=707406591,mi=function(e){function n(t){var n=e.call(this,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=di(t),n.type!==fi&&n.type!==hi||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=la.SOLID,n.styles.backgroundClip=[rr.BORDER_BOX],n.styles.backgroundOrigin=[0],n.bounds=ui(n.bounds)),n.type){case fi:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ci;break;case hi:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=li}return n}return t(n,e),n}(Yo),bi=function(e){function n(t){var n=e.call(this,t)||this,r=t.options[t.selectedIndex||0];return n.value=r&&r.text||"",n}return t(n,e),n}(Yo),vi=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(Yo),wi=function(e){return Xn.parse(On.create(e).parseComponentValue())},yi=function(e){function n(t){var n=e.call(this,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ci(t.contentWindow.document.documentElement);var r=t.contentWindow.document.documentElement?wi(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):ir.TRANSPARENT,a=t.contentWindow.document.body?wi(getComputedStyle(t.contentWindow.document.body).backgroundColor):ir.TRANSPARENT;n.backgroundColor=Jn(r)?Jn(a)?n.styles.backgroundColor:a:r}}catch(Qt){}return n}return t(n,e),n}(Yo),Bi=["OL","UL","MENU"],Oi=function e(t,n,r){for(var a=t.firstChild,o=void 0;a;a=o)if(o=a.nextSibling,Fi(a)&&a.data.trim().length>0)n.textNodes.push(new ei(a,n.styles));else if(_i(a)){var i=xi(a);i.styles.isVisible()&&(Ei(a,i,r)?i.flags|=4:ji(i.styles)&&(i.flags|=2),-1!==Bi.indexOf(a.tagName)&&(i.flags|=8),n.elements.push(i),Ki(a)||Hi(a)||zi(a)||e(a,i,r))}},xi=function(e){return Ti(e)?new ai(e):Mi(e)?new oi(e):Hi(e)?new ii(e):ki(e)?new si(e):Si(e)?new Ai(e):Di(e)?new mi(e):zi(e)?new bi(e):Ki(e)?new vi(e):Ri(e)?new yi(e):new Yo(e)},Ci=function(e){var t=xi(e);return t.flags|=4,Oi(e,t,t),t},Ei=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ii(e)&&n.styles.isTransparent()},ji=function(e){return e.isPositioned()||e.isFloating()},Fi=function(e){return e.nodeType===Node.TEXT_NODE},_i=function(e){return e.nodeType===Node.ELEMENT_NODE},Qi=function(e){return _i(e)&&"undefined"!==typeof e.style&&!Ui(e)},Ui=function(e){return"object"===typeof e.className},ki=function(e){return"LI"===e.tagName},Si=function(e){return"OL"===e.tagName},Di=function(e){return"INPUT"===e.tagName},Ni=function(e){return"HTML"===e.tagName},Hi=function(e){return"svg"===e.tagName},Ii=function(e){return"BODY"===e.tagName},Mi=function(e){return"CANVAS"===e.tagName},Ti=function(e){return"IMG"===e.tagName},Ri=function(e){return"IFRAME"===e.tagName},Li=function(e){return"STYLE"===e.tagName},Pi=function(e){return"SCRIPT"===e.tagName},Ki=function(e){return"TEXTAREA"===e.tagName},zi=function(e){return"SELECT"===e.tagName},Vi=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,a=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(a=!1,n[Math.max(0,n.length-1)]+=e.increment)}));var o=[];return a&&r.forEach((function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),o},e}(),Wi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Yi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Gi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Xi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Ji=function(e,t,n,r,a,o){return e<t||e>n?cs(e,a,o.length>0):r.integers.reduce((function(t,n,a){for(;e>=n;)e-=n,t+=r.values[a];return t}),"")+o},qi=function(e,t,n,r){var a="";do{n||e--,a=r(e)+a,e/=t}while(e*t>=t);return a},Zi=function(e,t,n,r,a){var o=n-t+1;return(e<0?"-":"")+(qi(Math.abs(e),o,r,(function(e){return c(Math.floor(e%o)+t)}))+a)},$i=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return qi(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},es=1,ts=2,ns=4,rs=8,as=function(e,t,n,r,a,o){if(e<-9999||e>9999)return cs(e,Va.CJK_DECIMAL,a.length>0);var i=Math.abs(e),s=a;if(0===i)return t[0]+s;for(var A=0;i>0&&A<=4;A++){var c=i%10;0===c&&Ho(o,es)&&""!==s?s=t[c]+s:c>1||1===c&&0===A||1===c&&1===A&&Ho(o,ts)||1===c&&1===A&&Ho(o,ns)&&e>100||1===c&&A>1&&Ho(o,rs)?s=t[c]+(A>0?n[A-1]:"")+s:1===c&&A>0&&(s=n[A-1]+s),i=Math.floor(i/10)}return(e<0?r:"")+s},os="\u5341\u767e\u5343\u842c",is="\u62fe\u4f70\u4edf\u842c",ss="\u30de\u30a4\u30ca\u30b9",As="\ub9c8\uc774\ub108\uc2a4",cs=function(e,t,n){var r=n?". ":"",a=n?"\u3001":"",o=n?", ":"",i=n?" ":"";switch(t){case Va.DISC:return"\u2022"+i;case Va.CIRCLE:return"\u25e6"+i;case Va.SQUARE:return"\u25fe"+i;case Va.DECIMAL_LEADING_ZERO:var s=Zi(e,48,57,!0,r);return s.length<4?"0"+s:s;case Va.CJK_DECIMAL:return $i(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",a);case Va.LOWER_ROMAN:return Ji(e,1,3999,Wi,Va.DECIMAL,r).toLowerCase();case Va.UPPER_ROMAN:return Ji(e,1,3999,Wi,Va.DECIMAL,r);case Va.LOWER_GREEK:return Zi(e,945,969,!1,r);case Va.LOWER_ALPHA:return Zi(e,97,122,!1,r);case Va.UPPER_ALPHA:return Zi(e,65,90,!1,r);case Va.ARABIC_INDIC:return Zi(e,1632,1641,!0,r);case Va.ARMENIAN:case Va.UPPER_ARMENIAN:return Ji(e,1,9999,Yi,Va.DECIMAL,r);case Va.LOWER_ARMENIAN:return Ji(e,1,9999,Yi,Va.DECIMAL,r).toLowerCase();case Va.BENGALI:return Zi(e,2534,2543,!0,r);case Va.CAMBODIAN:case Va.KHMER:return Zi(e,6112,6121,!0,r);case Va.CJK_EARTHLY_BRANCH:return $i(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",a);case Va.CJK_HEAVENLY_STEM:return $i(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",a);case Va.CJK_IDEOGRAPHIC:case Va.TRAD_CHINESE_INFORMAL:return as(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",os,"\u8ca0",a,ts|ns|rs);case Va.TRAD_CHINESE_FORMAL:return as(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",is,"\u8ca0",a,es|ts|ns|rs);case Va.SIMP_CHINESE_INFORMAL:return as(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",os,"\u8d1f",a,ts|ns|rs);case Va.SIMP_CHINESE_FORMAL:return as(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",is,"\u8d1f",a,es|ts|ns|rs);case Va.JAPANESE_INFORMAL:return as(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",ss,a,0);case Va.JAPANESE_FORMAL:return as(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",ss,a,es|ts|ns);case Va.KOREAN_HANGUL_FORMAL:return as(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",As,o,es|ts|ns);case Va.KOREAN_HANJA_INFORMAL:return as(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",As,o,0);case Va.KOREAN_HANJA_FORMAL:return as(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",As,o,es|ts|ns);case Va.DEVANAGARI:return Zi(e,2406,2415,!0,r);case Va.GEORGIAN:return Ji(e,1,19999,Xi,Va.DECIMAL,r);case Va.GUJARATI:return Zi(e,2790,2799,!0,r);case Va.GURMUKHI:return Zi(e,2662,2671,!0,r);case Va.HEBREW:return Ji(e,1,10999,Gi,Va.DECIMAL,r);case Va.HIRAGANA:return $i(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case Va.HIRAGANA_IROHA:return $i(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case Va.KANNADA:return Zi(e,3302,3311,!0,r);case Va.KATAKANA:return $i(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",a);case Va.KATAKANA_IROHA:return $i(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",a);case Va.LAO:return Zi(e,3792,3801,!0,r);case Va.MONGOLIAN:return Zi(e,6160,6169,!0,r);case Va.MYANMAR:return Zi(e,4160,4169,!0,r);case Va.ORIYA:return Zi(e,2918,2927,!0,r);case Va.PERSIAN:return Zi(e,1776,1785,!0,r);case Va.TAMIL:return Zi(e,3046,3055,!0,r);case Va.TELUGU:return Zi(e,3174,3183,!0,r);case Va.THAI:return Zi(e,3664,3673,!0,r);case Va.TIBETAN:return Zi(e,3872,3881,!0,r);case Va.DECIMAL:default:return Zi(e,48,57,!0,r)}},ls="data-html2canvas-ignore",us=function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Vi,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=fs(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,A=o.contentWindow,c=A.document,l=hs(o).then((function(){return r(n,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(bs),A&&(A.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||A.scrollY===t.top&&A.scrollX===t.left||(c.documentElement.style.top=-t.top+"px",c.documentElement.style.left=-t.left+"px",c.documentElement.style.position="absolute")),e=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(c)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(gs(document.doctype)+"<html></html>"),ms(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},e.prototype.createElementClone=function(e){if(Mi(e))return this.createCanvasClone(e);if(Li(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ti(t)&&"lazy"===t.loading&&(t.loading="eager"),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(Qt){if(Fr.getInstance(this.options.id).error("Unable to access cssRules property",Qt),"SecurityError"!==Qt.name)throw Qt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(Qt){Fr.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),a=n.getContext("2d");return a&&(r?a.putImageData(r.getImageData(0,0,e.width,e.height),0,0):a.drawImage(e,0,0)),n}catch(Qt){}return n},e.prototype.cloneNode=function(e){if(Fi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&_i(e)&&(Qi(e)||Ui(e))){var n=this.createElementClone(e),r=t.getComputedStyle(e),a=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Qi(n)&&(this.clonedReferenceElement=n),Ii(n)&&xs(n);for(var i=this.counters.parse(new Vo(r)),s=this.resolvePseudoContent(e,n,a,Do.BEFORE),A=e.firstChild;A;A=A.nextSibling)_i(A)&&(Pi(A)||A.hasAttribute(ls)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(A))||this.options.copyStyles&&_i(A)&&Li(A)||n.appendChild(this.cloneNode(A));s&&n.insertBefore(s,n.firstChild);var c=this.resolvePseudoContent(e,n,o,Do.AFTER);return c&&n.appendChild(c),this.counters.pop(i),r&&(this.options.copyStyles||Ui(e))&&!Ri(e)&&ps(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Ki(e)||zi(e))&&(Ki(n)||zi(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var a=this;if(n){var o=n.content,i=t.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Vo(n));var s=new zo(n),A=i.createElement("html2canvaspseudoelement");ps(n,A),s.content.forEach((function(t){if(t.type===f.STRING_TOKEN)A.appendChild(i.createTextNode(t.value));else if(t.type===f.URL_TOKEN){var n=i.createElement("img");n.src=t.value,n.style.opacity="1",A.appendChild(n)}else if(t.type===f.FUNCTION){if("attr"===t.name){var r=t.values.filter(En);r.length&&A.appendChild(i.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Qn),c=o[0],l=o[1];if(c&&En(c)){var u=a.counters.getCounterValue(c.value),d=l&&En(l)?Ga.parse(l.value):Va.DECIMAL;A.appendChild(i.createTextNode(cs(u,d,!1)))}}else if("counters"===t.name){var h=t.values.filter(Qn),p=(c=h[0],h[1]);if(l=h[2],c&&En(c)){var g=a.counters.getCounterValues(c.value),m=l&&En(l)?Ga.parse(l.value):Va.DECIMAL,b=p&&p.type===f.STRING_TOKEN?p.value:"",v=g.map((function(e){return cs(e,m,!1)})).join(b);A.appendChild(i.createTextNode(v))}}}else if(t.type===f.IDENT_TOKEN)switch(t.value){case"open-quote":A.appendChild(i.createTextNode(Lo(s.quotes,a.quoteDepth++,!0)));break;case"close-quote":A.appendChild(i.createTextNode(Lo(s.quotes,--a.quoteDepth,!1)));break;default:A.appendChild(i.createTextNode(t.value))}})),A.className=ys+" "+Bs;var c=r===Do.BEFORE?" "+ys:" "+Bs;return Ui(t)?t.className.baseValue+=c:t.className+=c,A}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Do||(Do={}));var ds,fs=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(ls,"true"),e.body.appendChild(n),n},hs=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var a=r.document;r.onload=e.onload=a.onreadystatechange=function(){r.onload=e.onload=a.onreadystatechange=null;var n=setInterval((function(){a.body.childNodes.length>0&&"complete"===a.readyState&&(clearInterval(n),t(e))}),50)}}))},ps=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);"content"!==r&&t.style.setProperty(r,e.getPropertyValue(r))}return t},gs=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ms=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},bs=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},vs=":before",ws=":after",ys="___html2canvas___pseudoelement_before",Bs="___html2canvas___pseudoelement_after",Os='{\n    content: "" !important;\n    display: none !important;\n}',xs=function(e){Cs(e,"."+ys+vs+Os+"\n         ."+Bs+ws+Os)},Cs=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(ds||(ds={}));var Es,js=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Fs=function(e,t,n,r,a){return e.map((function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+a);case 3:return e.add(t,n+a)}return e}))},_s=function(){function e(e,t){this.type=ds.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Qs=function(e,t,n){return new _s(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Us=function(){function e(e,t,n,r){this.type=ds.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Qs(this.start,this.startControl,t),a=Qs(this.startControl,this.endControl,t),o=Qs(this.endControl,this.end,t),i=Qs(r,a,t),s=Qs(a,o,t),A=Qs(i,s,t);return n?new e(this.start,r,i,A):new e(A,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ks=function(e){return e.type===ds.BEZIER_CURVE},Ss=function(){function e(e){var t=e.styles,n=e.bounds,r=Tn(t.borderTopLeftRadius,n.width,n.height),a=r[0],o=r[1],i=Tn(t.borderTopRightRadius,n.width,n.height),s=i[0],A=i[1],c=Tn(t.borderBottomRightRadius,n.width,n.height),l=c[0],u=c[1],d=Tn(t.borderBottomLeftRadius,n.width,n.height),f=d[0],h=d[1],p=[];p.push((a+s)/n.width),p.push((f+l)/n.width),p.push((o+h)/n.height),p.push((A+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(a/=g,o/=g,s/=g,A/=g,l/=g,u/=g,f/=g,h/=g);var m=n.width-s,b=n.height-u,v=n.width-l,w=n.height-h,y=t.borderTopWidth,B=t.borderRightWidth,O=t.borderBottomWidth,x=t.borderLeftWidth,C=Rn(t.paddingTop,e.bounds.width),E=Rn(t.paddingRight,e.bounds.width),j=Rn(t.paddingBottom,e.bounds.width),F=Rn(t.paddingLeft,e.bounds.width);this.topLeftBorderBox=a>0||o>0?Ds(n.left,n.top,a,o,Es.TOP_LEFT):new _s(n.left,n.top),this.topRightBorderBox=s>0||A>0?Ds(n.left+m,n.top,s,A,Es.TOP_RIGHT):new _s(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||u>0?Ds(n.left+v,n.top+b,l,u,Es.BOTTOM_RIGHT):new _s(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||h>0?Ds(n.left,n.top+w,f,h,Es.BOTTOM_LEFT):new _s(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||o>0?Ds(n.left+x,n.top+y,Math.max(0,a-x),Math.max(0,o-y),Es.TOP_LEFT):new _s(n.left+x,n.top+y),this.topRightPaddingBox=s>0||A>0?Ds(n.left+Math.min(m,n.width+x),n.top+y,m>n.width+x?0:s-x,A-y,Es.TOP_RIGHT):new _s(n.left+n.width-B,n.top+y),this.bottomRightPaddingBox=l>0||u>0?Ds(n.left+Math.min(v,n.width-x),n.top+Math.min(b,n.height+y),Math.max(0,l-B),u-O,Es.BOTTOM_RIGHT):new _s(n.left+n.width-B,n.top+n.height-O),this.bottomLeftPaddingBox=f>0||h>0?Ds(n.left+x,n.top+w,Math.max(0,f-x),h-O,Es.BOTTOM_LEFT):new _s(n.left+x,n.top+n.height-O),this.topLeftContentBox=a>0||o>0?Ds(n.left+x+F,n.top+y+C,Math.max(0,a-(x+F)),Math.max(0,o-(y+C)),Es.TOP_LEFT):new _s(n.left+x+F,n.top+y+C),this.topRightContentBox=s>0||A>0?Ds(n.left+Math.min(m,n.width+x+F),n.top+y+C,m>n.width+x+F?0:s-x+F,A-(y+C),Es.TOP_RIGHT):new _s(n.left+n.width-(B+E),n.top+y+C),this.bottomRightContentBox=l>0||u>0?Ds(n.left+Math.min(v,n.width-(x+F)),n.top+Math.min(b,n.height+y+C),Math.max(0,l-(B+E)),u-(O+j),Es.BOTTOM_RIGHT):new _s(n.left+n.width-(B+E),n.top+n.height-(O+j)),this.bottomLeftContentBox=f>0||h>0?Ds(n.left+x+F,n.top+w,Math.max(0,f-(x+F)),h-(O+j),Es.BOTTOM_LEFT):new _s(n.left+x+F,n.top+n.height-(O+j))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Es||(Es={}));var Ds=function(e,t,n,r,a){var o=(Math.sqrt(2)-1)/3*4,i=n*o,s=r*o,A=e+n,c=t+r;switch(a){case Es.TOP_LEFT:return new Us(new _s(e,c),new _s(e,c-s),new _s(A-i,t),new _s(A,t));case Es.TOP_RIGHT:return new Us(new _s(e,t),new _s(e+i,t),new _s(A,c-s),new _s(A,c));case Es.BOTTOM_RIGHT:return new Us(new _s(A,t),new _s(A,t+s),new _s(e+i,c),new _s(e,c));case Es.BOTTOM_LEFT:default:return new Us(new _s(A,c),new _s(A-i,c),new _s(e,t+s),new _s(e,t))}},Ns=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hs=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Is=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ms=function(){function e(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6}return e}(),Ts=function(){function e(e,t){this.type=1,this.target=t,this.path=e}return e}(),Rs=function(e){return 0===e.type},Ls=function(e){return 1===e.type},Ps=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Ks=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new Ss(e),null!==e.styles.transform){var n=e.bounds.left+e.styles.transformOrigin[0].number,r=e.bounds.top+e.styles.transformOrigin[1].number,a=e.styles.transform;this.effects.push(new Ms(n,r,a))}if(e.styles.overflowX!==Ya.VISIBLE){var o=Ns(this.curves),i=Is(this.curves);js(o,i)?this.effects.push(new Ts(o,6)):(this.effects.push(new Ts(o,2)),this.effects.push(new Ts(i,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==Ya.VISIBLE){var t=Ns(this.curves),n=Is(this.curves);js(t,n)||e.push(new Ts(n,6))}return e},e}(),zs=function e(t,n,r,a){t.container.elements.forEach((function(o){var i=Ho(o.flags,4),s=Ho(o.flags,2),A=new Ks(o,t.getParentEffects());Ho(o.styles.display,2048)&&a.push(A);var c=Ho(o.flags,8)?[]:a;if(i||s){var l=i||o.styles.isPositioned()?r:n,u=new Ps(A);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var f=0;l.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),l.negativeZIndex.splice(f,0,u)}else if(d>0){var h=0;l.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);e(A,u,i?u:r,c)}else o.styles.isInlineLevel()?n.inlineLevel.push(A):n.nonInlineLevel.push(A),e(A,n,r,c);Ho(o.flags,8)&&Vs(o,c)}))},Vs=function(e,t){for(var n=e instanceof Ai?e.start:1,r=e instanceof Ai&&e.reversed,a=0;a<t.length;a++){var o=t[a];o.container instanceof si&&"number"===typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=cs(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},Ws=function(e){var t=new Ks(e,[]),n=new Ps(t),r=[];return zs(t,n,n,r),Vs(t.container,r),n},Ys=function(e,t){switch(t){case 0:return Gs(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Gs(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Gs(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Gs(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Gs=function(e,t,n,r){var a=[];return ks(e)?a.push(e.subdivide(.5,!1)):a.push(e),ks(n)?a.push(n.subdivide(.5,!0)):a.push(n),ks(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),ks(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},Xs=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Js=function(e){var t=e.styles,n=e.bounds,r=Rn(t.paddingLeft,n.width),a=Rn(t.paddingRight,n.width),o=Rn(t.paddingTop,n.width),i=Rn(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+o+i))},qs=function(e,t){return 0===e?t.bounds:2===e?Js(t):Xs(t)},Zs=function(e,t){return e===rr.BORDER_BOX?t.bounds:e===rr.CONTENT_BOX?Js(t):Xs(t)},$s=function(e,t,n){var r=qs(rA(e.styles.backgroundOrigin,t),e),a=Zs(rA(e.styles.backgroundClip,t),e),o=nA(rA(e.styles.backgroundSize,t),n,r),i=o[0],s=o[1],A=Tn(rA(e.styles.backgroundPosition,t),r.width-i,r.height-s);return[aA(rA(e.styles.backgroundRepeat,t),A,o,r,a),Math.round(r.left+A[0]),Math.round(r.top+A[1]),i,s]},eA=function(e){return En(e)&&e.value===sa.AUTO},tA=function(e){return"number"===typeof e},nA=function(e,t,n){var r=t[0],a=t[1],o=t[2],i=e[0],s=e[1];if(Dn(i)&&s&&Dn(s))return[Rn(i,n.width),Rn(s,n.height)];var A=tA(o);if(En(i)&&(i.value===sa.CONTAIN||i.value===sa.COVER))return tA(o)?n.width/n.height<o!==(i.value===sa.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=tA(r),l=tA(a),u=c||l;if(eA(i)&&(!s||eA(s)))return c&&l?[r,a]:A||u?u&&A?[c?r:a*o,l?a:r/o]:[c?r:n.width,l?a:n.height]:[n.width,n.height];if(A){var d=0,f=0;return Dn(i)?d=Rn(i,n.width):Dn(s)&&(f=Rn(s,n.height)),eA(i)?d=f*o:s&&!eA(s)||(f=d/o),[d,f]}var h=null,p=null;if(Dn(i)?h=Rn(i,n.width):s&&Dn(s)&&(p=Rn(s,n.height)),null===h||s&&!eA(s)||(p=c&&l?h/r*a:n.height),null!==p&&eA(i)&&(h=c&&l?p/a*r:n.width),null!==h&&null!==p)return[h,p];throw new Error("Unable to calculate background-size for element")},rA=function(e,t){var n=e[t];return"undefined"===typeof n?e[0]:n},aA=function(e,t,n,r,a){var o=t[0],i=t[1],s=n[0],A=n[1];switch(e){case na.REPEAT_X:return[new _s(Math.round(r.left),Math.round(r.top+i)),new _s(Math.round(r.left+r.width),Math.round(r.top+i)),new _s(Math.round(r.left+r.width),Math.round(A+r.top+i)),new _s(Math.round(r.left),Math.round(A+r.top+i))];case na.REPEAT_Y:return[new _s(Math.round(r.left+o),Math.round(r.top)),new _s(Math.round(r.left+o+s),Math.round(r.top)),new _s(Math.round(r.left+o+s),Math.round(r.height+r.top)),new _s(Math.round(r.left+o),Math.round(r.height+r.top))];case na.NO_REPEAT:return[new _s(Math.round(r.left+o),Math.round(r.top+i)),new _s(Math.round(r.left+o+s),Math.round(r.top+i)),new _s(Math.round(r.left+o+s),Math.round(r.top+i+A)),new _s(Math.round(r.left+o),Math.round(r.top+i+A))];default:return[new _s(Math.round(a.left),Math.round(a.top)),new _s(Math.round(a.left+a.width),Math.round(a.top)),new _s(Math.round(a.left+a.width),Math.round(a.height+a.top)),new _s(Math.round(a.left),Math.round(a.height+a.top))]}},oA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",iA="Hidden Text",sA=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src=oA,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(iA)),n.appendChild(a),n.appendChild(r);var i=r.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(iA)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:i,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),AA=1e4,cA=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new sA(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Fr.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter((function(e){return Ho(e.target,t)})).forEach((function(e){return n.applyEffect(e)}))},e.prototype.applyEffect=function(e){this.ctx.save(),Rs(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Ls(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return r(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return(t=e.element.container.styles).isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(e){return r(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(e,t){var n=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):A(e.text).map((function(e){return c(e)})).reduce((function(t,r){return n.ctx.fillText(r,t,e.bounds.top+e.bounds.height),t+n.ctx.measureText(r).width}),e.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=e.fontFamily.join(", "),r=xn(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},e.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,(function(){var n,r,o,i,s=this;return a(this,(function(a){return n=this.createFontStyle(t),r=n[0],o=n[1],i=n[2],this.ctx.font=r,e.textBounds.forEach((function(e){s.ctx.fillStyle=qn(t.color),s.renderTextWithLetterSpacing(e,t.letterSpacing);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach((function(t){s.ctx.shadowColor=qn(t.color),s.ctx.shadowOffsetX=t.offsetX.number*s.options.scale,s.ctx.shadowOffsetY=t.offsetY.number*s.options.scale,s.ctx.shadowBlur=t.blur.number,s.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)})),s.ctx.shadowColor="",s.ctx.shadowOffsetX=0,s.ctx.shadowOffsetY=0,s.ctx.shadowBlur=0),t.textDecorationLine.length&&(s.ctx.fillStyle=qn(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:var n=s.fontMetrics.getMetrics(o,i).baseline;s.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+n),e.bounds.width,1);break;case 2:s.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var r=s.fontMetrics.getMetrics(o,i).middle;s.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+r),e.bounds.width,1)}})))})),[2]}))}))},e.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=Js(e),a=Is(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var n,r,i,s,A,c,l,u,d,f,h,p,g,m;return a(this,(function(a){switch(a.label){case 0:this.applyEffects(t.effects,4),n=t.container,r=t.curves,i=n.styles,s=0,A=n.textNodes,a.label=1;case 1:return s<A.length?(c=A[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:a.sent(),a.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof ai))return[3,8];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return p=a.sent(),this.renderReplacedElement(n,r,p),[3,8];case 7:return a.sent(),Fr.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof oi&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof ii))return[3,12];a.label=9;case 9:return a.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return p=a.sent(),this.renderReplacedElement(n,r,p),[3,12];case 11:return a.sent(),Fr.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof yi&&n.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:l=a.sent(),n.width&&n.height&&this.ctx.drawImage(l,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),a.label=14;case 14:if(n instanceof mi&&(u=Math.min(n.bounds.width,n.bounds.height),n.type===fi?n.checked&&(this.ctx.save(),this.path([new _s(n.bounds.left+.39363*u,n.bounds.top+.79*u),new _s(n.bounds.left+.16*u,n.bounds.top+.5549*u),new _s(n.bounds.left+.27347*u,n.bounds.top+.44071*u),new _s(n.bounds.left+.39694*u,n.bounds.top+.5649*u),new _s(n.bounds.left+.72983*u,n.bounds.top+.23*u),new _s(n.bounds.left+.84*u,n.bounds.top+.34085*u),new _s(n.bounds.left+.39363*u,n.bounds.top+.79*u)]),this.ctx.fillStyle=qn(gi),this.ctx.fill(),this.ctx.restore()):n.type===hi&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+u/2,n.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=qn(gi),this.ctx.fill(),this.ctx.restore())),lA(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=qn(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign=dA(n.styles.textAlign),m=Js(n),d=0,n.styles.textAlign){case no.CENTER:d+=m.width/2;break;case no.RIGHT:d+=m.width}f=m.add(d,0,0,-m.height/2+1),this.ctx.save(),this.path([new _s(m.left,m.top),new _s(m.left+m.width,m.top),new _s(m.left+m.width,m.top+m.height),new _s(m.left,m.top+m.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Go(n.value,f),i.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Ho(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((h=n.styles.listStyleImage).type!==sr.URL)return[3,18];p=void 0,g=h.url,a.label=15;case 15:return a.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return p=a.sent(),this.ctx.drawImage(p,n.bounds.left-(p.width+10),n.bounds.top),[3,18];case 17:return a.sent(),Fr.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==Va.NONE&&(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=qn(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",m=new o(n.bounds.left,n.bounds.top+Rn(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ka(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Go(t.listValue,m),i.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),a.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,i,s,A,c,l,u,d,f,h,p,g;return a(this,(function(a){switch(a.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:a.sent(),t=0,n=e.negativeZIndex,a.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:a.sent(),a.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:a.sent(),r=0,o=e.nonInlineLevel,a.label=7;case 7:return r<o.length?(g=o[r],[4,this.renderNode(g)]):[3,10];case 8:a.sent(),a.label=9;case 9:return r++,[3,7];case 10:i=0,s=e.nonPositionedFloats,a.label=11;case 11:return i<s.length?(g=s[i],[4,this.renderStack(g)]):[3,14];case 12:a.sent(),a.label=13;case 13:return i++,[3,11];case 14:A=0,c=e.nonPositionedInlineLevel,a.label=15;case 15:return A<c.length?(g=c[A],[4,this.renderStack(g)]):[3,18];case 16:a.sent(),a.label=17;case 17:return A++,[3,15];case 18:l=0,u=e.inlineLevel,a.label=19;case 19:return l<u.length?(g=u[l],[4,this.renderNode(g)]):[3,22];case 20:a.sent(),a.label=21;case 21:return l++,[3,19];case 22:d=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,a.label=23;case 23:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,26];case 24:a.sent(),a.label=25;case 25:return d++,[3,23];case 26:h=0,p=e.positiveZIndex,a.label=27;case 27:return h<p.length?(g=p[h],[4,this.renderStack(g)]):[3,30];case 28:a.sent(),a.label=29;case 29:return h++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var r=ks(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),ks(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},e.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},e.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var r=this.canvas.ownerDocument.createElement("canvas");return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),r},e.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,i,s;return a(this,(function(A){switch(A.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,i,s,A,c,l,u,d,f,h,p,g,m,b,v,w,y,B,O,x,C,E,j,F,_,Q,U,k,S,D,N;return a(this,(function(a){switch(a.label){case 0:if(n.type!==sr.URL)return[3,5];o=void 0,i=n.url,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.options.cache.match(i)];case 2:return o=a.sent(),[3,4];case 3:return a.sent(),Fr.getInstance(r.options.id).error("Error loading background-image "+i),[3,4];case 4:return o&&(s=$s(e,t,[o.width,o.height,o.width/o.height]),w=s[0],E=s[1],j=s[2],O=s[3],x=s[4],b=r.ctx.createPattern(r.resizeImage(o,O,x),"repeat"),r.renderRepeat(w,b,E,j)),[3,6];case 5:Zr(n)?(A=$s(e,t,[null,null,null]),w=A[0],E=A[1],j=A[2],O=A[3],x=A[4],c=fr(n.angle,O,x),l=c[0],u=c[1],d=c[2],f=c[3],h=c[4],(p=document.createElement("canvas")).width=O,p.height=x,g=p.getContext("2d"),m=g.createLinearGradient(u,f,d,h),ur(n.stops,l).forEach((function(e){return m.addColorStop(e.stop,qn(e.color))})),g.fillStyle=m,g.fillRect(0,0,O,x),O>0&&x>0&&(b=r.ctx.createPattern(p,"repeat"),r.renderRepeat(w,b,E,j))):$r(n)&&(v=$s(e,t,[null,null,null]),w=v[0],y=v[1],B=v[2],O=v[3],x=v[4],C=0===n.position.length?[In]:n.position,E=Rn(C[0],O),j=Rn(C[C.length-1],x),F=gr(n,E,j,O,x),_=F[0],Q=F[1],_>0&&_>0&&(U=r.ctx.createRadialGradient(y+E,B+j,0,y+E,B+j,_),ur(n.stops,2*_).forEach((function(e){return U.addColorStop(e.stop,qn(e.color))})),r.path(w),r.ctx.fillStyle=U,_!==Q?(k=e.bounds.left+.5*e.bounds.width,S=e.bounds.top+.5*e.bounds.height,N=1/(D=Q/_),r.ctx.save(),r.ctx.translate(k,S),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-k,-S),r.ctx.fillRect(y,N*(B-S)+S,O,x*N),r.ctx.restore()):r.ctx.fill())),a.label=6;case 6:return t--,[2]}}))},r=this,o=0,i=e.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return o<i.length?(s=i[o],[5,n(s)]):[3,4];case 2:A.sent(),A.label=3;case 3:return o++,[3,1];case 4:return[2]}}))}))},e.prototype.renderBorder=function(e,t,n){return r(this,void 0,void 0,(function(){return a(this,(function(r){return this.path(Ys(n,t)),this.ctx.fillStyle=qn(e),this.ctx.fill(),[2]}))}))},e.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,i,s,A,c,l=this;return a(this,(function(a){switch(a.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,n=!Jn(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],o=uA(rA(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Jn(t.backgroundColor)||(this.ctx.fillStyle=qn(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:a.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){l.ctx.save();var n=Ns(e.curves),r=t.inset?0:AA,a=Fs(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(l.path(n),l.ctx.clip(),l.mask(a)):(l.mask(n),l.ctx.clip(),l.path(a)),l.ctx.shadowOffsetX=t.offsetX.number+r,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=qn(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?qn(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),a.label=2;case 2:i=0,s=0,A=r,a.label=3;case 3:return s<A.length?(c=A[s]).style===la.NONE||Jn(c.color)?[3,5]:[4,this.renderBorder(c.color,i,e.curves)]:[3,7];case 4:a.sent(),a.label=5;case 5:i++,a.label=6;case 6:return s++,[3,3];case 7:return[2]}}))}))},e.prototype.render=function(e){return r(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=qn(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),t=Ws(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},e}(),lA=function(e){return e instanceof vi||e instanceof bi||e instanceof mi&&e.type!==hi&&e.type!==fi},uA=function(e,t){switch(e){case rr.BORDER_BOX:return Ns(t);case rr.CONTENT_BOX:return Hs(t);case rr.PADDING_BOX:default:return Is(t)}},dA=function(e){switch(e){case no.CENTER:return"center";case no.RIGHT:return"right";case no.LEFT:default:return"left"}},fA=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Fr.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return r(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:return t=Cr(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,e),[4,hA(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=qn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(),hA=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},pA=void 0,gA=function(e){return Xn.parse(On.create(e).parseComponentValue())},mA=function(e,t){return void 0===t&&(t={}),bA(e,t)};"undefined"!==typeof window&&_r.setContext(window);var bA=function(e,t){return r(pA,void 0,void 0,(function(){var r,A,c,l,u,d,f,h,p,g,m,b,v,w,y,B,O,x,C,E,j,F,_;return a(this,(function(a){switch(a.label){case 0:if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(A=r.defaultView))throw new Error("Document is not attached to a Window");return c=(Math.round(1e3*Math.random())+Date.now()).toString(16),l=Ii(e)||Ni(e)?s(r):i(e),u=l.width,d=l.height,f=l.left,h=l.top,p=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},t),g={backgroundColor:"#ffffff",cache:t.cache?t.cache:_r.create(c,p),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:A.devicePixelRatio||1,windowWidth:A.innerWidth,windowHeight:A.innerHeight,scrollX:A.pageXOffset,scrollY:A.pageYOffset,x:f,y:h,width:Math.ceil(u),height:Math.ceil(d),id:c},m=n({},g,p,t),b=new o(m.scrollX,m.scrollY,m.windowWidth,m.windowHeight),Fr.create({id:c,enabled:m.logging}),Fr.getInstance(c).debug("Starting document clone"),v=new us(e,{id:c,onclone:m.onclone,ignoreElements:m.ignoreElements,inlineImages:m.foreignObjectRendering,copyStyles:m.foreignObjectRendering}),(w=v.clonedReferenceElement)?[4,v.toIFrame(r,b)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return y=a.sent(),B=r.documentElement?gA(getComputedStyle(r.documentElement).backgroundColor):ir.TRANSPARENT,O=r.body?gA(getComputedStyle(r.body).backgroundColor):ir.TRANSPARENT,x=t.backgroundColor,C="string"===typeof x?gA(x):null===x?ir.TRANSPARENT:4294967295,E=e===r.documentElement?Jn(B)?Jn(O)?C:O:B:C,j={id:c,cache:m.cache,canvas:m.canvas,backgroundColor:E,scale:m.scale,x:m.x,y:m.y,scrollX:m.scrollX,scrollY:m.scrollY,width:m.width,height:m.height,windowWidth:m.windowWidth,windowHeight:m.windowHeight},m.foreignObjectRendering?(Fr.getInstance(c).debug("Document cloned, using foreign object rendering"),[4,new fA(j).render(w)]):[3,3];case 2:return F=a.sent(),[3,5];case 3:return Fr.getInstance(c).debug("Document cloned, using computed rendering"),_r.attachInstance(m.cache),Fr.getInstance(c).debug("Starting DOM parsing"),_=Ci(w),_r.detachInstance(),E===_.styles.backgroundColor&&(_.styles.backgroundColor=ir.TRANSPARENT),Fr.getInstance(c).debug("Starting renderer"),[4,new cA(j).render(_)];case 4:F=a.sent(),a.label=5;case 5:return!0===m.removeContainer&&(us.destroy(y)||Fr.getInstance(c).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Fr.getInstance(c).debug("Finished rendering"),Fr.destroy(c),_r.destroy(c),[2,F]}}))}))};return mA}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),a=(n(1),n(102)),o=n(103);function i(e){var t=e.error,n=e.resetErrorBoundary;return Object(r.jsxs)("div",{className:"main-content-container p-5",children:[Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(o.a,{title:"Error",subtitle:"This should not have happened",className:"text-sm-left my-3"})}),Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Something went wrong:"}),Object(r.jsx)("pre",{children:Object(r.jsx)("code",{className:"text-warning",children:t.message})})]})}),Object(r.jsx)("div",{className:"page-header",children:Object(r.jsx)("div",{children:Object(r.jsx)(a.a,{onClick:n,children:"Try again"})})})]})}},,function(e,t,n){!function(e,t){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var r=n(t);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},i={error:null},s=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state=i,t.updatedWithError=!1,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}a(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.updatedWithError=!1,this.setState(i)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e){var t,n,r=this.state.error,a=this.props.resetKeys;null===r||this.updatedWithError?null!==r&&o(e.resetKeys,a)&&(null==(t=(n=this.props).onResetKeysChange)||t.call(n,e.resetKeys,a),this.reset()):this.updatedWithError=!0},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,a=t.FallbackComponent,o=t.fallback;if(null!==e){var i={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.default.isValidElement(o))return o;if("function"===typeof n)return n(i);if(a)return r.default.createElement(a,i);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.default.Component);function A(e,t){function n(n){return r.default.createElement(s,t,r.default.createElement(e,n))}var a=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+a+")",n}function c(e){var t=r.default.useState(null),n=t[0],a=t[1];if(e)throw e;if(n)throw n;return a}e.ErrorBoundary=s,e.useErrorHandler=c,e.withErrorBoundary=A,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return Jc})),n.d(t,"b",(function(){return Zc}));var r=n(3),a=n(1),o=n.n(a),i=n(107),s=n(6),A=n(79),c=n(82),l=function(e){var t=function(e){return Object.fromEntries(Object.entries(e).filter((function(e){var t=Object(s.a)(e,2),n=t[0];return t[1],n.startsWith("REACT_APP_FEATURE")})).map((function(e){var t=Object(s.a)(e,2),n=t[0],r=t[1];return[n.replace("REACT_APP_FEATURE_",""),"enabled"===r]})))}(Object({NODE_ENV:"production",PUBLIC_URL:"https://api.jina.ai/swagger",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_TARGET:"Swagger",REACT_APP_FEATURE_HOMEPAGE:"disabled",REACT_APP_FEATURE_FILES:"disabled",REACT_APP_FEATURE_QUERY_SEARCH:"disabled",REACT_APP_FEATURE_DEBUGGING_TOOL:"disabled",REACT_APP_HUB_API:"https://hubapi.jina.ai",REACT_APP_JINA_API:"https://api.jina.ai",REACT_APP_GITHUB_LAMBDA:"https://1f06hf594m.execute-api.us-west-1.amazonaws.com/prod/webauth",REACT_APP_CLIENT_ID:"aefd9df23a647df8eb2c",REACT_APP_GITHUB_API:"https://api.github.com/user"}));return Boolean(t[e])},u=function(e){return e.globalState.menuVisible},d=function(e){return l("DEBUGGING_TOOL")?e.globalState.navItems:e.globalState.navItems.filter((function(e){return"Debug"!==e.title}))},f=function(e){return e.globalState.user},h=function(e){return e.globalState.banners},p=function(e){return e.globalState.modal},g=function(e){return e.globalState.modalParams},m=function(e){return e.globalState.connected},b=function(e){return e.globalState.loading},v=n(1219),w=n(7),y=n(4),B=n(0),O=n(18),x=n.n(O),C=n(85),E=n(1249),j=n(83),F=n(86),_=n(1250),Q=n(1251);function U(e){return Object(_.a)("MuiMenuItem",e)}Object(Q.a)("MuiMenuItem",["root","gutters","selected","dense"]);var k=n(443),S=Object(j.a)(k.a,{shouldForwardProp:function(e){return Object(j.b)(e)||"classes"===e}},{name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.styleProps;return Object(B.a)({},Object(k.c)(e,t),n.dense&&t.dense)}})((function(e){var t=e.theme,n=e.styleProps;return Object(B.a)({},t.typography.body1,Object(w.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&Object(B.a)({},t.typography.body2,{minHeight:"auto"}))})),D=a.forwardRef((function(e,t){var n,a=Object(F.a)({props:e,name:"MuiMenuItem"}),o=a.className,i=a.component,s=void 0===i?"li":i,A=a.dense,c=void 0!==A&&A,l=a.disableGutters,u=void 0!==l&&l,d=a.ListItemClasses,f=a.role,h=void 0===f?"menuitem":f,p=a.selected,g=a.tabIndex,m=Object(y.a)(a,["className","component","dense","disableGutters","ListItemClasses","role","selected","tabIndex"]),b={dense:c},v=function(e){var t=e.selected,n=e.dense,r=e.classes,a={root:["root",t&&"selected",n&&"dense"]};return Object(E.a)(a,U,r)}(a);return a.disabled||(n=void 0!==g?g:-1),Object(r.jsx)(k.b,Object(B.a)({components:{Root:S},componentsProps:{root:{styleProps:b}},button:!0,role:h,tabIndex:n,component:s,selected:p,disableGutters:u,className:Object(C.a)(v.root,o),ref:t},m,{classes:d}))})),N=n(1274),H=n(140),I=Object(H.a)(Object(r.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function M(e){return Object(_.a)("MuiAvatar",e)}Object(Q.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var T=Object(j.a)("div",{},{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.styleProps;return Object(B.a)({},t.root,t[n.variant],n.colorDefault&&t.colorDefault)}})((function(e){var t=e.theme,n=e.styleProps;return Object(B.a)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:t.shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&{color:t.palette.background.default,backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]})})),R=Object(j.a)("img",{},{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),L=Object(j.a)(I,{},{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var P=a.forwardRef((function(e,t){var n=Object(F.a)({props:e,name:"MuiAvatar"}),o=n.alt,i=n.children,A=n.className,c=n.component,l=void 0===c?"div":c,u=n.imgProps,d=n.sizes,f=n.src,h=n.srcSet,p=n.variant,g=void 0===p?"circular":p,m=Object(y.a)(n,["alt","children","className","component","imgProps","sizes","src","srcSet","variant"]),b=null,v=function(e){var t=e.src,n=e.srcSet,r=a.useState(!1),o=Object(s.a)(r,2),i=o[0],A=o[1];return a.useEffect((function(){if(t||n){A(!1);var e=!0,r=new Image;return r.onload=function(){e&&A("loaded")},r.onerror=function(){e&&A("error")},r.src=t,n&&(r.srcset=n),function(){e=!1}}}),[t,n]),i}({src:f,srcSet:h}),w=f||h,O=w&&"error"!==v,x=Object(B.a)({},n,{colorDefault:!O,component:l,variant:g}),j=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(E.a)(n,M,t)}(x);return b=O?Object(r.jsx)(R,Object(B.a)({alt:o,src:f,srcSet:h,sizes:d,styleProps:x,className:j.img},u)):null!=i?i:w&&o?o[0]:Object(r.jsx)(L,{className:j.fallback}),Object(r.jsx)(T,Object(B.a)({as:l,styleProps:x,className:Object(C.a)(j.root,A),ref:t},m,{children:b}))})),K=Object(H.a)(a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");function z(e){var t=e.logOut,n=(e.userActionsVisible,e.toggleUserActions,Object(c.c)(f)),a=Object(c.b)(),i=o.a.useState(null),A=Object(s.a)(i,2),l=A[0],u=A[1],d=function(){u(null),n?a(t):window.location.href="/#login"};return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(N.a,{"data-name":"menuButton","aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){u(e.currentTarget)},children:n?Object(r.jsx)(P,{src:n._json.avatar_url,alt:"User Avatar"}):Object(r.jsx)(K,{})}),Object(r.jsx)(v.a,{id:"simple-menu",anchorEl:l,keepMounted:!0,open:Boolean(l),onClose:d,children:Object(r.jsx)(D,{"data-name":"loginLogout",onClick:d,children:n?"Logout":"Login"})})]})}var V=n(89),W=n(95),Y=n(1275);function G(e){return Object(_.a)("MuiAppBar",e)}Object(Q.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var X=Object(j.a)(Y.a,{},{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var n=e.styleProps;return Object(B.a)({},t.root,t["position".concat(Object(W.a)(n.position))],t["color".concat(Object(W.a)(n.color))])}})((function(e){var t=e.theme,n=e.styleProps,r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(B.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:t.zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:t.zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:t.zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"transparent"===n.color&&{backgroundColor:"transparent",color:"inherit"})})),J=a.forwardRef((function(e,t){var n=Object(F.a)({props:e,name:"MuiAppBar"}),a=n.className,o=n.color,i=void 0===o?"primary":o,s=n.position,A=void 0===s?"fixed":s,c=Object(y.a)(n,["className","color","position"]),l=Object(B.a)({},n,{color:i,position:A}),u=function(e){var t=e.color,n=e.position,r=e.classes,a={root:["root","color".concat(Object(W.a)(t)),"position".concat(Object(W.a)(n))]};return Object(E.a)(a,G,r)}(l);return Object(r.jsx)(X,Object(B.a)({square:!0,component:"header",styleProps:l,elevation:4,className:Object(C.a)(u.root,a,"fixed"===A&&"mui-fixed"),ref:t},c))})),q=n(244),Z=n.n(q),$=n(17),ee=n(16),te=n(80);function ne(){var e=Object(A.a)(["\n  margin-left: auto;\n  display: flex;\n  align-items: center;\n"]);return ne=function(){return e},e}function re(){var e=Object(A.a)(["\n  background: ",";\n  border-bottom: 1px solid ",";\n  box-shadow: none;\n  display: flex;\n  flex-direction: row;\n  position: unset;\n"]);return re=function(){return e},e}var ae=Object(te.a)(J)(re(),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.grey[300]})),oe=te.a.div(ne());var ie=function(e){var t=e.usesConnection,n=e.reconnect,a=e.connected,o=Object(c.b)();return Object(r.jsx)(ae,{children:Object(r.jsxs)(oe,{children:[t&&Object(r.jsx)(Z.a,{onClick:n,style:a?{color:$.a[500]}:{color:ee.a[500]}}),Object(r.jsx)(z,{userActionsVisible:!1,logOut:function(){return o(Object(V.e)())},toggleUserActions:function(){}})]})})},se=n(208);function Ae(){var e=Object(A.a)(["\n  text-decoration: none;\n  padding: 0.625rem;\n  color: ",";\n"]);return Ae=function(){return e},e}function ce(){var e=Object(A.a)(["\n  display: flex;\n  justify-content: space-around;\n"]);return ce=function(){return e},e}var le=te.a.footer(ce()),ue=te.a.a(Ae(),(function(e){return e.theme.palette.success.dark})),de=function(e){var t=e.menuItems,n=e.copyright;e.loggerEnabled,e.enableLogger,e.disableLogger,e.exportLogs;return Object(r.jsxs)(le,{children:[Object(r.jsx)("div",{children:t.map((function(e,t){return Object(r.jsx)(ue,{href:e.to,children:e.title},t)}))}),Object(r.jsx)("span",{children:n})]})};de.defaultProps={contained:!1,copyright:"Copyright \xa9 Jina AI Limited",menuItems:[{title:"Home",to:"https://jina.ai"},{title:"Open Source",to:"https://opensource.jina.ai"},{title:"Learn",to:"https://docs.jina.ai"},{title:"Community",to:"https://twitter.com/JinaAI_"},{title:"Jobs",to:"https://www.linkedin.com/company/jinaai/jobs/"},{title:"Privacy & Terms",to:"https://github.com/jina-ai/legal"}]};var fe=de,he=n(102);function pe(e){var t=e.acceptCookies;return Object(r.jsxs)("div",{className:"cookies-banner",children:[Object(r.jsx)("p",{className:"mb-2",children:'We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy linked below. By clicking "I consent to cookies", you accept the placement and use of these Cookies for these purposes. You can change your mind and revisit your preferences at any time by accessing the \u201cCookie Preferences\u201d link in the footer of this site.'}),Object(r.jsx)(he.a,{className:"ml-auto d-block",onClick:t,children:"I consent to cookies"})]})}function ge(e){var t=e.data,n=e.index;if(!t)return null;var a={bottom:String(1+7*n)+"em"};return Object(r.jsx)("div",{"data-name":"connection-notification-online",className:"notifications-container",style:a,children:Object(r.jsxs)("div",{className:"flex w-full max-w-sm mx-auto overflow-hidden bg-white rounded-lg shadow-md dark:bg-gray-800 my-5",children:[Object(r.jsx)("div",{className:"flex items-center justify-center w-12 bg-blue-500",children:Object(r.jsx)("svg",{className:"w-6 h-6 text-white fill-current",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",children:Object(r.jsx)("path",{d:"M20 3.33331C10.8 3.33331 3.33337 10.8 3.33337 20C3.33337 29.2 10.8 36.6666 20 36.6666C29.2 36.6666 36.6667 29.2 36.6667 20C36.6667 10.8 29.2 3.33331 20 3.33331ZM21.6667 28.3333H18.3334V25H21.6667V28.3333ZM21.6667 21.6666H18.3334V11.6666H21.6667V21.6666Z"})})}),Object(r.jsx)("div",{className:"px-4 py-2 -mx-3",children:Object(r.jsxs)("div",{className:"mx-3",children:[Object(r.jsx)("span",{className:"font-semibold text-blue-500 dark:text-blue-400",children:t.theme}),Object(r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-200",children:t.message})]})})]})})}function me(e){var t=e.reconnect;return Object(r.jsx)("div",{className:"notifications-container","data-name":"connection-notification-offline",children:Object(r.jsxs)("div",{className:"bg-warning",children:[Object(r.jsx)("div",{className:"bg-warning text-white",children:Object(r.jsxs)("strong",{className:"mr-auto",children:[Object(r.jsx)("i",{className:"material-icons mr-1",children:"warning"}),"Could not connect to Jina instance"]})}),Object(r.jsx)("div",{className:"text-white",children:Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{className:"pr-2",children:Object(r.jsx)("a",{href:"https://github.com/jina-ai/dashboard#getting-started",target:"_blank",rel:"noopener noreferrer",className:"mr-2",children:Object(r.jsxs)(he.a,{variant:"outlined",className:"w-100",children:[Object(r.jsx)("i",{className:"material-icons mr-1",children:"text_snippet"}),"View Docs"]})})}),Object(r.jsx)("div",{className:"pl-2",children:Object(r.jsxs)(he.a,{variant:"primary",className:"w-100",onClick:t,children:[Object(r.jsx)("i",{className:"material-icons mr-1",children:"refresh"}),"Refresh"]})})]})})]})})}var be=n(108),ve=n.n(be),we={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",maxHeight:"80%",left:"50%",padding:"2rem",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",width:"90%",maxWidth:"800px",overflow:"hidden"}},ye=function(e){var t,n=e.open,a=e.closeModal,o=e.importYAML;return Object(r.jsxs)(ve.a,{ariaHideApp:!1,isOpen:n,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,style:we,onRequestClose:a,closeTimeoutMS:100,children:[Object(r.jsxs)("div",{className:"modal-header p-0",children:[Object(r.jsx)("h4",{children:Object(r.jsx)("b",{children:"Import YAML"})}),Object(r.jsx)("h4",{children:Object(r.jsx)("span",{className:"float-right close-icon",children:Object(r.jsx)("i",{className:"material-icons",onClick:a,children:"close"})})})]}),Object(r.jsx)("div",{className:"modal-body px-0 pb-0",children:Object(r.jsxs)("div",{children:[Object(r.jsx)("span",{children:"Custom YAML:"}),Object(r.jsx)("textarea",{placeholder:"Paste Here",ref:function(e){return t=e},rows:10})]})}),Object(r.jsx)(he.a,{className:"btn-primary",onClick:function(){return o(t.value)},children:"Continue"})]})},Be={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",maxHeight:"80%",left:"50%",padding:"2rem",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",width:"90%",maxWidth:"800px",overflow:"hidden"}},Oe=function(e){var t,n=e.open,a=e.closeModal,o=e.submitReview;return Object(r.jsxs)(ve.a,{ariaHideApp:!1,isOpen:n,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,style:Be,onRequestClose:a,closeTimeoutMS:100,children:[Object(r.jsxs)("div",{className:"modal-header p-0",children:[Object(r.jsx)("h4",{children:Object(r.jsx)("b",{children:"Write a Review"})}),Object(r.jsx)("h4",{children:Object(r.jsx)("span",{className:"float-right close-icon",children:Object(r.jsx)("i",{className:"material-icons",onClick:a,children:"close"})})})]}),Object(r.jsx)("div",{className:"modal-body px-0 pb-0",children:Object(r.jsx)("div",{children:Object(r.jsx)("textarea",{placeholder:"Tell the world about your experience",ref:function(e){return t=e},rows:10})})}),Object(r.jsx)(he.a,{className:"btn-primary",onClick:function(){return o(t.value)},children:"Submit"})]})},xe={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",maxHeight:"80%",left:"50%",padding:"2rem",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",width:"90%",maxWidth:"800px",overflow:"hidden"}},Ce=["message","unixTime"],Ee=function(e){var t=e.open,n=e.closeModal,a=e.modalParams,o=(null===a||void 0===a?void 0:a.log)||{};return Object(r.jsxs)(ve.a,{ariaHideApp:!1,isOpen:t,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,style:xe,onRequestClose:n,closeTimeoutMS:100,children:[Object(r.jsxs)("div",{className:"modal-header p-0",children:[Object(r.jsx)("h4",{children:Object(r.jsx)("b",{children:"Log Details"})}),Object(r.jsx)("h4",{children:Object(r.jsx)("span",{className:"float-right close-icon",children:Object(r.jsx)("i",{className:"material-icons",onClick:n,children:"close"})})})]}),Object(r.jsxs)("div",{className:"modal-body px-0 pb-0 pt-1",children:[Object(r.jsxs)("div",{className:"px-3",children:[Object(r.jsx)("div",{className:"border-bottom pb-1 px-0",children:Object(r.jsx)("span",{className:"text-bold",children:"msg"})}),Object(r.jsx)("div",{className:"border-bottom pb-1 px-0",children:o.message})]}),Object.entries(o).filter((function(e){var t=Object(s.a)(e,2),n=t[0];t[1];return!Ce.includes(n)})).map((function(e){var t=Object(s.a)(e,2),n=t[0],a=t[1];return"message"===n?"":Object(r.jsxs)("div",{className:"px-3",children:[Object(r.jsx)("div",{className:"border-bottom pb-1 px-0",children:Object(r.jsx)("span",{className:"text-bold",children:n})}),Object(r.jsx)("div",{className:"border-bottom pb-1 px-0",children:JSON.stringify(a)})]},n)}))]})]})},je=n(88),Fe=n(94),_e=n(92),Qe=n(98),Ue=function(e){var t=e.flowState.workspaces[e.flowState.selectedWorkspaceId].selectedFlowId;return e.flowState.flows[t]},ke=function(e){return e.flowState.workspaces[e.flowState.selectedWorkspaceId]},Se=function(e){var t=e.flowState.selectedWorkspaceId;return Object(Qe.pickBy)(e.flowState.flows,(function(e){return e.workspaceId===t}))},De=function(e){return e.flowState.workspaces},Ne=function(e){return e.flowState.workspaces[e.flowState.selectedWorkspaceId].flowArguments},He=function(e){var t=e.flowState.selectedWorkspaceId,n=Object(Qe.pickBy)(e.flowState.flows,(function(e){return e.workspaceId===t}));return Object.entries(n).filter((function(e){return"example"===e[1].type}))},Ie=function(e){return e.flowState.workspaces[e.flowState.selectedWorkspaceId].selectedFlowId},Me=function(e){return e.flowState.selectedWorkspaceId};function Te(){var e=Object(A.a)(["\n  color: black;\n  font-size: 18px;\n  font-weight: 600;\n  text-align: center;\n"]);return Te=function(){return e},e}function Re(){var e=Object(A.a)(["\n  cursor: pointer;\n  background-color: #ffffff;\n  width: 12rem;\n  height: 12rem;\n  margin: 0.5rem;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n"]);return Re=function(){return e},e}function Le(){var e=Object(A.a)(["\n  display: flex;\n  flex-wrap: wrap;\n  padding: 0 1rem 0 1rem;\n  margin-bottom: 1rem;\n"]);return Le=function(){return e},e}function Pe(){var e=Object(A.a)(["\n  cursor: pointer;\n  margin: 0;\n  padding: 0;\n  font-size: 2rem;\n  color: #ffffff;\n  float: right;\n  line-height: 100%;\n"]);return Pe=function(){return e},e}var Ke={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{backgroundColor:"#EBE8E8",border:"none",bottom:"auto",maxHeight:"80%",left:"50%",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",maxWidth:"44rem",overflow:"hidden"}},ze=te.a.div(Pe()),Ve=te.a.div(Le()),We=te.a.div(Re()),Ye=function(){return Object(r.jsx)("i",{style:{fontSize:"6rem",color:"#C4C4C4",marginBottom:"-1rem"},className:"material-icons",children:"add"})},Ge=te.a.span(Te()),Xe=function(e){var t=e.open,n=Object(c.b)(),a=Object(c.c)(He),o=function(e,t){switch(e){case"close":n(Object(V.a)());break;case"create from yaml":n(Object(V.i)("import"));break;case"create from template":t&&n(Object(_e.i)(t)),n(Object(V.a)());break;case"create empty":n(Object(_e.c)()),n(Object(V.a)())}};return Object(r.jsxs)(ve.a,{ariaHideApp:!1,isOpen:t,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,style:Ke,onRequestClose:function(){return o("close")},closeTimeoutMS:100,children:[Object(r.jsx)("div",{children:Object(r.jsx)(ze,{onClick:function(){return o("close")},children:Object(r.jsx)("i",{className:"material-icons",onClick:V.a,children:"close"})})}),Object(r.jsxs)(Ve,{children:[Object(r.jsxs)(We,{"data-name":"createEmptyFLowButton",onClick:function(){return o("create empty")},children:[Object(r.jsx)(Ye,{}),Object(r.jsx)(Ge,{children:"empty flow"})]}),Object(r.jsxs)(We,{onClick:function(){return o("create from yaml")},children:[Object(r.jsx)(Ye,{}),Object(r.jsx)(Ge,{children:"from yaml"})]}),a.map((function(e,t){return Object(r.jsx)(We,{onClick:function(){return o("create from template",e[1].yaml)},children:Object(r.jsx)(Ge,{children:e[1].name})},t)}))]})]})};function Je(){var e=Object(A.a)(["\n  width: 97%;\n"]);return Je=function(){return e},e}function qe(){var e=Object(A.a)(["\n  width: 97%;\n  background: #f1f3f4;\n  border-radius: 5px;\n  padding: 0.5em;\n  border: 0;\n  margin-bottom: 0.5rem;\n"]);return qe=function(){return e},e}function Ze(){var e=Object(A.a)(["\n  width: 104%;\n  margin-bottom: 1rem;\n  border: 0;\n  overflow: hidden;\n  overflow-y: scroll;\n  height: 20rem;\n  border-radius: 0.25em;\n\n  ::-webkit-scrollbar {\n    width: 1rem;\n  }\n\n  ::-webkit-scrollbar * {\n    background: transparent;\n  }\n\n  ::-webkit-scrollbar-thumb {\n    background: #099 !important;\n    border-radius: 1rem;\n  }\n"]);return Ze=function(){return e},e}function $e(){var e=Object(A.a)(["\n  font-weight: 600;\n  font-size: 20px;\n  color: #009999;\n  margin-bottom: 0.5rem;\n"]);return $e=function(){return e},e}function et(){var e=Object(A.a)(["\n  font-weight: 600;\n  font-size: 30px;\n  color: #009999;\n  margin-bottom: 0.5rem;\n"]);return et=function(){return e},e}function tt(){var e=Object(A.a)(["\n  width: 25rem;\n  margin-right: -1rem;\n"]);return tt=function(){return e},e}var nt={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",left:"50%",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",maxWidth:"30rem",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}},rt=te.a.div(tt()),at=te.a.header(et()),ot=te.a.header($e()),it=te.a.div(Ze()),st=te.a.input(qe()),At=Object(te.a)(he.a)(Je());var ct=function(e){var t,n,o=e.open,i=e.closeModal,A=e.modalParams,l=(null===A||void 0===A?void 0:A.nodeId)||"",u=Object(c.c)(Ue),d=Object(c.c)(Ne),f=u.flowChart.elements.find((function(e){return e.id===l})),h=Object(a.useState)(""),p=Object(s.a)(h,2),g=p[0],m=p[1],b=Object(a.useState)(d.pod),v=Object(s.a)(b,2),y=v[0],B=v[1],O=Object(c.b)();Object(a.useEffect)((function(){var e=d.pod.filter((function(e){return e.name.toLowerCase().includes(g.toLowerCase())}));B(e)}),[g,d]);var x=function(e,t){if(null===f||void 0===f?void 0:f.id){var n=Object(w.a)({},e,t);O(Object(_e.q)(f.id,n))}},C=(null===f||void 0===f||null===(t=f.data)||void 0===t?void 0:t.label)||(null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.name)||"Empty Pod";return je.a.log("PodEdit node",f),Object(r.jsx)(ve.a,{ariaHideApp:!1,isOpen:o,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,onRequestClose:i,closeTimeoutMS:100,style:nt,children:Object(r.jsxs)(rt,{"data-name":"podEditContainer",children:[Object(r.jsx)(at,{children:"pods name"}),Object(r.jsx)(st,{value:C,onChange:function(e){return function(e){if(null===f||void 0===f?void 0:f.id){var t={label:e};O(Object(_e.q)(f.id,t))}}(e.target.value)},className:"pod-name-input"}),Object(r.jsx)(at,{children:"properties"}),Object(r.jsx)(st,{placeholder:"search properties...",value:g,onChange:function(e){return m(e.target.value)}}),Object(r.jsx)(it,{children:y.map((function(e){var t=e.name,n=e.type;return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(ot,{children:t}),"boolean"===n?Object(r.jsx)("input",{type:"checkbox",toggle:!0,checked:"true"===(null===f||void 0===f?void 0:f.data[t]),className:"property-value-input","data-name":"pod_".concat(t,"_property"),onChange:function(){return x(t,"true"===(null===f||void 0===f?void 0:f.data[t])?"false":"true")},children:"true"===(null===f||void 0===f?void 0:f.data[t])?"ON":"OFF"}):Object(r.jsx)(st,{placeholder:n,type:"integer"===n?"number":"text",value:(null===f||void 0===f?void 0:f.data)?null===f||void 0===f?void 0:f.data[t]:"",onChange:function(e){return x(t,e.target.value)},className:"property-value-input"})]})}))}),Object(r.jsx)(At,{variant:"secondary",onClick:function(){(null===f||void 0===f?void 0:f.id)&&(O(Object(_e.g)(f.id)),i())},children:"Delete Pod"})]})})},lt=n(81),ut=n(176),dt={rest_api:{name:"rest_api",description:"Whether to enable REST interface",type:"boolean"},port_expose:{name:"port_expose",description:"Which port to expose gRPC or REST interface",type:"integer"}};var ft={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",left:"50%",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",maxWidth:"30rem",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}},ht=Object(ut.a)("div",{target:"epp8lbv9",label:"FlowSettingsContainer"})({name:"qaa5j2",styles:"width:100%;padding-left:1rem;padding-right:1rem"}),pt=Object(ut.a)("header",{target:"epp8lbv8",label:"Header1"})({name:"l0nwae",styles:"font-weight:600;font-size:30px;color:#009999;margin-bottom:0.5rem"}),gt=Object(ut.a)("header",{target:"epp8lbv7",label:"Header2"})({name:"xmmggg",styles:"font-weight:600;font-size:20px;margin-bottom:0.5rem"}),mt=Object(ut.a)("div",{target:"epp8lbv6",label:"PropertyTable"})({name:"1itp0qf",styles:"margin-bottom:1rem;overflow-y:auto;height:20rem;border-radius:0.25em"}),bt=Object(ut.a)("div",{target:"epp8lbv5",label:"PropertyItem"})({name:"pw7jst",styles:"position:relative;width:100%"}),vt=Object(ut.a)("input",{target:"epp8lbv4",label:"Input"})({name:"98gvet",styles:"width:100%;background:#f1f3f4;border-radius:5px;padding:0.5em;border:0;margin-bottom:0.5rem"}),wt=Object(ut.a)(he.a,{target:"epp8lbv3",label:"DeleteButton"})({name:"1d3w5wq",styles:"width:100%"}),yt=Object(ut.a)("div",{target:"epp8lbv2",label:"CheckBoxWrapper"})({name:"bjn8wh",styles:"position:relative"}),Bt=Object(ut.a)("label",{target:"epp8lbv1",label:"CheckBoxLabel"})({name:"kql5m8",styles:'position:absolute;top:0;left:0;width:41px;height:22px;border-radius:20px;background:#a6a6a6;cursor:pointer;&::after{content:"";display:block;border-radius:50%;width:18px;height:18px;margin:2px;background:#ffffff;transition:0.2s;}'}),Ot=Object(ut.a)("input",{target:"epp8lbv0",label:"CheckBox"})("opacity:0;z-index:1;border-radius:15px;width:42px;height:26px;&:checked+",Bt,'{background:#32c8cd;&::after{content:"";display:block;border-radius:50%;width:18px;height:18px;margin-left:21px;transition:0.2s;}}');function xt(e){var t=e.checked,n=e.setChecked;return Object(r.jsxs)(yt,{children:[Object(r.jsx)(Ot,{id:"checkbox",type:"checkbox",checked:t,onChange:function(e){return n(e.target.checked)}}),Object(r.jsx)(Bt,{htmlFor:"checkbox"})]})}var Ct=function(e){var t=e.open,n=e.closeModal,a=Object(c.c)(Ie),o=Object(c.c)(Ue),i=Object(c.b)();function s(e,t){var n,r=Object(lt.a)({},o);(null===(n=r.flowChart)||void 0===n?void 0:n.with)&&(r.flowChart.with[e]=t),i(Object(_e.r)(r))}return Object(r.jsx)(ve.a,{ariaHideApp:!1,isOpen:t,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,onRequestClose:n,closeTimeoutMS:100,style:ft,children:Object(r.jsxs)(ht,{"data-name":"settingsModal",children:[Object(r.jsx)(pt,{children:"Flow Name"}),Object(r.jsx)(vt,{value:o.name,onChange:function(e){return function(e){var t=Object(lt.a)(Object(lt.a)({},o),{},{name:e});i(Object(_e.r)(t))}(e.target.value)},className:"pod-name-input"}),Object(r.jsx)(pt,{children:"Settings"}),Object(r.jsx)(mt,{children:Object.values(dt).map((function(e,t){return Object(r.jsxs)(bt,{children:[Object(r.jsx)(gt,{children:null===e||void 0===e?void 0:e.name}),"boolean"===(null===e||void 0===e?void 0:e.type)?Object(r.jsx)(xt,{checked:!!o.flowChart.with&&!!o.flowChart.with[null===e||void 0===e?void 0:e.name],setChecked:function(t){return s(null===e||void 0===e?void 0:e.name,t)}}):Object(r.jsx)(vt,{placeholder:null===e||void 0===e?void 0:e.type,type:"integer"===(null===e||void 0===e?void 0:e.type)?"number":"text",value:o.flowChart.with&&(null===e||void 0===e?void 0:e.name)?o.flowChart.with[e.name].toString():"",onChange:function(t){(null===e||void 0===e?void 0:e.name)&&s(e.name,t.target.value)},className:"property-value-input"})]},t)}))}),Object(r.jsx)(wt,{variant:"secondary",onClick:function(){i(Object(_e.e)(a)),n()},children:"Delete Flow"})]})})},Et=n(19),jt=n.n(Et),Ft=n(26),_t=n(112),Qt=n.n(_t),Ut=n(149),kt=Qt.a.create(),St={connect:function(){var e=Object(Ft.a)(jt.a.mark((function e(t,n){var r;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return je.a.log("api - connect - settings",t),r="".concat(t.gatewayHost,":").concat(t.gatewayPort),kt?(kt.defaults.baseURL=r,kt.defaults.timeout=Ut.c):kt=Qt.a.create({baseURL:r,timeout:Ut.c}),e.prev=3,e.next=6,kt.get("/status");case 6:if(200!==e.sent.status){e.next=10;break}return je.a.log("api - connect successfully connected to gateway"),e.abrupt("return",n({connected:!0,message:"Successfully connected to Jina at ".concat(r)}));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),je.a.log("api - connect could not connect to gateway:",e.t0);case 15:return e.abrupt("return",n({connected:!1,message:"failed to connect"}));case 16:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t,n){return e.apply(this,arguments)}}(),search:function(){var e=Object(Ft.a)(jt.a.mark((function e(t){var n;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,kt.post("/api/search",{top_k:10,mode:"search",data:[t]});case 3:if(200!==(n=e.sent).status){e.next=7;break}return je.a.log("search - successful"),e.abrupt("return",n);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),je.a.log("search - error",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),index:function(){var e=Object(Ft.a)(jt.a.mark((function e(t){var n;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,kt.post("/api/index",{top_k:10,mode:"index",data:[t]});case 3:if(200!==(n=e.sent).status){e.next=7;break}return je.a.log("index - successful"),e.abrupt("return",n);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),je.a.log("index - error",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}()},Dt={overlay:{backgroundColor:"rgba(38, 50, 56, 0.5)"},content:{border:"none",bottom:"auto",left:"50%",position:"fixed",right:"auto",top:"50%",transform:"translate(-50%,-50%)",maxWidth:"30rem",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}};var Nt=function(e){var t=e.open,n=e.closeModal,o=(e.modalParams,Object(a.useState)("")),i=Object(s.a)(o,2),A=i[0],l=i[1],u=Object(a.useState)(""),d=Object(s.a)(u,2),f=d[0],h=d[1],p=Object(c.b)(),g=Object(a.useState)("rsult"),m=Object(s.a)(g,2),b=m[0],v=m[1];function w(){return(w=Object(Ft.a)(jt.a.mark((function e(){var t;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St.search(A);case 2:(t=e.sent)&&v(JSON.stringify(t.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(){return(y=Object(Ft.a)(jt.a.mark((function e(){var t;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St.index(f);case 2:(t=e.sent)&&v(JSON.stringify(t.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(r.jsxs)(ve.a,{ariaHideApp:!1,isOpen:t,contentLabel:"Action Modal",className:"modal-content tiny-modal px-4 pt-3 pb-4",shouldCloseOnOverlayClick:!0,onRequestClose:n,closeTimeoutMS:100,style:Dt,children:[Object(r.jsx)("button",{onClick:function(){St.connect(Fe.a.getState().settingsState.settings,(function(e){var t=e.connected,n=e.message;return p(Object(V.c)(t,n))}))},children:"connect"}),Object(r.jsx)("textarea",{onChange:function(e){return l(e.target.value)}}),Object(r.jsx)("button",{onClick:function(){return w.apply(this,arguments)},children:"Search"}),Object(r.jsx)("textarea",{onChange:function(e){return h(e.target.value)}}),Object(r.jsx)("button",{onClick:function(){return y.apply(this,arguments)},children:"Index"}),Object(r.jsx)("textarea",{value:b})]})},Ht=function(e){var t=Object(c.c)(p),n=Object(c.c)(g),o=Object(c.c)(b),i=Object(c.c)(h),A=Object(c.c)(m),l=je.a.isEnabled(),v=Object(c.c)(u),w=Object(c.c)(d),y=Object(c.c)(f),B=Object(a.useState)("true"===localStorage.getItem("accepted-cookies")),O=Object(s.a)(B,2),x=O[0],C=O[1],E=Object(c.b)(),j=function(){E(Object(V.a)())},F=function(){E(Object(V.b)())},_=function(){E(Object(V.j)())},Q=e.children,U=e.usesAuth,k=e.usesConnection,S=e.navigateButton;return Object(r.jsxs)("div",{className:"icon-sidebar-nav",children:[Object(r.jsxs)("div",{className:"flex h-full",children:[Object(r.jsx)(se.a,{sidebarNavItems:w,menuVisible:v,toggleSidebar:_}),Object(r.jsxs)("div",{className:"w-10/12 ",children:[Object(r.jsx)(ie,{user:y,usesAuth:U,usesConnection:k,logOut:function(){},toggleSidebar:_,reconnect:F,connected:A,navigateButton:S}),i.map((function(e,t){return Object(r.jsx)(ge,{data:e,index:t},t)})),k&&!o&&!A&&Object(r.jsx)(me,{reconnect:F}),Q,!x&&Object(r.jsx)(pe,{acceptCookies:function(){localStorage.setItem("accepted-cookies",String(!0)),C(!0)}}),Object(r.jsx)(fe,{loggerEnabled:l,enableLogger:function(){je.a.enable();var e=Fe.a.getState();je.a.log("Store Snapshot",e),E(Object(V.g)('Debug Mode Enabled. Click "Export Debug Data" to download Debug JSON.',"warning"))},disableLogger:function(){je.a.disable(),E(Object(V.g)("Debug Mode Disabled.","warning"))},exportLogs:function(){var e=Fe.a.getState();je.a.log("Store Snapshot",e),je.a.exportLogs()}})]})]}),Object(r.jsx)(Ee,{open:"logDetails"===t,closeModal:j,modalParams:n}),Object(r.jsx)(ye,{open:"import"===t,closeModal:j,importYAML:function(e){E(Object(_e.j)(e)),j()}}),Object(r.jsx)(Xe,{open:"newFlow"===t}),Object(r.jsx)(Oe,{open:"review"===t,closeModal:j,submitReview:function(){}}),"podEdit"===t&&Object(r.jsx)(ct,{open:"podEdit"===t,closeModal:j,modalParams:n}),"flowSettings"===t&&Object(r.jsx)(Ct,{open:"flowSettings"===t,closeModal:j,modalParams:n}),"QuerySearch"===t&&Object(r.jsx)(Nt,{open:"QuerySearch"===t,closeModal:j,modalParams:n})]})},It=n(115),Mt=n.n(It),Tt=function(e){var t=e.palette;return{INFO:{borderColor:t.info.main,backgroundColor:"rgba(0, 153, 153, 0.9)"},SUCCESS:{borderColor:t.success.main,backgroundColor:"rgba(50, 200, 205, 0.9)"},WARNING:{borderColor:t.warning.main,backgroundColor:"rgba(255, 204, 102, 0.9)"},ERROR:{borderColor:t.error.main,backgroundColor:"rgba(255, 102, 102, 0.9)"},CRITICAL:{borderColor:t.warning.dark,backgroundColor:"rgba(255, 70, 64, 0.9)"},DEBUG:{borderColor:t.grey[700],backgroundColor:"rgba(110, 114, 120, 0.9)"}}},Rt=n(46),Lt=["INFO","SUCCESS","WARNING","ERROR","CRITICAL","DEBUG"];function Pt(e,t){var n=Tt(t);return Lt.map((function(t){var r=e.map((function(e){return e.levels[t]}));return{barPercentage:.75,categoryPercentage:1,label:t,fill:"start",backgroundColor:n[t].backgroundColor,data:r}}))}function Kt(e){for(var t=[],n=0;n<(e||0);++n)t.push(n);return t}var zt=function(e){var t=e.width,n=e.height,o=e.data,i=e.numTicks,A=e.onClick,c=e.timeLabels,l=Object(a.useRef)(null),u=Object(a.useState)(null),d=Object(s.a)(u,2),f=d[0],h=d[1],p=Object(Rt.f)();function g(e){if(f){var t=f.getElementsAtEvent(e);A(t)}}var m=Object(a.useCallback)((function(e,t,n){return 0===t?c[0]:t===Math.floor(n.length/2)?c[1]:void 0}),[c]);function b(e){if(Number.isInteger(e))return e}function v(){return Object(r.jsx)("div",{className:"chart-legend mt-1 mb-3","data-name":"logOccurencesChartLegend",children:Object.entries(Tt(p)).map((function(e){var t=Object(s.a)(e,2),n=t[0],a=t[1];return Object(r.jsxs)("div",{className:"chart-legend-item",children:[Object(r.jsx)("div",{className:"chart-legend-indicator mr-1 ".concat(n.toLowerCase()),style:{backgroundColor:a.borderColor}}),Object(r.jsx)("span",{className:"chart-legend-caption mr-2",children:n})]},n)}))})}return Object(a.useEffect)((function(){if(l.current){var e={animation:{duration:0},events:["click"],onClick:g,maintainAspectRatio:!0,responsive:!0,legend:{display:!1},tooltips:{enabled:!1},elements:{point:{radius:0,hitRadius:20}},scales:{xAxes:[{stacked:!0,ticks:{padding:5,maxRotation:0,autoSkip:!1,callback:m},gridLines:{zeroLineColor:"#cfd8dc",color:"#cfd8dc"}}],yAxes:[{stacked:!0,scaleLabel:{display:!1},gridLines:{borderDash:[5,5],zeroLineColor:"#cfd8dc",drawBorder:!1,color:"#cfd8dc"},ticks:{padding:5,suggestedMin:0,autoSkip:!0,maxTicksLimit:4,callback:b}}]}},t={type:"bar",data:{datasets:Pt(o,p)},options:e},n=new Mt.a(l.current,t);h(n)}}),[]),Object(a.useEffect)((function(){if(f){var e={labels:Kt(i),datasets:Pt(o,p)};f.data=e,f.update()}}),[o,f,i,p]),Object(a.useEffect)((function(){f&&f.options.scales&&f.options.scales.xAxes&&f.options.scales.xAxes[0].ticks&&(f.options.scales.xAxes[0].ticks.callback=m,f.update())}),[m,f]),Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(v,{}),Object(r.jsx)("canvas",{height:n||10,width:t||100,ref:l})]})};function Vt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Wt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Yt=function(e,t){var n;void 0===t&&(t=Wt);var r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}},Gt=n(135);var Xt=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,o?0:a.cssRules.length)}catch(i){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Jt=function(e){function t(e,r,A,c,d){for(var f,h,p,g,w,B=0,O=0,x=0,C=0,E=0,k=0,D=p=f=0,H=0,I=0,M=0,T=0,R=A.length,L=R-1,P="",K="",z="",V="";H<R;){if(h=A.charCodeAt(H),H===L&&0!==O+C+x+B&&(0!==O&&(h=47===O?10:47),C=x=B=0,R++,L++),0===O+C+x+B){if(H===L&&(0<I&&(P=P.replace(u,"")),0<P.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:P+=A.charAt(H)}h=59}switch(h){case 123:for(f=(P=P.trim()).charCodeAt(0),p=1,T=++H;H<R;){switch(h=A.charCodeAt(H)){case 123:p++;break;case 125:p--;break;case 47:switch(h=A.charCodeAt(H+1)){case 42:case 47:e:{for(D=H+1;D<L;++D)switch(A.charCodeAt(D)){case 47:if(42===h&&42===A.charCodeAt(D-1)&&H+2!==D){H=D+1;break e}break;case 10:if(47===h){H=D+1;break e}}H=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;H++<L&&A.charCodeAt(H)!==h;);}if(0===p)break;H++}switch(p=A.substring(T,H),0===f&&(f=(P=P.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<I&&(P=P.replace(u,"")),h=P.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=U}if(T=(p=t(r,I,p,h,d+1)).length,0<S&&(w=s(3,p,I=n(U,P,M),r,F,j,T,h,d,c),P=I.join(""),void 0!==w&&0===(T=(p=w.trim()).length)&&(h=0,p="")),0<T)switch(h){case 115:P=P.replace(y,i);case 100:case 109:case 45:p=P+"{"+p+"}";break;case 107:p=(P=P.replace(m,"$1 $2"))+"{"+p+"}",p=1===Q||2===Q&&o("@"+p,3)?"@-webkit-"+p+"@"+p:"@"+p;break;default:p=P+p,112===c&&(K+=p,p="")}else p="";break;default:p=t(r,n(r,P,M),p,c,d+1)}z+=p,p=M=I=D=f=0,P="",h=A.charCodeAt(++H);break;case 125:case 59:if(1<(T=(P=(0<I?P.replace(u,""):P).trim()).length))switch(0===D&&(f=P.charCodeAt(0),45===f||96<f&&123>f)&&(T=(P=P.replace(" ",":")).length),0<S&&void 0!==(w=s(1,P,r,e,F,j,K.length,c,d,c))&&0===(T=(P=w.trim()).length)&&(P="\0\0"),f=P.charCodeAt(0),h=P.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){V+=P+A.charAt(H);break}default:58!==P.charCodeAt(T-1)&&(K+=a(P,f,h,P.charCodeAt(2)))}M=I=D=f=0,P="",h=A.charCodeAt(++H)}}switch(h){case 13:case 10:47===O?O=0:0===1+f&&107!==c&&0<P.length&&(I=1,P+="\0"),0<S*N&&s(0,P,r,e,F,j,K.length,c,d,c),j=1,F++;break;case 59:case 125:if(0===O+C+x+B){j++;break}default:switch(j++,g=A.charAt(H),h){case 9:case 32:if(0===C+B+O)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+O+B&&(I=M=1,g="\f"+g);break;case 108:if(0===C+O+B+_&&0<D)switch(H-D){case 2:112===E&&58===A.charCodeAt(H-3)&&(_=E);case 8:111===k&&(_=k)}break;case 58:0===C+O+B&&(D=H);break;case 44:0===O+x+C+B&&(I=1,g+="\r");break;case 34:case 39:0===O&&(C=C===h?0:0===C?h:C);break;case 91:0===C+O+x&&B++;break;case 93:0===C+O+x&&B--;break;case 41:0===C+O+B&&x--;break;case 40:if(0===C+O+B){if(0===f)switch(2*E+3*k){case 533:break;default:f=1}x++}break;case 64:0===O+x+C+B+D+p&&(p=1);break;case 42:case 47:if(!(0<C+B+x))switch(O){case 0:switch(2*h+3*A.charCodeAt(H+1)){case 235:O=47;break;case 220:T=H,O=42}break;case 42:47===h&&42===E&&T+2!==H&&(33===A.charCodeAt(T+2)&&(K+=A.substring(T,H+1)),g="",O=0)}}0===O&&(P+=g)}k=E,E=h,H++}if(0<(T=K.length)){if(I=r,0<S&&(void 0!==(w=s(2,K,I,e,F,j,T,c,d,c))&&0===(K=w).length))return V+K+z;if(K=I.join(",")+"{"+K+"}",0!==Q*_){switch(2!==Q||o(K,2)||(_=0),_){case 111:K=K.replace(v,":-moz-$1")+K;break;case 112:K=K.replace(b,"::-webkit-input-$1")+K.replace(b,"::-moz-$1")+K.replace(b,":-ms-input-$1")+K}_=0}}return V+K+z}function n(e,t,n){var a=t.trim().split(p);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var A=s=0;for(t=[];s<o;++s)for(var c=0;c<i;++c)t[A++]=r(e[c]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var A=i.substring(e,i.length-1).trim();return A=i.substring(0,e).trim()+A+";",1===Q||2===Q&&o(A,1)?"-webkit-"+A+A:A}if(0===Q||2===Q&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(E,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(A=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+A+i;case 1005:return f.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(A=i.substring(13).trim()).indexOf("-")+1,A.charCodeAt(0)+A.charCodeAt(t)){case 226:A=i.replace(w,"tb");break;case 232:A=i.replace(w,"tb-rl");break;case 220:A=i.replace(w,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+A+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(A=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|A.charCodeAt(7))){case 203:if(111>A.charCodeAt(8))break;case 115:i=i.replace(A,"-webkit-"+A)+";"+i;break;case 207:case 102:i=i.replace(A,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(A,"-webkit-"+A)+";"+i.replace(A,"-ms-"+A+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return A=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+A+"-ms-flex-"+A+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(A=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(A,"-webkit-"+A)+i.replace(A,"-moz-"+A.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(x,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(B," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,o,i,s,A,l){for(var u,d=0,f=t;d<S;++d)switch(u=k[d].call(c,e,f,n,r,a,o,i,s,A,l)){case void 0:case!1:case!0:case null:break;default:f=u}if(f!==t)return f}function A(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!==typeof e?Q=1:(Q=2,D=e):Q=0),A}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<S){var a=s(-1,n,r,r,F,j,0,0,0,0);void 0!==a&&"string"===typeof a&&(n=a)}var o=t(U,r,n,0,0);return 0<S&&(void 0!==(a=s(-2,o,r,r,F,j,o.length,0,0,0))&&(o=a)),"",_=0,j=F=1,o}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,B=/([\s\S]*?);/g,O=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,j=1,F=1,_=0,Q=1,U=[],k=[],S=0,D=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:S=k.length=0;break;default:if("function"===typeof t)k[S++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else N=0|!!t}return e},c.set=A,void 0!==e&&A(e),c},qt=(n(12),"/*|*/");function Zt(e){e&&$t.current.insert(e+"}")}var $t={current:null},en=function(e,t,n,r,a,o,i,s,A,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return $t.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+qt;break;case 3:switch(s){case 102:case 112:return $t.current.insert(n[0]+t),"";default:return t+(0===c?qt:"")}case-2:t.split("/*|*/}").forEach(Zt)}},tn=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Jt(t);var a,o={};a=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(en),i=function(e,t,n,a){var o=t.name;$t.current=n,r(e,t.styles),a&&(A.inserted[o]=!0)};var A={key:n,sheet:new Xt({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return A};n(260);function nn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var rn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}},an=n(36),on=n(37),sn=n(21),An=/[A-Z]|^ms/g,cn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ln=function(e){return 45===e.charCodeAt(1)},un=function(e){return null!=e&&"boolean"!==typeof e},dn=Object(sn.a)((function(e){return ln(e)?e:e.replace(An,"-$&").toLowerCase()})),fn=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(cn,(function(e,t,n){return pn={name:t,styles:n,next:pn},t}))}return 1===on.a[e]||ln(e)||"number"!==typeof t||0===t?t:t+"px"};function hn(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return pn={name:n.name,styles:n.styles,next:pn},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)pn={name:a.name,styles:a.styles,next:pn},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=hn(e,t,n[a],!1);else for(var o in n){var i=n[o];if("object"!==typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":un(i)&&(r+=dn(o)+":"+fn(o,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=hn(e,t,i,!1);switch(o){case"animation":case"animationName":r+=dn(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var A=0;A<i.length;A++)un(i[A])&&(r+=dn(o)+":"+fn(o,i[A])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=pn,i=n(e);return pn=o,hn(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var pn,gn=/label:\s*([^\s;\n{]+)\s*;/g;var mn=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";pn=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=hn(n,t,o,!1)):a+=o[0];for(var i=1;i<e.length;i++)a+=hn(n,t,e[i],46===a.charCodeAt(a.length-1)),r&&(a+=o[i]);gn.lastIndex=0;for(var s,A="";null!==(s=gn.exec(a));)A+="-"+s[1];return{name:Object(an.a)(a)+A,styles:a,next:pn}},bn=Object.prototype.hasOwnProperty,vn=Object(a.createContext)("undefined"!==typeof HTMLElement?tn():null),wn=Object(a.createContext)({}),yn=vn.Provider,Bn=function(e){var t=function(t,n){return Object(a.createElement)(vn.Consumer,null,(function(r){return e(t,r,n)}))};return Object(a.forwardRef)(t)},On="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xn=function(e,t){var n={};for(var r in t)bn.call(t,r)&&(n[r]=t[r]);return n[On]=e,n},Cn=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"===typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[On],s=[o],A="";"string"===typeof t.className?A=nn(e.registered,s,t.className):null!=t.className&&(A=t.className+" ");var c=mn(s);rn(e,c,"string"===typeof i);A+=e.key+"-"+c.name;var l={};for(var u in t)bn.call(t,u)&&"css"!==u&&u!==On&&(l[u]=t[u]);return l.ref=r,l.className=A,Object(a.createElement)(i,l)},En=Bn((function(e,t,n){return"function"===typeof e.css?Object(a.createElement)(wn.Consumer,null,(function(r){return Cn(t,e,r,n)})):Cn(t,e,null,n)}));var jn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mn(t)},Fn=function(e,t){var n=arguments;if(null==t||!bn.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=En,o[1]=xn(e,t);for(var i=2;i<r;i++)o[i]=n[i];return a.createElement.apply(null,o)},_n=(a.Component,function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a});function Qn(e,t,n){var r=[],a=nn(e,r,n);return r.length<2?n:a+t(r)}var Un=Bn((function(e,t){return Object(a.createElement)(wn.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=mn(n,t.registered);return rn(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Qn(t.registered,r,_n(n))},theme:n},o=e.children(a);return!0,o}))})),kn=n(29),Sn=function(){};function Dn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Nn(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push(""+Dn(e,a));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Hn=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===typeof e&&null!==e?[e]:[]};function In(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Mn(e){return In(e)?window.pageYOffset:e.scrollTop}function Tn(e,t){In(e)?window.scrollTo(0,t):e.scrollTop=t}function Rn(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=Sn);var a=Mn(e),o=t-a,i=0;!function t(){var s,A=o*((s=(s=i+=10)/n-1)*s*s+1)+a;Tn(e,A),i<n?window.requestAnimationFrame(t):r(e)}()}function Ln(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Pn=n(184),Kn=n.n(Pn);function zn(){return(zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wn(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,A=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=A.getBoundingClientRect().height,u=n.getBoundingClientRect(),d=u.bottom,f=u.height,h=u.top,p=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,m=Mn(A),b=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),w=p-v,y=g-h,B=w+m,O=l-m-h,x=d-g+m+b,C=m+h-v,E=160;switch(a){case"auto":case"bottom":if(y>=f)return{placement:"bottom",maxHeight:t};if(O>=f&&!i)return o&&Rn(A,x,E),{placement:"bottom",maxHeight:t};if(!i&&O>=r||i&&y>=r)return o&&Rn(A,x,E),{placement:"bottom",maxHeight:i?y-b:O-b};if("auto"===a||i){var j=t,F=i?w:B;return F>=r&&(j=Math.min(F-b-s.controlHeight,t)),{placement:"top",maxHeight:j}}if("bottom"===a)return Tn(A,x),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(B>=f&&!i)return o&&Rn(A,C,E),{placement:"top",maxHeight:t};if(!i&&B>=r||i&&w>=r){var _=t;return(!i&&B>=r||i&&w>=r)&&(_=i?w-v:B-v),o&&Rn(A,C,E),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+a+'".')}return c}var Yn=function(e){return"auto"===e?"bottom":e},Gn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,A=n.theme,c=t.context.getPortalPlacement;if(e){var l="fixed"===i,u=Wn({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!l,isFixedPosition:l,theme:A});c&&c(u),t.setState(u)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||Yn(e);return zn({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return Vn(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(a.Component);Gn.contextTypes={getPortalPlacement:x.a.func};var Xn=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},Jn=Xn,qn=Xn,Zn=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return Fn("div",zn({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};Zn.defaultProps={children:"No options"};var $n=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return Fn("div",zn({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};$n.defaultProps={children:"Loading..."};var er=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==Yn(t.props.menuPlacement)&&t.setState({placement:n})},t}Vn(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,a=e.menuPlacement,o=e.menuPosition,i=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var A=this.state.placement||Yn(a),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,u=c[A]+l,d=Fn("div",{css:i("menuPortal",{offset:u,position:o,rect:c})},n);return t?Object(kn.createPortal)(d,t):d},t}(a.Component);er.childContextTypes={getPortalPlacement:x.a.func};var tr=Array.isArray,nr=Object.keys,rr=Object.prototype.hasOwnProperty;function ar(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,a,o=tr(e),i=tr(t);if(o&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!ar(e[n],t[n]))return!1;return!0}if(o!=i)return!1;var s=e instanceof Date,A=t instanceof Date;if(s!=A)return!1;if(s&&A)return e.getTime()==t.getTime();var c=e instanceof RegExp,l=t instanceof RegExp;if(c!=l)return!1;if(c&&l)return e.toString()==t.toString();var u=nr(e);if((r=u.length)!==nr(t).length)return!1;for(n=r;0!==n--;)if(!rr.call(t,u[n]))return!1;for(n=r;0!==n--;)if(("_owner"!==(a=u[n])||!e.$$typeof)&&!ar(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}function or(e,t){try{return ar(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sr(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return sr=function(){return e},e}function Ar(){return(Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var cr={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},lr=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["size"]);return Fn("svg",Ar({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cr},n))},ur=function(e){return Fn(lr,Ar({size:20},e),Fn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},dr=function(e){return Fn(lr,Ar({size:20},e),Fn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},fr=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},hr=fr,pr=fr,gr=function(){var e=jn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(sr()),mr=function(e){var t=e.delay,n=e.offset;return Fn("span",{css:jn({animation:gr+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},br=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return Fn("div",Ar({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Fn(mr,{delay:0,offset:o}),Fn(mr,{delay:160,offset:!0}),Fn(mr,{delay:320,offset:!o}))};function vr(){return(vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}br.defaultProps={size:4};function wr(){return(wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yr(){return(yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Br=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Or(){return(Or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xr=function(e){var t=e.children,n=e.innerProps;return Fn("div",n,t)},Cr=xr,Er=xr;var jr=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,s=e.innerProps,A=e.isDisabled,c=e.removeProps,l=e.selectProps,u=r.Container,d=r.Label,f=r.Remove;return Fn(Un,null,(function(r){var h=r.css,p=r.cx;return Fn(u,{data:o,innerProps:Or({},s,{className:p(h(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":A},n))}),selectProps:l},Fn(d,{data:o,innerProps:{className:p(h(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:l},t),Fn(f,{data:o,innerProps:Or({className:p(h(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},c),selectProps:l}))}))};function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}jr.defaultProps={cropWithEllipsis:!0};function _r(){return(_r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qr(){return(Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ur(){return(Ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var kr={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return Fn("div",Ar({},o,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Fn(ur,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,s=e.innerRef,A=e.innerProps,c=e.menuIsOpen;return Fn("div",vr({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":c},a)},A),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return Fn("div",Ar({},o,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Fn(dr,null))},DownChevron:dr,CrossIcon:ur,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,s=e.label,A=e.theme,c=e.selectProps;return Fn("div",{css:a("group",e),className:r({group:!0},n)},Fn(o,wr({},i,{selectProps:c,theme:A,getStyles:a,cx:r}),s),Fn("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,o=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","theme","selectProps"]));return Fn("div",wr({css:r("groupHeading",wr({theme:a},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return Fn("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return Fn("span",Ar({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,o=e.isHidden,i=e.isDisabled,s=e.theme,A=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Fn("div",{css:r("input",yr({theme:s},A))},Fn(Kn.a,yr({className:n({input:!0},t),inputRef:a,inputStyle:Br(o),disabled:i},A)))},LoadingIndicator:br,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return Fn("div",zn({css:a("menu",e),className:r({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isMulti,i=e.innerRef;return Fn("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:er,LoadingMessage:$n,NoOptionsMessage:Zn,MultiValue:jr,MultiValueContainer:Cr,MultiValueLabel:Er,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Fn("div",n,t||Fn(ur,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,s=e.isSelected,A=e.innerRef,c=e.innerProps;return Fn("div",Fr({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s},n),ref:A},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return Fn("div",_r({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,s=e.isRtl;return Fn("div",ir({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return Fn("div",Qr({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,o=e.getStyles,i=e.hasValue;return Fn("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i},n)},t)}},Sr=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Dr=function(e){for(var t=0;t<Sr.length;t++)e=e.replace(Sr[t].letters,Sr[t].base);return e};function Nr(){return(Nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Hr=function(e){return e.replace(/^\s+|\s+$/g,"")},Ir=function(e){return e.label+" "+e.value};function Mr(){return(Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Tr={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Rr=function(e){return Fn("span",Mr({css:Tr},e))};function Lr(){return(Lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pr(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Fn("input",Lr({ref:t},n,{css:jn({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var Kr=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.props.innerRef(Object(kn.findDOMNode)(this))},a.componentWillUnmount=function(){this.props.innerRef(null)},a.render=function(){return this.props.children},r}(a.Component),zr=["boxSizing","height","overflow","paddingRight","position"],Vr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wr(e){e.preventDefault()}function Yr(e){e.stopPropagation()}function Gr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Xr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Jr=!(!window.document||!window.document.createElement),qr=0,Zr=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){var e=this;if(Jr){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&zr.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&qr<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,A=window.innerWidth-s+i||0;Object.keys(Vr).forEach((function(e){var t=Vr[e];o&&(o[e]=t)})),o&&(o.paddingRight=A+"px")}a&&Xr()&&(a.addEventListener("touchmove",Wr,this.listenerOptions),r&&(r.addEventListener("touchstart",Gr,this.listenerOptions),r.addEventListener("touchmove",Yr,this.listenerOptions))),qr+=1}},a.componentWillUnmount=function(){var e=this;if(Jr){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;qr=Math.max(qr-1,0),n&&qr<1&&zr.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&Xr()&&(a.removeEventListener("touchmove",Wr,this.listenerOptions),r&&(r.removeEventListener("touchstart",Gr,this.listenerOptions),r.removeEventListener("touchmove",Yr,this.listenerOptions)))}},a.render=function(){return null},r}(a.Component);Zr.defaultProps={accountForScrollbars:!0};var $r={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},ea=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Fn("div",null,Fn("div",{onClick:this.blurSelectInput,css:$r}),Fn(Kr,{innerRef:this.getScrollTarget},t),r?Fn(Zr,{touchScrollTarget:r}):null):t},r}(a.PureComponent);var ta=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,A=t.scrollTarget,c=A.scrollTop,l=A.scrollHeight,u=A.clientHeight,d=t.scrollTarget,f=n>0,h=l-u-c,p=!1;h>n&&t.isBottom&&(o&&o(e),t.isBottom=!1),f&&t.isTop&&(s&&s(e),t.isTop=!1),f&&n>h?(a&&!t.isBottom&&a(e),d.scrollTop=l,p=!0,t.isBottom=!0):!f&&-n>c&&(i&&!t.isTop&&i(e),d.scrollTop=0,p=!0,t.isTop=!0),p&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.startListening=function(e){e&&("function"===typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},a.stopListening=function(e){"function"===typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},a.render=function(){return o.a.createElement(Kr,{innerRef:this.getScrollTarget},this.props.children)},r}(a.Component);function na(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["isEnabled"]);return n?o.a.createElement(ta,r):r.children}var ra=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,a=n.isMulti,o=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(o||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},aa=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},oa=function(e){return!!e.isDisabled};var ia={clearIndicator:pr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+a.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dropdownIndicator:hr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:qn,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=a,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=o.menuGutter,t.marginTop=o.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:Jn,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*o.baseUnit+"px "+3*o.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var sa={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Aa(){return(Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var la,ua={backspaceRemovesValue:!0,blurInputOnSelect:Ln(),captureMenuScroll:!Ln(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Nr({ignoreCase:!0,ignoreAccents:!0,stringify:Ir,trim:!0,matchFrom:"any"},la),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,A=i?Hr(t):t,c=i?Hr(o(e)):o(e);return r&&(A=A.toLowerCase(),c=c.toLowerCase()),a&&(A=Dr(A),c=Dr(c)),"start"===s?c.substr(0,A.length)===A:c.indexOf(A)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oa,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},da=1,fa=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Ur({},kr,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Aa({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(o,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),a=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(a.length?a:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=ia[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:aa(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:ra(t,Aa({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!n.props.isDisabled){var t=n.props,r=t.isMulti,a=t.menuIsOpen;n.focusInput(),a?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"===typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&In(e.target)&&n.props.onMenuClose():"function"===typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||a>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,A=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,u=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,h=f.focusedOption,p=f.focusedValue,g=f.selectValue;if(!A&&("function"!==typeof l||(l(e),!e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(p)n.removeValue(p);else{if(!a)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!u||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(i)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),A=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:A,data:e},a))){var c=o?void 0:function(){return n.onOptionHover(e)},l=o?void 0:function(){return n.selectOption(e)},u=n.getElementId("option")+"-"+r;return{innerProps:{id:u,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:o,isSelected:i,key:u,label:s,type:"option",value:A}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=i(t,r+"-"+n);return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var o=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:o,data:t,options:a})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=Yt(n.cacheComponents,or).bind(ca(ca(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++da);var a=Hn(r);n.buildMenuOptions=Yt(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],a=n[1],o=t,i=o[0];return or(a,o[1])&&or(r.inputValue,i.inputValue)&&or(r.options,i.options)})).bind(ca(ca(n)));var o=t.menuIsOpen?n.buildMenuOptions(t,a):{render:[],focusable:[]};return n.state.menuOptions=o,n.state.selectValue=a,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,a=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==a||e.inputValue!==o){var i=Hn(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},A=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:A})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?Tn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&Tn(e,Math.max(t.offsetTop-a,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:o.focusable.length-1;if(!i){var A=o.focusable.indexOf(r[0]);A>-1&&(s=A)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var A=o.length-1,c=-1;if(o.length){switch(e){case"previous":c=0===s?0:-1===s?A:s-1;break;case"next":s>-1&&s<A&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:o[c]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var o=0,i=a.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=i>0?i-1:a.length-1:"down"===e?o=(i+1)%a.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>a.length-1&&(o=a.length-1):"last"===e&&(o=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:oa(a[o])}})}},a.getTheme=function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(sa):Aa({},sa,this.props.theme):sa},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,s=a.isRtl,A=a.options,c=this.state.selectValue,l=this.hasValue();return{cx:Nn.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:l,isMulti:i,isRtl:s,options:A,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}},a.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"===typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"===typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.formatOptionLabel=function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,s=o.menuIsOpen,A=o.inputValue,c=o.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(a&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:a,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:A,screenReaderMessage:c({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,i=e.tabIndex,s=this.components.Input,A=this.state.inputIsHidden,c=r||this.getElementId("input"),l={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return o.a.createElement(Pr,Aa({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Sn,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""},l));var u=this.commonProps,d=u.cx,f=u.theme,h=u.selectProps;return o.a.createElement(s,Aa({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,theme:f,type:"text",value:a},l))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,A=t.Placeholder,c=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,h=l.inputValue,p=l.placeholder,g=this.state,m=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!u)return h?null:o.a.createElement(A,Aa({},c,{key:"placeholder",isDisabled:d,isFocused:v}),p);if(f)return m.map((function(t,s){var A=t===b;return o.a.createElement(n,Aa({},c,{components:{Container:r,Label:a,Remove:i},isFocused:A,isDisabled:d,key:e.getOptionValue(t),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=m[0];return o.a.createElement(s,Aa({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,Aa({},t,{innerProps:s,isFocused:i}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.a.createElement(e,Aa({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,Aa({},r,{isDisabled:a,isFocused:i}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,Aa({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,A=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state,f=d.focusedOption,h=d.menuOptions,p=this.props,g=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,v=p.loadingMessage,w=p.minMenuHeight,y=p.maxMenuHeight,B=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,C=p.menuPortalTarget,E=p.menuShouldBlockScroll,j=p.menuShouldScrollIntoView,F=p.noOptionsMessage,_=p.onMenuScrollToTop,Q=p.onMenuScrollToBottom;if(!B)return null;var U,k=function(t){var n=f===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(l,Aa({},u,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())U=h.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["type"]),i=t.key+"-heading";return o.a.createElement(n,Aa({},u,a,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return k(e)})))}if("option"===t.type)return k(t)}));else if(b){var S=v({inputValue:m});if(null===S)return null;U=o.a.createElement(A,u,S)}else{var D=F({inputValue:m});if(null===D)return null;U=o.a.createElement(c,u,D)}var N={minMenuHeight:w,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:j},H=o.a.createElement(Gn,Aa({},u,N),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,A=r.maxHeight;return o.a.createElement(a,Aa({},u,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.a.createElement(na,{isEnabled:g,onTopArrive:_,onBottomArrive:Q},o.a.createElement(ea,{isEnabled:E},o.a.createElement(i,Aa({},u,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:A}),U))))}));return C||"fixed"===x?o.a.createElement(s,Aa({},u,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),H):H},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(a){if(n){var A=s.map((function(t){return e.getOptionValue(t)})).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:A})}var c=s.length>0?s.map((function(t,n){return o.a.createElement("input",{key:"i-"+n,name:i,type:"hidden",value:e.getOptionValue(t)})})):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:l})}},a.renderLiveRegion=function(){return this.state.isFocused?o.a.createElement(Rr,{"aria-live":"polite"},o.a.createElement("p",{id:"aria-selection-event"},"\xa0",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"},"\xa0",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,A=i.id,c=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.a.createElement(r,Aa({},d,{className:s,innerProps:{id:A,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),o.a.createElement(t,Aa({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:l}),o.a.createElement(a,Aa({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,Aa({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(a.Component);function ha(){return(ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}fa.defaultProps=ua;var pa={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};a.Component;var ga=function(e){var t,n;return n=t=function(t){var n,r;function a(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}r=t,(n=a).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var i=a.prototype;return i.focus=function(){this.select.focus()},i.blur=function(){this.select.blur()},i.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},i.callProp=function(e){if("function"===typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}},i.render=function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(e,ha({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},a}(a.Component),t.defaultProps=pa,n}(fa),ma={dropdownIndicator:function(e){return Object(lt.a)(Object(lt.a)({},e),{},{color:"black"})},indicatorSeparator:function(e){return Object(lt.a)(Object(lt.a)({},e),{},{opacity:"0"})},container:function(e,t){var n=t.selectProps.width;return Object(lt.a)(Object(lt.a)({},e),{},{width:n})},option:function(e){return Object(lt.a)(Object(lt.a)({},e),{},{cursor:"pointer"})},control:function(e){return Object(lt.a)(Object(lt.a)({},e),{},{cursor:"pointer",border:"none",background:"#F6F8FA"})}};function ba(e){var t=e.isMulti,n=e.isSearchable,a=e.clearAfter,o=e.onFilterChange,i=e.options,s=Vt(e,["isMulti","isSearchable","clearAfter","onFilterChange","options"]),A=a?null:void 0;return Object(r.jsx)(ga,Object(lt.a)({onChange:function(e){o(Array.isArray(e)?e:e?[e]:[])},value:A,isMulti:t,options:i,styles:ma,readOnly:!0,isSearchable:n},s))}function va(e){var t=e.children,n=e.className;return Object(r.jsx)("div",{className:"".concat(n," flex bg-white rounded-md border border-gray-200 p-4"),children:t})}function wa(e){var t=e.data,n=t.data,a=(t.numSeconds,t.numTicks),o=e.showLog,i=e.setTimeSelection,s=e.timeOptions,A=e.selectedTime,c=e.timeLabels;return Object(r.jsx)(va,{className:"h-full flex-col mr-4",children:Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("div",{className:"p-2 px-3",children:Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{"data-name":"logOccurenceTitle",children:"Log Occurences by Level"}),Object(r.jsx)("div",{className:"text-right","data-name":"logOccurenceDurationSelect",children:Object(r.jsx)(ba,{clearAfter:!0,options:Object.values(s),onFilterChange:function(e){return i(e[0].value)},className:"logstream-select text-left",placeholder:Object(r.jsxs)("span",{"data-name":"logOccurenceDurationSelectedOption",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"access_time"}),s[A].label]}),isSearchable:!1})})]})}),Object(r.jsx)("div",{className:"d-none d-md-block p-0 pb-2 px-3",children:Object(r.jsx)(zt,{timeLabels:c,data:n,numTicks:a,height:10,width:70,onClick:o})})]})})}var ya=function(e){var t=e.width,n=e.height,o=e.data,i=Object(a.useRef)(null),A=Object(a.useState)(null),c=Object(s.a)(A,2),l=c[0],u=c[1],d=Object(Rt.f)(),f=Object(a.useCallback)((function(e){return Tt(d)[e]}),[d]);return Object(a.useEffect)((function(){if(i.current){var e=Object.keys(o),t={type:"pie",data:{datasets:[{borderWidth:1,data:Object.values(o),borderColor:e.map((function(e){return f(e).borderColor})),backgroundColor:e.map((function(e){return f(e).backgroundColor}))}]},options:{animation:{duration:0},legend:{display:!1,position:"bottom",labels:{padding:25,boxWidth:20}},tooltips:{mode:"index",position:"nearest"}}},n=new Mt.a(i.current,t);u(n)}}),[]),Object(a.useEffect)((function(){if(l){var e=Object.keys(o),t={labels:e,datasets:[{borderWidth:1,data:Object.values(o),borderColor:e.map((function(e){return f(e).borderColor})),backgroundColor:e.map((function(e){return f(e).backgroundColor}))}]};l.data=t,l.update()}}),[o,l,f]),Object(r.jsx)("canvas",{height:n||50,width:t||50,ref:i})};function Ba(e){var t=e.data;return Object(r.jsxs)(va,{className:"h-full flex flex-col",children:[Object(r.jsx)("div",{className:"text-center p-2",children:"Log Levels"}),Object(r.jsx)("div",{className:"px-3 pt-0 pb-3 flex-grow",children:Object(r.jsx)(ya,{data:t})})]})}var Oa=n(103),xa=n(235),Ca="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ea(e){cancelAnimationFrame(e.id)}function ja(e,t){var n=Ca();var r={id:requestAnimationFrame((function a(){Ca()-n>=t?e.call(null):r.id=requestAnimationFrame(a)}))};return r}var Fa=null;function _a(e){if(void 0===e&&(e=!1),null===Fa||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Fa="positive-descending":(t.scrollLeft=1,Fa=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Fa}return Fa}var Qa=function(e,t){return e};function Ua(e){var t,n,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,s=e.getOffsetForIndexAndAlignment,A=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Object(xa.a)(Object(xa.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(xa.a)(Object(xa.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Yt((function(e,t,r,a){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:a})})),n._callOnScroll=void 0,n._callOnScroll=Yt((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,a=n.props,o=a.direction,s=a.itemSize,A=a.layout,c=n._getItemStyleCache(u&&s,u&&A,u&&o);if(c.hasOwnProperty(e))t=c[e];else{var l,d=r(n.props,e,n._instanceProps),f=i(n.props,e,n._instanceProps),h="horizontal"===o||"horizontal"===A;c[e]=((l={position:"absolute"})["rtl"===o?"right":"left"]=h?d:0,l.top=h?0:d,l.height=h?"100%":f,l.width=h?f:"100%",t=l)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Yt((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,a=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===a)return null;var t=n.props.direction,i=a;if("rtl"===t)switch(_a()){case"negative":i=-a;break;case"positive-descending":i=o-r-a}return i=Math.max(0,Math.min(i,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,a=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,a-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Ea(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ja(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(Gt.a)(t,e),t.getDerivedStateFromProps=function(e,t){return ka(e,t),d(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(s(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var a=this._outerRef;"horizontal"===t||"horizontal"===r?a.scrollLeft=n:a.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,a=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_a()){case"negative":o.scrollLeft=-a;break;case"positive-ascending":o.scrollLeft=a;break;default:var i=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-i-a}else o.scrollLeft=a;else o.scrollTop=a}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ea(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,s=e.innerRef,A=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=void 0===d?Qa:d,h=e.layout,p=e.outerElementType,g=e.outerTagName,m=e.style,b=e.useIsScrolling,v=e.width,w=this.state.isScrolling,y="horizontal"===r||"horizontal"===h,O=y?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),C=x[0],E=x[1],j=[];if(l>0)for(var F=C;F<=E;F++)j.push(Object(a.createElement)(t,{data:u,key:f(F,u),index:F,isScrolling:b?w:void 0,style:this._getItemStyle(F)}));var _=o(this.props,this._instanceProps);return Object(a.createElement)(p||g||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:Object(B.a)({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},m)},Object(a.createElement)(A||c||"div",{children:j,ref:s,style:{height:y?"100%":_,pointerEvents:w?"none":void 0,width:y?_:"100%"}}))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],a=e[3];this._callOnItemsRendered(t,n,r,a)}if("function"===typeof this.props.onScroll){var o=this.state,i=o.scrollDirection,s=o.scrollOffset,A=o.scrollUpdateWasRequested;this._callOnScroll(i,s,A)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,a=r.isScrolling,o=r.scrollDirection,i=r.scrollOffset;if(0===t)return[0,0,0,0];var s=A(this.props,i,this._instanceProps),l=c(this.props,s,i,this._instanceProps),u=a&&"backward"!==o?1:Math.max(1,n),d=a&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-u),Math.max(0,Math.min(t-1,l+d)),s,l]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var ka=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Sa=Ua({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var a=e.direction,o=e.height,i=e.itemCount,s=e.itemSize,A=e.layout,c=e.width,l="horizontal"===a||"horizontal"===A?c:o,u=Math.max(0,i*s-l),d=Math.min(u,t*s),f=Math.max(0,t*s-l+s);switch("smart"===n&&(n=r>=f-l&&r<=d+l?"auto":"center"),n){case"start":return d;case"end":return f;case"center":var h=Math.round(f+(d-f)/2);return h<Math.ceil(l/2)?0:h>u+Math.floor(l/2)?u:h;case"auto":default:return r>=f&&r<=d?r:r<f?f:d}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,a=e.height,o=e.itemCount,i=e.itemSize,s=e.layout,A=e.width,c=t*i,l="horizontal"===r||"horizontal"===s?A:a,u=Math.ceil((l+n-c)/i);return Math.max(0,Math.min(o-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function Da(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function Na(e,t){var n=e.style,r=Object(y.a)(e,["style"]),a=t.style,o=Object(y.a)(t,["style"]);return!Da(n,a)&&!Da(r,o)}var Ha=n(261),Ia=n(262),Ma=n.n(Ia),Ta=n(180),Ra=n(73),La=Object(a.memo)((function(e){var t=e.index,n=e.style,r=e.data,a=r.columns,o=r.items,i=r.showLogDetails,s=o[t],A=s.name,c=s.message,l=s.level,u=s.process,d=s.formattedTimestamp,f=s.idx,h=String(A);h=h.length>20?h.substring(0,20):h;var p=String(l)[0],g=a.firstCol,m=a.secondCol,b=a.thirdCol;return Object(Ra.c)("div",{"data-name":"logItem-".concat(t),className:"log log-".concat(String(l).toLowerCase()," px-4 border-bottom py-1"),css:{maxHeight:84},style:n,onClick:function(){return i(s)}},Object(Ra.c)("div",{className:"flex"},Object(Ra.c)("div",{className:"log-prefix text-muted px-0 flex flex-row",css:{maxWidth:g}},Object(Ra.c)("div",{className:"text-bold mr-2"},f),Object(Ra.c)("div",{className:"ml-auto"},d)),Object(Ra.c)("div",{className:"log-prefix px-0 text-left text-md-right text-bold cursor-pointer",css:{maxWidth:m}},h,"@",u,"[",p,"]:"),Object(Ra.c)("div",{className:"px-0",css:{maxHeight:84,display:"block",overflow:"hidden",textOverflow:"ellipsis",width:b,whiteSpace:"nowrap",paddingRight:0,marginRight:0}},c)))}),Na),Pa=function(e){var t=e.columns,n=t.firstCol,r=t.secondCol,a=e.border;return Object(Ra.c)("div",{className:"px-4 py-1 bg-light text-monospace ".concat(a?"border-top":""),css:{maxHeight:84}},Object(Ra.c)("div",{className:"flex"},Object(Ra.c)("div",{className:"log-prefix text-muted px-0 flex md:flex-1",css:{maxWidth:n}},Object(Ra.c)("div",{className:"text-bold mr-2 text-lightGray"},"#"),Object(Ra.c)("div",{className:"ml-auto text-lightGray"},"timestamp")),Object(Ra.c)("div",{className:"log-prefix px-0 text-right text-md-right text-bold md:flex-1",css:{maxWidth:r}},"source@process[level]:"),Object(Ra.c)("div",{className:"px-0 md:flex-1 text-lightGray",css:{maxHeight:84,display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingRight:0,marginRight:0}},"message")))},Ka=n(326),za=Object(H.a)(a.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Va=Object(H.a)(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Wa(){var e=Object(A.a)(["\n    display: flex;\n    background-color: ",";\n    border-radius: 2px;\n  "]);return Wa=function(){return e},e}function Ya(e){var t=e.onSearch,n=e.value,a=e.onChange,o=te.a.div(Wa(),(function(e){return e.theme.palette.grey[100]}));return Object(r.jsxs)(o,{children:[Object(r.jsx)(N.a,{type:"submit",onClick:function(){return t&&t(n)},children:Object(r.jsx)(za,{})}),Object(r.jsx)(Ka.c,{autoFocus:!0,onChange:function(e){return a(e.target.value)},defaultValue:n,placeholder:"Search",onKeyPress:function(e){"Enter"===e.key&&t&&t(n)}}),n&&Object(r.jsx)(N.a,{onClick:function(){t&&t("")},children:Object(r.jsx)(Va,{})})]})}var Ga={success:{name:"check_circle",color:"success"},pending:{name:"pending",color:"muted"},warning:{name:"error",color:"warning"},failed:{name:"cancel",color:"critical"}};function Xa(e){var t=e.levels,n=e.numItems;return je.a.log("levels:",t),Object(r.jsxs)("span",{className:"ml-2 text-muted",children:["(",n,")"]})}function Ja(e){var t=function(e){var t=Object.keys(e);return t.find((function(e){return"critical"===e.toLowerCase()}))||t.find((function(e){return"error"===e.toLowerCase()}))?"failed":t.find((function(e){return"warning"===e.toLowerCase()}))?"warning":"success"}(e.levels),n=Ga[t];return Object(r.jsx)("i",{className:"no-select material-icons log-".concat(n.color," mr-2"),children:n.name})}function qa(e){var t=e.expanded;return Object(r.jsx)("i",{className:"no-select material-icons text-muted cursor-pointer ".concat(t?"rotate-90":""," mr-2"),children:"arrow_forward_ios"})}function Za(e){var t=e.title,n=e.body,o=e.levels,i=e.numItems,A=e.group,c=Object(a.useState)(!1),l=Object(s.a)(c,2),u=l[0],d=l[1];return Object(r.jsxs)("div",{className:"log-group-item m-2 ".concat(u?"bg-light":""),children:[Object(r.jsxs)("div",{className:"log-group-header cursor-pointer p-2",onClick:function(){return d((function(e){return!e}))},children:[Object(r.jsx)(qa,{expanded:u}),o&&Object(r.jsx)(Ja,{levels:o}),Object(r.jsx)("span",{className:"group-level"===A?"log-".concat(t.toLowerCase()):"",children:t}),!o&&Object(r.jsx)(Xa,{levels:o,numItems:i,title:t})]}),Object(r.jsx)("div",{children:Object(r.jsx)("div",{className:"log-group-body p-3",children:Object(r.jsx)("div",{className:"bg-white border",children:n})})})]})}var $a=n(104),eo="logs-view-preference",to=[{value:"csv",label:"CSV"},{value:"json",label:"JSON"},{value:"txt",label:"TXT"}],no={table:{value:"table",label:"Table View"},"group-pod":{value:"group-pod",label:"Group by Pod"},"group-level":{value:"group-level",label:"Group by Level"}};function ro(){return function(){var e=localStorage.getItem(eo);return!(!e||!no[e])&&e}()||"table"}var ao=0,oo=Ma.a.create({doc:{id:"id",field:["filename","funcName","module","message","pathname","name"]}}),io=function(e,t){var n=function(e){return"jina-logs-".concat(new Date,".").concat(e)}(t);return"csv"===t?Object(Ta.saveAs)(Object($a.g)(e),n):"json"===t?Object(Ta.saveAs)(Object($a.h)(e),n):"txt"===t?Object(Ta.saveAs)(Object($a.i)(e),n):void 0},so=function(e,t){return t.items[e].id},Ao=function(e){return Array.isArray(e)?e:Array.from(e)},co=function(e){return Ao(e).map((function(e){return{label:e,value:e}}))};function lo(e){var t=e.data,n=e.firstCol,o=e.secondCol,i=e.showLogDetails,A=e.small,c=Object(a.useRef)(),l=Object(a.useState)(!0),u=Object(s.a)(l,2),d=u[0],f=u[1];return Object(a.useEffect)((function(){c.current&&d&&c.current.scrollToItem(t.length)}),[t.length,d]),Object(r.jsxs)("div",{children:[!d&&Object(r.jsxs)("div",{onClick:function(){return c.current.scrollToItem(t.length)},className:"back-to-bottom active",children:[Object(r.jsx)("i",{className:"material-icons",children:"arrow_downward"})," Back to Bottom"]}),Object(r.jsx)(Pa,{columns:{firstCol:n,secondCol:o},border:!A}),Object(r.jsx)("div",{className:"log-stream-container".concat(A?"-small":""," p-0 border-top"),children:Object(r.jsx)(Ha.a,{children:function(e){var a=e.height,s=e.width,A=s-(n+o);return Object(r.jsx)(Sa,{onScroll:function(e){var n=e.scrollOffset;f((n+a)/30-t.length===0)},height:a,width:s,itemCount:t.length,itemSize:30,itemKey:so,itemData:{items:t,columns:{firstCol:n,secondCol:o,thirdCol:A},showLogDetails:i},ref:c,children:La})}})})]})}function uo(e){var t=e.groupedData,n=e.grouping,a=e.firstCol,o=e.secondCol,i=e.showLogDetails;return Object(r.jsx)("div",{className:"log-stream-container p-0 border-top","data-name":"groupedLogsContainer",children:Object.keys(t).length&&Object(r.jsx)("div",{className:"log-group-container",children:Object.entries(t).map((function(e,t){var A=Object(s.a)(e,2),c=A[0],l=A[1];return Object(r.jsx)(Za,{group:n,title:c,levels:l.levels,numItems:l.data.length,body:Object(r.jsx)(lo,{firstCol:a,secondCol:o,data:l.data,showLogDetails:i,small:!0})},t)}))})})}function fo(e){var t=e.data,n=e.showLogDetails,o=Object(a.useState)((function(){return ro()})),i=Object(s.a)(o,2),A=i[0],c=i[1],l=Object(a.useState)([]),u=Object(s.a)(l,2),d=u[0],f=u[1],h=Object(a.useState)([]),p=Object(s.a)(h,2),g=p[0],m=p[1],b=Object(a.useState)([]),v=Object(s.a)(b,2),w=v[0],y=v[1],B=Object(a.useState)(""),O=Object(s.a)(B,2),x=O[0],C=O[1],E=Object(a.useCallback)(Object(Ft.a)(jt.a.mark((function e(){var n,r;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slice(ao,t.length),oo.add(n),ao=t.length,e.next=5,oo.search(x);case 5:r=e.sent,y(r);case 7:case"end":return e.stop()}}),e)}))),[x,t.length]);function j(e){var t;c(e),t=e,localStorage.setItem(eo,t)}Object(a.useEffect)((function(){x&&t.length&&E()}),[t.length,x,E]);var F=x?w:t,_=t.reduce((function(e,t){return e.add(t.name)}),new Set),Q={};je.a.log("unfiltered logs",F);var U=(F||[]).filter((function(e){return t=e,n={level:g.map((function(e){return e.value})),name:d.map((function(e){return e.value}))},Object.entries(n).reduce((function(e,n){var r=Object(s.a)(n,2),a=r[0],o=r[1];return e&&Array.isArray(o)?0===o.length||o.includes(t[a]):o===t[a]}),!0);var t,n}));if("group-pod"===A){var k=Ao(_).map((function(e){return e.toLowerCase().split("-")[0]}));Q={},k.forEach((function(e){var t={};t.data=(U||[]).filter((function(t){return t.name&&t.name.toLowerCase().startsWith(e)})),t.data.length&&(t.levels=Object(Qe.countBy)(t.data,"level"),Q[e]=t)}))}else"group-level"===A&&(Q={},Lt.forEach((function(e){var t={};t.data=(U||[]).filter((function(t){return t.level===e})),t.data.length&&(Q[e]=t)})));return Object(r.jsxs)(va,{className:"mb-4 flex-col",children:[Object(r.jsx)("div",{className:"p-0",children:Object(r.jsxs)("div",{className:"p-3 flex",children:[Object(r.jsxs)("div",{"data-name":"logStreamFilters",children:[Object(r.jsx)(ba,{clearAfter:!0,options:Object.values(no),onFilterChange:function(e){return j(e[0].value)},className:"logstream-select mb-2 mr-0 mb-md-0 mr-md-2",placeholder:"table"===A?Object(r.jsxs)("span",{"data-name":"logStreamViewSelectedOption",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"table_rows"}),"Table View"]}):Object(r.jsxs)("span",{"data-name":"logStreamViewSelectedOption",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"view_list"}),no[A].label]}),isSearchable:!1}),"table"===A&&Object(r.jsx)(ba,{isMulti:!0,options:co(_),onFilterChange:f,className:"logstream-select mb-2 mr-0 mb-md-0 mr-md-2",placeholder:Object(r.jsxs)("span",{"data-name":"logStreamSourceSelectedOption",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"mediation"}),"All Sources"]})}),Object(r.jsx)(ba,{isMulti:!0,options:co(Lt),onFilterChange:m,className:"logstream-select mb-2 mr-0 mb-md-0 mr-md-2",placeholder:Object(r.jsxs)("span",{"data-name":"logStreamLevelSelectedOption",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"bar_chart"}),"All Levels"]})}),Object(r.jsx)(ba,{clearAfter:!0,options:to,onFilterChange:function(e){io(t,e[0].value)},className:"logstream-select mb-2 mr-0 mb-md-0 mr-md-2",placeholder:Object(r.jsxs)("span",{"data-name":"logStreamActionsSelect",children:[Object(r.jsx)("i",{className:"material-icons mr-2",children:"download"}),"Download Logs"]}),isSearchable:!1})]}),Object(r.jsx)("div",{children:Object(r.jsx)(Ya,{placeholder:"search logs...",value:x,onChange:C})})]})}),"table"===A?Object(r.jsx)(lo,{firstCol:300,secondCol:300,data:U,showLogDetails:n,small:!1}):Object(r.jsx)(uo,{firstCol:300,secondCol:300,grouping:A,groupedData:Q,showLogDetails:n})]})}var ho=n(150),po=function(e){return e.logStreamState.logs},go=function(e){return e.logStreamState.logLevels},mo=function(e){return e.logStreamState.logLevelOccurrences},bo=n(91),vo="logs-time-preference",wo={"60second":{value:"60second",label:"60 Seconds",chartLabels:["60s ago","30s ago",""]},"15minute":{value:"15minute",label:"15 Minutes",chartLabels:["15m ago","7m 30s ago",""]},"1hour":{value:"1hour",label:"1 Hour",chartLabels:["1h ago","30m ago",""]}},yo={"60second":60,"15minute":900,"1hour":3600};function Bo(){return function(){var e=localStorage.getItem(vo);return!(!e||!wo[e])&&e}()||"60second"}function Oo(){var e=Object(c.b)(),t=Object(c.c)(mo),n=Object(c.c)(po),o=Object(c.c)(go),i=Object(a.useState)((function(){return Bo()})),A=Object(s.a)(i,2),l=A[0],u=A[1],d=Object(a.useState)((function(){return Object(bo.e)(yo[l],60,t,new Date)})),f=Object(s.a)(d,2),h=f[0],p=f[1];Object(a.useEffect)((function(){var e=new Date,n=Object(bo.e)(yo[l],60,t,e);p(Object(lt.a)({},n))}),[l,t]);var g=wo[l];return Object(r.jsx)("div",{className:"main-content-container px-0",children:Object(r.jsxs)("div",{className:"px-4",children:[Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(Oa.a,{title:"Log Stream",className:"text-sm-left mb-3"})}),Object(r.jsxs)("div",{className:"flex",children:[Object(r.jsx)("div",{className:"mb-4 w-10/12",children:Object(r.jsx)(wa,{data:h,showLog:function(t){var n=h.data,r=t[0]&&t[0]._index;if(r&&"undefined"!==typeof r){var a=n[r].lastLog;e(Object(ho.b)(a))}},setTimeSelection:function(e){var t;u(e),t=e,localStorage.setItem(vo,t)},timeOptions:wo,selectedTime:l,timeLabels:g.chartLabels})}),Object(r.jsx)("div",{className:"mb-4 w-2/12",children:Object(r.jsx)(Ba,{data:o})})]}),Object(r.jsx)(fo,{data:n,showLogDetails:function(t){e(Object(V.i)("logDetails",{log:t}))}})]})})}function xo(e){var t=e.elapsed;return Object(r.jsxs)("div",{className:"p-3 h-100",children:[Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center mb-0",children:Object(r.jsx)("b",{children:t.task_name})}),Object(r.jsx)("h2",{className:"my-3 mx-auto",children:t.seconds}),Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center",children:"Elapsed Time"})]})}var Co=function(e){var t=e.progress,n=Object(a.useRef)(null),o=Object(a.useState)(null),i=Object(s.a)(o,2),A=i[0],c=i[1];return Object(a.useEffect)((function(){if(n.current){var e=new Mt.a(n.current,{type:"doughnut",data:{datasets:[{hoverBorderColor:"#fff",data:[0,100],backgroundColor:["#32c8cd","#E9ECEF"]}],labels:["Label 1","Label 2"]},options:{legend:{display:!1},responsive:!1,cutoutPercentage:70,animation:{duration:0},tooltips:{enabled:!1}}});c(e)}}),[]),Object(a.useEffect)((function(){if(A){var e=100*(t.num_bars/t.bar_len||1),n={datasets:[{hoverBorderColor:"#fff",data:[e,100-e],backgroundColor:["#32c8cd","#E9ECEF"]}],labels:["Label 1","Label 2"]};A.data=n,A.update()}}),[JSON.stringify(t),A]),Object(r.jsxs)("div",{className:"p-3 h-100",children:[Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center",children:Object(r.jsx)("b",{children:"Progress"})}),Object(r.jsxs)("div",{className:"go-stats__chart mx-auto d-flex flex-row",children:[Object(r.jsxs)("div",{className:"mr-4 mt-3",children:[Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center",children:"Request"}),Object(r.jsx)("h4",{className:"mb-0",children:t.currentRequest})]}),Object(r.jsx)("canvas",{ref:n,style:{width:"100px",height:"100px"},className:"my-auto"})]})]})},Eo=n(27);var jo=function(e){var t=e.speed,n=Object(a.useRef)(null),o=Object(a.useState)(null),i=Object(s.a)(o,2),A=i[0],c=i[1],l=t.history,u=Object(Rt.f)().palette,d=Math.max.apply(Math,Object(Eo.a)(l)),f=Math.min.apply(Math,Object(Eo.a)(l)),h=Object(a.useCallback)((function(){var e=d-f;return{maintainAspectRatio:!0,responsive:!0,animation:{duration:0},legend:{display:!1},tooltips:{enabled:!1},layout:{padding:{bottom:-10,left:-10}},elements:{point:{radius:0},line:{tension:.33}},scales:{xAxes:[{gridLines:{display:!1},ticks:{display:!1}}],yAxes:[{gridLines:{display:!1},scaleLabel:{padding:0,display:!1},ticks:{display:!1,suggestedMax:d+.1*e,suggestedMin:f-.1*e}}]}}}),[d,f]),p=Object(a.useCallback)((function(e){return{type:"line",data:{labels:new Array(l.length).fill(null),datasets:[{label:"Today",fill:"start",borderWidth:1.5,backgroundColor:"rgba(0, 153, 153, 0.25)",borderColor:u.primary,data:l}]},options:e}}),[l,u.primary]);return Object(a.useEffect)((function(){if(n.current){var e=h(),t=p(e),r=new Mt.a(n.current,t);c(r)}}),[]),Object(a.useEffect)((function(){if(A){var e=Object(lt.a)(Object(lt.a)({},A.data),{datasets:[{label:"Today",fill:"start",borderWidth:1.5,backgroundColor:"rgba(0, 153, 153, 0.25)",borderColor:u.primary,data:l}]});A.options=h(),A.data=e,A.update()}}),[l,A,h,p,u.primary]),Object(r.jsxs)("div",{className:"pt-0 h-100 stats-small",children:[Object(r.jsxs)("div",{className:"stats-small__data mx-auto",children:[Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center mb-0 pt-0 mt-0",children:Object(r.jsx)("b",{children:"Speed"})}),Object(r.jsx)("h2",{className:"my-3 mx-auto",children:t.current}),Object(r.jsxs)("h6",{className:"stats-small__label under text-uppercase text-center",children:[t.unit,"/Second"]})]}),Object(r.jsx)("canvas",{height:"100",ref:n,className:"stats-small-1"})]})};var Fo=function(e){var t=Object(a.useRef)(null),n=Object(a.useState)(null),o=Object(s.a)(n,2),i=o[0],A=o[1],c=Object(a.useState)("messages"),l=Object(s.a)(c,2),u=l[0],d=l[1],f=Object(Rt.f)().palette,h=e[u],p=Object(a.useCallback)((function(){return{animation:{duration:0},tooltips:{callbacks:{title:function(e){return"Pod: ".concat(e[0].xLabel)},label:function(e,t){var n="".concat(t.datasets[e.datasetIndex].label,": ").concat("bytes"===u?Object($a.c)(e.value):e.value);return n},afterLabel:function(e){return"\nProcess ID: "+h[e.index].process}}},scales:{xAxes:[{stacked:!0}],yAxes:[{stacked:!0,ticks:{callback:function(e){return"bytes"===u?Object($a.c)(e):e>999?"".concat((e/1e3).toFixed(0),"k"):e}}}]},maintainAspectRatio:!1}}),[h,u]),g=Object(a.useCallback)((function(e){return{type:"bar",options:e,data:{labels:h.map((function(e){return e.node})),datasets:[{label:"msg sent",fill:"start",data:h.map((function(e){return e.sent})),backgroundColor:f.primary,borderColor:f.primary,pointBackgroundColor:f.background,pointHoverBackgroundColor:f.primary,borderWidth:1.5},{label:"msg received",fill:"start",data:h.map((function(e){return e.received})),backgroundColor:f.success,borderColor:f.success,pointBackgroundColor:f.background,pointHoverBackgroundColor:f.success,borderWidth:1.5}]}}}),[h,f.success,f.primary,f.background]),m=Object(a.useCallback)((function(){return{labels:h.map((function(e){return e.node})),datasets:[{label:"".concat(u," sent"),fill:"start",data:h.map((function(e){return e.sent})),backgroundColor:f.primary,borderColor:f.primary,pointBackgroundColor:f.background,pointHoverBackgroundColor:f.primary,borderWidth:1.5},{label:"".concat(u," received"),fill:"start",data:h.map((function(e){return e.received})),backgroundColor:f.success,borderColor:f.success,pointBackgroundColor:f.background,pointHoverBackgroundColor:f.success,borderWidth:1.5}]}}),[h,u,f.success,f.primary,f.background]);return Object(a.useEffect)((function(){if(t.current){var e=p(),n=g(e),r=new Mt.a(t.current,n);A(r)}}),[]),Object(a.useEffect)((function(){if(i){var e=m(),t=p();i.options=t,i.data=e,i.update()}}),[h,i,u,m,p]),Object(r.jsxs)("div",{className:"mb-4",children:[Object(r.jsx)("div",{children:Object(r.jsx)("h6",{className:"m-0",children:"Network Load"})}),Object(r.jsxs)("div",{className:"pt-0",children:[Object(r.jsx)("div",{className:"py-2",children:Object(r.jsx)("div",{className:"mb-2",children:Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{theme:"white",active:"messages"===u,onClick:function(){return d("messages")},children:"Messages"}),Object(r.jsx)("div",{theme:"white",active:"bytes"===u,onClick:function(){return d("bytes")},children:"Bytes"})]})})}),Object(r.jsx)("div",{style:{position:"relative",height:300},children:Object(r.jsx)("canvas",{ref:t})})]})]})};var _o=function(e){var t=e.qps,n=Object(a.useRef)(null),o=Object(a.useState)(null),i=Object(s.a)(o,2),A=i[0],c=i[1],l=t.history,u=Math.max.apply(Math,Object(Eo.a)(l)),d=Math.min.apply(Math,Object(Eo.a)(l)),f=Object(a.useCallback)((function(){var e=u-d;return{maintainAspectRatio:!0,responsive:!0,animation:{duration:0},legend:{display:!1},tooltips:{enabled:!1},elements:{point:{radius:0},line:{tension:.33}},layout:{padding:{bottom:-10,left:-10}},scales:{xAxes:[{gridLines:{display:!1},ticks:{display:!1}}],yAxes:[{gridLines:{display:!1},scaleLabel:{display:!1},ticks:{display:!1,suggestedMax:u+.1*e,suggestedMin:d-.1*e}}]}}}),[u,d]),h=Object(a.useCallback)((function(e){return{type:"line",data:{labels:new Array(l.length).fill(null),datasets:[{label:"Today",fill:"start",borderWidth:1.5,backgroundColor:"rgba(50, 200, 205, 0.25)",borderColor:"#32c8cd",data:l}]},options:e}}),[l]);return Object(a.useEffect)((function(){if(n.current){var e=f(),t=h(e),r=new Mt.a(n.current,t);c(r)}}),[]),Object(a.useEffect)((function(){if(A){var e=Object(lt.a)(Object(lt.a)({},A.data),{datasets:[{label:"Today",fill:"start",borderWidth:1.5,backgroundColor:"rgba(50, 200, 205, 0.25)",borderColor:"#32c8cd",data:l}]});A.options=f(),A.data=e,A.update()}}),[l,A,f,h]),Object(r.jsxs)("div",{className:"pt-0 h-100 stats-small",children:[Object(r.jsxs)("div",{className:"stats-small__data mx-auto",children:[Object(r.jsx)("h6",{className:"stats-small__label text-uppercase text-center mb-0 pt-0 mt-0",children:Object(r.jsx)("b",{children:"QPS"})}),Object(r.jsx)("h2",{className:"my-3 mx-auto",children:t.current}),Object(r.jsx)("h6",{className:"stats-small__label under text-uppercase text-center",children:"Queries/Second"})]}),Object(r.jsx)("canvas",{height:"100",ref:n,className:"stats-small-1"})]})},Qo=function(e){return e.taskState.taskData};var Uo=function(){var e=Object(c.c)(Qo);return Object(r.jsx)("div",{className:"main-content-container px-0",children:Object(r.jsxs)("div",{className:"px-4",children:[Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(Oa.a,{title:"Task",className:"text-sm-left mb-3"})}),Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{className:"mb-4",children:Object(r.jsx)(xo,{elapsed:e.elapsed})}),Object(r.jsx)("div",{className:"mb-4",children:Object(r.jsx)(Co,{progress:e.progress})}),Object(r.jsx)("div",{className:"mb-4",children:Object(r.jsx)(_o,{qps:e.qps})}),Object(r.jsx)("div",{className:"mb-4",children:Object(r.jsx)(jo,{speed:e.speed})})]}),Object(r.jsx)(Fo,{messages:e.messages,bytes:e.bytes,lastUpdate:e.lastUpdateChart})]})})},ko=n(177),So=n(211),Do=n(207),No=[{label:"JinaD Host",placeholder:"0.0.0.0",value:"jinadHost"},{label:"JinaD Port",placeholder:"5000",value:"jinadPort"},{label:"Gateway Host",placeholder:"0.0.0.0",value:"gatewayHost"},{label:"Gateway Port",placeholder:"5555",value:"gatewayPort"}],Ho=[{label:"Log",placeholder:"/stream/log",value:"log"},{label:"Profile",placeholder:"/stream/profile",value:"profile"},{label:"YAML",placeholder:"/data/yaml",value:"yaml"},{label:"Shutdown",placeholder:"/action/shutdown",value:"shutdown"},{label:"Ready",placeholder:"/status/isready",value:"ready"}];function Io(e){var t=e.label,n=e.value,a=e.placeholder,o=e.onChange;return Object(r.jsxs)("div",{className:"form-group flex flex-col",children:[Object(r.jsx)("div",{className:"text-gray-400 mb-2",id:t,children:t}),Object(r.jsx)("input",{className:"border rounded-md py-2 px-3 text-gray-500 text-sm","aria-labelledby":t,"aria-label":t,"data-name":t.replace(/ /g,""),placeholder:a,value:n,onChange:o})]})}var Mo=n(148);var To=function(e){return e.settingsState.settings},Ro=function(e){var t=e.isExpanded,n=e.onClick;return Object(r.jsx)("button",{className:"bg-transparent",onClick:n,children:Object(r.jsxs)("strong",{"aria-controls":"collapsed-form","aria-expanded":t,className:"text-primary font-medium d-inline-block",children:["Advanced"," ",Object(r.jsx)("i",{className:"material-icons align-middle",children:t?"arrow_drop_up":"arrow_drop_down"})]})})},Lo=function(){var e=Object(a.useState)({}),t=Object(s.a)(e,2),n=t[0],o=t[1],i=Object(a.useState)(!1),A=Object(s.a)(i,2),l=A[0],u=A[1],d=Object(c.c)(To),f=Object(c.b)();function h(e,t){var r=Object(lt.a)({},n);r[e]=t,o(r)}var p=No.map((function(e){var t=e.label,a=e.placeholder,o=e.value;return Object(r.jsx)(Io,{label:t,placeholder:a,value:o in n?n[o]:d[o],onChange:function(e){return h(o,e.target.value)}},o)})),g=Ho.map((function(e){var t=e.label,a=e.placeholder,o=e.value;return Object(r.jsx)(Io,{label:t,placeholder:a,value:o in n?n[o]:d[o],onChange:function(e){return h(o,e.target.value)}},o)}));return Object(r.jsxs)("div",{className:" bg-white  rounded-md",children:[Object(r.jsx)("h6",{className:"p-4 border-b text-gray-600",children:"Connection Preferences"}),Object(r.jsxs)("div",{className:"p-4",children:[Object(r.jsx)("div",{className:"grid grid-cols-2 gap-4 mb-4",children:p}),Object(r.jsxs)("div",{className:"flex mb-4 justify-between items-center",children:[Object(r.jsx)(Ro,{isExpanded:l,onClick:function(){u(!l)}}),Object(r.jsx)("button",{className:"bg-primary text-white text-xs py-2 px-4 rounded hover:shadow-lg active:shadow-inner",onClick:function(){f(function(e){return{type:Mo.a,payload:e}}(n))},children:"Save Changes"})]}),Object(r.jsx)("div",{style:{height:l?"290px":"0px"},className:"pb-2 relative transition transition-height overflow-hidden duration-300 ease-in-out",children:l&&Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("strong",{className:"font-medium inline-block text-gray-400  mb-3",children:"Endpoints"}),Object(r.jsx)("div",{className:"grid grid-cols-2 gap-4",children:g})]})})]})]})},Po=function(e){Object(So.a)(n,e);var t=Object(Do.a)(n);function n(){var e;Object(ko.a)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).render=function(){return Object(r.jsxs)("div",{className:"main-content-container px-4",children:[Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(Oa.a,{title:"Settings",className:"text-sm-left mb-3"})}),Object(r.jsx)(Lo,{})]})},e}return n}(o.a.Component),Ko=n(137),zo=n(265),Vo=function(){var e=Object(Ft.a)(jt.a.mark((function e(t){var n;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qt.a.get("https://hubapi.jina.ai/images",{params:t,paramsSerializer:function(e){return Yo(e)}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wo=function(){var e=Object(Ft.a)(jt.a.mark((function e(t){var n,r,a;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Go(t),e.next=3,Qt.a.get(n);case 3:return r=e.sent,e.next=6,Qt.a.post("https://api.github.com/markdown",{text:r.data});case 6:return a=e.sent,e.abrupt("return",a.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Yo=function(e){return zo.stringify(e,{arrayFormat:"comma",skipNull:!0})},Go=function(e){return e.includes("/blob/master/")?e.replace("github","raw.githubusercontent").replace("/blob",""):"https://raw.githubusercontent.com/jina-ai/jina-hub/master/README.md"},Xo={kind:[],keywords:[]},Jo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xo;return function(){var t=Object(Ft.a)(jt.a.mark((function t(n){var r;return jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n({type:Ko.b}),t.next=4,Vo(e);case 4:r=t.sent,n(qo(r)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),n(Zo(t.t0));case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}()},qo=function(e){return{type:Ko.d,payload:{images:e}}},Zo=function(e){return{type:Ko.c,payload:{error:e}}},$o=n(1277),ei=n(1278),ti=n.p+"static/media/hub-icon.9262f61f.svg";function ni(){var e=Object(A.a)(["\n  color: ",";\n  border-color: ",";\n  margin-right: 1.5rem;\n  &:hover {\n    border-color: ",";\n    background-color: ",";\n    color: ",";\n  }\n"]);return ni=function(){return e},e}function ri(){var e=Object(A.a)(["\n  background-color: ",";\n  color: ",";\n  margin-right: 1.5rem;\n  &:hover {\n    border-color: ",";\n    background-color: ",";\n    color: ",";\n  }\n"]);return ri=function(){return e},e}function ai(){var e=Object(A.a)(["\n  margin-top: 2rem;\n"]);return ai=function(){return e},e}function oi(){var e=Object(A.a)(["\n  font-weight: 400;\n  color: ",";\n"]);return oi=function(){return e},e}function ii(){var e=Object(A.a)(["\n  width: 8rem;\n"]);return ii=function(){return e},e}function si(){var e=Object(A.a)(["\n  font-size: 1.25rem;\n  font-weight: 500;\n  color: ",";\n"]);return si=function(){return e},e}function Ai(){var e=Object(A.a)(["\n  flex-direction: column;\n"]);return Ai=function(){return e},e}function ci(){var e=Object(A.a)(["\n  max-height: 11rem;\n  display: flex;\n  justify-content: space-between;\n  width: 100%;\n  padding: 1.5rem;\n  background: ",";\n"]);return ci=function(){return e},e}var li=Object(te.a)($o.a)(ci(),(function(e){return"linear-gradient(269.3deg, ".concat(e.theme.palette.primary.main," 16.55%, ").concat(e.theme.palette.primary.light," 89.83%)")})),ui=te.a.div(Ai()),di=te.a.h6(si(),(function(e){return e.theme.palette.background.default})),fi=te.a.img(ii()),hi=te.a.div(oi(),(function(e){return e.theme.palette.background.default})),pi=te.a.div(ai()),gi=Object(te.a)(ei.a)(ri(),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.background.default})),mi=Object(te.a)(ei.a)(ni(),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.primary.main})),bi=function(){var e=Object(i.g)();return Object(r.jsxs)(li,{children:[Object(r.jsxs)(ui,{children:[Object(r.jsx)(di,{"data-name":"title",children:"Jina Hub"}),Object(r.jsx)(hi,{children:"Discover images created by the community in a centralized registry or create your own images"}),Object(r.jsxs)(pi,{children:[Object(r.jsx)(gi,{"data-name":"primaryActionButton",variant:"contained",disableElevation:!0,onClick:function(){return e.push("/hub/explore")},children:"Browse"}),Object(r.jsx)(mi,{"data-name":"secondaryActionButton",variant:"outlined",onClick:function(){return e.push("/flow")},children:"Create"})]})]}),Object(r.jsx)(fi,{src:ti,alt:"Hub Icon"})]})},vi=n(96);function wi(){var e=Object(A.a)(['\n  font-family: "Roboto";\n  font-size: 0.875rem;\n  font-weight: 400;\n  color: ',";\n  word-break: break-word;\n"]);return wi=function(){return e},e}function yi(){var e=Object(A.a)(["\n  color: unset;\n  margin-top: 1rem;\n  &:hover {\n    text-decoration: none;\n  }\n"]);return yi=function(){return e},e}function Bi(){var e=Object(A.a)(['\n  font-size: 1rem;\n  font-weight: 500;\n  line-height: 1.5rem;\n  font-family: "Roboto";\n  margin-bottom: 0.75rem;\n']);return Bi=function(){return e},e}function Oi(){var e=Object(A.a)(["\n  ","\n  border-radius: 0.25rem;\n  display: inline-block;\n  padding: 0.35rem 0.75rem;\n  margin-right: 1rem;\n  margin-bottom: 1rem;\n  white-space: nowrap;\n"]);return Oi=function(){return e},e}function xi(){var e=Object(A.a)(["\n  height: 100%;\n  padding: 1rem;\n  box-shadow: none;\n  border: 1px solid ",";\n  background-color: ",";\n"]);return xi=function(){return e},e}var Ci=Object(te.a)($o.a)(xi(),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.theme.palette.background.default})),Ei=te.a.div(Oi(),(function(e){var t=e.filterColorIndex,n=e.theme.palette.filters;return"background: ".concat(n[t%n.length].main,";\n            color: ").concat(n[t%n.length].contrastText,";")})),ji=te.a.div(Bi()),Fi=Object(te.a)(vi.c)(yi()),_i=te.a.p(wi(),(function(e){return e.theme.palette.grey[700]}));function Qi(e){var t=e.image,n=e.index,a=t.name,o=t.keywords,i=t.kind,s=t.description;return Object(r.jsx)(Fi,{to:"/package/".concat(i,"/").concat(n),children:Object(r.jsxs)(Ci,{"data-name":"hubImage",children:[Object(r.jsx)(ji,{children:a}),o.map((function(e,t){return Object(r.jsx)(Ei,{"data-name":"hubImageTags",filterColorIndex:t,children:Object(bo.a)(e)},t)})),Object(r.jsx)(_i,{children:s})]})})}var Ui=n(1272),ki=["Some keywords to describe the executor","separated by commas"],Si={"Executor type":["Classifier","Evaluator","Crafter","Segementer","Ranker","Indexer","Encoder"],"Domain space":["Text","Audio","Video","Image","Cross modal","Multi modal","PDF"],Libraries:["Tensorflow","Keras","Numpy","Pytorch","Onnx","Transformers","sklearn","PaddlePaddle","librosa","nltk"],Language:["English","Chinese","Multilingual"]},Di=function(e){return Object.keys(Si).map((function(t){var n=[].concat(Object(Eo.a)(e.hubState.images.map((function(e){return e.kind}))),Object(Eo.a)(e.hubState.images.reduce((function(e,t){return[].concat(Object(Eo.a)(e),Object(Eo.a)(t.keywords))}),[])));return{filterLabel:t,values:Si[t].map((function(t){return{name:t,selected:e.hubState.selectedFilters.includes(t),count:Ni(t,n)}}))}}))},Ni=function(e,t){return t.filter((function(t){return t.toLowerCase()===e.toLowerCase()})).length},Hi=function(e){return e.hubState.images.map((function(e){var t=e.keywords;return Object(lt.a)(Object(lt.a)({},e),{},{keywords:t.filter((function(e){return!ki.includes(e)}))})}))},Ii=function(e){return e.hubState.loading},Mi=function(e){return e.hubState.error},Ti=n(127);function Ri(){var e=Object(A.a)(["\n  margin-top: 2rem;\n  padding: 1.5rem;\n  background-color: ",";\n"]);return Ri=function(){return e},e}function Li(){var e=Object(A.a)(['\n  font-family: "Roboto";\n  font-weight: 500;\n  font-size: 1.25rem;\n  line-height: 1.75rem;\n  padding-bottom: 1.25rem;\n  color: ',";\n"]);return Li=function(){return e},e}var Pi=te.a.div(Li(),(function(e){return e.theme.palette.text.primary})),Ki=Object(te.a)($o.a)(Ri(),(function(e){return e.theme.palette.background.default})),zi=function(){var e=Object(c.c)(Hi).slice(0,6),t=Object(c.c)(Ii);return Object(r.jsx)(Ki,{children:t?Object(r.jsx)(Ti.a,{}):Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(Pi,{"data-name":"hubImagesPreviewSubtitle",children:"Latest"}),Object(r.jsx)(Ui.a,{container:!0,spacing:2,children:e.map((function(e,t){return Object(r.jsx)(Ui.a,{item:!0,xs:4,children:Object(r.jsx)(Qi,{image:e,index:t})},"".concat(e.name,".").concat(e.version,".").concat(e["jina-version"]))}))})]})})};function Vi(){var e=Object(A.a)(["\n  background-color: ",";\n  color: ",";\n  box-shadow: none;\n  display: flex;\n  margin: 0.5rem 1rem 0.5rem 0;\n  text-transform: none;\n  font-weight: normal;\n\n  &:hover {\n    background-color: #21a6a6;\n    color: white;\n  }\n"]);return Vi=function(){return e},e}var Wi=Object(te.a)(ei.a)(Vi(),(function(e){return e.selected?"#21A6A6":e.theme.palette.filters[e.filterCategoryIndex].main}),(function(e){return e.selected?"white":e.theme.palette.filters[e.filterCategoryIndex].contrastText})),Yi=function(e){var t=e.value,n=e.label,o=e.index,i=e.count,A=e.filterCategoryIndex,c=e.handleFilterChange,l=Object(a.useState)(t),u=Object(s.a)(l,2),d=u[0],f=u[1],h=Object(Rt.f)();return Object(r.jsxs)(Wi,{theme:h,filterCategoryIndex:A,variant:"contained",selected:t,disabled:0===i,onClick:function(){return f(!d),void c(A,o,!d)},children:[n," (",i,")"]})};function Gi(){var e=Object(A.a)(["\n  display: flex;\n  flex-wrap: wrap;\n"]);return Gi=function(){return e},e}function Xi(){var e=Object(A.a)(["\n  color: ",";\n"]);return Xi=function(){return e},e}function Ji(){var e=Object(A.a)(["\n  display: flex;\n  justify-content: space-between;\n"]);return Ji=function(){return e},e}function qi(){var e=Object(A.a)(["\n  font-weight: 500;\n  font-size: 1.25rem;\n  color: ",";\n"]);return qi=function(){return e},e}var Zi=function(e){return{kind:$i(e[0]),keywords:[].concat(Object(Eo.a)($i(e[1])),Object(Eo.a)($i(e[2])),Object(Eo.a)($i(e[3])))}},$i=function(e){return e.values.reduce((function(e,t){var n=t.name;return t.selected?[].concat(Object(Eo.a)(e),[n]):e}),[])},es=te.a.div(qi(),(function(e){return e.theme.palette.text.primary})),ts=te.a.div(Ji()),ns=Object(te.a)(ei.a)(Xi(),(function(e){return e.theme.palette.grey[600]})),rs=te.a.div(Gi()),as=function(e){var t=e.filters,n=e.setFilters,a=e.getHubImages,o=Object(c.b)(),i=function(e,r,i){var s;t[e].values[r].selected=i,o((s=t[e].values[r].name,{type:Ko.e,payload:{filter:s}})),n(t),a(Zi(t))},s=function(e){t[e]=Object(lt.a)(Object(lt.a)({},t[e]),{},{values:t[e].values.map((function(e){return Object(lt.a)(Object(lt.a)({},e),{},{selected:!1})}))}),o(function(e){return{type:Ko.a,payload:{filters:e}}}(t[e].values.map((function(e){return e.name})))),n(t),a(Zi(t))};return Object(r.jsx)("div",{"data-name":"hubImagesFilter",children:t&&t.map((function(e,t){return Object(r.jsxs)("div",{children:[Object(r.jsxs)(ts,{children:[Object(r.jsx)(es,{children:e.filterLabel}),Object(r.jsx)(ns,{onClick:function(){return s(t)},children:"Clear All"})]}),Object(r.jsx)(rs,{children:e.values.map((function(n,a){var o=n.name,s=n.selected,A=n.count;return Object(r.jsx)(Yi,{filterCategoryIndex:t,filter:e,value:s,index:a,label:o,count:A,handleFilterChange:i},a)}))})]},t)}))})},os=n(1269),is=n(1270),ss=n(1281);var As=Object(ut.a)(os.a,{target:"eeeoxct1",label:"SortSelect"})({name:"13xc471",styles:"border-radius:4px;border:1px solid #9e9e9e;padding:0.25rem;padding-left:1rem;background-color:white"}),cs=Object(ut.a)(is.a,{target:"eeeoxct0",label:"SortLabel"})("margin-top:-0.125rem;background-color:",(function(e){return e.theme.palette.background.default}),";padding:0.25rem;"),ls=function(e){var t=e.selectedSortOption,n=e.sortOptions,a=e.handleSortOption;return Object(r.jsxs)(ss.a,{children:[Object(r.jsx)(cs,{shrink:!0,children:"Sort"}),Object(r.jsx)(As,{value:t,onChange:a,input:Object(r.jsx)(Ka.c,{}),"data-name":"selectedHubSortDropdown-".concat(t.replaceAll(" ","_")),children:n.map((function(e){return Object(r.jsx)(D,{"data-name":"sortOptionHubSortDropdown-".concat(e.replaceAll(" ","_")),value:e,children:e})}))})]})};function us(){var e=Object(A.a)(["\n  margin-top: 25px;\n  text-align: center;\n"]);return us=function(){return e},e}function ds(){var e=Object(A.a)(["\n  margin-bottom: 24px;\n"]);return ds=function(){return e},e}function fs(){var e=Object(A.a)(["\n  padding: 24px 16px;\n"]);return fs=function(){return e},e}function hs(){var e=Object(A.a)(["\n  padding: 24px 16px;\n  border-right: 1px solid ",";\n"]);return hs=function(){return e},e}function ps(){var e=Object(A.a)(["\n  padding: 1rem;\n  border-bottom: 1px solid ",";\n"]);return ps=function(){return e},e}function gs(){var e=Object(A.a)(["\n  background-color: ",";\n  border: 1px solid ",";\n"]);return gs=function(){return e},e}var ms=Object(te.a)(Ui.a)(gs(),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.grey[300]})),bs=Object(te.a)(Ui.a)(ps(),(function(e){return e.theme.palette.grey[300]})),vs=Object(te.a)(Ui.a)(hs(),(function(e){return e.theme.palette.grey[300]})),ws=Object(te.a)(Ui.a)(fs()),ys=Object(te.a)(Ui.a)(ds()),Bs=te.a.h3(us()),Os=function(){var e=Object(c.b)(),t=Object(c.c)(Di),n=Object(c.c)(Ii),o=Object(c.c)(Mi),i=Object(a.useState)([]),A=Object(s.a)(i,2),l=A[0],u=A[1],d=Object(a.useState)(""),f=Object(s.a)(d,2),h=f[0],p=f[1],g=Object(a.useState)(Ko.g[0]),m=Object(s.a)(g,2),b=m[0],v=m[1],w=function(e,t){switch(t){case"name increasing":return function(e){return e.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))}(e);case"name decreasing":return function(e){return e.sort((function(e,t){return e.name>t.name?-1:e.name<t.name?1:0}))}(e);case"author increasing":return function(e){return e.sort((function(e,t){return e.author<t.author?-1:e.author>t.author?1:0}))}(e);case"author decreasing":return function(e){return e.sort((function(e,t){return e.author>t.author?-1:e.author<t.author?1:0}))}(e)}}(Object(c.c)(Hi),b);0!==(null===w||void 0===w?void 0:w.length)||n||o||e(Jo()),Object(a.useEffect)((function(){w&&u(t)}),[w]);var y=Object(a.useCallback)((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;e(Jo(Object(lt.a)(Object(lt.a)({},t),{},{name:n})))}),[e,h]);return Object(r.jsx)(r.Fragment,{children:n?Object(r.jsx)(Ti.a,{}):Object(r.jsxs)(ms,{container:!0,children:[Object(r.jsx)(bs,{item:!0,xs:12,children:Object(r.jsxs)("h3",{style:{margin:0},children:["Hub / ",Object(r.jsx)("span",{style:{fontWeight:700},children:"Library"})]})}),Object(r.jsx)(vs,{container:!0,item:!0,xs:3,children:Object(r.jsx)(as,{filters:l,setFilters:u,getHubImages:y})}),Object(r.jsxs)(ws,{container:!0,item:!0,xs:9,children:[Object(r.jsxs)(ys,{container:!0,item:!0,xs:12,children:[Object(r.jsx)(Ui.a,{item:!0,xs:9,children:Object(r.jsx)(ls,{selectedSortOption:b,sortOptions:Ko.g,handleSortOption:function(e){v(e.target.value)}})}),Object(r.jsx)(Ui.a,{item:!0,xs:3,children:Object(r.jsx)(Ya,{value:h,onChange:p,onSearch:function(e){y(Zi(l),e)}})})]}),(null===w||void 0===w?void 0:w.length)?Object(r.jsx)(Ui.a,{spacing:2,item:!0,container:!0,"data-name":"hubImagesList",children:w.map((function(e,t){return Object(r.jsx)(Ui.a,{item:!0,xs:6,children:Object(r.jsx)(Qi,{image:e,index:t})},"".concat(e.name,".").concat(e.version,".").concat(e["jina-version"]))}))}):Object(r.jsx)(Bs,{children:"No images matching your search were found"})]})]})})};function xs(){var e=Object(A.a)(["\n  font-weight: 400;\n  font-size: 1.5rem;\n  color: ",";\n"]);return xs=function(){return e},e}function Cs(){var e=Object(A.a)(["\n  border-radius: 0.25rem;\n  border: 1px solid ",";\n  margin: 0.5rem;\n  padding: 1rem;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  svg {\n    width: 3rem;\n    height: 3rem;\n  }\n"]);return Cs=function(){return e},e}function Es(){var e=Object(A.a)(["\n  border-radius: 0.25rem;\n  border: 1px solid ",";\n  background: ",";\n  margin-top: 2rem;\n  padding: 1rem;\n  display: flex;\n  flex-direction: column;\n"]);return Es=function(){return e},e}var js=[{label:"Text",icon:Object(H.a)(a.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields")},{label:"Image",icon:Object(H.a)(a.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Image")},{label:"Video",icon:Object(H.a)(a.createElement("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}),"Videocam")},{label:"Audio",icon:Object(H.a)(a.createElement("path",{d:"M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"}),"Audiotrack")}],Fs=te.a.div(Es(),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.theme.palette.background.default})),_s=te.a.div(Cs(),(function(e){return e.theme.palette.grey[300]})),Qs=te.a.span(xs(),(function(e){return e.theme.palette.action.disabled})),Us=function(){return Object(r.jsxs)(Fs,{children:[Object(r.jsx)(Pi,{children:"Recommended Categories"}),Object(r.jsx)(Ui.a,{container:!0,children:js.map((function(e,t){return Object(r.jsx)(Ui.a,{item:!0,xs:3,children:Object(r.jsxs)(_s,{children:[Object(r.jsx)(e.icon,{color:"primary"}),Object(r.jsx)(Qs,{children:e.label})]})},t)}))})]})},ks=function(){var e=Object(i.j)().path,t=Object(c.b)();return Object(a.useEffect)((function(){t(Jo())}),[t]),Object(r.jsx)("div",{className:"px-4",children:Object(r.jsxs)(i.d,{children:[Object(r.jsxs)(i.b,{exact:!0,path:e,children:[Object(r.jsx)(bi,{}),Object(r.jsx)(Us,{}),Object(r.jsx)(zi,{})]}),Object(r.jsx)(i.b,{path:"".concat(e,"/explore"),children:Object(r.jsx)(Os,{})})]})})},Ss=n(1282),Ds=n(32),Ns=n(129),Hs=n(110),Is=n(125);function Ms(e){return e.substring(2).toLowerCase()}var Ts=function(e){var t=e.children,n=e.disableReactTree,o=void 0!==n&&n,i=e.mouseEvent,s=void 0===i?"onClick":i,A=e.onClickAway,c=e.touchEvent,l=void 0===c?"onTouchEnd":c,u=a.useRef(!1),d=a.useRef(null),f=a.useRef(!1),h=a.useRef(!1);a.useEffect((function(){return setTimeout((function(){f.current=!0}),0),function(){f.current=!1}}),[]);var p=Object(Hs.a)(t.ref,d),g=Object(Is.a)((function(e){var t=h.current;h.current=!1;var n=Object(Ns.a)(d.current);!f.current||!d.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(u.current?u.current=!1:(e.composedPath?e.composedPath().indexOf(d.current)>-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!o&&t||A(e))})),m=function(e){return function(n){h.current=!0;var r=t.props[e];r&&r(n)}},b={ref:p};return!1!==l&&(b[l]=m(l)),a.useEffect((function(){if(!1!==l){var e=Ms(l),t=Object(Ns.a)(d.current),n=function(){u.current=!0};return t.addEventListener(e,g),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,g),t.removeEventListener("touchmove",n)}}}),[g,l]),!1!==s&&(b[s]=m(s)),a.useEffect((function(){if(!1!==s){var e=Ms(s),t=Object(Ns.a)(d.current);return t.addEventListener(e,g),function(){t.removeEventListener(e,g)}}}),[g,s]),Object(r.jsx)(a.Fragment,{children:a.cloneElement(t,b)})},Rs=n(1256),Ls=n(10);function Ps(e){return Object(_.a)("MuiSnackbarContent",e)}Object(Q.a)("MuiSnackbarContent",["root","message","action"]);var Ks=Object(j.a)(Y.a,{},{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,n="light"===t.palette.mode?.8:.98,r=Object(Ls.c)(t.palette.background.default,n);return Object(B.a)({},t.typography.body2,Object(w.a)({color:t.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))})),zs=Object(j.a)("div",{},{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),Vs=Object(j.a)("div",{},{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ws=a.forwardRef((function(e,t){var n=Object(F.a)({props:e,name:"MuiSnackbarContent"}),a=n.action,o=n.className,i=n.message,s=n.role,A=void 0===s?"alert":s,c=Object(y.a)(n,["action","className","message","role"]),l=Object(B.a)({},n),u=function(e){var t=e.classes;return Object(E.a)({root:["root"],action:["action"],message:["message"]},Ps,t)}(l);return Object(r.jsxs)(Ks,Object(B.a)({role:A,square:!0,elevation:6,className:Object(C.a)(u.root,o),styleProps:l,ref:t},c,{children:[Object(r.jsx)(zs,{className:u.message,styleProps:l,children:i}),a?Object(r.jsx)(Vs,{className:u.action,styleProps:l,children:a}):null]}))}));function Ys(e){return Object(_.a)("MuiSnackbar",e)}Object(Q.a)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var Gs=Object(j.a)("div",{},{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var n=e.styleProps;return Object(B.a)({},t.root,t["anchorOrigin".concat(Object(W.a)(n.anchorOrigin.vertical)).concat(Object(W.a)(n.anchorOrigin.horizontal))])}})((function(e){var t=e.theme,n=e.styleProps;return Object(B.a)({zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},Object(w.a)({},t.breakpoints.up("sm"),Object(B.a)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})))})),Xs=a.forwardRef((function(e,t){var n=Object(F.a)({props:e,name:"MuiSnackbar"}),o=n.action,i=n.anchorOrigin,A=(i=void 0===i?{vertical:"bottom",horizontal:"left"}:i).vertical,c=i.horizontal,l=n.autoHideDuration,u=void 0===l?null:l,d=n.children,f=n.className,h=n.ClickAwayListenerProps,p=n.ContentProps,g=n.disableWindowBlurListener,m=void 0!==g&&g,b=n.message,v=n.onClose,w=n.onMouseEnter,O=n.onMouseLeave,x=n.open,j=n.resumeHideDuration,_=n.TransitionComponent,Q=void 0===_?Rs.a:_,U=n.transitionDuration,k=void 0===U?{enter:Ds.b.enteringScreen,exit:Ds.b.leavingScreen}:U,S=n.TransitionProps,D=(S=void 0===S?{}:S).onEnter,N=S.onExited,H=Object(y.a)(n.TransitionProps,["onEnter","onExited"]),I=Object(y.a)(n,["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),M=Object(B.a)({},n,{anchorOrigin:{vertical:A,horizontal:c}}),T=function(e){var t=e.classes,n=e.anchorOrigin,r={root:["root","anchorOrigin".concat(Object(W.a)(n.vertical)).concat(Object(W.a)(n.horizontal))]};return Object(E.a)(r,Ys,t)}(M),R=a.useRef(),L=a.useState(!0),P=Object(s.a)(L,2),K=P[0],z=P[1],V=Object(Is.a)((function(){v&&v.apply(void 0,arguments)})),Y=Object(Is.a)((function(e){v&&null!=e&&(clearTimeout(R.current),R.current=setTimeout((function(){V(null,"timeout")}),e))}));a.useEffect((function(){return x&&Y(u),function(){clearTimeout(R.current)}}),[x,u,Y]);var G=function(){clearTimeout(R.current)},X=a.useCallback((function(){null!=u&&Y(null!=j?j:.5*u)}),[u,j,Y]);return a.useEffect((function(){if(!m&&x)return window.addEventListener("focus",X),window.addEventListener("blur",G),function(){window.removeEventListener("focus",X),window.removeEventListener("blur",G)}}),[m,X,x]),!x&&K?null:Object(r.jsx)(Ts,Object(B.a)({onClickAway:function(e){v&&v(e,"clickaway")}},h,{children:Object(r.jsx)(Gs,Object(B.a)({className:Object(C.a)(T.root,f),onMouseEnter:function(e){w&&w(e),G()},onMouseLeave:function(e){O&&O(e),X()},styleProps:M,ref:t},I,{children:Object(r.jsx)(Q,Object(B.a)({appear:!0,in:x,timeout:k,direction:"top"===A?"down":"up",onEnter:function(e,t){z(!1),D&&D(e,t)},onExited:function(e){z(!0),N&&N(e)}},H,{children:d||Object(r.jsx)(Ws,Object(B.a)({message:b,action:o},p))}))}))}))})),Js=n(1258),qs=n.p+"static/media/Copy.48b28957.svg",Zs=n(28);function $s(){var e=Object(A.a)(["\n  margin-left: 0.5rem;\n  cursor: pointer;\n"]);return $s=function(){return e},e}function eA(){var e=Object(A.a)(["\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n"]);return eA=function(){return e},e}function tA(){var e=Object(A.a)(["\n  display: flex;\n  background: ",";\n  padding: 0.5rem 1rem;\n  border-radius: 0.125rem;\n"]);return tA=function(){return e},e}var nA=te.a.div(tA(),(function(e){return e.theme.palette.grey[200]})),rA=te.a.div(eA()),aA=te.a.img($s());function oA(e){var t=e.codeSnippet,n=Object(a.useState)(!1),o=Object(s.a)(n,2),i=o[0],A=o[1],c=Object(r.jsx)(r.Fragment,{children:Object(r.jsx)(N.a,{size:"small","aria-label":"close",color:"inherit",onClick:function(){A(!1)},children:Object(r.jsx)(Js.a,{fontSize:"small"})})});return Object(r.jsx)("div",{children:Object(r.jsxs)(nA,{onClick:function(){return Object(Zs.a)(t),void(i||A(!0))},children:[Object(r.jsx)(rA,{children:t}),Object(r.jsx)(aA,{src:qs}),Object(r.jsx)(Xs,{anchorOrigin:{vertical:"top",horizontal:"right"},open:i,autoHideDuration:1,action:c,message:"Command copied"})]})})}function iA(){var e=Object(A.a)(["\n  display: flex;\n  flex-direction: column;\n"]);return iA=function(){return e},e}function sA(){var e=Object(A.a)(["\n  font-size: 1rem;\n  font-weight: 700;\n  color: ",";\n  margin: 0.5rem 0;\n"]);return sA=function(){return e},e}function AA(){var e=Object(A.a)(["\n  margin-bottom: 0.75rem;\n  border: 1px solid ",';\n  font-family: "Roboto";\n  font-size: 0.9rem;\n  box-shadow: unset;\n  background-color: ',";\n"]);return AA=function(){return e},e}var cA=Object(te.a)($o.a)(AA(),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.theme.palette.background.default})),lA=te.a.div(sA(),(function(e){return e.theme.palette.action.disabled})),uA=te.a.div(iA()),dA=function(e,t){return"\nfrom jina.flow import Flow\nf = Flow().add(uses='".concat(e,":").concat(t,"')\n")},fA=function(e,t){return'\n!Flow\npods:\n  my_pod1:\n    image: "'.concat(e,":").concat(t,'"\n')};function hA(e){var t=e.image,n=Object(Rt.f)(),a=t.keywords,o=t.platform,i=t.author,s=t.version,A=t["docker-command"],c=t["docker-name"];return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(cA,{children:Object(r.jsx)(Ss.a,{children:Object(r.jsxs)(uA,{children:[Object(r.jsx)(lA,{children:"Docker Command"}),Object(r.jsx)(oA,{codeSnippet:A}),Object(r.jsx)(lA,{children:"Python Usage"}),Object(r.jsx)(oA,{codeSnippet:fA(c,s)}),Object(r.jsx)(lA,{children:"In a Flow"}),Object(r.jsx)(oA,{codeSnippet:dA(c,s)})]})})}),Object(r.jsx)(cA,{children:Object(r.jsxs)(Ss.a,{children:[Object(r.jsxs)(uA,{children:[Object(r.jsx)(lA,{children:"Tags"}),Object(r.jsx)("div",{children:a.map((function(e,t){return Object(r.jsx)(Ei,{"data-name":"hubImageTags",filterColorIndex:t,theme:n,children:e},t)}))})]}),Object(r.jsxs)(uA,{children:[Object(r.jsx)(lA,{children:"Platform"}),Object(r.jsx)("div",{children:o.map((function(e,t){return Object(r.jsx)(Ei,{"data-name":"hubImageTags",filterColorIndex:3,theme:n,children:e},t)}))}),Object(r.jsxs)(uA,{children:[Object(r.jsx)(lA,{children:"Owner"}),Object(r.jsx)("div",{children:i})]})]})]})})]})}function pA(){var e=Object(A.a)(['\n  h1 {\n    font-size: 1rem;\n    font-family: "Roboto";\n    font-weight: 500;\n    line-height: 1.5rem;\n    letter-spacing: 0.01rem;\n    color: ',";\n  }\n  h2 {\n    font-size: 0.85rem;\n    font-weight: 500;\n    letter-spacing: 0.01rem;\n    color: ",";\n  }\n  p {\n    font-size: 0.85rem;\n    line-height: 1.5rem;\n    color: ",';\n    font-family: Roboto;\n  }\n  a {\n    text-decoration: underline;\n  }\n  .code,\n  pre {\n    font-family: "Monaco";\n    background: ',";\n    padding: 0.5rem;\n  }\n"]);return pA=function(){return e},e}var gA=te.a.div(pA(),(function(e){return e.theme.palette.text.primary}),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.text.secondary}),(function(e){return e.theme.palette.grey[200]}));function mA(e){var t=e.documentation,n=Object(a.useState)(""),o=Object(s.a)(n,2),i=o[0],A=o[1];return Object(a.useEffect)((function(){Object(Ft.a)(jt.a.mark((function e(){var n;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wo(t);case 2:n=e.sent,A(n);case 4:case"end":return e.stop()}}),e)})))()}),[t]),Object(r.jsx)(gA,{children:i?Object(r.jsx)("div",{className:"markup",dangerouslySetInnerHTML:{__html:i}}):Object(r.jsx)(Ti.a,{})})}function bA(){var e=Object(A.a)(["\n  text-transform: none;\n  color: ",";\n  font-weight: normal;\n  padding: 1.25rem 0;\n"]);return bA=function(){return e},e}function vA(){var e=Object(A.a)(['\n  font-family: "Roboto";\n  padding: 0 1.75rem;\n']);return vA=function(){return e},e}var wA=te.a.div(vA()),yA=Object(te.a)(ei.a)(bA(),(function(e){return e.theme.palette.text.primary})),BA=function(){var e=Object(c.b)(),t=Object(i.g)(),n=Object(i.i)().packageId,a=Object(c.c)(Hi),o=Object(c.c)(Ii),s=a[parseInt(n,10)];return 0!==a.length||o||e(Jo()),Object(r.jsxs)(r.Fragment,{children:[" ",0===a.length?Object(r.jsx)(Ti.a,{}):Object(r.jsxs)(wA,{children:[Object(r.jsxs)(yA,{onClick:function(){return t.goBack()},children:[" ","< Back"]}),Object(r.jsxs)(Ui.a,{container:!0,spacing:2,children:[Object(r.jsx)(Ui.a,{item:!0,xs:8,children:Object(r.jsx)(cA,{children:Object(r.jsx)(Ss.a,{children:Object(r.jsx)(mA,{documentation:s.documentation})})})}),Object(r.jsx)(Ui.a,{item:!0,xs:4,children:Object(r.jsx)(hA,{image:s})})]})]})]})},OA=n(267),xA=n.n(OA);function CA(){return(CA=Object(Ft.a)(jt.a.mark((function e(t){return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,EA(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function EA(e){return jA.apply(this,arguments)}function jA(){return(jA=Object(Ft.a)(jt.a.mark((function e(t){var n,r;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!==(n="https://1f06hf594m.execute-api.us-west-1.amazonaws.com/prod/webauth")){e.next=5;break}Fe.a.dispatch(Object(V.h)("No lambda found")),e.next=16;break;case 5:return e.prev=5,e.next=8,Qt.a.get("".concat(n,"?ghcode=").concat(t));case 8:return r=e.sent,e.next=11,FA(r.data.access_token);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),je.a.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[5,13]])})))).apply(this,arguments)}function FA(e){return _A.apply(this,arguments)}function _A(){return(_A=Object(Ft.a)(jt.a.mark((function e(t){var n,r,a,o,i;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={headers:{Authorization:"bearer "+t}},r="https://api.github.com/user",e.prev=3,e.next=6,Qt.a.get(r,n);case 6:a=e.sent,o=a.data,i={username:o.login,displayName:o.name,emails:[o.email],id:o.id,_json:o},Fe.a.dispatch(Object(V.f)(i)),window.location.href="/",e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),je.a.log(e.t0);case 16:e.next=19;break;case 18:Fe.a.dispatch(Object(V.h)("No GithubApi Token found"));case 19:case"end":return e.stop()}}),e,null,[[3,13]])})))).apply(this,arguments)}var QA=function(){return Object(a.useEffect)((function(){var e=xA.a.parse(window.location.search)["?code"];e&&function(e){CA.apply(this,arguments)}(e)})),Object(r.jsx)("div",{className:"main-content-container px-0",children:Object(r.jsx)("div",{className:"h-100",children:Object(r.jsx)("div",{className:"auth-form mx-auto",children:Object(r.jsx)("div",{children:Object(r.jsxs)("div",{children:[Object(r.jsx)("img",{className:"auth-form__logo d-table mx-auto mb-3",src:"/jina-light.svg",style:{maxWidth:"100px"},alt:"Jina"}),Object(r.jsx)("h5",{className:"auth-form__title text-center mb-4",children:"Log in"}),Object(r.jsxs)("a",{id:"github-button",className:"btn btn-block btn-social btn-github",href:"https://github.com/login/oauth/authorize?scope=user&client_id=".concat("aefd9df23a647df8eb2c"),children:[Object(r.jsx)("i",{className:"fab fa-github"})," Sign in with GitHub"]})]})})})})})};function UA(e){var t=e.title,n=e.content,a=e.icon,o=e.theme,i=e.link,s=e.dataName;return Object(r.jsx)("a",{className:"unstyled-link",href:i,target:"_blank",rel:"noopener noreferrer","data-name":s,children:Object(r.jsx)(va,{className:"h-full",children:Object(r.jsxs)("div",{className:" flex flex-col pt-3",children:[Object(r.jsxs)("div",{className:"flex flex-row justify-between mb-8",children:[Object(r.jsx)("div",{children:Object(r.jsx)("h4",{className:"text-2xl text-gray-700",children:t})}),Object(r.jsx)("div",{className:"".concat(a," log-").concat(o," text-5xl")})]}),Object(r.jsx)("div",{children:Object(r.jsx)("div",{className:"text-gray-500",children:n})})]})})})}var kA=function(){return Object(r.jsxs)("div",{className:"main-content-container px-4","data-name":"helpPage",children:[Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(Oa.a,{title:"Resources",className:"text-sm-left mb-3"})}),Object(r.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[Object(r.jsx)(UA,{title:"Jina 101",content:"Understanding all key concepts of Jina in 3 minutes!",link:"https://101.jina.ai",icon:"fas fa-egg",theme:"warning",dataName:"jina-101-card"}),Object(r.jsx)(UA,{title:"Jina Docs",content:"The best way to learn Jina in depth.",link:"https://docs.jina.ai",icon:"fas fa-book",theme:"primary",dataName:"jina-docs-card"}),Object(r.jsx)(UA,{title:'Jina "Hello World"',content:"A simple demo of image neural search for Fashion-MNIST.",link:"https://github.com/jina-ai/jina#jina-hello-world-",icon:"fas fa-globe-europe",theme:"error",dataName:"jina-hello-world-card"}),Object(r.jsx)(UA,{title:Object(r.jsxs)("span",{children:["Visit us on ",Object(r.jsx)("span",{className:"text-nowrap",children:"Github!"})]}),content:"Explore more exciting open-source projects from us.",link:"https://opensource.jina.ai",icon:"fab fa-github",theme:"info",dataName:"jina-github-card"}),Object(r.jsx)(UA,{title:"We are hiring!",content:"Join us and build the next neural search eco system!",link:"https://www.linkedin.com/company/jinaai/jobs/",icon:"fab fa-linkedin",theme:"linkedin",dataName:"jina-linkedin-card"})]})]})},SA=n(268),DA=n.n(SA);n(279),n(280);function NA(){var e=Object(A.a)(["\n  overflow-y: hidden;\n  overflow-x: hidden;\n"]);return NA=function(){return e},e}var HA=te.a.div(NA()),IA=function(){console.log(Object({NODE_ENV:"production",PUBLIC_URL:"https://api.jina.ai/swagger",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_TARGET:"Swagger",REACT_APP_FEATURE_HOMEPAGE:"disabled",REACT_APP_FEATURE_FILES:"disabled",REACT_APP_FEATURE_QUERY_SEARCH:"disabled",REACT_APP_FEATURE_DEBUGGING_TOOL:"disabled",REACT_APP_HUB_API:"https://hubapi.jina.ai",REACT_APP_JINA_API:"https://api.jina.ai",REACT_APP_GITHUB_LAMBDA:"https://1f06hf594m.execute-api.us-west-1.amazonaws.com/prod/webauth",REACT_APP_CLIENT_ID:"aefd9df23a647df8eb2c",REACT_APP_GITHUB_API:"https://api.github.com/user"}));return Object(r.jsxs)(DA.a,{className:"layout",layout:[{i:"a",x:0,y:0,w:4,h:4},{i:"b",x:1,y:0,w:8,h:10},{i:"c",x:4,y:0,w:3,h:4},{i:"d",x:0,y:1,w:8,h:6}],cols:12,rowHeight:30,width:1200,children:[Object(r.jsx)(HA,{children:Object(r.jsx)(Lo,{})},"a"),Object(r.jsx)(HA,{children:Object(r.jsx)(Os,{})},"b"),Object(r.jsx)(HA,{children:Object(r.jsx)(UA,{title:"Jina Docs",content:"The best way to learn Jina in depth.",link:"https://docs.jina.ai",icon:"fas fa-book",theme:"primary",dataName:"jina-docs-card"})},"c"),Object(r.jsx)(HA,{children:Object(r.jsx)(Oo,{})},"d")]})};function MA(){var e=Object(A.a)(["\n  color: ",";\n  font-size: 1.25rem;\n  width: 20%;\n  padding: 1rem;\n  &:hover {\n    text-decoration: none;\n  }\n"]);return MA=function(){return e},e}var TA=Object(te.a)(vi.c)(MA(),(function(e){return e.theme.palette.grey[600]})),RA=function(e){var t=e.label,n=e.path;return Object(r.jsx)(r.Fragment,{children:Object(r.jsxs)(TA,{to:n,children:[" ",t," "]})})},LA=n(34),PA=n(106),KA=["__init__.py","crafter-image.yml","encode-image.yml","encode-text.yml","filter.yml","index-comp.yml","index-doc.yml","ranker.yml","segment.yml","segmenter.py","weighted_ranker.py"],zA="https://jina-hello-multimodal.s3.amazonaws.com/config",VA="jtype: Flow\nversion: '1'\nwith:\n  restful: true\n  port_expose: 45678\npods:\n  - name: segment\n    uses: segment.yml\n  # first pathway\n  - name: filter_text\n    uses: filter.yml\n    env:\n      filter_mime: text/plain\n  - name: textEncoder\n    uses: encode-text.yml\n  - name: textModIndexer\n    uses: index-comp.yml\n    env:\n      indexer_name: text\n  # second pathway, in parallel\n  - name: filter_image\n    uses: filter.yml\n    env:\n      filter_mime: image/jpeg\n    needs: segment\n  - name: imageCrafter\n    uses: crafter-image.yml\n  - name: imageEncoder\n    uses: encode-image.yml\n  - name: imageModIndexer\n    uses: index-comp.yml\n    env:\n      indexer_name: image\n  # third pathway, in parallel\n  - name: docIndexer\n    uses: index-doc.yml\n    needs: segment\n  # join all parallel works\n  - needs: [docIndexer, imageModIndexer, textModIndexer]\n    name: joiner",WA="jtype: Flow\nversion: '1'\nread_only: true\nwith:\n  restful: true\n  port_expose: 45678\npods:\n  # first pathway\n  - name: filter_text\n    uses: filter.yml\n    env:\n      filter_mime: text/plain\n  - name: textEncoder\n    uses: encode-text.yml\n  - name: textModIndexer\n    uses: index-comp.yml\n    env:\n      indexer_name: text\n  # second pathway, in parallel\n  - name: filter_image\n    uses: filter.yml\n    env:\n      filter_mime: image/jpeg\n    needs: gateway\n  - name: imageCrafter\n    uses: crafter-image.yml\n  - name: imageEncoder\n    uses: encode-image.yml\n  - name: imageModIndexer\n    uses: index-comp.yml\n    env:\n      indexer_name: image\n  # join\n  - needs: [imageModIndexer, textModIndexer]\n    name: joiner\n    uses: _merge_chunks\n  - uses: ranker.yml\n    name: ranker\n  - name: docIndexer\n    uses: index-doc.yml\n",YA=[{1:4,"image_1.jpg":"image_4.jpg","A beautiful young girl posing on a white background.":"One hand pointing, finger out, thumb up",FIELD4:"",FIELD5:"",FIELD6:""},{1:6,"image_1.jpg":"image_6.jpg","A beautiful young girl posing on a white background.":"A beautiful young girl posing with a gray background.",FIELD4:"",FIELD5:"",FIELD6:""},{1:3,"image_1.jpg":"image_3.jpg","A beautiful young girl posing on a white background.":"Medical stitches - puncture wound closed up",FIELD4:"",FIELD5:"",FIELD6:""},{1:15,"image_1.jpg":"image_15.jpg","A beautiful young girl posing on a white background.":"A happy couple",FIELD4:"",FIELD5:"",FIELD6:""},{1:11,"image_1.jpg":"image_11.jpg","A beautiful young girl posing on a white background.":"Young girl dancing on stage in tutu\n2,image_2.jpg, A man thinking with a white mask\n14,image_14.jpg,Businessman with lightbulb head - Thinking process and ideas in a business context\n10,image_10.jpg,Mother and baby in swimming pool\n5,image_5.jpg,my hand compared to ancient handprints of anasazi tribes\n18,image_18.jpg,Young boy dreams of being a superhero - Child imagination and creativity concept\n8,image_8.jpg,Sulky and angry young kid on the couch\n12,image_12.jpg,My Baby after bath\n16,image_16.jpg,Woman sketching a social network on virtual screen\n17,image_17.jpg,Nice dress (wedding)\n19,image_19.jpg,Girls with flowers and sharee\n24,image_24.jpg,Young woman holding purse smiles\n25,image_25.jpg,A beautiful young girl posing with a white background.\n20,image_20.jpg,",FIELD4:' watching the ducks."',FIELD5:"",FIELD6:""},{1:28,"image_1.jpg":"image_28.jpg","A beautiful young girl posing on a white background.":"Silhouette of woman flexing biceps",FIELD4:"",FIELD5:"",FIELD6:""},{1:23,"image_1.jpg":"image_23.jpg","A beautiful young girl posing on a white background.":"happy swimmer",FIELD4:"",FIELD5:"",FIELD6:""},{1:29,"image_1.jpg":"image_29.jpg","A beautiful young girl posing on a white background.":"Cute young toddler in a sweatshirt and a knit cap",FIELD4:"",FIELD5:"",FIELD6:""},{1:26,"image_1.jpg":"image_26.jpg","A beautiful young girl posing on a white background.":"Attractive caucasian woman looking at camera.",FIELD4:"",FIELD5:"",FIELD6:""},{1:27,"image_1.jpg":"image_27.jpg","A beautiful young girl posing on a white background.":" Cute little girls with wild hair and a look of mischief.",FIELD4:"",FIELD5:"",FIELD6:""},{1:30,"image_1.jpg":"image_30.jpg","A beautiful young girl posing on a white background.":"Young boy in meditation position - tropical beach background",FIELD4:"",FIELD5:"",FIELD6:""},{1:32,"image_1.jpg":"image_32.jpg","A beautiful young girl posing on a white background.":"Hand silhouette in heart shape with sunset in the middle and ocean background",FIELD4:"",FIELD5:"",FIELD6:""},{1:33,"image_1.jpg":"image_33.jpg","A beautiful young girl posing on a white background.":'Tattoo says \\"Woman\\" in Chinese',FIELD4:"",FIELD5:"",FIELD6:""},{1:34,"image_1.jpg":"image_34.jpg","A beautiful young girl posing on a white background.":"Stylish little girl eating a shaved ice snow cone.",FIELD4:"",FIELD5:"",FIELD6:""},{1:31,"image_1.jpg":"image_31.jpg","A beautiful young girl posing on a white background.":"Helpful phone operator fields calls.",FIELD4:"",FIELD5:"",FIELD6:""},{1:40,"image_1.jpg":"image_40.jpg","A beautiful young girl posing on a white background.":"Small child playing on the beach in the bright sun.",FIELD4:"",FIELD5:"",FIELD6:""},{1:38,"image_1.jpg":"image_38.jpg","A beautiful young girl posing on a white background.":"Portrait of woman wearing sunglasses on the beach",FIELD4:"",FIELD5:"",FIELD6:""},{1:36,"image_1.jpg":"image_36.jpg","A beautiful young girl posing on a white background.":"Little girl writing on blackboard - Learning and knowledge concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:37,"image_1.jpg":"image_37.jpg","A beautiful young girl posing on a white background.":"beautiful female torso on summer sea backgroung",FIELD4:"",FIELD5:"",FIELD6:""},{1:41,"image_1.jpg":"image_41.jpg","A beautiful young girl posing on a white background.":"Child makes choices on computer touch screen.",FIELD4:"",FIELD5:"",FIELD6:""},{1:47,"image_1.jpg":"image_47.jpg","A beautiful young girl posing on a white background.":"Profile of woman against white light box",FIELD4:"",FIELD5:"",FIELD6:""},{1:42,"image_1.jpg":"image_42.jpg","A beautiful young girl posing on a white background.":"Little girl sticks out her tongue in play defiance.",FIELD4:"",FIELD5:"",FIELD6:""},{1:45,"image_1.jpg":"image_45.jpg","A beautiful young girl posing on a white background.":"A romantic couple enjoying the sunset in a tropical island",FIELD4:"",FIELD5:"",FIELD6:""},{1:43,"image_1.jpg":"image_43.jpg","A beautiful young girl posing on a white background.":"Hands typing on laptop keyboard - fuzzy looks",FIELD4:"",FIELD5:"",FIELD6:""},{1:48,"image_1.jpg":"image_48.jpg","A beautiful young girl posing on a white background.":"Person connecting and sharing using social media networks - With speech bubbles featuring Facebook, Google Plus, Instagram, Pinterest, Linkedin, Skype, Tumblr, Twitter and Youtube",FIELD4:"",FIELD5:"",FIELD6:""},{1:50,"image_1.jpg":"image_50.jpg","A beautiful young girl posing on a white background.":"young boy jumping of joy on beach background",FIELD4:"",FIELD5:"",FIELD6:""},{1:49,"image_1.jpg":"image_49.jpg","A beautiful young girl posing on a white background.":"Businessman leader rising in a hot air balloon - Leadership concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:52,"image_1.jpg":"image_52.jpg","A beautiful young girl posing on a white background.":" Man in train station wearing black over ear headphones",FIELD4:"",FIELD5:"",FIELD6:""},{1:51,"image_1.jpg":"image_51.jpg","A beautiful young girl posing on a white background.":"Red haired young woman with lip piercing looks at camera",FIELD4:"",FIELD5:"",FIELD6:""},{1:54,"image_1.jpg":"image_54.jpg","A beautiful young girl posing on a white background.":"Child painting a watercolor",FIELD4:"",FIELD5:"",FIELD6:""},{1:53,"image_1.jpg":"image_53.jpg","A beautiful young girl posing on a white background.":"Neck and back of a head of a sitting man with head turned",FIELD4:"",FIELD5:"",FIELD6:""},{1:57,"image_1.jpg":"image_57.jpg","A beautiful young girl posing on a white background.":"Medical Doctor Studying the Human Body - Concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:59,"image_1.jpg":"image_59.jpg","A beautiful young girl posing on a white background.":"An call center professional wearing a white corporate attire",FIELD4:"",FIELD5:"",FIELD6:""},{1:58,"image_1.jpg":"image_58.jpg","A beautiful young girl posing on a white background.":"A statue overlooking the Chicago skyline.",FIELD4:"",FIELD5:"",FIELD6:""},{1:56,"image_1.jpg":"image_56.jpg","A beautiful young girl posing on a white background.":"Healthy young woman practicing yoga at sunset on the beach",FIELD4:"",FIELD5:"",FIELD6:""},{1:60,"image_1.jpg":"image_60.jpg","A beautiful young girl posing on a white background.":"Back to school - Study concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:55,"image_1.jpg":"image_55.jpg","A beautiful young girl posing on a white background.":"Businessman Holding Light Bulb on Chalkboard",FIELD4:"",FIELD5:"",FIELD6:""},{1:61,"image_1.jpg":"image_61.jpg","A beautiful young girl posing on a white background.":"Exitced young pretty woman headshot.",FIELD4:"",FIELD5:"",FIELD6:""},{1:62,"image_1.jpg":"image_62.jpg","A beautiful young girl posing on a white background.":"A smiling young healthcare worker in his white clean uniform",FIELD4:"",FIELD5:"",FIELD6:""},{1:65,"image_1.jpg":"image_65.jpg","A beautiful young girl posing on a white background.":"Sunset at the Honey Island Beach",FIELD4:"",FIELD5:"",FIELD6:""},{1:63,"image_1.jpg":"image_63.jpg","A beautiful young girl posing on a white background.":"Sending a newsletter mail to your contacts - Online marketing concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:64,"image_1.jpg":"image_64.jpg","A beautiful young girl posing on a white background.":"Brown Haired Young Woman In Camel Jacket Looking At Camera",FIELD4:"",FIELD5:"",FIELD6:""},{1:69,"image_1.jpg":"image_69.jpg","A beautiful young girl posing on a white background.":"Dark Roasted Cofee beans",FIELD4:"",FIELD5:"",FIELD6:""},{1:68,"image_1.jpg":"image_68.jpg","A beautiful young girl posing on a white background.":"A girl making a big bubble",FIELD4:"",FIELD5:"",FIELD6:""},{1:71,"image_1.jpg":"image_71.jpg","A beautiful young girl posing on a white background.":"Hand and lightbulb - Creativity and ideas concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:67,"image_1.jpg":"image_67.jpg","A beautiful young girl posing on a white background.":"Child playfully making circles around his eyes as he faces the camera with the sun in front of him.",FIELD4:"",FIELD5:"",FIELD6:""},{1:66,"image_1.jpg":"image_66.jpg","A beautiful young girl posing on a white background.":"Young Woman Jogging at Sunset - Fitness and Health",FIELD4:"",FIELD5:"",FIELD6:""},{1:70,"image_1.jpg":"image_70.jpg","A beautiful young girl posing on a white background.":"Street scene with pedestrians walking through bubbles",FIELD4:"",FIELD5:"",FIELD6:""},{1:72,"image_1.jpg":"image_72.jpg","A beautiful young girl posing on a white background.":"Happy woman in red dress, vintage look.",FIELD4:"",FIELD5:"",FIELD6:""},{1:73,"image_1.jpg":"image_73.jpg","A beautiful young girl posing on a white background.":"Businessman having an idea - Problem-solving in a business context",FIELD4:"",FIELD5:"",FIELD6:""},{1:74,"image_1.jpg":"image_74.jpg","A beautiful young girl posing on a white background.":"Hand placing coins on a coin stack with upward arrow - Income and asset growth concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:76,"image_1.jpg":"image_76.jpg","A beautiful young girl posing on a white background.":"A boy in the desert sunset",FIELD4:"",FIELD5:"",FIELD6:""},{1:80,"image_1.jpg":"image_80.jpg","A beautiful young girl posing on a white background.":"Young woman puts shopping bags over her shoulder.",FIELD4:"",FIELD5:"",FIELD6:""},{1:75,"image_1.jpg":"image_75.jpg","A beautiful young girl posing on a white background.":"Medical Human Body Scan - Man and Technology",FIELD4:"",FIELD5:"",FIELD6:""},{1:78,"image_1.jpg":"image_78.jpg","A beautiful young girl posing on a white background.":"Two kids in an old city street",FIELD4:"",FIELD5:"",FIELD6:""},{1:83,"image_1.jpg":"image_83.jpg","A beautiful young girl posing on a white background.":"A young man wearing a brown casual shirt carying a black laptop",FIELD4:"",FIELD5:"",FIELD6:""},{1:81,"image_1.jpg":"image_81.jpg","A beautiful young girl posing on a white background.":"Enjoying a glass of wine is always a pleasure.",FIELD4:"",FIELD5:"",FIELD6:""},{1:84,"image_1.jpg":"image_84.jpg","A beautiful young girl posing on a white background.":"A woman with fours bags smelling a flowe",FIELD4:"",FIELD5:"",FIELD6:""},{1:77,"image_1.jpg":"image_77.jpg","A beautiful young girl posing on a white background.":"Binary computer code on human face - Online privacy concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:79,"image_1.jpg":"image_79.jpg","A beautiful young girl posing on a white background.":"A young man kisses a young woman on the cheek.",FIELD4:"",FIELD5:"",FIELD6:""},{1:82,"image_1.jpg":"image_82.jpg","A beautiful young girl posing on a white background.":"Cute Baby Boy",FIELD4:"",FIELD5:"",FIELD6:""},{1:86,"image_1.jpg":"image_86.jpg","A beautiful young girl posing on a white background.":"Newborn Baby Feet in Mothers Hands",FIELD4:"",FIELD5:"",FIELD6:""},{1:87,"image_1.jpg":"image_87.jpg","A beautiful young girl posing on a white background.":"A foot with part of a knit sock on the needles.",FIELD4:"",FIELD5:"",FIELD6:""},{1:91,"image_1.jpg":"image_91.jpg","A beautiful young girl posing on a white background.":"Man with clock head - Slave to time concept",FIELD4:"",FIELD5:"",FIELD6:""},{1:85,"image_1.jpg":"image_85.jpg","A beautiful young girl posing on a white background.":"Female Medical Doctor Analyzing DNA strands",FIELD4:"",FIELD5:"",FIELD6:""},{1:88,"image_1.jpg":"image_88.jpg","A beautiful young girl posing on a white background.":"Sleeping beauty - A naked princess of the woods - Double exposure effect",FIELD4:"",FIELD5:"",FIELD6:""},{1:90,"image_1.jpg":"image_90.jpg","A beautiful young girl posing on a white background.":"Woman in red dress looks over her shoulder.",FIELD4:"",FIELD5:"",FIELD6:""},{1:93,"image_1.jpg":"image_93.jpg","A beautiful young girl posing on a white background.":"A beautiful young girl texting on a cell phone.",FIELD4:"",FIELD5:"",FIELD6:""},{1:94,"image_1.jpg":"image_94.jpg","A beautiful young girl posing on a white background.":"Young woman thinking while facing camera",FIELD4:"",FIELD5:"",FIELD6:""},{1:92,"image_1.jpg":"image_92.jpg","A beautiful young girl posing on a white background.":"Man sitting alone on bench looking at phone",FIELD4:"",FIELD5:"",FIELD6:""},{1:96,"image_1.jpg":"image_96.jpg","A beautiful young girl posing on a white background.":"Only Love is Real - A Couple Embraces Under Light - Drawing with Copyspace",FIELD4:"",FIELD5:"",FIELD6:""},{1:95,"image_1.jpg":"image_95.jpg","A beautiful young girl posing on a white background.":"Woman Working On Laptop - Close-Up of Hands",FIELD4:"",FIELD5:"",FIELD6:""},{1:98,"image_1.jpg":"image_98.jpg","A beautiful young girl posing on a white background.":"Businessman holding a ball with information technology icons",FIELD4:"",FIELD5:"",FIELD6:""}];function GA(){return XA.apply(this,arguments)}function XA(){return(XA=Object(Ft.a)(jt.a.mark((function e(){var t,n,r,a,o,i,s,A,c,l,u,d,f,h;return jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=Object(LA.a)(KA),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=13;break}return a=r.value,e.next=8,Qt.a.get(zA+"/"+a,{responseType:"blob"});case 8:o=e.sent,i=new File([o.data],a,{type:"text/plain"}),t.push(i);case 11:e.next=4;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(2),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:return Fe.a.dispatch(Object(V.g)("Creating Workspace","success")),e.next=24,PA.a.createWorkspace(t);case 24:return s=e.sent,Fe.a.dispatch(Object(V.g)("Starting Index Flow","success")),e.next=28,PA.a.startFlow(VA,s.workspace);case 28:return A=e.sent,c=A.flow_id,l=Fe.a.getState().settingsState.settings,Fe.a.dispatch(Object(V.g)("Connecting to gateway","success")),e.next=34,St.connect(l,(function(e){return Fe.a.dispatch(Object(V.g)("Connceted to gateway","success"))}));case 34:Fe.a.dispatch(Object(V.g)("Start indexing","success")),u=Object(LA.a)(YA),e.prev=36,u.s();case 38:if((d=u.n()).done){e.next=46;break}return f=d.value,h={id:f[1].toString(),image:f["image_1.jpg"],caption:f["A beautiful young girl posing on a white background."]},e.next=43,St.index(JSON.stringify(h));case 43:Fe.a.dispatch(Object(V.g)("Indexed: "+f["A beautiful young girl posing on a white background."],"success"));case 44:e.next=38;break;case 46:e.next=51;break;case 48:e.prev=48,e.t1=e.catch(36),u.e(e.t1);case 51:return e.prev=51,u.f(),e.finish(51);case 54:return Fe.a.dispatch(Object(V.g)("Terminating Flow","success")),PA.a.terminateFlow(c),e.next=58,Object(Zs.g)(1);case 58:return e.next=60,PA.a.terminateFlow(c);case 60:return Fe.a.dispatch(Object(V.g)("Starting Query Flow","success")),e.next=63,PA.a.startFlow(WA,s.workspace);case 63:window.open("https://static.jina.ai/multimodal?port=".concat(Fe.a.getState().settingsState.settings.gatewayPort),"_blank");case 64:case"end":return e.stop()}}),e,null,[[2,15,18,21],[36,48,51,54]])})))).apply(this,arguments)}function JA(){var e=Object(A.a)(["\n      display: none;\n    "]);return JA=function(){return e},e}function qA(){var e=Object(A.a)(["\n      float: right;\n      cursor: pointer;\n    "]);return qA=function(){return e},e}function ZA(){var e=Object(A.a)(["\n    opacity: 0.5;\n    margin-right: 0.25em;\n  "]);return ZA=function(){return e},e}function $A(){var e=Object(A.a)(["\n    font-weight: 400;\n    font-size: 0.85rem;\n    padding-top: 0.15rem;\n    padding-bottom: 0.15rem;\n    margin-top: 0.15rem;\n    margin-bottom: 0.15rem;\n    position: relative;\n    white-space: nowrap;\n  "]);return $A=function(){return e},e}function ec(){var e=Object(A.a)(["\n    border-top: 1px solid rgba(0, 0, 0, 0.1);\n    border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n    margin-bottom: 1rem;\n    height: 10rem;\n    overflow-y: auto;\n    overflow-x: hidden;\n  "]);return ec=function(){return e},e}function tc(){var e=Object(A.a)(["\n    float: right;\n    cursor: pointer;\n  "]);return tc=function(){return e},e}function nc(){var e=Object(A.a)(["\n    font-weight: 600;\n    font-size: 14px;\n    margin-bottom: 0.5rem;\n    color: ",";\n  "]);return nc=function(){return e},e}function rc(){var e=Object(A.a)(["\n    font-weight: 600;\n    font-size: 14px;\n    margin-bottom: 1rem;\n    color: ",";\n  "]);return rc=function(){return e},e}function ac(){var e=Object(A.a)(["\n    position: absolute;\n    height: 1.75rem;\n    width: 2rem;\n    top: 0;\n    right: 0;\n    background: linear-gradient(\n      to right,\n      transparent 0%,\n      "," 40%\n    );\n  "]);return ac=function(){return e},e}function oc(){var e=Object(A.a)(["\n    cursor: pointer;\n    font-weight: ",";\n    font-size: 14px;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    margin-left: 1rem;\n    margin-bottom: 1rem;\n    white-space: nowrap;\n    overflow: hidden;\n    position: relative;\n    padding-top: 0.15rem;\n    padding-bottom: 0.15rem;\n  "]);return oc=function(){return e},e}function ic(){var e=Object(A.a)(["\n    position: relative;\n    font-weight: 600;\n    font-size: 1.25em;\n    color: ",";\n    margin-bottom: 1rem;\n    white-space: nowrap;\n    overflow: hidden;\n  "]);return ic=function(){return e},e}function sc(){var e=Object(A.a)(['\n    font-family: "Montserrat", serif;\n    width: 12rem;\n    margin-right: 1.5rem;\n  ']);return sc=function(){return e},e}function Ac(){var e=Object(A.a)(["\n    cursor: pointer;\n    font-size: 1.15rem;\n    position: absolute;\n    top: 0;\n    right: 0;\n  "]);return Ac=function(){return e},e}var cc="Untitled workspace";function lc(e){var t=e.connected;return e.show?t?Object(r.jsx)("i",{className:"material-icons ml-2 text-success",children:"wifi"}):Object(r.jsx)("i",{className:"material-icons ml-2 text-warning",children:"wifi_off"}):null}function uc(e){var t=e.connected;return e.show?t?Object(r.jsx)("i",{className:"material-icons text-white ml-1 mr-2",children:"wifi"}):Object(r.jsx)("i",{className:"material-icons text-warning ml-1 mr-2",children:"wifi_off"}):null}function dc(e){var t=e.onClick,n=e.idx,a=te.a.div(Ac());return Object(r.jsx)(a,{children:Object(r.jsx)("i",{"data-name":"deleteWorkspaceButton-".concat(n),onClick:t,className:"material-icons",children:"delete"})})}function fc(){var e=Object(c.c)(De),t=Object(c.c)(Me),n=Object(c.c)(m),a=Object(Rt.f)().palette,o=Object(c.b)(),i=te.a.div(sc()),A=te.a.div(ic(),a.headerTextColor),u=te.a.div(oc(),(function(e){return e.selected?"bold":500})),d=te.a.div(ac(),a.bodyBackground),f=te.a.div(rc(),a.headerTextColor),h=te.a.div(nc(),a.headerTextColor),p=te.a.span(tc()),g=te.a.div(ec()),b=te.a.div($A()),v=te.a.span(ZA()),w=Object.entries(e).filter((function(e){var t=Object(s.a)(e,2);t[0];return"example"!==t[1].type})),y=Object.entries(e).filter((function(e){var t=Object(s.a)(e,2);t[0];return"example"===t[1].type})),B=function(){var e=te.a.label(qA()),t=te.a.input(JA());return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(e,{htmlFor:"workspace-file-select",children:Object(r.jsx)("i",{className:"material-icons",children:"attach_file"})}),Object(r.jsx)(t,{id:"workspace-file-select",type:"file",multiple:!0,onChange:function(e){return function(e){if(e){var t=Array.from(e);return o(Object(_e.s)(t))}}(e.target.files)}})]})},O=e[t],x=function(){return Object(r.jsx)(g,{children:O.files.length?O.files.map((function(e,t){return Object(r.jsxs)(b,{children:[Object(r.jsx)(v,{children:Object(r.jsx)("i",{className:"material-icons",children:"file_present"})}),Object(r.jsx)("span",{children:e}),Object(r.jsx)(d,{})]},t)})):Object(r.jsx)("span",{children:Object(r.jsx)("i",{children:"none"})})})};return Object(r.jsxs)(i,{children:[Object(r.jsxs)(A,{children:[O.name||Object(r.jsx)("i",{children:cc}),Object(r.jsx)(uc,{show:"remote"===O.type,connected:n})]}),Object(r.jsxs)(h,{children:["Files ",Object(r.jsx)(B,{})]}),l("FILES")&&Object(r.jsx)(x,{}),Object(r.jsxs)(f,{children:["My Workspaces",Object(r.jsx)(p,{"data-name":"newWorkspaceButton",onClick:function(){return o(Object(_e.d)())},children:Object(r.jsx)("i",{className:"material-icons",children:"add"})})]}),w.map((function(e,a){var i=Object(s.a)(e,2),A=i[0],c=i[1];return Object(r.jsxs)(u,{"data-name":"".concat(c.name.replaceAll(" ","")),selected:t===A,children:[Object(r.jsx)("span",{onClick:function(){return o(Object(_e.l)(A))},children:c.name||cc}),Object(r.jsx)(lc,{show:"remote"===c.type,connected:n}),Object(r.jsx)(d,{}),Object(r.jsx)(dc,{idx:a,onClick:function(){return o(Object(_e.h)(A))}})]},a)})),Object(r.jsx)(f,{children:"Example Workspaces"}),y.map((function(e,n){var a=Object(s.a)(e,2),i=a[0],A=a[1];return Object(r.jsx)(u,{"data-name":"exampleWorkspaceButton-".concat(n),selected:t===i,onClick:function(){return o(Object(_e.l)(i))},children:A.name},n)})),Object(r.jsx)(u,{selected:!1,onClick:GA,children:"Multi-Modal-Example"})]})}var hc=n.p+"static/media/Play.bef61d4b.svg",pc=n.p+"static/media/Save.fb5eb30a.svg",gc=n.p+"static/media/Stop.484e40df.svg",mc=n.p+"static/media/Upload.3efa525a.svg",bc=n.p+"static/media/Yaml.010ee2a0.svg";function vc(){var e=Object(A.a)(["\n  margin: 0 2rem;\n"]);return vc=function(){return e},e}function wc(){var e=Object(A.a)(["\n  background: ",";\n  border: 0;\n  margin-right: 1rem;\n  cursor: pointer;\n\n  :focus {\n    outline: 0px;\n  }\n"]);return wc=function(){return e},e}function yc(){var e=Object(A.a)(["\n  height: 3.125rem;\n  background: ",";\n  border-radius: 8px;\n  display: flex;\n"]);return yc=function(){return e},e}var Bc=te.a.div(yc(),(function(e){return e.theme.palette.primary.main})),Oc=te.a.button(wc(),(function(e){return e.theme.palette.primary.main})),xc=Object(te.a)(Oc)(vc());function Cc(e){var t=e.startFlow,n=e.stopFlow,a=e.importChart,o=e.copyChart,i=e.exportImage,s=Object(c.b)();var A=l("QUERY_SEARCH")?function(){s(Object(V.i)("QuerySearch"))}:function(){i("png")};return Object(r.jsx)("div",{className:"command-bar-container",children:Object(r.jsx)("div",{className:"command-bar",children:Object(r.jsxs)(Bc,{children:[Object(r.jsx)(xc,{"data-name":"playButton",onClick:t,children:Object(r.jsx)("img",{alt:"Play",src:hc})}),Object(r.jsx)(Oc,{"data-name":"stopButton",onClick:n,children:Object(r.jsx)("img",{alt:"Stop",src:gc})}),Object(r.jsx)(Oc,{"data-name":"saveButton",onClick:A,children:Object(r.jsx)("img",{alt:"Save",src:pc})}),Object(r.jsx)(Oc,{onClick:a,children:Object(r.jsx)("img",{alt:"Upload",src:mc})}),Object(r.jsx)(Oc,{onClick:o,children:Object(r.jsx)("img",{style:{width:"3rem",height:"auto",marginLeft:"-0.5rem",marginTop:"0.15rem"},alt:"Upload",src:bc})})]})})})}var Ec=n(113);function jc(){var e=Object(A.a)(["\n    min-width: 16rem;\n    cursor: move;\n    text-align: center;\n    font-size: 14px;\n    font-weight: 500;\n    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n    border-radius: 0.25em;\n    transition: 0.2s;\n    border: 1px solid ",";\n  "]);return jc=function(){return e},e}function Fc(){var e=Object(A.a)(["\n    bottom: -0.45rem;\n  "]);return Fc=function(){return e},e}function _c(){var e=Object(A.a)(["\n    margin-top: -0.2rem;\n    background-color: white;\n    width: 1rem;\n    height: 1rem;\n    border-radius: 0.5rem;\n    border: 1px solid ",';\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    &:after {\n      display: block;\n\n      content: "";\n      background-color: #099;\n      color: white;\n      border-radius: 0.25rem;\n      width: 0.5rem;\n      height: 0.5rem;\n    }\n  ']);return _c=function(){return e},e}function Qc(e){var t=e.type,n=e.portDataLabel,a=Object(Rt.f)(),o=Object(te.a)(Ec.b)(_c(),a.palette.primary.main),i=Object(te.a)(o)(Fc());switch(t){case"source":return Object(r.jsx)(i,{"data-name":"NodePortBottom-".concat(n),type:t,position:Ec.c.Bottom});case"target":return Object(r.jsx)(o,{"data-name":"NodePortTop-".concat(n),type:t,position:Ec.c.Top})}}function Uc(e){var t=Object(c.c)(Ue).type,n=Object(c.b)(),a=Object(Rt.f)(),o=te.a.div(jc(),a.palette.primary.main);if(void 0!==e.id){var i,s,A,l,u,d=e;return Object(r.jsxs)(o,{"data-name":"chart-node-".concat(null===d||void 0===d||null===(i=d.data)||void 0===i?void 0:i.label),onDoubleClick:function(){"user-generated"===t&&n(Object(V.i)("podEdit",{nodeId:null===d||void 0===d?void 0:d.id}))},children:["gateway"!==d.id&&Object(r.jsx)(Qc,{portDataLabel:(null===d||void 0===d||null===(s=d.data)||void 0===s?void 0:s.label)||d.id,type:"target"}),Object(r.jsx)("div",{id:"chart-node-".concat(null===d||void 0===d||null===(A=d.data)||void 0===A?void 0:A.label),children:Object(r.jsx)("div",{className:"node-header",children:Object(r.jsx)("div",{className:"p-1",children:Object(r.jsx)("p",{className:"m-1",children:Object(r.jsx)("span",{className:"text-bold",children:(null===d||void 0===d||null===(l=d.data)||void 0===l?void 0:l.label)||Object(r.jsx)("span",{className:"text-warning",children:"Empty Pod"})})})})})})," ",Object(r.jsx)(Qc,{type:"source",portDataLabel:(null===d||void 0===d||null===(u=d.data)||void 0===u?void 0:u.label)||d.id})]})}return Object(r.jsx)(o,{id:"chart-node-".concat(e.label),children:Object(r.jsx)("div",{className:"node-header",children:Object(r.jsx)("div",{className:"p-1",children:Object(r.jsx)("p",{className:"m-1",children:Object(r.jsx)("span",{className:"text-bold",children:e.label||Object(r.jsx)("span",{className:"text-warning",children:"Empty Pod"})})})})})})}var kc=n(20);function Sc(e){var t=e.label,n=e.idx,o=a.createRef();return Object(r.jsx)("div",{"data-name":"SideBarItem-".concat(n),ref:o,className:"mb-3 draggable-container",draggable:!0,onDragStart:function(e){var n=Object(kc.a)(),r=JSON.stringify({id:n,label:t});e.dataTransfer.setData("application/reactflow",r),e.dataTransfer.effectAllowed="move"},children:Object(r.jsx)(Uc,{label:t})})}var Dc=[{},{name:"reader",yaml_path:"pods/extract.yml"},{name:"loader",yaml_path:"yaml/craft-load.yml",parallel:3,read_only:"true"},{name:"splittor",yaml_path:"pods/craft-split.yml",parallel:3,read_only:"true"},{name:"encoder",yaml_path:"pods/encode.yml",parallel:3,timeout_ready:12e5,read_only:"true"},{name:"chunk_indexer",yaml_path:"pods/index-chunk.yml",parallel:3,separated_workspace:"true"},{name:"doc_indexer",yaml_path:"pods/index-doc.yml"},{name:"join_all",yaml_path:"_merge",read_only:"true"},{name:"ranker",yaml_path:"MinRanker"},{name:"flipper",yaml_path:"yaml/craft-flip.yml",parallel:3,read_only:"true"},{name:"normalizer",yaml_path:"yaml/craft-normalize.yml",parallel:3,read_only:"true"},{name:"crafter",yaml_path:"pods/craft.yml",read_only:"true"},{name:"chunk_seg",yaml_path:"pods/craft.yml",parallel:3}];function Nc(e){var t=e.duplicateFlow;return Object(r.jsxs)("div",{className:"readonly-overlay py-4 px-4 text-center",children:[Object(r.jsx)("h4",{className:"my-4",children:Object(r.jsxs)("b",{children:["This flow is ",Object(r.jsx)("span",{className:"text-muted",children:"readonly"})]})}),Object(r.jsx)("p",{className:"my-4",children:"To edit this flow, please duplicate it."}),Object(r.jsx)(he.a,{onClick:t,children:"Duplicate Flow"})]})}function Hc(){return Object(r.jsxs)("div",{className:"d-flex flex-column h-100",children:[Object(r.jsx)("h5",{className:"px-3 py-2 mb-0 border-bottom",children:Object(r.jsx)("b",{children:"Add Pods"})}),Object(r.jsx)("div",{className:"p-3 scrollable flex-fill",children:Dc.map((function(e,t){return Object(r.jsx)(Sc,{label:e.name||"Empty Pod",idx:t},"SideBarItem-".concat(t))}))})]})}var Ic=function(e){var t=e.readonly,n=e.duplicateFlow;return Object(r.jsx)("div",{className:"flowchart-sidebar mb-4",children:t?Object(r.jsx)(Nc,{duplicateFlow:n}):Object(r.jsx)(Hc,{})})},Mc=n(281),Tc=n.n(Mc),Rc=n(105),Lc={default:Uc};function Pc(e){var t=Object(c.b)(),n=Object(c.c)(Ue),o=Object(a.useState)(null),i=Object(s.a)(o,2),A=i[0],l=i[1],u=Object(a.useRef)(null);return Object(r.jsx)("div",{className:"reactflow-wrapper",ref:u,style:{height:"100%",width:"100%"},children:Object(r.jsx)(Ec.d,{defaultPosition:[0,50],defaultZoom:.5,elements:e.elements,onConnect:function(e){e.source&&e.target&&t(Object(_e.a)(e.source,e.target))},onElementsRemove:function(e){e.forEach((function(e){Object(Rc.d)(e)&&t(Object(_e.f)(e.id)),Object(Rc.e)(e)&&t(Object(_e.g)(e.id))}))},onLoad:function(e){e.fitView(),l(e),console.log(e.getElements())},onDrop:function(e){var n;e.preventDefault();var r=(null===u||void 0===u||null===(n=u.current)||void 0===n?void 0:n.getBoundingClientRect())||new DOMRect,a=JSON.parse(e.dataTransfer.getData("application/reactflow")),o=(null===A||void 0===A?void 0:A.project({x:e.clientX-r.left,y:e.clientY-r.top}))||{x:0,y:0};t(Object(_e.b)(a.id,o,a))},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onNodeDragStop:function(e,n){t(Object(_e.p)(n.id,{position:n.position}))},nodeTypes:Lc,nodesDraggable:"example"!==n.type})})}function Kc(){var e=Object(A.a)(["\n    color: white;\n    position: relative;\n    cursor: pointer;\n    display: inline-block;\n    padding: 5px 5px;\n  "]);return Kc=function(){return e},e}function zc(){var e=Object(A.a)(["\n    margin: 0 0.25em;\n    padding: 5px 10px 10px 10px;\n    display: inline-block;\n    border-radius: 0.25em 0.25em 0em 0em;\n    position: relative;\n    cursor: pointer;\n    transition: 0.2s;\n    max-width: 15em;\n    background: ",";\n    z-index: ",";\n  "]);return zc=function(){return e},e}function Vc(){var e=Object(A.a)(['\n    list-style: none;\n    margin: 0;\n    padding: 0;\n    line-height: 24px;\n    position: absolute;\n    width: 100%;\n    background: #90a4ae;\n    padding-top: 0.5em;\n    padding-left: 0.25em;\n    padding-right: 0.25em;\n    z-index: 5;\n    border-bottom: 1px solid #cfd8dc;\n\n    &:before {\n      z-index: 5;\n    }\n\n    &:after {\n      position: absolute;\n      content: "";\n      width: 100%;\n      bottom: 0;\n      left: 0;\n      border-bottom: 5px solid #eceff1;\n      z-index: 5;\n    }\n  ']);return Vc=function(){return e},e}function Wc(){var e=Object(c.c)(Se),t=Object(c.c)(Ie),n=Object(c.b)(),a=te.a.div(Vc()),o=te.a.div(zc(),(function(e){var t;return(null===(t=e.className)||void 0===t?void 0:t.includes("selected"))?"#eceff1":"#b0bec5"}),(function(e){var t;return(null===(t=e.className)||void 0===t?void 0:t.includes("selected"))?"6":"5"})),i=te.a.div(Kc());return Object(r.jsxs)(a,{children:[Object.entries(e).map((function(e){var a=Object(s.a)(e,2),i=a[0],A=a[1];return Object(r.jsx)(o,{"data-name":"flowTab-".concat(i),className:t===i?"selected":"",children:Object(r.jsxs)("div",{className:"d-flex flex-row",children:[Object(r.jsx)("span",{className:"d-inline-block flex-fill pr-4",onClick:function(){return n(Object(_e.k)(i))},children:A.name}),Object(r.jsx)("span",{"data-name":"delete-".concat(i),className:"d-inline-block",onClick:function(){return n(Object(_e.e)(i))},children:Object(r.jsx)("i",{className:"material-icons",children:"close"})})]})},i)})),Object(r.jsx)(i,{"data-name":"createNewFlowButton",onClick:function(){return n(Object(_e.c)())},children:Object(r.jsx)("i",{className:"material-icons",children:"add"})})]})}function Yc(){var e=Object(A.a)(["\n  display: flex;\n  min-height: 58rem;\n"]);return Yc=function(){return e},e}var Gc=te.a.div(Yc());var Xc=n(164),Jc=[{path:"/",exact:!0,layout:Ht,component:function(){return Object(r.jsx)(i.a,{to:"/logs"})}},{path:"/logs",layout:Ht,component:Oo,props:{usesConnection:!0,usesAuth:!1}},{path:"/flow",layout:Ht,component:function(){var e=Object(c.b)(),t=Object(c.c)(Ne),n=Object(c.c)(ke),o=Object(c.c)(Ue),i=null===o||void 0===o?void 0:o.flowChart,A=null===o||void 0===o?void 0:o.type,l=Object(a.useCallback)((function(){je.a.log("copyChartAsYAML | chart:",i),Object($a.a)(Object($a.b)(i,t)),alert("Chart copied to clipboard as YAML")}),[i,t]),u=Object(a.useState)(!1),d=Object(s.a)(u,2),f=d[0],h=d[1];je.a.log("showOverlay",f);var p=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];h(e)};return i?Object(r.jsx)("div",{className:"main-content-container px-0",children:Object(r.jsxs)("div",{className:"px-4",children:[Object(r.jsx)("a",{href:"/#",id:"download-link",style:{display:"none"},children:"download"}),Object(r.jsx)("div",{className:"page-header mb-4",children:Object(r.jsx)(Oa.a,{title:"Flow Design",className:"text-sm-left mb-3"})}),Object(r.jsxs)(Gc,{children:[Object(r.jsx)(fc,{}),Object(r.jsxs)("div",{className:"chart-section-container mr-md-4 mb-4 relative",children:[Object(r.jsx)(Wc,{}),Object(r.jsx)(Cc,{startFlow:function(){var r=Object($a.b)(i,t),a=n.daemon_id,o=n.name;if(!a)return e(Object(V.g)("Workspace ".concat(o," is not deployed"),"error"));e(Object(_e.n)(r,a))},stopFlow:function(){var t=o.daemon_id,n=o.name;if(!t)return e(Object(V.g)("Flow ".concat(n," is not deployed"),"error"));e(Object(_e.o)(t))},copyChart:l,importChart:function(){return e(Object(V.i)("import"))},exportImage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"png",t=document.querySelector(".reactflow-wrapper"),n=document.querySelector(".capture-overlay");if(t){n&&n.classList.add("fade-out"),p(),setTimeout((function(){return p(!1)}),500);var r={foreignObjectRendering:!0,logging:!0,x:0,y:0,scrollX:0,scrollY:0,scale:5};Tc()(t,r).then((function(t){var n=t.toDataURL("image/".concat(e)),r=document.getElementById("download-link");r&&(r.setAttribute("download","jina-flow-visual.".concat(e)),r.setAttribute("href",n),r.click())}))}}}),Object(r.jsx)(Pc,{elements:i.elements})]}),Object(r.jsx)(Ic,{arguments:t.pod,duplicateFlow:function(){var n=Object($a.b)(i,t);e(Object(_e.i)(n))},readonly:"user-generated"!==A,elements:i.elements,deleteSelection:function(){}})]})]})}):Object(r.jsx)(r.Fragment,{children:"No Flow"})},props:{usesConnection:!0,usesAuth:!1}},{path:"/task",layout:Ht,component:Uo,props:{usesConnection:!0,usesAuth:!1}},{path:"/settings",layout:Ht,component:Po,props:{usesConnection:!0,usesAuth:!1}},{path:"/help",layout:Ht,component:kA,props:{usesConnection:!1,usesAuth:!1}},{path:"/home",layout:Ht,component:l("HOMEPAGE")?IA:kA,props:{usesConnection:!1,usesAuth:!1}},{path:"/hub",layout:Ht,component:ks,props:{usesConnection:!1,usesAuth:!0}},{path:"/package/:kind/:packageId",layout:Ht,component:BA,props:{navigateButton:function(){return Object(r.jsx)(RA,{label:"\u276e  Back",path:"/hub/explore"})}}},{path:"/login",layout:Ht,component:QA,props:{usesConnection:!1,usesAuth:!0}},{path:"/debug",layout:Ht,component:Xc.a,props:{usesConnection:!0,usesAuth:!0}}],qc=function(e){var t=Object(c.c)(p),n=Object(c.c)(h),o=je.a.isEnabled(),i=Object(a.useState)("true"===localStorage.getItem("accepted-cookies")),A=Object(s.a)(i,2),l=A[0],u=A[1],d=Object(c.b)(),f=e.children,g=e.usesAuth,m=e.usesConnection,b=e.navigateButton;return Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{children:Object(r.jsxs)("div",{className:"main-content col",children:[Object(r.jsx)(ie,{usesAuth:g,usesConnection:m,logOut:function(){},hideSidebarToggle:!0,showLogo:!0,user:{displayName:"dummyUser",emails:["dummyUser@dummy.com"],id:"idDummy",nodeId:"idDummy_node",profileUrl:"dummyUrl",provider:"dummyProvider",username:"dummyUsername",_raw:"dummyRaw"},navigateButton:b}),n.map((function(e,t){return Object(r.jsx)(ge,{data:e,index:t})})),f,!l&&Object(r.jsx)(pe,{acceptCookies:function(){localStorage.setItem("accepted-cookies",String(!0)),u(!0)}}),Object(r.jsx)(fe,{loggerEnabled:o,enableLogger:function(){je.a.enable();var e=Fe.a.getState();je.a.log("Store Snapshot",e),d(Object(V.g)('Debug Mode Enabled. Click "Export Debug Data" to download Debug JSON.',"warning"))},disableLogger:function(){je.a.disable(),d(Object(V.g)("Debug Mode Disabled.","warning"))},exportLogs:function(){}})]})}),Object(r.jsx)(Oe,{open:"review"===t,closeModal:function e(){d(e())},submitReview:function(e){}})]})},Zc=[{path:"/",exact:!0,layout:qc,component:function(){return Object(r.jsx)(i.a,{to:"/home"})}},{path:"/help",layout:qc,component:kA,props:{usesConnection:!1,usesAuth:!1}},{path:"/home",layout:qc,component:Os,props:{usesConnection:!1,usesAuth:!0}},{path:"/package/:packageId",layout:qc,component:BA,props:{navigateButton:function(){return Object(r.jsx)(RA,{label:"\u276e  Back",path:"/home"})}}},{path:"/login",layout:qc,component:function(){return Object(r.jsx)(QA,{})},props:{usesConnection:!1,usesAuth:!0}}];n(203).a,Xc.a},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"initialize",(function(){return Y})),n.d(r,"ga",(function(){return G})),n.d(r,"set",(function(){return X})),n.d(r,"send",(function(){return J})),n.d(r,"pageview",(function(){return q})),n.d(r,"modalview",(function(){return Z})),n.d(r,"timing",(function(){return $})),n.d(r,"event",(function(){return ee})),n.d(r,"exception",(function(){return te})),n.d(r,"plugin",(function(){return ne})),n.d(r,"outboundLink",(function(){return re})),n.d(r,"testModeAPI",(function(){return ae})),n.d(r,"default",(function(){return oe}));var a=n(3),o=n(177),i=n(237),s=n(211),A=n(207),c=n(81),l=n(1),u=n.n(l),d=n(18),f=n.n(d);function h(e){console.warn("[react-ga]",e)}function p(e){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?B(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C="_blank",E=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return x(B(n=w(this,(e=y(t)).call.apply(e,[this].concat(a)))),"handleClick",(function(e){var r=n.props,a=r.target,o=r.eventLabel,i=r.to,s=r.onClick,A=r.trackerNames,c={label:o},l=a!==C,u=!(e.ctrlKey||e.shiftKey||e.metaKey||1===e.button);l&&u?(e.preventDefault(),t.trackLink(c,(function(){window.location.href=i}),A)):t.trackLink(c,(function(){}),A),s&&s(e)})),n}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.to,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},m(e,["to"]),{href:t,onClick:this.handleClick});return this.props.target===C&&(n.rel="noopener noreferrer"),delete n.eventLabel,delete n.trackerNames,u.a.createElement("a",n)}}])&&v(n.prototype,r),a&&v(n,a),t}(l.Component);function j(e){return e.replace(/^\s+|\s+$/g,"")}x(E,"trackLink",(function(){h("ga tracking not enabled")})),x(E,"propTypes",{eventLabel:f.a.string.isRequired,target:f.a.string,to:f.a.string,onClick:f.a.func,trackerNames:f.a.arrayOf(f.a.string)}),x(E,"defaultProps",{target:null,to:null,onClick:null,trackerNames:null});var F=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function _(e,t){return function(e){return"string"===typeof e&&-1!==e.indexOf("@")}(e)?(h("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):t?j(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(F)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})):e}function Q(e){console.info("[react-ga]",e)}var U=[],k={calls:U,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];U.push([].concat(t))},resetCalls:function(){U.length=0}};function S(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e){return(H="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var M="undefined"===typeof window||"undefined"===typeof document,T=!1,R=!0,L=!1,P=!0,K=function(){var e;return L?k.ga.apply(k,arguments):!M&&(window.ga?(e=window).ga.apply(e,arguments):h("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function z(e){return _(e,R)}function V(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n[0];"string"===typeof a?(!P&&Array.isArray(e)||K.apply(void 0,n),Array.isArray(e)&&e.forEach((function(e){K.apply(void 0,I(["".concat(e,".").concat(a)].concat(n.slice(1))))}))):h("ga command must be a string")}function W(e,t){e?t&&(t.debug&&!0===t.debug&&(T=!0),!1===t.titleCase&&(R=!1),t.useExistingGa)||(t&&t.gaOptions?K("create",e,t.gaOptions):K("create",e,"auto")):h("gaTrackingID is required in initialize()")}function Y(e,t){if(t&&!0===t.testMode)L=!0;else{if(M)return!1;t&&!0===t.standardImplementation||function(e){var t,n,r,a,o,i,s,A="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?A=e.gaAddress:e&&e.debug&&(A="https://www.google-analytics.com/analytics_debug.js"),t=window,n=document,r="script",a=A,o="ga",t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,i=n.createElement(r),s=n.getElementsByTagName(r)[0],i.async=1,i.src=a,s.parentNode.insertBefore(i,s)}(t)}return P=!t||"boolean"!==typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,Array.isArray(e)?e.forEach((function(e){"object"===H(e)?W(e.trackingId,e):h("All configs must be an object")})):W(e,t),!0}function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(K.apply(void 0,t),T&&(Q("called ga('arguments');"),Q("with arguments: ".concat(JSON.stringify(t))))),window.ga}function X(e,t){e?"object"===H(e)?(0===Object.keys(e).length&&h("empty `fieldsObject` given to .set()"),V(t,"set",e),T&&(Q("called ga('set', fieldsObject);"),Q("with fieldsObject: ".concat(JSON.stringify(e))))):h("Expected `fieldsObject` arg to be an Object"):h("`fieldsObject` is required in .set()")}function J(e,t){V(t,"send",e),T&&(Q("called ga('send', fieldObject);"),Q("with fieldObject: ".concat(JSON.stringify(e))),Q("with trackers: ".concat(JSON.stringify(t))))}function q(e,t,n){if(e){var r=j(e);if(""!==r){var a={};if(n&&(a.title=n),V(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(n,!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hitType:"pageview",page:r},a)),T){Q("called ga('send', 'pageview', path);");var o="";n&&(o=" and title: ".concat(n)),Q("with path: ".concat(r).concat(o))}}else h("path cannot be an empty string in .pageview()")}else h("path is required in .pageview()")}function Z(e,t){if(e){var n,r="/"===(n=j(e)).substring(0,1)?n.substring(1):n;if(""!==r){var a="/modal/".concat(r);V(t,"send","pageview",a),T&&(Q("called ga('send', 'pageview', path);"),Q("with path: ".concat(a)))}else h("modalName cannot be an empty string or a single / in .modalview()")}else h("modalName is required in .modalview(modalName)")}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,a=e.label,o=arguments.length>1?arguments[1]:void 0;if(t&&n&&r&&"number"===typeof r){var i={hitType:"timing",timingCategory:z(t),timingVar:z(n),timingValue:r};a&&(i.timingLabel=z(a)),J(i,o)}else h("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,a=e.value,o=e.nonInteraction,i=e.transport,s=S(e,["category","action","label","value","nonInteraction","transport"]),A=arguments.length>1?arguments[1]:void 0;if(t&&n){var c={hitType:"event",eventCategory:z(t),eventAction:z(n)};r&&(c.eventLabel=z(r)),"undefined"!==typeof a&&("number"!==typeof a?h("Expected `args.value` arg to be a Number."):c.eventValue=a),"undefined"!==typeof o&&("boolean"!==typeof o?h("`args.nonInteraction` must be a boolean."):c.nonInteraction=o),"undefined"!==typeof i&&("string"!==typeof i?h("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(i)&&h("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),c.transport=i)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){c[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){c[e]=s[e]})),J(c,A)}else h("args.category AND args.action are required in event()")}function te(e,t){var n=e.description,r=e.fatal,a={hitType:"exception"};n&&(a.exDescription=z(n)),"undefined"!==typeof r&&("boolean"!==typeof r?h("`args.fatal` must be a boolean."):a.exFatal=r),J(a,t)}var ne={require:function(e,t,n){if(e){var r=j(e);if(""!==r){var a=n?"".concat(n,".require"):"require";if(t){if("object"!==H(t))return void h("Expected `options` arg to be an Object");0===Object.keys(t).length&&h("Empty `options` given to .require()"),G(a,r,t),T&&Q("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else G(a,r),T&&Q("called ga('require', '".concat(r,"');"))}else h("`name` cannot be an empty string in .require()")}else h("`name` is required in .require()")},execute:function(e,t){var n,r;if(1===(arguments.length<=2?0:arguments.length-2)?n=arguments.length<=2?void 0:arguments[2]:(r=arguments.length<=2?void 0:arguments[2],n=arguments.length<=3?void 0:arguments[3]),"string"!==typeof e)h("Expected `pluginName` arg to be a String.");else if("string"!==typeof t)h("Expected `action` arg to be a String.");else{var a="".concat(e,":").concat(t);n=n||null,r&&n?(G(a,r,n),T&&(Q("called ga('".concat(a,"');")),Q('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?(G(a,n),T&&(Q("called ga('".concat(a,"');")),Q("with payload: ".concat(JSON.stringify(n))))):(G(a),T&&Q("called ga('".concat(a,"');")))}}};function re(e,t,n){if("function"===typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:z(e.label)},a=!1,o=setTimeout((function(){a=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),a||t()},J(r,n)}else h("args.label is required in outboundLink()");else h("hitCallback function is required")}var ae=k,oe={initialize:Y,ga:G,set:X,send:J,pageview:q,modalview:Z,timing:$,event:ee,exception:te,plugin:ne,outboundLink:re,testModeAPI:k};function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}E.origTrackLink=E.trackLink,E.trackLink=re;var Ae=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(n,!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{OutboundLink:E});Ae.initialize(Object({NODE_ENV:"production",PUBLIC_URL:"https://api.jina.ai/swagger",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_TARGET:"Swagger",REACT_APP_FEATURE_HOMEPAGE:"disabled",REACT_APP_FEATURE_FILES:"disabled",REACT_APP_FEATURE_QUERY_SEARCH:"disabled",REACT_APP_FEATURE_DEBUGGING_TOOL:"disabled",REACT_APP_HUB_API:"https://hubapi.jina.ai",REACT_APP_JINA_API:"https://api.jina.ai",REACT_APP_GITHUB_LAMBDA:"https://1f06hf594m.execute-api.us-west-1.amazonaws.com/prod/webauth",REACT_APP_CLIENT_ID:"aefd9df23a647df8eb2c",REACT_APP_GITHUB_API:"https://api.github.com/user"}).REACT_APP_GAID||"UA-164627626-1",{testMode:!1,debug:!1});t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){Ae.set(Object(c.a)({page:e},t)),Ae.pageview(e)},r=Object({NODE_ENV:"production",PUBLIC_URL:"https://api.jina.ai/swagger",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_TARGET:"Swagger",REACT_APP_FEATURE_HOMEPAGE:"disabled",REACT_APP_FEATURE_FILES:"disabled",REACT_APP_FEATURE_QUERY_SEARCH:"disabled",REACT_APP_FEATURE_DEBUGGING_TOOL:"disabled",REACT_APP_HUB_API:"https://hubapi.jina.ai",REACT_APP_JINA_API:"https://api.jina.ai",REACT_APP_GITHUB_LAMBDA:"https://1f06hf594m.execute-api.us-west-1.amazonaws.com/prod/webauth",REACT_APP_CLIENT_ID:"aefd9df23a647df8eb2c",REACT_APP_GITHUB_API:"https://api.github.com/user"}).REACT_APP_BASENAME||"",l=function(t){Object(s.a)(u,t);var l=Object(A.a)(u);function u(){return Object(o.a)(this,u),l.apply(this,arguments)}return Object(i.a)(u,[{key:"componentDidMount",value:function(){var e=this.props.location.pathname+this.props.location.search;n("".concat(r).concat(e))}},{key:"componentDidUpdate",value:function(e){var t=e.location.pathname+e.location.search,a=this.props.location.pathname+this.props.location.search;t!==a&&n("".concat(r).concat(a))}},{key:"render",value:function(){return Object(a.jsx)(e,Object(c.a)({},this.props))}}]),u}(u.a.Component);return l}}])]);