lotus / dist /js /chunk-0cbfe13e.73856287.js
k-l-lambda's picture
commit lotus dist.
d605f27
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cbfe13e"],{"00ce":function(e,t,r){"use strict";var o,n=r("a645"),i=r("417f"),a=r("dc99"),s=r("1409"),l=r("67ee"),c=r("0d25"),u=r("67d9"),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(L){h=null}var y=function(){throw new c},d=h?function(){try{return y}catch(e){try{return h(arguments,"callee").get}catch(t){return y}}}():y,m=r("5156")(),g=r("0a36")(),b=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!==typeof Uint8Array&&b?b(Uint8Array):o,S={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"===typeof Atomics?o:Atomics,"%BigInt%":"undefined"===typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"===typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):o,"%JSON%":"object"===typeof JSON?JSON:o,"%Map%":"undefined"===typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?o:Promise,"%Proxy%":"undefined"===typeof Proxy?o:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):o,"%Symbol%":m?Symbol:o,"%SyntaxError%":l,"%ThrowTypeError%":d,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?o:WeakSet};if(b)try{null.error}catch(L){var x=b(b(L));S["%Error.prototype%"]=x}var O=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&b&&(r=b(n.prototype))}return S[t]=r,r},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r("0f7c"),P=r("9671"),k=A.call(Function.call,Array.prototype.concat),E=A.call(Function.apply,Array.prototype.splice),I=A.call(Function.call,String.prototype.replace),_=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,F=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var o=[];return I(e,N,(function(e,t,r,n){o[o.length]=r?I(n,C,"$1"):t||e})),o},R=function(e,t){var r,o=e;if(P(j,o)&&(r=j[o],o="%"+r[0]+"%"),P(S,o)){var n=S[o];if(n===v&&(n=O(o)),"undefined"===typeof n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=F(e),o=r.length>0?r[0]:"",n=R("%"+o+"%",t),i=n.name,a=n.value,s=!1,u=n.alias;u&&(o=u[0],E(r,k([0,1],u)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],d=_(y,0,1),m=_(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&f||(s=!0),o+="."+y,i="%"+o+"%",P(S,i))a=S[i];else if(null!=a){if(!(y in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,y);f=!!g,a=f&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else f=P(a,y),a=a[y];f&&!s&&(S[i]=a)}}return a}},"0a36":function(e,t,r){"use strict";var o={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:o}.foo===o.foo&&!(o instanceof n)}},"0b16":function(e,t,r){"use strict";var o=r("9d88");function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),p=["%","/","?",";","#"].concat(u),f=["/","?","#"],h=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r("184d");function w(e,t,r){if(e&&"object"===typeof e&&e instanceof n)return e;var o=new n;return o.parse(e,t,r),o}function S(e){return"string"===typeof e&&(e=w(e)),e instanceof n?e.format():n.prototype.format.call(e)}function x(e,t){return w(e,!1,!0).resolve(t)}function O(e,t){return e?w(e,!1,!0).resolveObject(t):t}n.prototype.parse=function(e,t,r){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),a=-1!==n&&n<e.indexOf("#")?"?":"#",l=e.split(a),c=/\\/g;l[0]=l[0].replace(c,"/"),e=l.join(a);var w=e;if(w=w.trim(),!r&&1===e.split("#").length){var S=s.exec(w);if(S)return this.path=w,this.href=w,this.pathname=S[1],S[2]?(this.search=S[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=i.exec(w);if(x){x=x[0];var O=x.toLowerCase();this.protocol=O,w=w.substr(x.length)}if(r||x||w.match(/^\/\/[^@/]+@[^@/]+/)){var j="//"===w.substr(0,2);!j||x&&g[x]||(w=w.substr(2),this.slashes=!0)}if(!g[x]&&(j||x&&!b[x])){for(var A,P,k=-1,E=0;E<f.length;E++){var I=w.indexOf(f[E]);-1!==I&&(-1===k||I<k)&&(k=I)}P=-1===k?w.lastIndexOf("@"):w.lastIndexOf("@",k),-1!==P&&(A=w.slice(0,P),w=w.slice(P+1),this.auth=decodeURIComponent(A)),k=-1;for(E=0;E<p.length;E++){I=w.indexOf(p[E]);-1!==I&&(-1===k||I<k)&&(k=I)}-1===k&&(k=w.length),this.host=w.slice(0,k),w=w.slice(k),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var T=this.hostname.split(/\./),N=(E=0,T.length);E<N;E++){var C=T[E];if(C&&!C.match(y)){for(var F="",R=0,L=C.length;R<L;R++)C.charCodeAt(R)>127?F+="x":F+=C[R];if(!F.match(y)){var D=T.slice(0,E),M=T.slice(E+1),U=C.match(d);U&&(D.push(U[1]),M.unshift(U[2])),M.length&&(w="/"+M.join(".")+w),this.hostname=D.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=o.toASCII(this.hostname));var B=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+B,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!m[O])for(E=0,N=u.length;E<N;E++){var q=u[E];if(-1!==w.indexOf(q)){var $=encodeURIComponent(q);$===q&&($=escape(q)),w=w.split(q).join($)}}var H=w.indexOf("#");-1!==H&&(this.hash=w.substr(H),w=w.slice(0,H));var G=w.indexOf("?");if(-1!==G?(this.search=w.substr(G),this.query=w.substr(G+1),t&&(this.query=v.parse(this.query)),w=w.slice(0,G)):t&&(this.search="",this.query={}),w&&(this.pathname=w),b[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var J=this.search||"";this.path=B+J}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",o=this.hash||"",n=!1,i="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(i=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n||(n=""),o&&"#"!==o.charAt(0)&&(o="#"+o),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),a=a.replace("#","%23"),t+n+r+a+o},n.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if("string"===typeof e){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(r[c]=e[c])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var f=u[p];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{var h=(e.pathname||"").split("/");while(h.length&&!(e.host=h.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var y=r.pathname||"",d=r.search||"";r.path=y+d}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||m||r.host&&e.pathname,S=w,x=r.pathname&&r.pathname.split("/")||[],O=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(O&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===x[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(O){r.host=x.shift(),r.hostname=r.host;var j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=x.slice(-1)[0],P=(r.host||e.host||x.length>1)&&("."===A||".."===A)||""===A,k=0,E=x.length;E>=0;E--)A=x[E],"."===A?x.splice(E,1):".."===A?(x.splice(E,1),k++):k&&(x.splice(E,1),k--);if(!w&&!S)for(;k--;k)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),P&&"/"!==x.join("/").substr(-1)&&x.push("");var I=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(O){r.hostname=I?"":x.length?x.shift():"",r.host=r.hostname;j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return w=w||r.host&&x.length,w&&!I&&x.unshift(""),x.length>0?r.pathname=x.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=w,t.resolve=x,t.resolveObject=O,t.format=S,t.Url=n},"0d25":function(e,t,r){"use strict";e.exports=TypeError},"0f7c":function(e,t,r){"use strict";var o=r("688e");e.exports=Function.prototype.bind||o},1:function(e,t){},1409:function(e,t,r){"use strict";e.exports=ReferenceError},1696:function(e,t,r){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;var o=42;for(t in e[t]=o,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==o||!0!==i.enumerable)return!1}return!0}},"184d":function(e,t,r){"use strict";var o=r("f177"),n=r("2500"),i=r("bbc7");e.exports={formats:i,parse:n,stringify:o}},2500:function(e,t,r){"use strict";var o=r("a29f"),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",p=function(e,t){var r={__proto__:null},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var f,h=t.parameterLimit===1/0?void 0:t.parameterLimit,y=p.split(t.delimiter,h),d=-1,m=t.charset;if(t.charsetSentinel)for(f=0;f<y.length;++f)0===y[f].indexOf("utf8=")&&(y[f]===u?m="utf-8":y[f]===c&&(m="iso-8859-1"),d=f,f=y.length);for(f=0;f<y.length;++f)if(f!==d){var g,b,v=y[f],w=v.indexOf("]="),S=-1===w?v.indexOf("="):w+1;-1===S?(g=t.decoder(v,a.decoder,m,"key"),b=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,S),a.decoder,m,"key"),b=o.maybeMap(l(v.slice(S+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===m&&(b=s(String(b))),v.indexOf("[]=")>-1&&(b=i(b)?[b]:b);var x=n.call(r,g);x&&"combine"===t.duplicates?r[g]=o.combine(r[g],b):x&&"last"!==t.duplicates||(r[g]=b)}return r},f=function(e,t,r,o){for(var n=o?t:l(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&s!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[],a[p]=n):"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n},h=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}var p=0;while(r.depth>0&&null!==(l=s.exec(i))&&p<r.depth){if(p+=1,!r.plainObjects&&n.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}if(l){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return f(u,t,r,o)}},y=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,r="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");var n="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=y(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?{__proto__:null}:{};for(var n="string"===typeof e?p(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),s=0;s<a.length;++s){var l=a[s],c=h(l,n[l],r,"string"===typeof e);i=o.merge(i,c,r)}return!0===r.allowSparse?i:o.compact(i)}},2714:function(e,t,r){(function(t){var o="function"===typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"===typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,p="function"===typeof WeakMap&&WeakMap.prototype,f=p?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,y=h?WeakSet.prototype.has:null,d="function"===typeof WeakRef&&WeakRef.prototype,m=d?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,v=Function.prototype.toString,w=String.prototype.match,S=String.prototype.slice,x=String.prototype.replace,O=String.prototype.toUpperCase,j=String.prototype.toLowerCase,A=RegExp.prototype.test,P=Array.prototype.concat,k=Array.prototype.join,E=Array.prototype.slice,I=Math.floor,_="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"===typeof Symbol&&"object"===typeof Symbol.iterator,F="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,L=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var o=e<0?-I(-e):I(e);if(o!==e){var n=String(o),i=S.call(t,n.length+1);return x.call(n,r,"$&_")+"."+x.call(x.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,r,"$&_")}var M=r(1),U=M.custom,B=X(U)?U:null,W={__proto__:null,double:'"',single:"'"},q={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function $(e,t,r){var o=r.quoteStyle||t,n=W[o];return n+e+n}function H(e){return x.call(String(e),/"/g,"&quot;")}function G(e){return"[object Array]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function J(e){return"[object Date]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function K(e){return"[object RegExp]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function z(e){return"[object Error]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function V(e){return"[object String]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function Q(e){return"[object Number]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function Z(e){return"[object Boolean]"===re(e)&&(!F||!("object"===typeof e&&F in e))}function X(e){if(C)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}function Y(e){if(!e||"object"!==typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(r,o,n,s){var l=o||{};if(te(l,"quoteStyle")&&!te(W,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=!te(l,"customInspect")||l.customInspect;if("boolean"!==typeof p&&"symbol"!==p)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=l.numericSeparator;if("undefined"===typeof r)return"undefined";if(null===r)return"null";if("boolean"===typeof r)return r?"true":"false";if("string"===typeof r)return pe(r,l);if("number"===typeof r){if(0===r)return 1/0/r>0?"0":"-0";var h=String(r);return f?D(r,h):h}if("bigint"===typeof r){var y=String(r)+"n";return f?D(r,y):y}var d="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof n&&(n=0),n>=d&&d>0&&"object"===typeof r)return G(r)?"[Array]":"[Object]";var m=ge(l,n);if("undefined"===typeof s)s=[];else if(ne(s,r)>=0)return"[Circular]";function b(t,r,o){if(r&&(s=E.call(s),s.push(r)),o){var i={depth:l.depth};return te(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,n+1,s)}return e(t,l,n+1,s)}if("function"===typeof r&&!K(r)){var v=oe(r),w=ve(r,b);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(w.length>0?" { "+k.call(w,", ")+" }":"")}if(X(r)){var O=C?x.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(r);return"object"!==typeof r||C?O:he(O)}if(ue(r)){for(var A="<"+j.call(String(r.nodeName)),I=r.attributes||[],T=0;T<I.length;T++)A+=" "+I[T].name+"="+$(H(I[T].value),"double",l);return A+=">",r.childNodes&&r.childNodes.length&&(A+="..."),A+="</"+j.call(String(r.nodeName))+">",A}if(G(r)){if(0===r.length)return"[]";var U=ve(r,b);return m&&!me(U)?"["+be(U,m)+"]":"[ "+k.call(U,", ")+" ]"}if(z(r)){var q=ve(r,b);return"cause"in Error.prototype||!("cause"in r)||R.call(r,"cause")?0===q.length?"["+String(r)+"]":"{ ["+String(r)+"] "+k.call(q,", ")+" }":"{ ["+String(r)+"] "+k.call(P.call("[cause]: "+b(r.cause),q),", ")+" }"}if("object"===typeof r&&p){if(B&&"function"===typeof r[B]&&M)return M(r,{depth:d-n});if("symbol"!==p&&"function"===typeof r.inspect)return r.inspect()}if(ie(r)){var ee=[];return a&&a.call(r,(function(e,t){ee.push(b(t,r,!0)+" => "+b(e,r))})),de("Map",i.call(r),ee,m)}if(le(r)){var fe=[];return u&&u.call(r,(function(e){fe.push(b(e,r))})),de("Set",c.call(r),fe,m)}if(ae(r))return ye("WeakMap");if(ce(r))return ye("WeakSet");if(se(r))return ye("WeakRef");if(Q(r))return he(b(Number(r)));if(Y(r))return he(b(_.call(r)));if(Z(r))return he(g.call(r));if(V(r))return he(b(String(r)));if("undefined"!==typeof window&&r===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&r===globalThis||"undefined"!==typeof t&&r===t)return"{ [object globalThis] }";if(!J(r)&&!K(r)){var we=ve(r,b),Se=L?L(r)===Object.prototype:r instanceof Object||r.constructor===Object,xe=r instanceof Object?"":"null prototype",Oe=!Se&&F&&Object(r)===r&&F in r?S.call(re(r),8,-1):xe?"Object":"",je=Se||"function"!==typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"",Ae=je+(Oe||xe?"["+k.call(P.call([],Oe||[],xe||[]),": ")+"] ":"");return 0===we.length?Ae+"{}":m?Ae+"{"+be(we,m)+"}":Ae+"{ "+k.call(we,", ")+" }"}return String(r)};var ee=Object.prototype.hasOwnProperty||function(e){return e in this};function te(e,t){return ee.call(e,t)}function re(e){return b.call(e)}function oe(e){if(e.name)return e.name;var t=w.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function ie(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(r){}return!1}function ae(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{y.call(e,y)}catch(t){return!0}return e instanceof WeakMap}catch(r){}return!1}function se(e){if(!m||!e||"object"!==typeof e)return!1;try{return m.call(e),!0}catch(t){}return!1}function le(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}function ce(e){if(!y||!e||"object"!==typeof e)return!1;try{y.call(e,y);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakSet}catch(r){}return!1}function ue(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function pe(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return pe(S.call(e,0,t.maxStringLength),t)+o}var n=q[t.quoteStyle||"single"];n.lastIndex=0;var i=x.call(x.call(e,n,"\\$1"),/[\x00-\x1f]/g,fe);return $(i,"single",t)}function fe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function he(e){return"Object("+e+")"}function ye(e){return e+" { ? }"}function de(e,t,r,o){var n=o?be(r,o):k.call(r,", ");return e+" ("+t+") {"+n+"}"}function me(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function ge(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}function be(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function ve(e,t){var r=G(e),o=[];if(r){o.length=e.length;for(var n=0;n<e.length;n++)o[n]=te(e,n)?t(e[n],e):""}var i,a="function"===typeof T?T(e):[];if(C){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)te(e,l)&&(r&&String(Number(l))===l&&l<e.length||C&&i["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?o.push(t(l,e)+": "+t(e[l],e)):o.push(l+": "+t(e[l],e))));if("function"===typeof T)for(var c=0;c<a.length;c++)R.call(e,a[c])&&o.push("["+t(a[c])+"]: "+t(e[a[c]],e));return o}}).call(this,r("c8ba"))},"2aa9":function(e,t,r){"use strict";var o=r("00ce"),n=o("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(i){n=null}e.exports=n},"3eb1":function(e,t,r){"use strict";var o=r("0f7c"),n=r("00ce"),i=r("d009"),a=r("0d25"),s=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||o.call(l,s),u=r("71c9"),p=n("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(o,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(o,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},"417f":function(e,t,r){"use strict";e.exports=EvalError},4332:function(e,t,r){var o=r("b11f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=r("499e").default;n("0883be1e",o,!0,{sourceMap:!1,shadowMode:!1})},5156:function(e,t,r){"use strict";var o="undefined"!==typeof Symbol&&Symbol,n=r("1696");e.exports=function(){return"function"===typeof o&&("function"===typeof Symbol&&("symbol"===typeof o("foo")&&("symbol"===typeof Symbol("bar")&&n())))}},5402:function(e,t,r){"use strict";var o=r("00ce"),n=r("545e"),i=r("2714"),a=r("0d25"),s=o("%WeakMap%",!0),l=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),p=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),h=n("Map.prototype.set",!0),y=n("Map.prototype.has",!0),d=function(e,t){for(var r,o=e;null!==(r=o.next);o=r)if(r.key===t)return o.next=r.next,r.next=e.next,e.next=r,r},m=function(e,t){var r=d(e,t);return r&&r.value},g=function(e,t,r){var o=d(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},b=function(e,t){return!!d(e,t)};e.exports=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},get:function(o){if(s&&o&&("object"===typeof o||"function"===typeof o)){if(e)return c(e,o)}else if(l){if(t)return f(t,o)}else if(r)return m(r,o)},has:function(o){if(s&&o&&("object"===typeof o||"function"===typeof o)){if(e)return p(e,o)}else if(l){if(t)return y(t,o)}else if(r)return b(r,o);return!1},set:function(o,n){s&&o&&("object"===typeof o||"function"===typeof o)?(e||(e=new s),u(e,o,n)):l?(t||(t=new l),h(t,o,n)):(r||(r={key:{},next:null}),g(r,o,n))}};return o}},"545e":function(e,t,r){"use strict";var o=r("00ce"),n=r("3eb1"),i=n(o("String.prototype.indexOf"));e.exports=function(e,t){var r=o(e,!!t);return"function"===typeof r&&i(e,".prototype.")>-1?n(r):r}},5748:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("meta",{attrs:{name:"viewport",content:"width=device-width, initial-scale=0.5, maximum-scale=0.5"}}),t("header",{staticClass:"controls"},[e.disableStore?e._e():t("StoreInput",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{sessionKey:"lotus-profilerSourceText"},model:{value:e.sourceText,callback:function(t){e.sourceText=t},expression:"sourceText"}}),e.disableStore?e._e():t("BoolStoreInput",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{sessionKey:"lotus-profilerBakingSheet"},model:{value:e.bakingSheet,callback:function(t){e.bakingSheet=t},expression:"bakingSheet"}}),t("input",{attrs:{type:"file"},on:{change:e.onScoreChange}}),t("button",{on:{click:e.homePlayer}},[e._v("⏮")]),t("button",{attrs:{disabled:!e.midiPlayer},on:{click:e.togglePlayer}},[e._v(e._s(e.midiPlayer&&e.midiPlayer.isPlaying?"⏸":"▶"))]),t("CheckButton",{attrs:{content:"&#xa56f;"},model:{value:e.showCursor,callback:function(t){e.showCursor=t},expression:"showCursor"}}),t("CheckButton",{attrs:{content:"&#x2669;"},model:{value:e.noteHighlight,callback:function(t){e.noteHighlight=t},expression:"noteHighlight"}}),t("CheckButton",{attrs:{content:"&#x1f35e;"},model:{value:e.bakingSheet,callback:function(t){e.bakingSheet=t},expression:"bakingSheet"}}),e.fps?t("span",{staticClass:"fps"},[t("em",[e._v(e._s(e.fps.toFixed(1)))]),e._v("fps")]):e._e()],1),t("main",{on:{scroll:e.onScroll}},[!e.bakingSheet&&e.svgHashTable?t("SheetSigns",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"signs",attrs:{hashTable:e.svgHashTable}}):e._e(),e.sheetDocument?t("SheetLive",{ref:"sheet",attrs:{doc:e.sheetDocument,midiNotation:e.midiNotation,pitchContextGroup:e.pitchContextGroup,midiPlayer:e.midiPlayer,scheduler:e.scheduler,showCursor:e.showCursor,noteHighlight:e.noteHighlight,bakingMode:e.bakingSheet,backgroundImages:e.bakingSheet?e.bakingImages:null,showPagesProgressively:e.showPagesProgressively},on:{"update:midiPlayer":function(t){e.midiPlayer=t},"update:midi-player":function(t){e.midiPlayer=t},midi:e.onMidi}}):e._e()],1),t("canvas",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"canvas"})])},n=[],i=r("0b16"),a=r.n(i),s=r("b047"),l=r.n(s),c=(r("8701"),r("5027")),u=r("9224"),p=r("f634"),f=r("32c1"),h=r("1151"),y=r("a31e"),d=r("1c3a"),m=r("c0d2");const g=e=>{if(e){const t=e.match(/\d+/g);if(t){const e=t.map(Number).reverse();return e.reduce((e,t,r)=>e+t*1e3**r,0)}}return-1};class b{constructor({onStatus:e=((...e)=>e)}={}){this.onStatus=e}static fromJSON(e,{measureLayout:t=y["b"].Full,onStatus:r=((...e)=>e),jsonHandle:o=(e=>e)}={}){const n=new b({onStatus:r});return n.scoreJSON=o(Object(p["b"])(e,b.classDict)),n.checkVersion(),n.onStatus("json loaded"),n.scoreJSON.lilyNotation&&(n.matchedIds=n.scoreJSON.lilyNotation.idSet,n.scoreJSON.doc.updateMatchedTokens(n.matchedIds)),t&&n.loadNotation(t),n}loadNotation(e,t){const r=this.scoreJSON.lilyNotation;if(r){const o=r.getMeasureIndices(e);this.midiNotation=r.toPerformingNotationWithEvents(o,{trackList:t}),this.pitchContextGroup=r.getContextGroup(o);const n=r.toPerformingNotation(o,{withRestTied:!0});this.scheduler=y["e"].createFromNotation(n,this.scoreJSON.doc.getTokenMap()),this.onStatus("notation loaded")}}bakeSheet(e){return console.assert(!!this.scoreJSON.doc,"sheetDocument is null."),console.assert(!!this.scoreJSON.hashTable,"hashTable is null."),console.assert(!!this.matchedIds,"matchedIds is null."),this.onStatus("baking sheet"),d["a"]({sheetDocument:this.scoreJSON.doc,hashTable:this.scoreJSON.hashTable,matchedIds:this.matchedIds,canvas:e})}checkVersion(){const e=g(u.version),t=g(this.scoreJSON.version);t<g("0.6.1")&&console.warn(`This score bundle version[${this.scoreJSON.version}] is too low! The current Lotus API version is: ${u.version}.`),t>e&&console.warn(`The current Lotus API version[${u.version}] is behind this score bundle[${this.scoreJSON.version}]. If any score problem encountered, try to upgrade Lotus API.`),t>=0&&t<g("0.8.0")&&this.scoreJSON.doc.pages.forEach(e=>e.systems=e.rows)}}b.classDict={StaffToken:f["StaffToken"],SheetDocument:f["SheetDocument"],LilyNotation:y["d"],...y["c"],DictArray:m["a"],PitchContextTable:h["b"],PitchContext:h["a"]};var v=r("faa1");class w extends v["EventEmitter"]{constructor(e,{separator:t="\n\n\n\n"}={}){super(),this.reader=e,this.separator=t}async read(){let e="";while(1){const{done:t,value:r}=await this.reader.read();if(r){const t=new TextDecoder("utf-8").decode(r);e+=t;while(1){const t=e.indexOf(this.separator);if(!(t>=0))break;{const r=e.substr(0,t);this.emit("data",r),e=e.substr(t+this.separator.length)}}}if(t)break}e&&this.emit("data",e)}}var S=r("a139"),x=r("f7ce"),O=r("cdaf"),j=r("4e72"),A=r("ddcc"),P={name:"profiler",components:{SheetLive:S["a"],SheetSigns:x["a"],StoreInput:O["a"],BoolStoreInput:j["a"],CheckButton:A["a"]},data(){return{sourceText:null,sheetDocument:null,svgHashTable:null,midiNotation:null,scheduler:null,pitchContextGroup:null,midiPlayer:null,showCursor:!0,noteHighlight:!0,bakingSheet:!0,bakingImages:null,sourceBakingImages:null,fps:null,disableStore:!1,showPagesProgressively:!0}},async created(){this.logTime("created"),window.$main=this,this.watchFps();const e=a.a.parse(location.hash.substr(1),!0);e.query.score&&(this.disableStore=!0,this.loadScoreFromURL(e.query.score)),e.query.nobake&&(this.bakingSheet=!1)},methods:{logTime(e){console.log("[PROFILER]",e,performance.now())},onScoreChange(e){const t=e.target.files[0];if(t)return this.loadScoreFile(t)},onScroll:l()((function(){this.$refs.sheet.updatePageVisibility()}),60,{leading:!0}),async loadScoreFile(e){switch(this.logTime("file loading begin"),e.type){case"application/json":this.sourceText=await e.readAs("Text");break;case"application/zip":case"application/x-zip-compressed":{this.sourceText=null,await this.$nextTick();const{default:t}=await r.e("chunk-48b5b2a0").then(r.t.bind(null,"c4e3",7)),o=await t.loadAsync(e);this.sourceBakingImages=null;for(let e=0;1;++e){const t=o.file(`baking${e}.png`);if(!t)break;const r=await t.async("blob"),n=URL.createObjectURL(r);this.sourceBakingImages=this.sourceBakingImages||[],this.sourceBakingImages.push(n)}this.sourceBakingImages&&this.logTime(`baking images loaded [${this.sourceBakingImages.length}]`),this.sourceText=await o.file("score.json").async("text"),this.logTime("sourceText loaded.")}break;case"text/x-lilypond":case"text/lilypond-source":{const t=await e.readAs("Text"),r=new FormData;r.append("source",t),r.append("withLilyNotation",1);const o=await fetch("/advanced-engrave",{method:"POST",body:r});if(!o.ok)return this.error=await o.text(),void console.warn("advanced-engrave failed:",this.error);const n=new w(o.body.getReader());this.constructSheetFromStream(n)}break;default:console.log("unsupported type:",e.type)}},async loadScoreFromURL(e){this.logTime("URL fetching begin");const t=await fetch(e);if(!t.ok)return void console.warn("URL load failed:",await t.text());this.logTime("network responsed");const r=await t.blob();return this.loadScoreFile(r)},async loadSheet(){if(this.sheetDocument=null,this.midiNotation=null,this.scheduler=null,this.pitchContextGroup=null,this.bakingImages=null,this.sourceText){this.showPagesProgressively=!0;const e=b.fromJSON(this.sourceText,{onStatus:e=>this.logTime(e)});if(this.sheetDocument=e.scoreJSON.doc,this.pitchContextGroup=e.pitchContextGroup,this.midiNotation=e.midiNotation,this.scheduler=e.scheduler,this.svgHashTable=e.scoreJSON.hashTable,this.logTime("bundle parsed"),await this.$nextTick(),this.logTime("rendering initialized"),this.sourceBakingImages)this.bakingImages=this.sourceBakingImages,this.sourceBakingImages=null;else if(this.bakingSheet){this.bakingImages=[];const t=e.bakeSheet(this.$refs.canvas);this.logTime("baker loaded");for await(const e of t)this.bakingImages.push(e);this.logTime("baking finished")}await this.$nextTick(),this.logTime("rendering finished"),this.$refs.sheet.updatePageVisibility()}},async constructSheetFromStream(e){this.sheetDocument=null,this.midiNotation=null,this.scheduler=null,this.pitchContextGroup=null,this.bakingImages=null,this.svgHashTable={},this.showPagesProgressively=!1,this.bakingSheet=!1;const t=[];e.on("data",e=>{const r=Object(p["b"])(e,{...f,LilyNotation:y["d"],...y["c"]});if(console.log("data:",r),void 0!==r.page&&(t[r.page]=r.structure,this.svgHashTable={...this.svgHashTable,...r.hashTable},this.sheetDocument=new f["SheetDocument"]({pages:t})),r.lilyNotation){const e=r.lilyNotation,t=e.getMeasureIndices(y["b"].Full);this.midiNotation=e.toPerformingNotationWithEvents(t),this.pitchContextGroup=e.getContextGroup(t);const o=e.toPerformingNotation(t,{withRestTied:!0});this.scheduler=y["e"].createFromNotation(o,this.sheetDocument.getTokenMap())}}),await e.read()},onMidi(){},homePlayer(){this.midiPlayer&&this.midiPlayer.turnCursor(0)},togglePlayer(){this.midiPlayer&&(this.midiPlayer.isPlaying?this.midiPlayer.pause():this.midiPlayer.play())},async watchFps(){let e=performance.now(),t=0;while(1){await Object(c["a"])(),++t;const r=performance.now();r-e>1e3&&(this.fps=1e3*t/(r-e),t=0,e=r)}}},watch:{sourceText:"loadSheet"}},k=P,E=(r("ae16"),r("2877")),I=Object(E["a"])(k,o,n,!1,null,null,null);t["default"]=I.exports},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"64b0":function(e,t,r){"use strict";var o=r("71c9"),n=function(){return!!o};n.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},"67d9":function(e,t,r){"use strict";e.exports=URIError},"67ee":function(e,t,r){"use strict";e.exports=SyntaxError},"688e":function(e,t,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,a="[object Function]",s=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},l=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},c=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var t=this;if("function"!==typeof t||n.apply(t)!==a)throw new TypeError(o+t);for(var r,u=l(arguments,1),p=function(){if(this instanceof r){var o=t.apply(this,s(u,arguments));return Object(o)===o?o:this}return t.apply(e,s(u,arguments))},f=i(0,t.length-u.length),h=[],y=0;y<f;y++)h[y]="$"+y;if(r=Function("binder","return function ("+c(h,",")+"){ return binder.apply(this,arguments); }")(p),t.prototype){var d=function(){};d.prototype=t.prototype,r.prototype=new d,d.prototype=null}return r}},"71c9":function(e,t,r){"use strict";var o=r("00ce"),n=o("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(i){n=!1}e.exports=n},7992:function(e,t,r){"use strict";var o=r("71c9"),n=r("67ee"),i=r("0d25"),a=r("2aa9");e.exports=function(e,t,r){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(o)o(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===s&&p?p.enumerable:!s,value:r,writable:null===l&&p?p.writable:!l});else{if(!u&&(s||l||c))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},9671:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r("0f7c");e.exports=i.call(o,n)},"9d88":function(e,t,r){(function(e,o){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof o&&o;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,p=26,f=38,h=700,y=72,d=128,m="-",g=/^xn--/,b=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,x=Math.floor,O=String.fromCharCode;function j(e){throw new RangeError(w[e])}function A(e,t){var r=e.length,o=[];while(r--)o[r]=t(e[r]);return o}function P(e,t){var r=e.split("@"),o="";r.length>1&&(o=r[0]+"@",e=r[1]),e=e.replace(v,".");var n=e.split("."),i=A(n,t).join(".");return o+i}function k(e){var t,r,o=[],n=0,i=e.length;while(n<i)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<i?(r=e.charCodeAt(n++),56320==(64512&r)?o.push(((1023&t)<<10)+(1023&r)+65536):(o.push(t),n--)):o.push(t);return o}function E(e){return A(e,(function(e){var t="";return e>65535&&(e-=65536,t+=O(e>>>10&1023|55296),e=56320|1023&e),t+=O(e),t})).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var o=0;for(e=r?x(e/h):e>>1,e+=x(e/t);e>S*p>>1;o+=c)e=x(e/S);return x(o+(S+1)*e/(e+f))}function N(e){var t,r,o,n,i,a,s,f,h,g,b=[],v=e.length,w=0,S=d,O=y;for(r=e.lastIndexOf(m),r<0&&(r=0),o=0;o<r;++o)e.charCodeAt(o)>=128&&j("not-basic"),b.push(e.charCodeAt(o));for(n=r>0?r+1:0;n<v;){for(i=w,a=1,s=c;;s+=c){if(n>=v&&j("invalid-input"),f=I(e.charCodeAt(n++)),(f>=c||f>x((l-w)/a))&&j("overflow"),w+=f*a,h=s<=O?u:s>=O+p?p:s-O,f<h)break;g=c-h,a>x(l/g)&&j("overflow"),a*=g}t=b.length+1,O=T(w-i,t,0==i),x(w/t)>l-S&&j("overflow"),S+=x(w/t),w%=t,b.splice(w++,0,S)}return E(b)}function C(e){var t,r,o,n,i,a,s,f,h,g,b,v,w,S,A,P=[];for(e=k(e),v=e.length,t=d,r=0,i=y,a=0;a<v;++a)b=e[a],b<128&&P.push(O(b));o=n=P.length,n&&P.push(m);while(o<v){for(s=l,a=0;a<v;++a)b=e[a],b>=t&&b<s&&(s=b);for(w=o+1,s-t>x((l-r)/w)&&j("overflow"),r+=(s-t)*w,t=s,a=0;a<v;++a)if(b=e[a],b<t&&++r>l&&j("overflow"),b==t){for(f=r,h=c;;h+=c){if(g=h<=i?u:h>=i+p?p:h-i,f<g)break;A=f-g,S=c-g,P.push(O(_(g+A%S,0))),f=x(A/S)}P.push(O(_(f,0))),i=T(r,w,o==n),r=0,++o}++r,++t}return P.join("")}function F(e){return P(e,(function(e){return g.test(e)?N(e.slice(4).toLowerCase()):e}))}function R(e){return P(e,(function(e){return b.test(e)?"xn--"+C(e):e}))}s={version:"1.4.1",ucs2:{decode:k,encode:E},decode:N,encode:C,toASCII:R,toUnicode:F},n=function(){return s}.call(t,r,t,e),void 0===n||(e.exports=n)})()}).call(this,r("62e4")(e),r("c8ba"))},a29f:function(e,t,r){"use strict";var o=r("bbc7"),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)"undefined"!==typeof r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)"undefined"!==typeof e[o]&&(r[o]=e[o]);return r},c=function e(t,r,o){if(!r)return t;if("object"!==typeof r&&"function"!==typeof r){if(i(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=l(t,o)),i(t)&&i(r)?(r.forEach((function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"===typeof a&&r&&"object"===typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)},u=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},p=function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(n){return o}},f=1024,h=function(e,t,r,n,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;c+=f){for(var u=s.length>=f?s.slice(c,c+f):s,p=[],h=0;h<u.length;++h){var y=u.charCodeAt(h);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)?p[p.length]=u.charAt(h):y<128?p[p.length]=a[y]:y<2048?p[p.length]=a[192|y>>6]+a[128|63&y]:y<55296||y>=57344?p[p.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y]:(h+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(h)),p[p.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y])}l+=p.join("")}return l},y=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var c=a[l],u=i[c];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return s(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},b=function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)};e.exports={arrayToObject:l,assign:u,combine:g,compact:y,decode:p,encode:h,isBuffer:m,isRegExp:d,maybeMap:b,merge:c}},a645:function(e,t,r){"use strict";e.exports=Error},ae16:function(e,t,r){"use strict";r("4332")},b11f:function(e,t,r){var o=r("24fb");t=o(!1),t.push([e.i,'button.working{background-color:#dfd;font-weight:700}button.on{background-color:#efe;font-weight:700;box-shadow:0 0 4px #000}button.off{opacity:.7;filter:grayscale(100%)}button[disabled]{box-shadow:none;cursor:not-allowed!important}.controls fieldset{border:0;padding:0 1em}.controls fieldset,.controls fieldset>span{display:inline-block}.controls fieldset>*{margin:0 .2em}.controls>*,.controls fieldset>*{vertical-align:middle}header.controls{padding:1em;text-align:center;background-color:hsla(0,0%,100%,.6666666666666666)}header.controls button{font-size:24px}header.controls .dirty-badge{width:1em}header.controls .dirty-badge.dirty:before{content:"*"}header .fps{display:inline-block;margin:0 1em;color:#aaa}header .fps em{color:#000;display:inline-block;margin:0 .2em}main{width:100%;overflow:auto}main .sheet.live{white-space:nowrap;display:inline-block}main .sheet.live .page{display:inline-block;margin:1em;background-size:100%}main .sheet.live .cursor{fill:#add8e6}',""]),e.exports=t},bbc7:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},d009:function(e,t,r){"use strict";var o=r("00ce"),n=r("7992"),i=r("64b0")(),a=r("2aa9"),s=r("0d25"),l=o("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(c=!1)}return(o||c||!r)&&(i?n(e,"length",t,!0,!0):n(e,"length",t)),e}},dc99:function(e,t,r){"use strict";e.exports=RangeError},f177:function(e,t,r){"use strict";var o=r("5402"),n=r("a29f"),i=r("bbc7"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,f=i["default"],h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},y=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},d={},m=function e(t,r,i,a,s,c,p,f,m,g,b,v,w,S,x,O,j,A){var P=t,k=A,E=0,I=!1;while(void 0!==(k=k.get(d))&&!I){var _=k.get(t);if(E+=1,"undefined"!==typeof _){if(_===E)throw new RangeError("Cyclic object value");I=!0}"undefined"===typeof k.get(d)&&(E=0)}if("function"===typeof g?P=g(r,P):P instanceof Date?P=w(P):"comma"===i&&l(P)&&(P=n.maybeMap(P,(function(e){return e instanceof Date?w(e):e}))),null===P){if(c)return m&&!O?m(r,h.encoder,j,"key",S):r;P=""}if(y(P)||n.isBuffer(P)){if(m){var T=O?r:m(r,h.encoder,j,"key",S);return[x(T)+"="+x(m(P,h.encoder,j,"value",S))]}return[x(r)+"="+x(String(P))]}var N,C=[];if("undefined"===typeof P)return C;if("comma"===i&&l(P))O&&m&&(P=n.maybeMap(P,m)),N=[{value:P.length>0?P.join(",")||null:void 0}];else if(l(g))N=g;else{var F=Object.keys(P);N=b?F.sort(b):F}var R=f?String(r).replace(/\./g,"%2E"):String(r),L=a&&l(P)&&1===P.length?R+"[]":R;if(s&&l(P)&&0===P.length)return L+"[]";for(var D=0;D<N.length;++D){var M=N[D],U="object"===typeof M&&M&&"undefined"!==typeof M.value?M.value:P[M];if(!p||null!==U){var B=v&&f?String(M).replace(/\./g,"%2E"):String(M),W=l(P)?"function"===typeof i?i(L,B):L:L+(v?"."+B:"["+B+"]");A.set(t,E);var q=o();q.set(d,A),u(C,e(U,W,i,a,s,c,p,f,"comma"===i&&O&&l(P)?null:m,g,b,v,w,S,x,O,j,q))}}return C},g=function(e){if(!e)return h;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i["default"];if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o,n=i.formatters[r],c=h.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),o=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:r,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=g(t);"function"===typeof a.filter?(n=a.filter,i=n("",i)):l(a.filter)&&(n=a.filter,r=n);var c=[];if("object"!==typeof i||null===i)return"";var p=s[a.arrayFormat],f="comma"===p&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var h=o(),y=0;y<r.length;++y){var d=r[y],b=i[d];a.skipNulls&&null===b||u(c,m(b,d,p,f,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var v=c.join(a.delimiter),w=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},faa1:function(e,t,r){"use strict";var o,n="object"===typeof Reflect?Reflect:null,i=n&&"function"===typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function a(e){console&&console.warn&&console.warn(e)}o=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,o){var n,i,s;if(u(r),i=e._events,void 0===i?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"===typeof s?s=i[t]=o?[r,s]:[s,r]:o?s.unshift(r):s.push(r),n=p(e),n>0&&s.length>n&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(e,t,r){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=h.bind(o);return n.listener=r,o.wrapFn=n,n}function d(e,t,r){var o=e._events;if(void 0===o)return[];var n=o[t];return void 0===n?[]:"function"===typeof n?r?[n.listener||n]:[n]:r?v(n):g(n,n.length)}function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),o=0;o<t;++o)r[o]=e[o];return r}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function w(e,t){return new Promise((function(r,o){function n(r){e.removeListener(t,i),o(r)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}x(e,t,i,{once:!0}),"error"!==t&&S(e,n,{once:!0})}))}function S(e,t,r){"function"===typeof e.on&&x(e,"error",t,r)}function x(e,t,r,o){if("function"===typeof e.on)o.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function n(i){o.once&&e.removeEventListener(t,n),r(i)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,n=this._events;if(void 0!==n)o=o&&void 0===n.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=n[e];if(void 0===l)return!1;if("function"===typeof l)i(l,this,t);else{var c=l.length,u=g(l,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return u(t),this.on(e,y(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,y(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,o,n,i,a;if(u(t),o=this._events,void 0===o)return this;if(r=o[e],void 0===r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(n=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,n=i;break}if(n<0)return this;0===n?r.shift():b(r,n),1===r.length&&(o[e]=r[0]),void 0!==o.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,o;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,i=Object.keys(r);for(o=0;o<i.length;++o)n=i[o],"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},l.prototype.listeners=function(e){return d(this,e,!0)},l.prototype.rawListeners=function(e){return d(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}}}]);
//# sourceMappingURL=chunk-0cbfe13e.73856287.js.map