(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{112:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));const n=/[[\]{}]/,i={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let s,o;function c(t,e,r){return s=e||"view",o=r||i,u(t.trim()).map(h)}function l(t,e,r,n,i){const s=t.length;let o,c=0;for(;e<s;++e){if(o=t[e],!c&&o===r)return e;i&&i.indexOf(o)>=0?--c:n&&n.indexOf(o)>=0&&++c}return e}function u(t){const e=[],r=t.length;let n=0,i=0;for(;i<r;)i=l(t,i,",","[{","]}"),e.push(t.substring(n,i).trim()),n=++i;if(0===e.length)throw"Empty event selector: "+t;return e}function h(t){return"["===t[0]?function(t){const e=t.length;let r,n=1;if(n=l(t,n,"]","[","]"),n===e)throw"Empty between selector: "+t;if(r=u(t.substring(1,n)),2!==r.length)throw"Between selector must have two elements: "+t;if(">"!==(t=t.slice(n+1).trim())[0])throw"Expected '>' after between selector: "+t;r=r.map(h);const i=h(t.slice(1).trim());if(i.between)return{between:r,stream:i};i.between=r;return i}(t):function(t){const e={source:s},r=[];let i,c,u=[0,0],h=0,f=0,a=t.length,p=0;if("}"===t[a-1]){if(p=t.lastIndexOf("{"),!(p>=0))throw"Unmatched right brace: "+t;try{u=function(t){const e=t.split(",");if(!t.length||e.length>2)throw t;return e.map(e=>{const r=+e;if(r!=r)throw t;return r})}(t.substring(p+1,a-1))}catch(e){throw"Invalid throttle specification: "+t}t=t.slice(0,p).trim(),a=t.length,p=0}if(!a)throw t;"@"===t[0]&&(h=++p);i=l(t,p,":"),i<a&&(r.push(t.substring(f,i).trim()),f=p=++i);if(p=l(t,p,"["),p===a)r.push(t.substring(f,a).trim());else if(r.push(t.substring(f,p).trim()),c=[],f=++p,f===a)throw"Unmatched left bracket: "+t;for(;p<a;){if(p=l(t,p,"]"),p===a)throw"Unmatched left bracket: "+t;if(c.push(t.substring(f,p).trim()),p<a-1&&"["!==t[++p])throw"Expected left bracket: "+t;f=++p}if(!(a=r.length)||n.test(r[a-1]))throw"Invalid event selector: "+t;a>1?(e.type=r[1],h?e.markname=r[0].slice(1):(w=r[0],o[w]?e.marktype=r[0]:e.source=r[0])):e.type=r[0];var w;"!"===e.type.slice(-1)&&(e.consume=!0,e.type=e.type.slice(0,-1));null!=c&&(e.filter=c);u[0]&&(e.throttle=u[0]);u[1]&&(e.debounce=u[1]);return e}(t)}}}]);