@cubejs-backend/server-core 0.30.63 → 0.30.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +6 -6
  3. package/playground/asset-manifest.json +38 -38
  4. package/playground/chart-renderers/react/index.html +1 -1
  5. package/playground/chart-renderers/react/static/css/main.56105b29.css +9 -0
  6. package/playground/chart-renderers/react/static/js/main.8e208bd8.js +2 -0
  7. package/playground/index.html +1 -1
  8. package/playground/static/js/{0.6862ff0c.chunk.js → 0.02594f93.chunk.js} +1 -1
  9. package/playground/static/js/1.c8a06f5c.chunk.js +1 -0
  10. package/playground/static/js/12.cd98c051.chunk.js +2 -0
  11. package/playground/static/js/{12.42ba959f.chunk.js.LICENSE.txt → 12.cd98c051.chunk.js.LICENSE.txt} +0 -0
  12. package/playground/static/js/13.d556f12b.chunk.js +2 -0
  13. package/playground/static/js/{13.32c69b89.chunk.js.LICENSE.txt → 13.d556f12b.chunk.js.LICENSE.txt} +0 -0
  14. package/playground/static/js/14.121a8fef.chunk.js +1 -0
  15. package/playground/static/js/15.aa6297f6.chunk.js +1 -0
  16. package/playground/static/js/16.85736550.chunk.js +1 -0
  17. package/playground/static/js/17.658b5ae1.chunk.js +1 -0
  18. package/playground/static/js/18.255a8226.chunk.js +1 -0
  19. package/playground/static/js/19.ea7b6d45.chunk.js +1 -0
  20. package/playground/static/js/2.736436ed.chunk.js +1 -0
  21. package/playground/static/js/20.af7e46bc.chunk.js +1 -0
  22. package/playground/static/js/21.680b5025.chunk.js +1 -0
  23. package/playground/static/js/22.7a7eb58a.chunk.js +1 -0
  24. package/playground/static/js/23.8b5fb329.chunk.js +1 -0
  25. package/playground/static/js/24.ca541af2.chunk.js +1 -0
  26. package/playground/static/js/{25.bb85de6e.chunk.js → 25.7d0691ff.chunk.js} +1 -1
  27. package/playground/static/js/26.9deefb3c.chunk.js +1 -0
  28. package/playground/static/js/27.b6d827bc.chunk.js +1 -0
  29. package/playground/static/js/28.8a8aa58b.chunk.js +1 -0
  30. package/playground/static/js/{29.0f096b37.chunk.js → 29.c98301d1.chunk.js} +1 -1
  31. package/playground/static/js/3.aad06a38.chunk.js +1 -0
  32. package/playground/static/js/{30.6f54178c.chunk.js → 30.f6f33bfe.chunk.js} +1 -1
  33. package/playground/static/js/31.a8b8f949.chunk.js +1 -0
  34. package/playground/static/js/32.499a9ec8.chunk.js +1 -0
  35. package/playground/static/js/4.579a085f.chunk.js +1 -0
  36. package/playground/static/js/5.64175f9b.chunk.js +1 -0
  37. package/playground/static/js/6.09b8a8f5.chunk.js +1 -0
  38. package/playground/static/js/{7.57194222.chunk.js → 7.f285bcb4.chunk.js} +1 -1
  39. package/playground/static/js/8.55aa8b64.chunk.js +1 -0
  40. package/playground/static/js/{9.04b73c76.chunk.js → 9.20453ec7.chunk.js} +1 -1
  41. package/playground/static/js/main.7e80ccd9.chunk.js +1 -0
  42. package/playground/static/js/runtime-main.16dc4544.js +1 -0
  43. package/playground/chart-renderers/react/static/css/main.f4f17f15.css +0 -9
  44. package/playground/chart-renderers/react/static/js/main.0caf8a08.js +0 -2
  45. package/playground/static/js/1.a11eb810.chunk.js +0 -1
  46. package/playground/static/js/12.42ba959f.chunk.js +0 -2
  47. package/playground/static/js/13.32c69b89.chunk.js +0 -2
  48. package/playground/static/js/14.325100e4.chunk.js +0 -1
  49. package/playground/static/js/15.5ab841c1.chunk.js +0 -1
  50. package/playground/static/js/16.2e7a6940.chunk.js +0 -1
  51. package/playground/static/js/17.784f9391.chunk.js +0 -1
  52. package/playground/static/js/18.ce29ffda.chunk.js +0 -1
  53. package/playground/static/js/19.c10d6908.chunk.js +0 -1
  54. package/playground/static/js/2.39683731.chunk.js +0 -1
  55. package/playground/static/js/20.9818e3e7.chunk.js +0 -1
  56. package/playground/static/js/21.6e0a3703.chunk.js +0 -1
  57. package/playground/static/js/22.2d5d34a7.chunk.js +0 -1
  58. package/playground/static/js/23.d7448294.chunk.js +0 -1
  59. package/playground/static/js/24.246a94df.chunk.js +0 -1
  60. package/playground/static/js/26.34b54be7.chunk.js +0 -1
  61. package/playground/static/js/27.59dd6f3e.chunk.js +0 -1
  62. package/playground/static/js/28.f75e74b8.chunk.js +0 -1
  63. package/playground/static/js/3.6ab3c7f6.chunk.js +0 -1
  64. package/playground/static/js/31.ed21ee21.chunk.js +0 -1
  65. package/playground/static/js/32.99899106.chunk.js +0 -1
  66. package/playground/static/js/4.40bee430.chunk.js +0 -1
  67. package/playground/static/js/5.a8ec4218.chunk.js +0 -1
  68. package/playground/static/js/6.2da12beb.chunk.js +0 -1
  69. package/playground/static/js/8.f07d948b.chunk.js +0 -1
  70. package/playground/static/js/main.55d2e456.chunk.js +0 -1
  71. package/playground/static/js/runtime-main.eaf24746.js +0 -1
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[32],{941:function(e,t,r){!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,a,i=t.indentUnit,o=r.statementIndent,c=r.jsonld,s=r.json||c,u=!1!==r.trackScope,l=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function k(e,t,r){return n=e,a=r,t}function y(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return k("number","number");if("."==r&&e.match(".."))return k("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return k(r);if("="==r&&e.eat(">"))return k("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return k("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),k("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),k("comment","comment")):at(e,t,1)?(v(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),k("regexp","string-2")):(e.eat("="),k("operator","operator",e.current()));if("`"==r)return t.tokenize=h,h(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),k("meta","meta");if("#"==r&&e.eatWhile(f))return k("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),k("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?k("."):k("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return k(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return k("async","keyword",n)}return k("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(m))return r.tokenize=y,k("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=y),k("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=y;break}n="*"==r}return k("comment","comment")}function h(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=y;break}n=!n&&"\\"==r}return k("quasi","string-2",e.current())}var x="([{}])";function g(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=x.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(f.test(c))i=!0;else if(/["'\/`]/.test(c))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==c&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function A(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function V(e,t,r,n,a){var i=e.cc;for(E.state=e,E.stream=a,E.marked=null,E.cc=i,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():s?D:F)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return E.marked?E.marked:"variable"==r&&A(e,n)?"variable-2":t}}var E={state:null,column:null,marked:null,cc:null};function z(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function I(){return z.apply(null,arguments),!0}function T(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function $(e){var t=E.state;if(E.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=S(e,t.context);if(null!=n)return void(t.context=n)}else if(!T(e,t.localVars))return void(t.localVars=new C(e,t.localVars));r.globalVars&&!T(e,t.globalVars)&&(t.globalVars=new C(e,t.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new q(r,t.vars,!0):null}return T(e,t.vars)?t:new q(t.prev,new C(e,t.vars),!1)}return null}function _(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function q(e,t,r){this.prev=e,this.vars=t,this.block=r}function C(e,t){this.name=e,this.next=t}var O=new C("this",new C("arguments",null));function P(){E.state.context=new q(E.state.context,E.state.localVars,!1),E.state.localVars=O}function J(){E.state.context=new q(E.state.context,E.state.localVars,!0),E.state.localVars=null}function N(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function U(e,t){var r=function(){var r=E.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new M(n,E.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function W(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(r){return r==e?I():";"==e||"}"==r||")"==r||"]"==r?z():I(t)}return t}function F(e,t){return"var"==e?I(U("vardef",t),ze,B(";"),W):"keyword a"==e?I(U("form"),K,F,W):"keyword b"==e?I(U("form"),F,W):"keyword d"==e?E.stream.match(/^\s*$/,!1)?I():I(U("stat"),Q,B(";"),W):"debugger"==e?I(B(";")):"{"==e?I(U("}"),J,de,W,N):";"==e?I():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==W&&E.state.cc.pop()(),I(U("form"),K,F,W,qe)):"function"==e?I(Je):"for"==e?I(U("form"),J,Ce,F,N,W):"class"==e||l&&"interface"==t?(E.marked="keyword",I(U("form","class"==e?e:t),Fe,W)):"variable"==e?l&&"declare"==t?(E.marked="keyword",I(F)):l&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?I(tt):"type"==t?I(Ue,B("operator"),ye,B(";")):I(U("form"),Ie,B("{"),U("}"),de,W,W)):l&&"namespace"==t?(E.marked="keyword",I(U("form"),D,F,W)):l&&"abstract"==t?(E.marked="keyword",I(F)):I(U("stat"),ie):"switch"==e?I(U("form"),K,B("{"),U("}","switch"),J,de,W,W,N):"case"==e?I(D,B(":")):"default"==e?I(B(":")):"catch"==e?I(U("form"),P,H,F,W,N):"export"==e?I(U("stat"),Ke,W):"import"==e?I(U("stat"),Qe,W):"async"==e?I(F):"@"==t?I(D,F):z(U("stat"),D,B(";"),W)}function H(e){if("("==e)return I(We,B(")"))}function D(e,t){return L(e,t,!1)}function G(e,t){return L(e,t,!0)}function K(e){return"("!=e?z():I(U(")"),Q,B(")"),W)}function L(e,t,r){if(E.state.fatArrowAt==E.stream.start){var n=r?te:ee;if("("==e)return I(P,U(")"),le(We,")"),W,B("=>"),n,N);if("variable"==e)return z(P,Ie,B("=>"),n,N)}var a=r?X:R;return j.hasOwnProperty(e)?I(a):"function"==e?I(Je,a):"class"==e||l&&"interface"==t?(E.marked="keyword",I(U("form"),Be,W)):"keyword c"==e||"async"==e?I(r?G:D):"("==e?I(U(")"),Q,B(")"),W,a):"operator"==e||"spread"==e?I(r?G:D):"["==e?I(U("]"),et,W,a):"{"==e?fe(ce,"}",null,a):"quasi"==e?z(Y,a):"new"==e?I(re(r)):I()}function Q(e){return e.match(/[;\}\)\],]/)?z():z(D)}function R(e,t){return","==e?I(Q):X(e,t,!1)}function X(e,t,r){var n=0==r?R:X,a=0==r?D:G;return"=>"==e?I(P,r?te:ee,N):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?I(n):l&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?I(U(">"),le(ye,">"),W,n):"?"==t?I(D,B(":"),a):I(a):"quasi"==e?z(Y,n):";"!=e?"("==e?fe(G,")","call",n):"."==e?I(oe,n):"["==e?I(U("]"),Q,B("]"),W,n):l&&"as"==t?(E.marked="keyword",I(ye,n)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),I(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?I(Y):I(Q,Z)}function Z(e){if("}"==e)return E.marked="string-2",E.state.tokenize=h,I(Y)}function ee(e){return g(E.stream,E.state),z("{"==e?F:D)}function te(e){return g(E.stream,E.state),z("{"==e?F:G)}function re(e){return function(t){return"."==t?I(e?ae:ne):"variable"==t&&l?I(Ae,e?X:R):z(e?G:D)}}function ne(e,t){if("target"==t)return E.marked="keyword",I(R)}function ae(e,t){if("target"==t)return E.marked="keyword",I(X)}function ie(e){return":"==e?I(W,F):z(R,B(";"),W)}function oe(e){if("variable"==e)return E.marked="property",I()}function ce(e,t){return"async"==e?(E.marked="property",I(ce)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?I(se):(l&&E.state.fatArrowAt==E.stream.start&&(r=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+r[0].length),I(ue))):"number"==e||"string"==e?(E.marked=c?"property":E.style+" property",I(ue)):"jsonld-keyword"==e?I(ue):l&&_(t)?(E.marked="keyword",I(ce)):"["==e?I(D,pe,B("]"),ue):"spread"==e?I(G,ue):"*"==t?(E.marked="keyword",I(ce)):":"==e?z(ue):void 0;var r}function se(e){return"variable"!=e?z(ue):(E.marked="property",I(Je))}function ue(e){return":"==e?I(G):"("==e?z(Je):void 0}function le(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=E.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),I((function(r,n){return r==t||n==t?z():z(e)}),n)}return a==t||i==t?I():r&&r.indexOf(";")>-1?z(e):I(B(t))}return function(r,a){return r==t||a==t?I():z(e,n)}}function fe(e,t,r){for(var n=3;n<arguments.length;n++)E.cc.push(arguments[n]);return I(U(t,r),le(e,t),W)}function de(e){return"}"==e?I():z(F,de)}function pe(e,t){if(l){if(":"==e)return I(ye);if("?"==t)return I(pe)}}function me(e,t){if(l&&(":"==e||"in"==t))return I(ye)}function ve(e){if(l&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?I(D,ke,ye):I(ye)}function ke(e,t){if("is"==t)return E.marked="keyword",I()}function ye(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(E.marked="keyword",I("typeof"==t?G:ye)):"variable"==e||"void"==t?(E.marked="type",I(Me)):"|"==t||"&"==t?I(ye):"string"==e||"number"==e||"atom"==e?I(Me):"["==e?I(U("]"),le(ye,"]",","),W,Me):"{"==e?I(U("}"),be,W,Me):"("==e?I(le(je,")"),we,Me):"<"==e?I(le(ye,">"),ye):"quasi"==e?z(xe,Me):void 0}function we(e){if("=>"==e)return I(ye)}function be(e){return e.match(/[\}\)\]]/)?I():","==e||";"==e?I(be):z(he,be)}function he(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",I(he)):"?"==t||"number"==e||"string"==e?I(he):":"==e?I(ye):"["==e?I(B("variable"),me,B("]"),he):"("==e?z(Ne,he):e.match(/[;\}\)\],]/)?void 0:I()}function xe(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?I(xe):I(ye,ge)}function ge(e){if("}"==e)return E.marked="string-2",E.state.tokenize=h,I(xe)}function je(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?I(je):":"==e?I(ye):"spread"==e?I(je):z(ye)}function Me(e,t){return"<"==t?I(U(">"),le(ye,">"),W,Me):"|"==t||"."==e||"&"==t?I(ye):"["==e?I(ye,B("]"),Me):"extends"==t||"implements"==t?(E.marked="keyword",I(ye)):"?"==t?I(ye,B(":"),ye):void 0}function Ae(e,t){if("<"==t)return I(U(">"),le(ye,">"),W,Me)}function Ve(){return z(ye,Ee)}function Ee(e,t){if("="==t)return I(ye)}function ze(e,t){return"enum"==t?(E.marked="keyword",I(tt)):z(Ie,pe,Se,_e)}function Ie(e,t){return l&&_(t)?(E.marked="keyword",I(Ie)):"variable"==e?($(t),I()):"spread"==e?I(Ie):"["==e?fe($e,"]"):"{"==e?fe(Te,"}"):void 0}function Te(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?I(Ie):"}"==e?z():"["==e?I(D,B("]"),B(":"),Te):I(B(":"),Ie,Se)):($(t),I(Se))}function $e(){return z(Ie,Se)}function Se(e,t){if("="==t)return I(G)}function _e(e){if(","==e)return I(ze)}function qe(e,t){if("keyword b"==e&&"else"==t)return I(U("form","else"),F,W)}function Ce(e,t){return"await"==t?I(Ce):"("==e?I(U(")"),Oe,W):void 0}function Oe(e){return"var"==e?I(ze,Pe):"variable"==e?I(Pe):z(Pe)}function Pe(e,t){return")"==e?I():";"==e?I(Pe):"in"==t||"of"==t?(E.marked="keyword",I(D,Pe)):z(D,Pe)}function Je(e,t){return"*"==t?(E.marked="keyword",I(Je)):"variable"==e?($(t),I(Je)):"("==e?I(P,U(")"),le(We,")"),W,ve,F,N):l&&"<"==t?I(U(">"),le(Ve,">"),W,Je):void 0}function Ne(e,t){return"*"==t?(E.marked="keyword",I(Ne)):"variable"==e?($(t),I(Ne)):"("==e?I(P,U(")"),le(We,")"),W,ve,N):l&&"<"==t?I(U(">"),le(Ve,">"),W,Ne):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(E.marked="type",I(Ue)):"<"==t?I(U(">"),le(Ve,">"),W):void 0}function We(e,t){return"@"==t&&I(D,We),"spread"==e?I(We):l&&_(t)?(E.marked="keyword",I(We)):l&&"this"==e?I(pe,Se):z(Ie,pe,Se)}function Be(e,t){return"variable"==e?Fe(e,t):He(e,t)}function Fe(e,t){if("variable"==e)return $(t),I(He)}function He(e,t){return"<"==t?I(U(">"),le(Ve,">"),W,He):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(E.marked="keyword"),I(l?ye:D,He)):"{"==e?I(U("}"),De,W):void 0}function De(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&_(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",I(De)):"variable"==e||"keyword"==E.style?(E.marked="property",I(Ge,De)):"number"==e||"string"==e?I(Ge,De):"["==e?I(D,pe,B("]"),Ge,De):"*"==t?(E.marked="keyword",I(De)):l&&"("==e?z(Ne,De):";"==e||","==e?I(De):"}"==e?I():"@"==t?I(D,De):void 0}function Ge(e,t){if("!"==t)return I(Ge);if("?"==t)return I(Ge);if(":"==e)return I(ye,Se);if("="==t)return I(G);var r=E.state.lexical.prev;return z(r&&"interface"==r.info?Ne:Je)}function Ke(e,t){return"*"==t?(E.marked="keyword",I(Ze,B(";"))):"default"==t?(E.marked="keyword",I(D,B(";"))):"{"==e?I(le(Le,"}"),Ze,B(";")):z(F)}function Le(e,t){return"as"==t?(E.marked="keyword",I(B("variable"))):"variable"==e?z(G,Le):void 0}function Qe(e){return"string"==e?I():"("==e?z(D):"."==e?z(R):z(Re,Xe,Ze)}function Re(e,t){return"{"==e?fe(Re,"}"):("variable"==e&&$(t),"*"==t&&(E.marked="keyword"),I(Ye))}function Xe(e){if(","==e)return I(Re,Xe)}function Ye(e,t){if("as"==t)return E.marked="keyword",I(Re)}function Ze(e,t){if("from"==t)return E.marked="keyword",I(D)}function et(e){return"]"==e?I():z(le(G,"]"))}function tt(){return z(U("form"),Ie,B("{"),U("}"),le(rt,"}"),W,W)}function rt(){return z(Ie,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return N.lex=!0,W.lex=!0,{startState:function(e){var t={tokenize:y,lastType:"sof",cc:[],lexical:new M((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new q(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),g(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=a&&"--"!=a?n:"incdec",V(t,r,n,a,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==h)return e.Pass;if(t.tokenize!=y)return 0;var a,c=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var l=t.cc[u];if(l==W)s=s.prev;else if(l!=qe&&l!=N)break}for(;("stat"==s.type||"form"==s.type)&&("}"==c||(a=t.cc[t.cc.length-1])&&(a==R||a==X)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=c==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==c?s.indented:"form"==f?s.indented+i:"stat"==f?s.indented+(nt(t,n)?o||i:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:c,jsonMode:s,expressionAllowed:at,skipExpression:function(t){V(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(711))}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[4,9,29],{748:function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function l(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=o(t,"g");for(var i=n.line,l=n.ch,a=e.lastLine();i<=a;i++,l=0){t.lastIndex=l;var s=e.getLine(i),c=t.exec(s);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function s(e,t,n){if(!l(t))return a(e,t,n);t=o(t,"gm");for(var i,s=1,c=n.line,f=e.lastLine();c<=f;){for(var h=0;h<s&&!(c>f);h++){var u=e.getLine(c++);i=null==i?u:i+"\n"+u}s*=2,t.lastIndex=n.ch;var m=t.exec(i);if(m){var d=i.slice(0,m.index).split("\n"),g=m[0].split("\n"),p=n.line+d.length-1,C=d[d.length-1].length;return{from:r(p,C),to:r(p+g.length-1,1==g.length?C+g[0].length:g[g.length-1].length),match:m}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var l=o.index+o[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(e,t,n){t=o(t,"g");for(var i=n.line,l=n.ch,a=e.firstLine();i>=a;i--,l=-1){var s=e.getLine(i),f=c(s,t,l<0?0:s.length-l);if(f)return{from:r(i,f.index),to:r(i,f.index+f[0].length),match:f}}}function h(e,t,n){if(!l(t))return f(e,t,n);t=o(t,"gm");for(var i,a=1,s=e.getLine(n.line).length-n.ch,h=n.line,u=e.firstLine();h>=u;){for(var m=0;m<a&&h>=u;m++){var d=e.getLine(h--);i=null==i?d:d+"\n"+i}a*=2;var g=c(i,t,s);if(g){var p=i.slice(0,g.index).split("\n"),C=g[0].split("\n"),v=h+p.length,S=p[p.length-1].length;return{from:r(v,S),to:r(v+C.length-1,1==C.length?S+C[0].length:C[C.length-1].length),match:g}}}}function u(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var l=i+o>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?o=l:i=l+1}}function m(e,i,o,l){if(!i.length)return null;var a=l?t:n,s=a(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,h=e.lastLine()+1-s.length;c<=h;c++,f=0){var m=e.getLine(c).slice(f),d=a(m);if(1==s.length){var g=d.indexOf(s[0]);if(-1==g)continue e;return o=u(m,d,g,a)+f,{from:r(c,u(m,d,g,a)+f),to:r(c,u(m,d,g+s[0].length,a)+f)}}var p=d.length-s[0].length;if(d.slice(p)==s[0]){for(var C=1;C<s.length-1;C++)if(a(e.getLine(c+C))!=s[C])continue e;var v=e.getLine(c+s.length-1),S=a(v),L=s[s.length-1];if(S.slice(0,L.length)==L)return{from:r(c,u(m,d,p,a)+f),to:r(c+s.length-1,u(v,S,L.length,a))}}}}function d(e,i,o,l){if(!i.length)return null;var a=l?t:n,s=a(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,h=e.firstLine()-1+s.length;c>=h;c--,f=-1){var m=e.getLine(c);f>-1&&(m=m.slice(0,f));var d=a(m);if(1==s.length){var g=d.lastIndexOf(s[0]);if(-1==g)continue e;return{from:r(c,u(m,d,g,a)),to:r(c,u(m,d,g+s[0].length,a))}}var p=s[s.length-1];if(d.slice(0,p.length)==p){var C=1;for(o=c-s.length+1;C<s.length-1;C++)if(a(e.getLine(o+C))!=s[C])continue e;var v=e.getLine(c+1-s.length),S=a(v);if(S.slice(S.length-s[0].length)==s[0])return{from:r(c+1-s.length,u(v,S,v.length-s[0].length,a)),to:r(c,u(m,d,p.length,a))}}}}function g(e,t,n,i){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?l=i.caseFold:(l=i,i=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?d:m)(e,t,r,l)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?f:a)(e,t,r)}:this.matches=function(n,r){return(n?h:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(711))},786:function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var a=e.getLineHandle(t.line),s=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var f=i(o),h=!c&&s>=0&&f.test(a.text.charAt(s))&&r[a.text.charAt(s)]||f.test(a.text.charAt(s+1))&&r[a.text.charAt(++s)];if(!h)return null;var u=">"==h.charAt(1)?1:-1;if(o&&o.strict&&u>0!=(s==t.ch))return null;var m=e.getTokenTypeAt(n(t.line,s+1)),d=l(e,n(t.line,s+(u>0?1:0)),u,m,o);return null==d?null:{from:n(t.line,s),to:d&&d.pos,match:d&&d.ch==h.charAt(0),forward:u>0}}function l(e,t,o,l,a){for(var s=a&&a.maxScanLineLength||1e4,c=a&&a.maxScanLines||1e3,f=[],h=i(a),u=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),m=t.line;m!=u;m+=o){var d=e.getLine(m);if(d){var g=o>0?0:d.length-1,p=o>0?d.length:-1;if(!(d.length>s))for(m==t.line&&(g=t.ch-(o<0?1:0));g!=p;g+=o){var C=d.charAt(g);if(h.test(C)&&(void 0===l||(e.getTokenTypeAt(n(m,g+1))||"")==(l||""))){var v=r[C];if(v&&">"==v.charAt(1)==o>0)f.push(C);else{if(!f.length)return{pos:n(m,g),ch:C};f.pop()}}}}}return m-o!=(o>0?e.lastLine():e.firstLine())&&null}function a(e,r,i){for(var l=e.state.matchBrackets.maxHighlightLineLength||1e3,a=i&&i.highlightNonMatching,s=[],c=e.listSelections(),f=0;f<c.length;f++){var h=c[f].empty()&&o(e,c[f].head,i);if(h&&(h.match||!1!==a)&&e.getLine(h.from.line).length<=l){var u=h.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(h.from,n(h.from.line,h.from.ch+1),{className:u})),h.to&&e.getLine(h.to.line).length<=l&&s.push(e.markText(h.to,n(h.to.line,h.to.ch+1),{className:u}))}}if(s.length){t&&e.state.focused&&e.focus();var m=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return m;setTimeout(m,800)}}function s(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=a(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",s),t.off("focus",s),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",s),t.on("focus",s),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){a(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return l(this,e,t,n,r)}))}(n(711))},937:function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var l,a="start",s=r.ch,c=s,f=i<0?0:o.length,h=0;c!=f;c+=i,h++){var u=o.charAt(i<0?c-1:c),m="_"!=u&&e.isWordChar(u)?"w":"o";if("w"==m&&u.toUpperCase()==u&&(m="W"),"start"==a)"o"!=m?(a="in",l=m):s=c+i;else if("in"==a&&l!=m){if("w"==l&&"W"==m&&i<0&&c--,"W"==l&&"w"==m&&i>0){if(c==s+1){l="w";continue}c--}break}}return n(r.line,c)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,l=0;l<e;l++){var a=t.listSelections()[l].head;if(!(a.line<=o)){var s=n(a.line+(r?0:1),0);t.replaceRange("\n",s,null,"+insertLine"),t.indentLine(s.line,null,!0),i.push({head:s,anchor:s}),o=a.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function l(t,r){for(var i=r.ch,o=i,l=t.getLine(r.line);i&&e.isWordChar(l.charAt(i-1));)--i;for(;o<l.length&&e.isWordChar(l.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:l.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],l=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),a=e.findPosV(o.head,t,"line",o.head.goalColumn);l.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,a.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var s={anchor:l,head:a};r.push(o),r.push(s)}e.setSelections(r)}function s(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),l=t[i].to(),a=o.line;a<=l.line;++a)l.line>o.line&&a==l.line&&0==l.ch||r.push({anchor:a==o.line?o:n(a,0),head:a==l.line?l:n(a)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return o(e,!1)},t.insertLineBefore=function(e){return o(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var a=l(t,r);if(!a.word)return;t.setSelection(a.from,a.to),o=!0}else{var c=t.getRange(r,i),f=o?new RegExp("\\b"+c+"\\b"):c,h=t.getSearchCursor(f,i),u=h.findNext();if(u||(u=(h=t.getSearchCursor(f,n(t.firstLine(),0))).findNext()),!u||s(t.listSelections(),h.from(),h.to()))return;t.addSelection(h.from(),h.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var c="(){}[]";function f(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var l=r[o],a=l.head,s=t.scanForBracket(a,-1);if(!s)return!1;for(;;){var f=t.scanForBracket(a,1);if(!f)return!1;if(f.ch==c.charAt(c.indexOf(s.ch)+1)){var h=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(h,l.from())||0!=e.cmpPos(f.pos,l.to())){i.push({anchor:h,head:f.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}a=n(f.pos.line,f.pos.ch+1)}}return t.setSelections(i),!0}function h(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,l=t.listSelections(),a=[],s=0;s<l.length;s++){var c=l[s];if(!c.empty()){for(var f=c.from().line,h=c.to().line;s<l.length-1&&l[s+1].from().line==h;)h=l[++s].to().line;l[s].to().ch||h--,a.push(f,h)}}a.length?o=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],l=0;l<a.length;l+=2){var s=a[l],c=a[l+1],f=n(s,0),h=n(c),u=t.getRange(f,h,!1);r?u.sort((function(e,t){return e<t?-i:e==t?0:i})):u.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(u,f,h),o&&e.push({anchor:f,head:n(c+1,0)})}o&&t.setSelections(e,0)}))}function m(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],a=0;a<r.length;a++)(c=r[a]).empty()?(i.push(a),o.push("")):o.push(n(t.getRange(c.from(),c.to())));var s;for(t.replaceSelections(o,"around","case"),a=i.length-1;a>=0;a--){var c=r[i[a]];if(!(s&&e.cmpPos(c.head,s)>0)){var f=l(t,c.head);s=f.from,t.replaceRange(n(f.word),f.from,f.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=l(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function g(e,t){var r=d(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){f(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!f(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,h(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,h(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,l=[],a=0;a<r.length;a++){var s=r[a],c=s.from().line-1,f=s.to().line;l.push({anchor:n(s.anchor.line-1,s.anchor.ch),head:n(s.head.line-1,s.head.ch)}),0!=s.to().ch||s.empty()||--f,c>o?i.push(c,f):i.length&&(i[i.length-1]=f),o=f}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],a=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.setSelections(l),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,l=r.length-1;l>=0;l--){var a=r[l],s=a.to().line+1,c=a.from().line;0!=a.to().ch||a.empty()||s--,s<o?i.push(s,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],l=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(l+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],l=o.from(),a=l.line,s=o.to().line;i<t.length-1&&t[i+1].from().line==s;)s=t[++i].to().line;r.push({start:a,end:s,anchor:!o.empty()&&l})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var l,a=r[o],s=a.anchor&&n(a.anchor.line-t,a.anchor.ch),c=a.start;c<=a.end;c++){var f=c-t;c==a.end&&(l=n(f,e.getLine(f).length+1)),f<e.lastLine()&&(e.replaceRange(" ",n(f),n(f+1,/^\s*/.exec(e.getLine(f+1))[0].length)),++t)}i.push({anchor:s||l,head:l})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0,1)},t.reverseSortLines=function(e){u(e,!0,-1)},t.sortLinesInsensitive=function(e){u(e,!1,1)},t.reverseSortLinesInsensitive=function(e){u(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),l=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),a=0;a<l.length;a++)if(l[a].sublimeBookmark){l[a].clear();for(var s=0;s<n.length;s++)n[s]==l[a]&&n.splice(s--,1);break}a==l.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var l=r[o].head,a=t.getRange({line:l.line,ch:0},l),s=e.countColumn(a,null,t.getOption("tabSize")),c=t.findPosH(l,-1,"char",!1);if(a&&!/\S/.test(a)&&s%i==0){var f=new n(l.line,e.findColumn(a,s-i,i));f.ch!=l.ch&&(c=f)}t.replaceRange("",c,l,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){m(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){m(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime);var C=p.default==p.macDefault;p.sublime=C?p.macSublime:p.pcSublime}(n(711),n(748),n(786))}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[5,7],{749:function(e,n,o){!function(e){function n(n,o,t){var i,r=n.getWrapperElement();return(i=r.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?i.innerHTML=o:i.appendChild(o),e.addClass(r,"dialog-opened"),i}function o(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(t,i,r){r||(r={}),o(this,null);var u=n(this,t,r.bottom),s=!1,l=this;function a(n){if("string"==typeof n)d.value=n;else{if(s)return;s=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),l.focus(),r.onClose&&r.onClose(u)}}var c,d=u.getElementsByTagName("input")[0];return d?(d.focus(),r.value&&(d.value=r.value,!1!==r.selectValueOnOpen&&d.select()),r.onInput&&e.on(d,"input",(function(e){r.onInput(e,d.value,a)})),r.onKeyUp&&e.on(d,"keyup",(function(e){r.onKeyUp(e,d.value,a)})),e.on(d,"keydown",(function(n){r&&r.onKeyDown&&r.onKeyDown(n,d.value,a)||((27==n.keyCode||!1!==r.closeOnEnter&&13==n.keyCode)&&(d.blur(),e.e_stop(n),a()),13==n.keyCode&&i(d.value,n))})),!1!==r.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&a()}))):(c=u.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){a(),l.focus()})),!1!==r.closeOnBlur&&e.on(c,"blur",a),c.focus()),a})),e.defineExtension("openConfirm",(function(t,i,r){o(this,null);var u=n(this,t,r&&r.bottom),s=u.getElementsByTagName("button"),l=!1,a=this,c=1;function d(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),a.focus())}s[0].focus();for(var p=0;p<s.length;++p){var f=s[p];!function(n){e.on(f,"click",(function(o){e.e_preventDefault(o),d(),n&&n(a)}))}(i[p]),e.on(f,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(f,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(t,i){o(this,a);var r,u=n(this,t,i&&i.bottom),s=!1,l=i&&"undefined"!==typeof i.duration?i.duration:5e3;function a(){s||(s=!0,clearTimeout(r),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}return e.on(u,"click",(function(n){e.e_preventDefault(n),a()})),l&&(r=setTimeout(a,l)),a}))}(o(711))},936:function(e,n,o){!function(e){"use strict";function n(e,n,o,t,i){e.openDialog?e.openDialog(n,i,{value:t,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(o,t))}function o(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function t(e,n){var o=Number(n);return/^[-+]/.test(n)?e.getCursor().line+o:o-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var i=e.getCursor();n(e,o(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,(function(n){var o;if(n)if(o=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(n))e.setCursor(t(e,o[1]),Number(o[2]));else if(o=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(n)){var r=Math.round(e.lineCount()*Number(o[1])/100);/^[-+]/.test(o[1])&&(r=i.line+r+1),e.setCursor(r-1,i.ch)}else(o=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(n))&&e.setCursor(t(e,o[1]),i.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(o(711),o(749))}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[6],{911:function(o,t,n){!function(o){"use strict";function t(t,e,i,f){if(i&&i.call){var l=i;i=null}else l=r(t,i,"rangeFinder");"number"==typeof e&&(e=o.Pos(e,0));var a=r(t,i,"minFoldSize");function d(o){var n=l(t,e);if(!n||n.to.line-n.from.line<a)return null;if("fold"===f)return n;for(var r=t.findMarksAt(n.from),i=0;i<r.length;++i)if(r[i].__isFold){if(!o)return null;n.cleared=!0,r[i].clear()}return n}var u=d(!0);if(r(t,i,"scanUp"))for(;!u&&e.line>t.firstLine();)e=o.Pos(e.line-1,0),u=d(!1);if(u&&!u.cleared&&"unfold"!==f){var c=n(t,i,u);o.on(c,"mousedown",(function(t){s.clear(),o.e_preventDefault(t)}));var s=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});s.on("clear",(function(n,e){o.signal(t,"unfold",t,n,e)})),o.signal(t,"fold",t,u.from,u.to)}}function n(o,t,n){var e=r(o,t,"widget");if("function"==typeof e&&(e=e(n.from,n.to)),"string"==typeof e){var i=document.createTextNode(e);(e=document.createElement("span")).appendChild(i),e.className="CodeMirror-foldmarker"}else e&&(e=e.cloneNode(!0));return e}o.newFoldFunction=function(o,n){return function(e,r){t(e,r,{rangeFinder:o,widget:n})}},o.defineExtension("foldCode",(function(o,n,e){t(this,o,n,e)})),o.defineExtension("isFolded",(function(o){for(var t=this.findMarksAt(o),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),o.commands.toggleFold=function(o){o.foldCode(o.getCursor())},o.commands.fold=function(o){o.foldCode(o.getCursor(),null,"fold")},o.commands.unfold=function(o){o.foldCode(o.getCursor(),{scanUp:!1},"unfold")},o.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),e=t.lastLine();n<=e;n++)t.foldCode(o.Pos(n,0),{scanUp:!1},"fold")}))},o.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),e=t.lastLine();n<=e;n++)t.foldCode(o.Pos(n,0),{scanUp:!1},"unfold")}))},o.registerHelper("fold","combine",(function(){var o=Array.prototype.slice.call(arguments,0);return function(t,n){for(var e=0;e<o.length;++e){var r=o[e](t,n);if(r)return r}}})),o.registerHelper("fold","auto",(function(o,t){for(var n=o.getHelpers(t,"fold"),e=0;e<n.length;e++){var r=n[e](o,t);if(r)return r}}));var e={rangeFinder:o.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(o,t,n){if(t&&void 0!==t[n])return t[n];var r=o.options.foldOptions;return r&&void 0!==r[n]?r[n]:e[n]}o.defineOption("foldOptions",null),o.defineExtension("foldOption",(function(o,t){return r(this,o,t)}))}(n(711))},934:function(o,t,n){!function(o){"use strict";o.defineOption("foldGutter",!1,(function(t,r,i){i&&i!=o.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",d),t.off("changes",u),t.off("viewportChange",c),t.off("fold",s),t.off("unfold",s),t.off("swapDoc",u)),r&&(t.state.foldGutter=new n(e(r)),a(t),t.on("gutterClick",d),t.on("changes",u),t.on("viewportChange",c),t.on("fold",s),t.on("unfold",s),t.on("swapDoc",u))}));var t=o.Pos;function n(o){this.options=o,this.from=this.to=0}function e(o){return!0===o&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o}function r(o,n){for(var e=o.findMarks(t(n,0),t(n+1,0)),r=0;r<e.length;++r)if(e[r].__isFold){var i=e[r].find(-1);if(i&&i.line===n)return e[r]}}function i(o){if("string"==typeof o){var t=document.createElement("div");return t.className=o+" CodeMirror-guttermarker-subtle",t}return o.cloneNode(!0)}function f(o,n,e){var f=o.state.foldGutter.options,a=n-1,d=o.foldOption(f,"minFoldSize"),u=o.foldOption(f,"rangeFinder"),c="string"==typeof f.indicatorFolded&&l(f.indicatorFolded),s="string"==typeof f.indicatorOpen&&l(f.indicatorOpen);o.eachLine(n,e,(function(n){++a;var e=null,l=n.gutterMarkers;if(l&&(l=l[f.gutter]),r(o,a)){if(c&&l&&c.test(l.className))return;e=i(f.indicatorFolded)}else{var p=t(a,0),m=u&&u(o,p);if(m&&m.to.line-m.from.line>=d){if(s&&l&&s.test(l.className))return;e=i(f.indicatorOpen)}}(e||l)&&o.setGutterMarker(n,f.gutter,e)}))}function l(o){return new RegExp("(^|\\s)"+o+"(?:$|\\s)\\s*")}function a(o){var t=o.getViewport(),n=o.state.foldGutter;n&&(o.operation((function(){f(o,t.from,t.to)})),n.from=t.from,n.to=t.to)}function d(o,n,e){var i=o.state.foldGutter;if(i){var f=i.options;if(e==f.gutter){var l=r(o,n);l?l.clear():o.foldCode(t(n,0),f)}}}function u(o){var t=o.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){a(o)}),n.foldOnChangeTimeSpan||600)}}function c(o){var t=o.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=o.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(o):o.operation((function(){n.from<t.from&&(f(o,n.from,t.from),t.from=n.from),n.to>t.to&&(f(o,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function s(o,t){var n=o.state.foldGutter;if(n){var e=t.line;e>=n.from&&e<n.to&&f(o,e,e+1)}}}(n(711),n(911))}}]);
@@ -1 +1 @@
1
- (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[7],{938:function(e,n,o){!function(e){function n(n,o,t){var i,u=n.getWrapperElement();return(i=u.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?i.innerHTML=o:i.appendChild(o),e.addClass(u,"dialog-opened"),i}function o(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(t,i,u){u||(u={}),o(this,null);var r=n(this,t,u.bottom),l=!1,a=this;function s(n){if("string"==typeof n)d.value=n;else{if(l)return;l=!0,e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),a.focus(),u.onClose&&u.onClose(r)}}var c,d=r.getElementsByTagName("input")[0];return d?(d.focus(),u.value&&(d.value=u.value,!1!==u.selectValueOnOpen&&d.select()),u.onInput&&e.on(d,"input",(function(e){u.onInput(e,d.value,s)})),u.onKeyUp&&e.on(d,"keyup",(function(e){u.onKeyUp(e,d.value,s)})),e.on(d,"keydown",(function(n){u&&u.onKeyDown&&u.onKeyDown(n,d.value,s)||((27==n.keyCode||!1!==u.closeOnEnter&&13==n.keyCode)&&(d.blur(),e.e_stop(n),s()),13==n.keyCode&&i(d.value,n))})),!1!==u.closeOnBlur&&e.on(r,"focusout",(function(e){null!==e.relatedTarget&&s()}))):(c=r.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){s(),a.focus()})),!1!==u.closeOnBlur&&e.on(c,"blur",s),c.focus()),s})),e.defineExtension("openConfirm",(function(t,i,u){o(this,null);var r=n(this,t,u&&u.bottom),l=r.getElementsByTagName("button"),a=!1,s=this,c=1;function d(){a||(a=!0,e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),s.focus())}l[0].focus();for(var f=0;f<l.length;++f){var p=l[f];!function(n){e.on(p,"click",(function(o){e.e_preventDefault(o),d(),n&&n(s)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(t,i){o(this,s);var u,r=n(this,t,i&&i.bottom),l=!1,a=i&&"undefined"!==typeof i.duration?i.duration:5e3;function s(){l||(l=!0,clearTimeout(u),e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r))}return e.on(r,"click",(function(n){e.e_preventDefault(n),s()})),a&&(u=setTimeout(s,a)),s}))}(o(900))}}]);
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[7],{749:function(e,n,o){!function(e){function n(n,o,t){var i,u=n.getWrapperElement();return(i=u.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?i.innerHTML=o:i.appendChild(o),e.addClass(u,"dialog-opened"),i}function o(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(t,i,u){u||(u={}),o(this,null);var r=n(this,t,u.bottom),l=!1,a=this;function s(n){if("string"==typeof n)d.value=n;else{if(l)return;l=!0,e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),a.focus(),u.onClose&&u.onClose(r)}}var c,d=r.getElementsByTagName("input")[0];return d?(d.focus(),u.value&&(d.value=u.value,!1!==u.selectValueOnOpen&&d.select()),u.onInput&&e.on(d,"input",(function(e){u.onInput(e,d.value,s)})),u.onKeyUp&&e.on(d,"keyup",(function(e){u.onKeyUp(e,d.value,s)})),e.on(d,"keydown",(function(n){u&&u.onKeyDown&&u.onKeyDown(n,d.value,s)||((27==n.keyCode||!1!==u.closeOnEnter&&13==n.keyCode)&&(d.blur(),e.e_stop(n),s()),13==n.keyCode&&i(d.value,n))})),!1!==u.closeOnBlur&&e.on(r,"focusout",(function(e){null!==e.relatedTarget&&s()}))):(c=r.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){s(),a.focus()})),!1!==u.closeOnBlur&&e.on(c,"blur",s),c.focus()),s})),e.defineExtension("openConfirm",(function(t,i,u){o(this,null);var r=n(this,t,u&&u.bottom),l=r.getElementsByTagName("button"),a=!1,s=this,c=1;function d(){a||(a=!0,e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),s.focus())}l[0].focus();for(var f=0;f<l.length;++f){var p=l[f];!function(n){e.on(p,"click",(function(o){e.e_preventDefault(o),d(),n&&n(s)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(t,i){o(this,s);var u,r=n(this,t,i&&i.bottom),l=!1,a=i&&"undefined"!==typeof i.duration?i.duration:5e3;function s(){l||(l=!0,clearTimeout(u),e.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r))}return e.on(r,"click",(function(n){e.e_preventDefault(n),s()})),a&&(u=setTimeout(s,a)),s}))}(o(711))}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[8],{933:function(e,n,t){!function(e){"use strict";e.registerHelper("fold","brace",(function(n,t){var r,i=t.line,l=n.getLine(i);function o(o){for(var s=t.ch,f=0;;){var u=s<=0?-1:l.lastIndexOf(o,s-1);if(-1!=u){if(1==f&&u<t.ch)break;if(r=n.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(r))return u+1;s=u-1}else{if(1==f)break;f=1,s=l.length}}}var s,f,u,a=o("{"),c=o("[");if(null!=a&&(null==c||c>a))u=a,s="{",f="}";else{if(null==c)return;u=c,s="[",f="]"}var g,d,p=1,v=n.lastLine();e:for(var k=i;k<=v;++k)for(var P=n.getLine(k),h=k==i?u:0;;){var b=P.indexOf(s,h),m=P.indexOf(f,h);if(b<0&&(b=P.length),m<0&&(m=P.length),(h=Math.min(b,m))==P.length)break;if(n.getTokenTypeAt(e.Pos(k,h+1))==r)if(h==b)++p;else if(!--p){g=k,d=h;break e}++h}if(null!=g&&i!=g)return{from:e.Pos(i,u),to:e.Pos(g,d)}})),e.registerHelper("fold","import",(function(n,t){function r(t){if(t<n.firstLine()||t>n.lastLine())return null;var r=n.getTokenAt(e.Pos(t,1));if(/\S/.test(r.string)||(r=n.getTokenAt(e.Pos(t,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=t,l=Math.min(n.lastLine(),t+10);i<=l;++i){var o=n.getLine(i).indexOf(";");if(-1!=o)return{startCh:r.end,end:e.Pos(i,o)}}}var i,l=t.line,o=r(l);if(!o||r(l-1)||(i=r(l-2))&&i.end.line==l-1)return null;for(var s=o.end;;){var f=r(s.line+1);if(null==f)break;s=f.end}return{from:n.clipPos(e.Pos(l,o.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(n,t){function r(t){if(t<n.firstLine()||t>n.lastLine())return null;var r=n.getTokenAt(e.Pos(t,1));return/\S/.test(r.string)||(r=n.getTokenAt(e.Pos(t,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=t.line,l=r(i);if(null==l||null!=r(i-1))return null;for(var o=i;null!=r(o+1);)++o;return{from:e.Pos(i,l+1),to:n.clipPos(e.Pos(o))}}))}(t(711))}}]);
@@ -1 +1 @@
1
- (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[9],{937:function(t,n,e){!function(t){"use strict";var n,e,r=t.Pos;function i(t){var n=t.flags;return null!=n?n:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function o(t,n){for(var e=i(t),r=e,o=0;o<n.length;o++)-1==r.indexOf(n.charAt(o))&&(r+=n.charAt(o));return e==r?t:new RegExp(t.source,r)}function h(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function l(t,n,e){n=o(n,"g");for(var i=e.line,h=e.ch,l=t.lastLine();i<=l;i++,h=0){n.lastIndex=h;var c=t.getLine(i),s=n.exec(c);if(s)return{from:r(i,s.index),to:r(i,s.index+s[0].length),match:s}}}function c(t,n,e){if(!h(n))return l(t,n,e);n=o(n,"gm");for(var i,c=1,s=e.line,f=t.lastLine();s<=f;){for(var a=0;a<c&&!(s>f);a++){var u=t.getLine(s++);i=null==i?u:i+"\n"+u}c*=2,n.lastIndex=e.ch;var g=n.exec(i);if(g){var p=i.slice(0,g.index).split("\n"),m=g[0].split("\n"),v=e.line+p.length-1,d=p[p.length-1].length;return{from:r(v,d),to:r(v+m.length-1,1==m.length?d+m[0].length:m[m.length-1].length),match:g}}}}function s(t,n,e){for(var r,i=0;i<=t.length;){n.lastIndex=i;var o=n.exec(t);if(!o)break;var h=o.index+o[0].length;if(h>t.length-e)break;(!r||h>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(t,n,e){n=o(n,"g");for(var i=e.line,h=e.ch,l=t.firstLine();i>=l;i--,h=-1){var c=t.getLine(i),f=s(c,n,h<0?0:c.length-h);if(f)return{from:r(i,f.index),to:r(i,f.index+f[0].length),match:f}}}function a(t,n,e){if(!h(n))return f(t,n,e);n=o(n,"gm");for(var i,l=1,c=t.getLine(e.line).length-e.ch,a=e.line,u=t.firstLine();a>=u;){for(var g=0;g<l&&a>=u;g++){var p=t.getLine(a--);i=null==i?p:p+"\n"+i}l*=2;var m=s(i,n,c);if(m){var v=i.slice(0,m.index).split("\n"),d=m[0].split("\n"),x=a+v.length,L=v[v.length-1].length;return{from:r(x,L),to:r(x+d.length-1,1==d.length?L+d[0].length:d[d.length-1].length),match:m}}}}function u(t,n,e,r){if(t.length==n.length)return e;for(var i=0,o=e+Math.max(0,t.length-n.length);;){if(i==o)return i;var h=i+o>>1,l=r(t.slice(0,h)).length;if(l==e)return h;l>e?o=h:i=h+1}}function g(t,i,o,h){if(!i.length)return null;var l=h?n:e,c=l(i).split(/\r|\n\r?/);t:for(var s=o.line,f=o.ch,a=t.lastLine()+1-c.length;s<=a;s++,f=0){var g=t.getLine(s).slice(f),p=l(g);if(1==c.length){var m=p.indexOf(c[0]);if(-1==m)continue t;return o=u(g,p,m,l)+f,{from:r(s,u(g,p,m,l)+f),to:r(s,u(g,p,m+c[0].length,l)+f)}}var v=p.length-c[0].length;if(p.slice(v)==c[0]){for(var d=1;d<c.length-1;d++)if(l(t.getLine(s+d))!=c[d])continue t;var x=t.getLine(s+c.length-1),L=l(x),O=c[c.length-1];if(L.slice(0,O.length)==O)return{from:r(s,u(g,p,v,l)+f),to:r(s+c.length-1,u(x,L,O.length,l))}}}}function p(t,i,o,h){if(!i.length)return null;var l=h?n:e,c=l(i).split(/\r|\n\r?/);t:for(var s=o.line,f=o.ch,a=t.firstLine()-1+c.length;s>=a;s--,f=-1){var g=t.getLine(s);f>-1&&(g=g.slice(0,f));var p=l(g);if(1==c.length){var m=p.lastIndexOf(c[0]);if(-1==m)continue t;return{from:r(s,u(g,p,m,l)),to:r(s,u(g,p,m+c[0].length,l))}}var v=c[c.length-1];if(p.slice(0,v.length)==v){var d=1;for(o=s-c.length+1;d<c.length-1;d++)if(l(t.getLine(o+d))!=c[d])continue t;var x=t.getLine(s+1-c.length),L=l(x);if(L.slice(L.length-c[0].length)==c[0])return{from:r(s+1-c.length,u(x,L,x.length-c[0].length,l)),to:r(s,u(g,p,v.length,l))}}}}function m(t,n,e,i){var h;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=t,e=e?t.clipPos(e):r(0,0),this.pos={from:e,to:e},"object"==typeof i?h=i.caseFold:(h=i,i=null),"string"==typeof n?(null==h&&(h=!1),this.matches=function(e,r){return(e?p:g)(t,n,r,h)}):(n=o(n,"gm"),i&&!1===i.multiline?this.matches=function(e,r){return(e?f:l)(t,n,r)}:this.matches=function(e,r){return(e?a:c)(t,n,r)})}String.prototype.normalize?(n=function(t){return t.normalize("NFD").toLowerCase()},e=function(t){return t.normalize("NFD")}):(n=function(t){return t.toLowerCase()},e=function(t){return t}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var e=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(e=r(e.line,e.ch),n?(e.ch--,e.ch<0&&(e.line--,e.ch=(this.doc.getLine(e.line)||"").length)):(e.ch++,e.ch>(this.doc.getLine(e.line)||"").length&&(e.ch=0,e.line++)),0!=t.cmpPos(e,this.doc.clipPos(e))))return this.atOccurrence=!1;var i=this.matches(n,e);if(this.afterEmptyMatch=i&&0==t.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,e){if(this.atOccurrence){var i=t.splitLines(n);this.doc.replaceRange(i,this.pos.from,this.pos.to,e),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,n,e){return new m(this.doc,t,n,e)})),t.defineDocExtension("getSearchCursor",(function(t,n,e){return new m(this,t,n,e)})),t.defineExtension("selectMatches",(function(n,e){for(var r=[],i=this.getSearchCursor(n,this.getCursor("from"),e);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(e(900))}}]);
1
+ (this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[9],{748:function(t,n,e){!function(t){"use strict";var n,e,r=t.Pos;function i(t){var n=t.flags;return null!=n?n:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function o(t,n){for(var e=i(t),r=e,o=0;o<n.length;o++)-1==r.indexOf(n.charAt(o))&&(r+=n.charAt(o));return e==r?t:new RegExp(t.source,r)}function h(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function l(t,n,e){n=o(n,"g");for(var i=e.line,h=e.ch,l=t.lastLine();i<=l;i++,h=0){n.lastIndex=h;var c=t.getLine(i),s=n.exec(c);if(s)return{from:r(i,s.index),to:r(i,s.index+s[0].length),match:s}}}function c(t,n,e){if(!h(n))return l(t,n,e);n=o(n,"gm");for(var i,c=1,s=e.line,f=t.lastLine();s<=f;){for(var a=0;a<c&&!(s>f);a++){var u=t.getLine(s++);i=null==i?u:i+"\n"+u}c*=2,n.lastIndex=e.ch;var g=n.exec(i);if(g){var p=i.slice(0,g.index).split("\n"),m=g[0].split("\n"),v=e.line+p.length-1,d=p[p.length-1].length;return{from:r(v,d),to:r(v+m.length-1,1==m.length?d+m[0].length:m[m.length-1].length),match:g}}}}function s(t,n,e){for(var r,i=0;i<=t.length;){n.lastIndex=i;var o=n.exec(t);if(!o)break;var h=o.index+o[0].length;if(h>t.length-e)break;(!r||h>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(t,n,e){n=o(n,"g");for(var i=e.line,h=e.ch,l=t.firstLine();i>=l;i--,h=-1){var c=t.getLine(i),f=s(c,n,h<0?0:c.length-h);if(f)return{from:r(i,f.index),to:r(i,f.index+f[0].length),match:f}}}function a(t,n,e){if(!h(n))return f(t,n,e);n=o(n,"gm");for(var i,l=1,c=t.getLine(e.line).length-e.ch,a=e.line,u=t.firstLine();a>=u;){for(var g=0;g<l&&a>=u;g++){var p=t.getLine(a--);i=null==i?p:p+"\n"+i}l*=2;var m=s(i,n,c);if(m){var v=i.slice(0,m.index).split("\n"),d=m[0].split("\n"),x=a+v.length,L=v[v.length-1].length;return{from:r(x,L),to:r(x+d.length-1,1==d.length?L+d[0].length:d[d.length-1].length),match:m}}}}function u(t,n,e,r){if(t.length==n.length)return e;for(var i=0,o=e+Math.max(0,t.length-n.length);;){if(i==o)return i;var h=i+o>>1,l=r(t.slice(0,h)).length;if(l==e)return h;l>e?o=h:i=h+1}}function g(t,i,o,h){if(!i.length)return null;var l=h?n:e,c=l(i).split(/\r|\n\r?/);t:for(var s=o.line,f=o.ch,a=t.lastLine()+1-c.length;s<=a;s++,f=0){var g=t.getLine(s).slice(f),p=l(g);if(1==c.length){var m=p.indexOf(c[0]);if(-1==m)continue t;return o=u(g,p,m,l)+f,{from:r(s,u(g,p,m,l)+f),to:r(s,u(g,p,m+c[0].length,l)+f)}}var v=p.length-c[0].length;if(p.slice(v)==c[0]){for(var d=1;d<c.length-1;d++)if(l(t.getLine(s+d))!=c[d])continue t;var x=t.getLine(s+c.length-1),L=l(x),O=c[c.length-1];if(L.slice(0,O.length)==O)return{from:r(s,u(g,p,v,l)+f),to:r(s+c.length-1,u(x,L,O.length,l))}}}}function p(t,i,o,h){if(!i.length)return null;var l=h?n:e,c=l(i).split(/\r|\n\r?/);t:for(var s=o.line,f=o.ch,a=t.firstLine()-1+c.length;s>=a;s--,f=-1){var g=t.getLine(s);f>-1&&(g=g.slice(0,f));var p=l(g);if(1==c.length){var m=p.lastIndexOf(c[0]);if(-1==m)continue t;return{from:r(s,u(g,p,m,l)),to:r(s,u(g,p,m+c[0].length,l))}}var v=c[c.length-1];if(p.slice(0,v.length)==v){var d=1;for(o=s-c.length+1;d<c.length-1;d++)if(l(t.getLine(o+d))!=c[d])continue t;var x=t.getLine(s+1-c.length),L=l(x);if(L.slice(L.length-c[0].length)==c[0])return{from:r(s+1-c.length,u(x,L,x.length-c[0].length,l)),to:r(s,u(g,p,v.length,l))}}}}function m(t,n,e,i){var h;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=t,e=e?t.clipPos(e):r(0,0),this.pos={from:e,to:e},"object"==typeof i?h=i.caseFold:(h=i,i=null),"string"==typeof n?(null==h&&(h=!1),this.matches=function(e,r){return(e?p:g)(t,n,r,h)}):(n=o(n,"gm"),i&&!1===i.multiline?this.matches=function(e,r){return(e?f:l)(t,n,r)}:this.matches=function(e,r){return(e?a:c)(t,n,r)})}String.prototype.normalize?(n=function(t){return t.normalize("NFD").toLowerCase()},e=function(t){return t.normalize("NFD")}):(n=function(t){return t.toLowerCase()},e=function(t){return t}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var e=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(e=r(e.line,e.ch),n?(e.ch--,e.ch<0&&(e.line--,e.ch=(this.doc.getLine(e.line)||"").length)):(e.ch++,e.ch>(this.doc.getLine(e.line)||"").length&&(e.ch=0,e.line++)),0!=t.cmpPos(e,this.doc.clipPos(e))))return this.atOccurrence=!1;var i=this.matches(n,e);if(this.afterEmptyMatch=i&&0==t.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,e){if(this.atOccurrence){var i=t.splitLines(n);this.doc.replaceRange(i,this.pos.from,this.pos.to,e),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,n,e){return new m(this.doc,t,n,e)})),t.defineDocExtension("getSearchCursor",(function(t,n,e){return new m(this,t,n,e)})),t.defineExtension("selectMatches",(function(n,e){for(var r=[],i=this.getSearchCursor(n,this.getCursor("from"),e);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(e(711))}}]);