/*! For license information please see app.js.LICENSE.txt */ !function(){var e,t,n,r,a,i,o={42055:function(e,t,n){var r=n(56242),a={l:20,m:16,s:8,xs:6,0:0};e.exports={CONTAINER_BY_BREAKPOINTS:{max:{description:"Max size (desktop, laptop). Screen size Max.",maxWidth:1276,padding:22},lg:{description:"Large (tablet). Screen size less 1276px.",maxWidth:996,padding:22},md:{description:"Medium (phone). Screen size less 1000px.",maxWidth:996,padding:22},sm:{description:"Small (phone). Screen size less 640px.",maxWidth:640,padding:16}},PREFIX:"wt",TOTAL_COLS:12,CSS_VARS:{COL_WIDTH:"--wt-col-width",COL_COUNT:"--wt-col-count",GUTTER_HORIZONTAL:"--wt-horizontal-layout-gutter",OFFSET_LEFT:"--wt-offset-left",OFFSET_TOP_UNIT:"--wt-offset-top-unit"},OFFSET_TOP_UNIT:24,OFFSET_TOP:[0,12,24,48,96],GUTTER_HORIZONTAL:a,GUTTER_HORIZONTAL_KEYS:r(a)}},22003:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=i()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=a(e,2),r=t[0],i=t[1];return Promise.all([r,i||n.miss(r)])})).then((function(e){return a(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var a=i();return a[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(a)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=i();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function s(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return a(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,a).catch((function(){return s({caches:t}).get(e,r,a)}))},set:function(e,r){return n.set(e,r).catch((function(){return s({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return s({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return s({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var o=r(),s=a&&a.miss||function(){return Promise.resolve()};return o.then((function(e){return s(e)})).then((function(){return o}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===h.WithinHeaders?r:{}},queryParameters:function(){return e===h.WithinQueryParameters?r:{}}}}function u(e){var t=0;return e((function n(){return t++,new Promise((function(r){setTimeout((function(){r(e(n))}),Math.min(100*t,1e3))}))}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(n){return d(e.then((function(e){return Promise.all([t(e,n),e])})).then((function(e){return e[1]})))}})}function p(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function f(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var b={Read:1,Write:2,Any:3};function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function y(e){return"string"==typeof e?{protocol:"https",url:e,accept:b.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||b.Any}}var E="DELETE",w="GET",S="POST",_="PUT";function x(e,t,r,a){var o=[],s=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,a),l=function(e,t){var r=n(n({},e.headers),t.headers),a={};return Object.keys(r).forEach((function(e){var t=r[e];a[e.toLowerCase()]=t})),a}(e,a),c=r.method,u=r.method!==w?{}:n(n({},r.data),a.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),a.queryParameters),p=0,f=function t(n,i){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:A(o)};var f={data:s,headers:l,method:c,url:O(u,r.path,d),connectTimeout:i(p,e.timeouts.connect),responseTimeout:i(p,a.timeout)},m=function(e){var t={request:f,response:e,host:u,triesLeft:n.length};return o.push(t),t},h={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var a=m(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",R(a)),e.hostsCache.set(u,v(u,r.isTimedOut?3:2))]).then((function(){return t(n,i)}))},onFail:function(e){throw m(e),function(e,t){var n=e.content,r=e.status,a=n;try{a=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(a,r,t)}(e,A(o))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&!~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,h)}))};return function(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(v(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}(e)})),a=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:a.length>0?a.map((function(e){return y(e)})):t}}))}(e.hostsCache,t).then((function(e){return f(i(e.statelessHosts).reverse(),e.getTimeout)}))}function T(e){var t=e.hostsCache,n=e.logger,r=e.requester,i=e.requestsCache,o=e.responsesCache,s=e.timeouts,l=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:i,responsesCache:o,timeouts:s,userAgent:l,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return y(e)})),read:function(e,t){var n=g(t,d.timeouts.read),r=function(){return x(d,d.hosts.filter((function(e){return!!(e.accept&b.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,(function(){return d.requestsCache.get(i,(function(){return d.requestsCache.set(i,r()).then((function(e){return Promise.all([d.requestsCache.delete(i),e])}),(function(e){return Promise.all([d.requestsCache.delete(i),Promise.reject(e)])})).then((function(e){var t=a(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,t){return x(d,d.hosts.filter((function(e){return!!(e.accept&b.Write)})),e,g(t,d.timeouts.write))}};return d}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function O(e,t,n){var r=N(n),a="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(a+="?".concat(r)),a}function N(e){return Object.keys(e).map((function(t){return m("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function A(e){return e.map((function(e){return R(e)}))}function R(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var C=function(e){return function(t,n){return e.transporter.write({method:S,path:"2/abtests",data:t},n)}},I=function(e){return function(t,n){return e.transporter.write({method:E,path:m("2/abtests/%s",t)},n)}},P=function(e){return function(t,n){return e.transporter.read({method:w,path:m("2/abtests/%s",t)},n)}},L=function(e){return function(t){return e.transporter.read({method:w,path:"2/abtests"},t)}},D=function(e){return function(t,n){return e.transporter.write({method:S,path:m("2/abtests/%s/stop",t)},n)}},M=function(e){return function(t){return e.transporter.read({method:w,path:"1/strategies/personalization"},t)}},z=function(e){return function(t,n){return e.transporter.write({method:S,path:"1/strategies/personalization",data:t},n)}};function F(e){return function t(n){return e.request(n).then((function(r){if(void 0!==e.batch&&e.batch(r.hits),!e.shouldStop(r))return r.cursor?t({cursor:r.cursor}):t({page:(n.page||0)+1})}))}({})}var B=function(e){return function(t,a){var i=a||{},o=i.queryParameters,s=r(i,["queryParameters"]),l=n({acl:t},void 0!==o?{queryParameters:o}:{});return d(e.transporter.write({method:S,path:"1/keys",data:l},s),(function(t,n){return u((function(r){return X(e)(t.key,n).catch((function(e){if(404!==e.status)throw e;return r()}))}))}))}},U=function(e){return function(t,n,r){var a=g(r);return a.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:S,path:"1/clusters/mapping",data:{cluster:n}},a)}},j=function(e){return function(t,n,r){return e.transporter.write({method:S,path:"1/clusters/mapping/batch",data:{users:t,cluster:n}},r)}},H=function(e){return function(t,n){return d(e.transporter.write({method:S,path:m("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},n),(function(t,n){return we(e)(t.taskID,n)}))}},$=function(e){return function(t,n,r){return d(e.transporter.write({method:S,path:m("1/indexes/%s/operation",t),data:{operation:"copy",destination:n}},r),(function(n,r){return re(e)(t,{methods:{waitTask:st}}).waitTask(n.taskID,r)}))}},G=function(e){return function(t,r,a){return $(e)(t,r,n(n({},a),{},{scope:[ct.Rules]}))}},V=function(e){return function(t,r,a){return $(e)(t,r,n(n({},a),{},{scope:[ct.Settings]}))}},W=function(e){return function(t,r,a){return $(e)(t,r,n(n({},a),{},{scope:[ct.Synonyms]}))}},q=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},Y=function(e){return function(t,n){return d(e.transporter.write({method:E,path:m("1/keys/%s",t)},n),(function(n,r){return u((function(n){return X(e)(t,r).then(n).catch((function(e){if(404!==e.status)throw e}))}))}))}},K=function(e){return function(t,n,r){var a=n.map((function(e){return{action:"deleteEntry",body:{objectID:e}}}));return d(e.transporter.write({method:S,path:m("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},r),(function(t,n){return we(e)(t.taskID,n)}))}},X=function(e){return function(t,n){return e.transporter.read({method:w,path:m("1/keys/%s",t)},n)}},Z=function(e){return function(t,n){return e.transporter.read({method:w,path:m("1/task/%s",t.toString())},n)}},Q=function(e){return function(t){return e.transporter.read({method:w,path:"/1/dictionaries/*/settings"},t)}},J=function(e){return function(t){return e.transporter.read({method:w,path:"1/logs"},t)}},ee=function(e){return function(t){return e.transporter.read({method:w,path:"1/clusters/mapping/top"},t)}},te=function(e){return function(t,n){return e.transporter.read({method:w,path:m("1/clusters/mapping/%s",t)},n)}},ne=function(e){return function(t){var n=t||{},a=n.retrieveMappings,i=r(n,["retrieveMappings"]);return!0===a&&(i.getClusters=!0),e.transporter.read({method:w,path:"1/clusters/mapping/pending"},i)}},re=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},ae=function(e){return function(t){return e.transporter.read({method:w,path:"1/keys"},t)}},ie=function(e){return function(t){return e.transporter.read({method:w,path:"1/clusters"},t)}},oe=function(e){return function(t){return e.transporter.read({method:w,path:"1/indexes"},t)}},se=function(e){return function(t){return e.transporter.read({method:w,path:"1/clusters/mapping"},t)}},le=function(e){return function(t,n,r){return d(e.transporter.write({method:S,path:m("1/indexes/%s/operation",t),data:{operation:"move",destination:n}},r),(function(n,r){return re(e)(t,{methods:{waitTask:st}}).waitTask(n.taskID,r)}))}},ce=function(e){return function(t,n){return d(e.transporter.write({method:S,path:"1/indexes/*/batch",data:{requests:t}},n),(function(t,n){return Promise.all(Object.keys(t.taskID).map((function(r){return re(e)(r,{methods:{waitTask:st}}).waitTask(t.taskID[r],n)})))}))}},ue=function(e){return function(t,n){return e.transporter.read({method:S,path:"1/indexes/*/objects",data:{requests:t}},n)}},de=function(e){return function(t,r){var a=t.map((function(e){return n(n({},e),{},{params:N(e.params||{})})}));return e.transporter.read({method:S,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},r)}},pe=function(e){return function(t,a){return Promise.all(t.map((function(t){var i=t.params,o=i.facetName,s=i.facetQuery,l=r(i,["facetName","facetQuery"]);return re(e)(t.indexName,{methods:{searchForFacetValues:rt}}).searchForFacetValues(o,s,n(n({},a),l))})))}},fe=function(e){return function(t,n){var r=g(n);return r.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:E,path:"1/clusters/mapping"},r)}},me=function(e){return function(t,n,r){var a=n.map((function(e){return{action:"addEntry",body:e}}));return d(e.transporter.write({method:S,path:m("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:a}},r),(function(t,n){return we(e)(t.taskID,n)}))}},he=function(e){return function(t,n){return d(e.transporter.write({method:S,path:m("1/keys/%s/restore",t)},n),(function(n,r){return u((function(n){return X(e)(t,r).catch((function(e){if(404!==e.status)throw e;return n()}))}))}))}},ge=function(e){return function(t,n,r){var a=n.map((function(e){return{action:"addEntry",body:e}}));return d(e.transporter.write({method:S,path:m("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},r),(function(t,n){return we(e)(t.taskID,n)}))}},be=function(e){return function(t,n,r){return e.transporter.read({method:S,path:m("/1/dictionaries/%s/search",t),data:{query:n},cacheable:!0},r)}},ve=function(e){return function(t,n){return e.transporter.read({method:S,path:"1/clusters/mapping/search",data:{query:t}},n)}},ye=function(e){return function(t,n){return d(e.transporter.write({method:_,path:"/1/dictionaries/*/settings",data:t},n),(function(t,n){return we(e)(t.taskID,n)}))}},Ee=function(e){return function(t,n){var a=Object.assign({},n),i=n||{},o=i.queryParameters,s=r(i,["queryParameters"]),l=o?{queryParameters:o}:{},c=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return d(e.transporter.write({method:_,path:m("1/keys/%s",t),data:l},s),(function(n,r){return u((function(n){return X(e)(t,r).then((function(e){return function(e){return Object.keys(a).filter((function(e){return-1!==c.indexOf(e)})).every((function(t){return e[t]===a[t]}))}(e)?Promise.resolve():n()}))}))}))}},we=function(e){return function(t,n){return u((function(r){return Z(e)(t,n).then((function(e){return"published"!==e.status?r():void 0}))}))}},Se=function(e){return function(t,n){return d(e.transporter.write({method:S,path:m("1/indexes/%s/batch",e.indexName),data:{requests:t}},n),(function(t,n){return st(e)(t.taskID,n)}))}},_e=function(e){return function(t){return F(n(n({shouldStop:function(e){return void 0===e.cursor}},t),{},{request:function(n){return e.transporter.read({method:S,path:m("1/indexes/%s/browse",e.indexName),data:n},t)}}))}},xe=function(e){return function(t){var r=n({hitsPerPage:1e3},t);return F(n(n({shouldStop:function(e){return e.hits.length0&&void 0!==arguments[0]?arguments[0]:0;a=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()}))}()}},Be=function(e){return function(t,n){return e.transporter.read({method:w,path:m("1/indexes/%s/%s",e.indexName,t)},n)}},Ue=function(){return function(e,t){for(var n=0,r=Object.entries(e.hits);nn.OPENED&&void 0===r&&(clearTimeout(i),r=a(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:s({caches:[o({key:"".concat("4.13.0","-").concat(e)}),l()]}),userAgent:k("4.13.0").add({segment:"Browser"})},i=n(n({},a),r),u=function(){return function(e){return function(e){var t=e.region||"us",r=c(h.WithinHeaders,e.appId,e.apiKey),a=T(n(n({hosts:[{url:"personalization.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return f({appId:e.appId,transporter:a},e.methods)}(n(n(n({},a),e),{},{methods:{getPersonalizationStrategy:M,setPersonalizationStrategy:z}}))}};return function(e){var t=e.appId,r=c(void 0!==e.authMode?e.authMode:h.WithinHeaders,t,e.apiKey),a=T(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:b.Read},{url:"".concat(t,".algolia.net"),accept:b.Write}].concat(p([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return f({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)}(n(n({},i),{},{methods:{search:de,searchForFacetValues:pe,multipleBatch:ce,multipleGetObjects:ue,multipleQueries:de,copyIndex:$,copySettings:V,copySynonyms:W,copyRules:G,moveIndex:le,listIndices:oe,getLogs:J,listClusters:ie,multipleSearchForFacetValues:pe,getApiKey:X,addApiKey:B,listApiKeys:ae,updateApiKey:Ee,deleteApiKey:Y,restoreApiKey:he,assignUserID:U,assignUserIDs:j,getUserID:te,searchUserIDs:ve,listUserIDs:se,getTopUserIDs:ee,removeUserID:fe,hasPendingMappings:ne,clearDictionaryEntries:H,deleteDictionaryEntries:K,getDictionarySettings:Q,getAppTask:Z,replaceDictionaryEntries:me,saveDictionaryEntries:ge,searchDictionaryEntries:be,setDictionarySettings:ye,waitAppTask:we,customRequest:q,initIndex:function(e){return function(t){return re(e)(t,{methods:{batch:Se,delete:Ce,findAnswers:ze,getObject:Be,getObjects:je,saveObject:Xe,saveObjects:Ze,search:nt,searchForFacetValues:rt,waitTask:st,setSettings:ot,getSettings:$e,partialUpdateObject:Ve,partialUpdateObjects:We,deleteObject:Ie,deleteObjects:Pe,deleteBy:Re,clearObjects:Oe,browseObjects:_e,getObjectPosition:Ue,findObject:Fe,exists:Me,saveSynonym:et,saveSynonyms:tt,getSynonym:Ge,searchSynonyms:it,browseSynonyms:Te,deleteSynonym:De,clearSynonyms:Ae,replaceAllObjects:qe,replaceAllSynonyms:Ke,searchRules:at,getRule:He,deleteRule:Le,saveRule:Qe,saveRules:Je,replaceAllRules:Ye,browseRules:xe,clearRules:Ne}})}},initAnalytics:function(){return function(e){return function(e){var t=e.region||"us",r=c(h.WithinHeaders,e.appId,e.apiKey),a=T(n(n({hosts:[{url:"analytics.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return f({appId:e.appId,transporter:a},e.methods)}(n(n(n({},a),e),{},{methods:{addABTest:C,getABTest:P,getABTests:L,stopABTest:D,deleteABTest:I}}))}},initPersonalization:u,initRecommendation:function(){return function(e){return i.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),u()(e)}}}}))}return ut.version="4.13.0",ut}()},21335:function(){Prism.languages.httpClient=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],comment:[{pattern:/^#.*\b/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.httpClient["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("httpClient","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.httpClient},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.httpClient},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.httpClient},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.httpClient}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("httpClient","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.httpClient}},string:/[\s\S]+/}}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","httpClient"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"httpClient")),Prism.languages["http-client"]=Prism.languages.httpClient},35350:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],l=i[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;sc?c:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},25180:function(e){"use strict";e.exports=function(e){return function(t,n){if(!t)return e;var r;"string"==typeof t?r=t:n=t;var a=e;return r&&(a+="__"+r),a+(n?Object.keys(n).reduce((function(e,t){var r=n[t];return r&&(e+=" "+("boolean"==typeof r?a+"_"+t:a+"_"+t+"_"+r)),e}),""):"")}}},20234:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(2),i=n(1),o={ns:"",el:"__",mod:"_",modValue:"_",classMap:null},s=(0,a.assign)({},o);function l(e,t){var n=t.name,r=t.mods,a=t.mixes,i=t.states,o=[n];return r&&(o=o.concat(Object.keys(r).filter((function(e){return r[e]})).map((function(t){var a=r[t];return!0===a?n+e.mod+t:n+e.mod+t+e.modValue+a})))),i&&Object.keys(i).forEach((function(e){var t=i[e];o=o.concat(Object.keys(t).filter((function(e){return t[e]})).map((function(t){return e+t})))})),e.ns&&(o=o.map((function(t){return e.ns+t}))),a&&(o=o.concat(function(){return(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]).map((function(e){return"function"==typeof e?e.toString():Array.isArray(e)?e.join(" "):"string"==typeof e?e:""})).filter((function(e){return e}))}(a))),e.classMap&&(o=o.map((function(t){return e.classMap[t]||t}))),o.join(" ")}function c(e,t){for(var n=(0,a.assign)({},t),r=arguments.length,i=Array(r>2?r-2:0),o=2;o3?o-3:0),l=3;l1?e-1:0),n=1;no)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=s(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var a=function(e){if(l.isBuffer(e)){var t=0|m(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||H(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|m(e))}function p(e){for(var t=e.length<0?0:0|m(e.length),n=s(t),r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(a)return r?-1:F(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,a){var i,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;pa&&(r=a):r=a;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[a+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?l.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,a){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function N(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,8),a.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],a=1,i=0;++i>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);P(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>>=0,!r){var a=Math.pow(2,8*n-1);P(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}var $=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()},3736:function(e){e.exports=function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),en?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:i,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==i(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==i(e[t])?e[t].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},l={format:{},autodetect:[]},c=s.last,u=s.clip_rgb,d=s.type,p=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===d(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=c(e),a=!1;if(!r){a=!0,l.sorted||(l.autodetect=l.autodetect.sort((function(e,t){return t.p-e.p})),l.sorted=!0);for(var i=0,o=l.autodetect;i4?e[4]:1;return 1===i?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),a>=1?0:255*(1-a)*(1-i),o]},w=s.unpack,S=s.type;f.prototype.cmyk=function(){return v(this._rgb)},h.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["cmyk"])))},l.format.cmyk=E,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=w(e,"cmyk"),"array"===S(e)&&4===e.length)return"cmyk"}});var _=s.unpack,x=s.last,T=function(e){return Math.round(100*e)/100},k=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=_(e,"hsla"),r=x(e)||"lsa";return n[0]=T(n[0]||0),n[1]=T(100*n[1])+"%",n[2]=T(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},O=s.unpack,N=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=O(e,"rgba"))[0],r=e[1],a=e[2];n/=255,r/=255,a/=255;var i,o,s=Math.min(n,r,a),l=Math.max(n,r,a),c=(l+s)/2;return l===s?(i=0,o=Number.NaN):i=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?o=(r-a)/(l-s):r==l?o=2+(a-n)/(l-s):a==l&&(o=4+(n-r)/(l-s)),(o*=60)<0&&(o+=360),e.length>3&&void 0!==e[3]?[o,i,c,e[3]]:[o,i,c]},A=s.unpack,R=s.last,C=Math.round,I=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=A(e,"rgba"),r=R(e)||"rgb";return"hsl"==r.substr(0,3)?k(N(n),r):(n[0]=C(n[0]),n[1]=C(n[1]),n[2]=C(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},P=s.unpack,L=Math.round,D=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,a,i,o=(t=P(t,"hsl"))[0],s=t[1],l=t[2];if(0===s)r=a=i=255*l;else{var c=[0,0,0],u=[0,0,0],d=l<.5?l*(1+s):l+s-l*s,p=2*l-d,f=o/360;c[0]=f+1/3,c[1]=f,c[2]=f-1/3;for(var m=0;m<3;m++)c[m]<0&&(c[m]+=1),c[m]>1&&(c[m]-=1),6*c[m]<1?u[m]=p+6*(d-p)*c[m]:2*c[m]<1?u[m]=d:3*c[m]<2?u[m]=p+(d-p)*(2/3-c[m])*6:u[m]=p;r=(e=[L(255*u[0]),L(255*u[1]),L(255*u[2])])[0],a=e[1],i=e[2]}return t.length>3?[r,a,i,t[3]]:[r,a,i,1]},M=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,z=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,F=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,B=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,j=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,H=Math.round,$=function(e){var t;if(e=e.toLowerCase().trim(),l.format.named)try{return l.format.named(e)}catch(e){}if(t=e.match(M)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(z)){for(var a=t.slice(1,5),i=0;i<4;i++)a[i]=+a[i];return a}if(t=e.match(F)){for(var o=t.slice(1,4),s=0;s<3;s++)o[s]=H(2.55*o[s]);return o[3]=1,o}if(t=e.match(B)){for(var c=t.slice(1,5),u=0;u<3;u++)c[u]=H(2.55*c[u]);return c[3]=+c[3],c}if(t=e.match(U)){var d=t.slice(1,4);d[1]*=.01,d[2]*=.01;var p=D(d);return p[3]=1,p}if(t=e.match(j)){var f=t.slice(1,4);f[1]*=.01,f[2]*=.01;var m=D(f);return m[3]=+t[4],m}};$.test=function(e){return M.test(e)||z.test(e)||F.test(e)||B.test(e)||U.test(e)||j.test(e)};var G=$,V=s.type;f.prototype.css=function(e){return I(this._rgb,e)},h.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["css"])))},l.format.css=G,l.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===V(e)&&G.test(e))return"css"}});var W=s.unpack;l.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=W(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},h.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["gl"])))},f.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var q=s.unpack,Y=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=q(e,"rgb"),a=r[0],i=r[1],o=r[2],s=Math.min(a,i,o),l=Math.max(a,i,o),c=l-s,u=100*c/255,d=s/(255-c)*100;return 0===c?n=Number.NaN:(a===l&&(n=(i-o)/c),i===l&&(n=2+(o-a)/c),o===l&&(n=4+(a-i)/c),(n*=60)<0&&(n+=360)),[n,u,d]},K=s.unpack,X=Math.floor,Z=function(){for(var e,t,n,r,a,i,o=[],s=arguments.length;s--;)o[s]=arguments[s];var l,c,u,d=(o=K(o,"hcg"))[0],p=o[1],f=o[2];f*=255;var m=255*p;if(0===p)l=c=u=f;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var h=X(d/=60),g=d-h,b=f*(1-p),v=b+m*(1-g),y=b+m*g,E=b+m;switch(h){case 0:l=(e=[E,y,b])[0],c=e[1],u=e[2];break;case 1:l=(t=[v,E,b])[0],c=t[1],u=t[2];break;case 2:l=(n=[b,E,y])[0],c=n[1],u=n[2];break;case 3:l=(r=[b,v,E])[0],c=r[1],u=r[2];break;case 4:l=(a=[y,b,E])[0],c=a[1],u=a[2];break;case 5:l=(i=[E,b,v])[0],c=i[1],u=i[2]}}return[l,c,u,o.length>3?o[3]:1]},Q=s.unpack,J=s.type;f.prototype.hcg=function(){return Y(this._rgb)},h.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hcg"])))},l.format.hcg=Z,l.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Q(e,"hcg"),"array"===J(e)&&3===e.length)return"hcg"}});var ee=s.unpack,te=s.last,ne=Math.round,re=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ee(e,"rgba"),r=n[0],a=n[1],i=n[2],o=n[3],s=te(e)||"auto";void 0===o&&(o=1),"auto"===s&&(s=o<1?"rgba":"rgb");var l="000000"+((r=ne(r))<<16|(a=ne(a))<<8|(i=ne(i))).toString(16);l=l.substr(l.length-6);var c="0"+ne(255*o).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+l+c;case"argb":return"#"+c+l;default:return"#"+l}},ae=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ie=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,oe=function(e){if(e.match(ae)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ie)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},se=s.type;f.prototype.hex=function(e){return re(this._rgb,e)},h.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hex"])))},l.format.hex=oe,l.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===se(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var le=s.unpack,ce=s.TWOPI,ue=Math.min,de=Math.sqrt,pe=Math.acos,fe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=le(e,"rgb"),a=r[0],i=r[1],o=r[2],s=ue(a/=255,i/=255,o/=255),l=(a+i+o)/3,c=l>0?1-s/l:0;return 0===c?n=NaN:(n=(a-i+(a-o))/2,n/=de((a-i)*(a-i)+(a-o)*(i-o)),n=pe(n),o>i&&(n=ce-n),n/=ce),[360*n,c,l]},me=s.unpack,he=s.limit,ge=s.TWOPI,be=s.PITHIRD,ve=Math.cos,ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=me(e,"hsi"))[0],o=e[1],s=e[2];return isNaN(i)&&(i=0),isNaN(o)&&(o=0),i>360&&(i-=360),i<0&&(i+=360),(i/=360)<1/3?r=1-((a=(1-o)/3)+(n=(1+o*ve(ge*i)/ve(be-ge*i))/3)):i<2/3?a=1-((n=(1-o)/3)+(r=(1+o*ve(ge*(i-=1/3))/ve(be-ge*i))/3)):n=1-((r=(1-o)/3)+(a=(1+o*ve(ge*(i-=2/3))/ve(be-ge*i))/3)),[255*(n=he(s*n*3)),255*(r=he(s*r*3)),255*(a=he(s*a*3)),e.length>3?e[3]:1]},Ee=s.unpack,we=s.type;f.prototype.hsi=function(){return fe(this._rgb)},h.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hsi"])))},l.format.hsi=ye,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ee(e,"hsi"),"array"===we(e)&&3===e.length)return"hsi"}});var Se=s.unpack,_e=s.type;f.prototype.hsl=function(){return N(this._rgb)},h.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hsl"])))},l.format.hsl=D,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Se(e,"hsl"),"array"===_e(e)&&3===e.length)return"hsl"}});var xe=s.unpack,Te=Math.min,ke=Math.max,Oe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=xe(e,"rgb"))[0],o=e[1],s=e[2],l=Te(i,o,s),c=ke(i,o,s),u=c-l;return a=c/255,0===c?(n=Number.NaN,r=0):(r=u/c,i===c&&(n=(o-s)/u),o===c&&(n=2+(s-i)/u),s===c&&(n=4+(i-o)/u),(n*=60)<0&&(n+=360)),[n,r,a]},Ne=s.unpack,Ae=Math.floor,Re=function(){for(var e,t,n,r,a,i,o=[],s=arguments.length;s--;)o[s]=arguments[s];var l,c,u,d=(o=Ne(o,"hsv"))[0],p=o[1],f=o[2];if(f*=255,0===p)l=c=u=f;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var m=Ae(d/=60),h=d-m,g=f*(1-p),b=f*(1-p*h),v=f*(1-p*(1-h));switch(m){case 0:l=(e=[f,v,g])[0],c=e[1],u=e[2];break;case 1:l=(t=[b,f,g])[0],c=t[1],u=t[2];break;case 2:l=(n=[g,f,v])[0],c=n[1],u=n[2];break;case 3:l=(r=[g,b,f])[0],c=r[1],u=r[2];break;case 4:l=(a=[v,g,f])[0],c=a[1],u=a[2];break;case 5:l=(i=[f,g,b])[0],c=i[1],u=i[2]}}return[l,c,u,o.length>3?o[3]:1]},Ce=s.unpack,Ie=s.type;f.prototype.hsv=function(){return Oe(this._rgb)},h.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hsv"])))},l.format.hsv=Re,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ce(e,"hsv"),"array"===Ie(e)&&3===e.length)return"hsv"}});var Pe=18,Le=.95047,De=1,Me=1.08883,ze=.137931034,Fe=.206896552,Be=.12841855,Ue=.008856452,je=s.unpack,He=Math.pow,$e=function(e){return(e/=255)<=.04045?e/12.92:He((e+.055)/1.055,2.4)},Ge=function(e){return e>Ue?He(e,1/3):e/Be+ze},Ve=function(e,t,n){return e=$e(e),t=$e(t),n=$e(n),[Ge((.4124564*e+.3575761*t+.1804375*n)/Le),Ge((.2126729*e+.7151522*t+.072175*n)/De),Ge((.0193339*e+.119192*t+.9503041*n)/Me)]},We=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=je(e,"rgb"),r=n[0],a=n[1],i=n[2],o=Ve(r,a,i),s=o[0],l=o[1],c=116*l-16;return[c<0?0:c,500*(s-l),200*(l-o[2])]},qe=s.unpack,Ye=Math.pow,Ke=function(e){return 255*(e<=.00304?12.92*e:1.055*Ye(e,1/2.4)-.055)},Xe=function(e){return e>Fe?e*e*e:Be*(e-ze)},Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=qe(e,"lab"))[0],o=e[1],s=e[2];return r=(i+16)/116,n=isNaN(o)?r:r+o/500,a=isNaN(s)?r:r-s/200,r=De*Xe(r),n=Le*Xe(n),a=Me*Xe(a),[Ke(3.2404542*n-1.5371385*r-.4985314*a),Ke(-.969266*n+1.8760108*r+.041556*a),Ke(.0556434*n-.2040259*r+1.0572252*a),e.length>3?e[3]:1]},Qe=s.unpack,Je=s.type;f.prototype.lab=function(){return We(this._rgb)},h.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["lab"])))},l.format.lab=Ze,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Qe(e,"lab"),"array"===Je(e)&&3===e.length)return"lab"}});var et=s.unpack,tt=s.RAD2DEG,nt=Math.sqrt,rt=Math.atan2,at=Math.round,it=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=et(e,"lab"),r=n[0],a=n[1],i=n[2],o=nt(a*a+i*i),s=(rt(i,a)*tt+360)%360;return 0===at(1e4*o)&&(s=Number.NaN),[r,o,s]},ot=s.unpack,st=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ot(e,"rgb"),r=n[0],a=n[1],i=n[2],o=We(r,a,i),s=o[0],l=o[1],c=o[2];return it(s,l,c)},lt=s.unpack,ct=s.DEG2RAD,ut=Math.sin,dt=Math.cos,pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=lt(e,"lch"),r=n[0],a=n[1],i=n[2];return isNaN(i)&&(i=0),[r,dt(i*=ct)*a,ut(i)*a]},ft=s.unpack,mt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=ft(e,"lch"))[0],r=e[1],a=e[2],i=pt(n,r,a),o=i[0],s=i[1],l=i[2],c=Ze(o,s,l);return[c[0],c[1],c[2],e.length>3?e[3]:1]},ht=s.unpack,gt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ht(e,"hcl").reverse();return mt.apply(void 0,n)},bt=s.unpack,vt=s.type;f.prototype.lch=function(){return st(this._rgb)},f.prototype.hcl=function(){return st(this._rgb).reverse()},h.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["lch"])))},h.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["hcl"])))},l.format.lch=mt,l.format.hcl=gt,["lch","hcl"].forEach((function(e){return l.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=bt(t,e),"array"===vt(t)&&3===t.length)return e}})}));var yt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Et=s.type;f.prototype.name=function(){for(var e=re(this._rgb,"rgb"),t=0,n=Object.keys(yt);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===Et(e)&&yt[e.toLowerCase()])return"named"}});var wt=s.unpack,St=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=wt(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},_t=s.type,xt=s.type;f.prototype.num=function(){return St(this._rgb)},h.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["num"])))},l.format.num=function(e){if("number"==_t(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},l.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===xt(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var Tt=s.unpack,kt=s.type,Ot=Math.round;f.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Ot)},f.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:Ot(t):t}))},h.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["rgb"])))},l.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Tt(e,"rgba");return void 0===n[3]&&(n[3]=1),n},l.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Tt(e,"rgba"),"array"===kt(e)&&(3===e.length||4===e.length&&"number"==kt(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Nt=Math.log,At=function(e){var t,n,r,a=e/100;return a<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=a-2)+104.49216199393888*Nt(n),r=a<20?0:.8274096064007395*(r=a-10)-254.76935184120902+115.67994401066147*Nt(r)):(t=351.97690566805693+.114206453784165*(t=a-55)-40.25366309332127*Nt(t),n=325.4494125711974+.07943456536662342*(n=a-50)-28.0852963507957*Nt(n),r=255),[t,n,r,1]},Rt=s.unpack,Ct=Math.round,It=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=Rt(e,"rgb"),a=r[0],i=r[2],o=1e3,s=4e4;s-o>.4;){var l=At(n=.5*(s+o));l[2]/l[0]>=i/a?s=n:o=n}return Ct(n)};f.prototype.temp=f.prototype.kelvin=f.prototype.temperature=function(){return It(this._rgb)},h.temp=h.kelvin=h.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["temp"])))},l.format.temp=l.format.kelvin=l.format.temperature=At;var Pt=s.type;f.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Pt(e)?t?(this._rgb[3]=e,this):new f([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},f.prototype.clipped=function(){return this._rgb._clipped||!1},f.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=Pe*e,new f(t,"lab").alpha(this.alpha(),!0)},f.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},f.prototype.darker=f.prototype.darken,f.prototype.brighter=f.prototype.brighten,f.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],a=this[n]();if(r){var i=n.indexOf(r);if(i>-1)return a[i];throw new Error("unknown channel "+r+" in mode "+n)}return a};var Lt=s.type,Dt=Math.pow;f.prototype.luminance=function(e){if(void 0!==e&&"number"===Lt(e)){if(0===e)return new f([0,0,0,this._rgb[3]],"rgb");if(1===e)return new f([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,a){var i=t.interpolate(a,.5,"rgb"),o=i.luminance();return Math.abs(e-o)<1e-7||!n--?i:o>e?r(t,i):r(i,a)},a=(t>e?r(new f([0,0,0]),this):r(this,new f([255,255,255]))).rgb();return new f(a.concat([this._rgb[3]]))}return Mt.apply(void 0,this._rgb.slice(0,3))};var Mt=function(e,t,n){return.2126*(e=zt(e))+.7152*(t=zt(t))+.0722*zt(n)},zt=function(e){return(e/=255)<=.03928?e/12.92:Dt((e+.055)/1.055,2.4)},Ft={},Bt=s.type,Ut=function(e,t,n){void 0===n&&(n=.5);for(var r=[],a=arguments.length-3;a-- >0;)r[a]=arguments[a+3];var i=r[0]||"lrgb";if(Ft[i]||r.length||(i=Object.keys(Ft)[0]),!Ft[i])throw new Error("interpolation mode "+i+" is not defined");return"object"!==Bt(e)&&(e=new f(e)),"object"!==Bt(t)&&(t=new f(t)),Ft[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};f.prototype.mix=f.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ut.apply(void 0,[this,e,t].concat(n))},f.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new f([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},f.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=Pe*e,t[1]<0&&(t[1]=0),new f(t,"lch").alpha(this.alpha(),!0)},f.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var jt=s.type;f.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),a=r[0],i=r[1],o=this[a]();if(i){var s=a.indexOf(i);if(s>-1){if("string"==jt(t))switch(t.charAt(0)){case"+":case"-":o[s]+=+t;break;case"*":o[s]*=+t.substr(1);break;case"/":o[s]/=+t.substr(1);break;default:o[s]=+t}else{if("number"!==jt(t))throw new Error("unsupported value for Color.set");o[s]=t}var l=new f(o,a);return n?(this._rgb=l._rgb,this):l}throw new Error("unknown channel "+i+" in mode "+a)}return o};Ft.rgb=function(e,t,n){var r=e._rgb,a=t._rgb;return new f(r[0]+n*(a[0]-r[0]),r[1]+n*(a[1]-r[1]),r[2]+n*(a[2]-r[2]),"rgb")};var Ht=Math.sqrt,$t=Math.pow;Ft.lrgb=function(e,t,n){var r=e._rgb,a=r[0],i=r[1],o=r[2],s=t._rgb,l=s[0],c=s[1],u=s[2];return new f(Ht($t(a,2)*(1-n)+$t(l,2)*n),Ht($t(i,2)*(1-n)+$t(c,2)*n),Ht($t(o,2)*(1-n)+$t(u,2)*n),"rgb")};Ft.lab=function(e,t,n){var r=e.lab(),a=t.lab();return new f(r[0]+n*(a[0]-r[0]),r[1]+n*(a[1]-r[1]),r[2]+n*(a[2]-r[2]),"lab")};var Gt=function(e,t,n,r){var a,i,o,s,l,c,u,d,p,m,h,g;return"hsl"===r?(o=e.hsl(),s=t.hsl()):"hsv"===r?(o=e.hsv(),s=t.hsv()):"hcg"===r?(o=e.hcg(),s=t.hcg()):"hsi"===r?(o=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",o=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(l=(a=o)[0],u=a[1],p=a[2],c=(i=s)[0],d=i[1],m=i[2]),isNaN(l)||isNaN(c)?isNaN(l)?isNaN(c)?g=Number.NaN:(g=c,1!=p&&0!=p||"hsv"==r||(h=d)):(g=l,1!=m&&0!=m||"hsv"==r||(h=u)):g=l+n*(c>l&&c-l>180?c-(l+360):c180?c+360-l:c-l),void 0===h&&(h=u+n*(d-u)),new f([g,h,p+n*(m-p)],r)},Vt=function(e,t,n){return Gt(e,t,n,"lch")};Ft.lch=Vt,Ft.hcl=Vt;Ft.num=function(e,t,n){var r=e.num(),a=t.num();return new f(r+n*(a-r),"num")};Ft.hcg=function(e,t,n){return Gt(e,t,n,"hcg")};Ft.hsi=function(e,t,n){return Gt(e,t,n,"hsi")};Ft.hsl=function(e,t,n){return Gt(e,t,n,"hsl")};Ft.hsv=function(e,t,n){return Gt(e,t,n,"hsv")};var Wt=s.clip_rgb,qt=Math.pow,Yt=Math.sqrt,Kt=Math.PI,Xt=Math.cos,Zt=Math.sin,Qt=Math.atan2,Jt=function(e,t){for(var n=e.length,r=[0,0,0,0],a=0;a.9999999&&(r[3]=1),new f(Wt(r))},en=s.type,tn=Math.pow,nn=function(e){var t="rgb",n=h("#ccc"),r=0,a=[0,1],i=[],o=[0,0],s=!1,l=[],c=!1,u=0,d=1,p=!1,f={},m=!0,g=1,b=function(e){if((e=e||["#fff","#000"])&&"string"===en(e)&&h.brewer&&h.brewer[e.toLowerCase()]&&(e=h.brewer[e.toLowerCase()]),"array"===en(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=s){for(var t=s.length-1,n=0;n=s[n];)n++;return n-1}return 0}(e)/(s.length-2):d!==u?(e-u)/(d-u):1,c=y(c),r||(c=v(c)),1!==g&&(c=tn(c,g)),c=o[0]+c*(1-o[0]-o[1]),c=Math.min(1,Math.max(0,c));var p=Math.floor(1e4*c);if(m&&f[p])a=f[p];else{if("array"===en(l))for(var b=0;b=E&&b===i.length-1){a=l[b];break}if(c>E&&c2){var c=e.map((function(t,n){return n/(e.length-1)})),p=e.map((function(e){return(e-u)/(d-u)}));p.every((function(e,t){return c[t]===e}))||(y=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=p[t+1];)t++;var n=(e-p[t])/(p[t+1]-p[t]);return c[t]+n*(c[t+1]-c[t])})}}return a=[u,d],S},S.mode=function(e){return arguments.length?(t=e,w(),S):t},S.range=function(e,t){return b(e),S},S.out=function(e){return c=e,S},S.spread=function(e){return arguments.length?(r=e,S):r},S.correctLightness=function(e){return null==e&&(e=!0),p=e,w(),v=p?function(e){for(var t=E(0,!0).lab()[0],n=E(1,!0).lab()[0],r=t>n,a=E(e,!0).lab()[0],i=t+(n-t)*e,o=a-i,s=0,l=1,c=20;Math.abs(o)>.01&&c-- >0;)r&&(o*=-1),o<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),o=(a=E(e,!0).lab()[0])-i;return e}:function(e){return e},S},S.padding=function(e){return null!=e?("number"===en(e)&&(e=[e,e]),o=e,S):o},S.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[S(.5)];else if(t>1){var i=a[0],o=a[1]-i;r=function(e,t,n){for(var r=[],a=ei;a?o++:o--)r.push(o);return r}(0,t,!1).map((function(e){return S(i+e/(t-1)*o)}))}else{e=[];var c=[];if(s&&s.length>2)for(var u=1,d=s.length,p=1<=d;p?ud;p?u++:u--)c.push(.5*(s[u-1]+s[u]));else c=a;r=c.map((function(e){return S(e)}))}return h[n]&&(r=r.map((function(e){return e[n]()}))),r},S.cache=function(e){return null!=e?(m=e,S):m},S.gamma=function(e){return null!=e?(g=e,S):g},S.nodata=function(e){return null!=e?(n=h(e),S):n},S};var rn=function(e){var t,n,r,a,i,o,s;if(2===(e=e.map((function(e){return new f(e)}))).length)t=e.map((function(e){return e.lab()})),i=t[0],o=t[1],a=function(e){var t=[0,1,2].map((function(t){return i[t]+e*(o[t]-i[t])}));return new f(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),i=n[0],o=n[1],s=n[2],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*i[t]+2*(1-e)*e*o[t]+e*e*s[t]}));return new f(t,"lab")};else if(4===e.length){var l;r=e.map((function(e){return e.lab()})),i=r[0],o=r[1],s=r[2],l=r[3],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*i[t]+3*(1-e)*(1-e)*e*o[t]+3*(1-e)*e*e*s[t]+e*e*e*l[t]}));return new f(t,"lab")}}else if(5===e.length){var c=rn(e.slice(0,3)),u=rn(e.slice(2,5));a=function(e){return e<.5?c(2*e):u(2*(e-.5))}}return a},an=function(e,t,n){if(!an[n])throw new Error("unknown blend mode "+n);return an[n](e,t)},on=function(e){return function(t,n){var r=h(n).rgb(),a=h(t).rgb();return h.rgb(e(r,a))}},sn=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};an.normal=on(sn((function(e){return e}))),an.multiply=on(sn((function(e,t){return e*t/255}))),an.screen=on(sn((function(e,t){return 255*(1-(1-e/255)*(1-t/255))}))),an.overlay=on(sn((function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))}))),an.darken=on(sn((function(e,t){return e>t?t:e}))),an.lighten=on(sn((function(e,t){return e>t?e:t}))),an.dodge=on(sn((function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e}))),an.burn=on(sn((function(e,t){return 255*(1-(1-t/255)/(e/255))})));for(var ln=an,cn=s.type,un=s.clip_rgb,dn=s.TWOPI,pn=Math.pow,fn=Math.sin,mn=Math.cos,hn=Math.floor,gn=Math.random,bn=Math.log,vn=Math.pow,yn=Math.floor,En=Math.abs,wn=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===i(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===i(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return Sn(n,e,t)},n},Sn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==i(e)&&(e=wn(e));var r=e.min,a=e.max,o=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,a];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(a)),"e"===t.substr(0,1)){s.push(r);for(var l=1;l 0");var c=Math.LOG10E*bn(r),u=Math.LOG10E*bn(a);s.push(r);for(var d=1;d200&&(E=!1)}for(var M={},z=0;z=360;)h-=360;o[m]=h}else o[m]=o[m]/s[m];return p/=r,new f(o,t).alpha(p>.99999?1:p,!0)},h.bezier=function(e){var t=rn(e);return t.scale=function(){return nn(t)},t},h.blend=ln,h.cubehelix=function(e,t,n,r,a){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===a&&(a=[0,1]);var i,o=0;"array"===cn(a)?i=a[1]-a[0]:(i=0,a=[a,a]);var s=function(s){var l=dn*((e+120)/360+t*s),c=pn(a[0]+i*s,r),u=(0!==o?n[0]+s*o:n)*c*(1-c)/2,d=mn(l),p=fn(l);return h(un([255*(c+u*(-.14861*d+1.78277*p)),255*(c+u*(-.29227*d-.90649*p)),255*(c+u*(1.97294*d)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===cn(n=e)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,s)},s.lightness=function(e){return null==e?a:("array"===cn(e)?(a=e,i=e[1]-e[0]):(a=[e,e],i=0),s)},s.scale=function(){return h.scale(s)},s.hue(n),s},h.mix=h.interpolate=Ut,h.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(hn(16*gn()));return new f(e,"hex")},h.scale=nn,h.analyze=_n.analyze,h.contrast=function(e,t){e=new f(e),t=new f(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},h.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new f(e),t=new f(t);for(var a=Array.from(e.lab()),i=a[0],o=a[1],s=a[2],l=Array.from(t.lab()),c=l[0],u=l[1],d=l[2],p=xn(o*o+s*s),m=xn(u*u+d*d),h=i<16?.511:.040975*i/(1+.01765*i),g=.0638*p/(1+.0131*p)+.638,b=p<1e-6?0:180*Tn(s,o)/Nn;b<0;)b+=360;for(;b>=360;)b-=360;var v=b>=164&&b<=345?.56+kn(.2*On(Nn*(b+168)/180)):.36+kn(.4*On(Nn*(b+35)/180)),y=p*p*p*p,E=xn(y/(y+1900)),w=g*(E*v+1-E),S=p-m,_=o-u,x=s-d,T=(i-c)/(n*h),k=S/(r*g);return xn(T*T+k*k+(_*_+x*x-S*S)/(w*w))},h.distance=function(e,t,n){void 0===n&&(n="lab"),e=new f(e),t=new f(t);var r=e.get(n),a=t.get(n),i=0;for(var o in r){var s=(r[o]||0)-(a[o]||0);i+=s*s}return Math.sqrt(i)},h.limits=_n.limits,h.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(f,[null].concat(e))),!0}catch(e){return!1}},h.scales=An,h.colors=yt,h.brewer=Ln,h}()},42949:function(){"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],a=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[n].indexOf||function(e){for(var t=0,n=this.length;t0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}],n&&u(t.prototype,n),e}(),p=d;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="proxy.php?url=https%3A%2F%2Fdev-docs.m8test.com%2Ffunction"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return b("action",e)}},{key:"defaultTarget",value:function(e){var t=b("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return b("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],r=[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&m(t.prototype,n),r&&m(t,r),l}(a()),y=v},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function a(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function i(e,t,n,a){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&a.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),a=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return a(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function a(){r.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;rp){o=e.lastIndexOf(";",s-1)+1;continue}var f=l(e,o,s),m=c(e,s,f),h=e.slice(f,m);if(!r.call(n,h)){var g=l(e,s+1,p),b=c(e,p,g);34===e.charCodeAt(g)&&34===e.charCodeAt(b-1)&&(g++,b--);var v=e.slice(g,b);n[h]=d(v,i)}o=p+1}while(on;){var r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return n}function u(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function d(e,t){try{return t(e)}catch(t){return e}}},24758:function(e,t,n){n(5238),e.exports=n(54446).Object.assign},6903:function(e,t,n){n(87383);var r=n(54446).Object;e.exports=function(e,t){return r.create(e,t)}},91552:function(e,t,n){n(18240);var r=n(54446).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},26190:function(e,t,n){n(64562),e.exports=n(54446).Object.getOwnPropertySymbols},77112:function(e,t,n){n(75768),e.exports=n(54446).Object.getPrototypeOf},77540:function(e,t,n){n(59844),e.exports=n(54446).Object.setPrototypeOf},87112:function(e,t,n){n(18698),e.exports=n(54446).Reflect.construct},89208:function(e,t,n){n(64562),n(9402),n(76772),n(97460),e.exports=n(54446).Symbol},39700:function(e,t,n){n(28367),n(22242),e.exports=n(43560).f("iterator")},53799:function(e,t,n){e.exports=n(43560).f("toPrimitive")},97035:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},87432:function(e){e.exports=function(){}},40916:function(e,t,n){var r=n(72441);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},68616:function(e,t,n){var r=n(24405),a=n(17693),i=n(20509);e.exports=function(e){return function(t,n,o){var s,l=r(t),c=a(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},50882:function(e,t,n){"use strict";var r=n(97035),a=n(72441),i=n(4637),o=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),l=function(){var r=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var r=[],a=0;ac;)l.call(e,o=s[c++])&&t.push(o);return t}},78255:function(e,t,n){var r=n(86838),a=n(54446),i=n(62364),o=n(93805),s=n(37837),l="prototype",c=function(e,t,n){var u,d,p,f=e&c.F,m=e&c.G,h=e&c.S,g=e&c.P,b=e&c.B,v=e&c.W,y=m?a:a[t]||(a[t]={}),E=y[l],w=m?r:h?r[t]:(r[t]||{})[l];for(u in m&&(n=t),n)(d=!f&&w&&void 0!==w[u])&&s(y,u)||(p=d?w[u]:n[u],y[u]=m&&"function"!=typeof w[u]?n[u]:b&&d?i(p,r):v&&w[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):g&&"function"==typeof p?i(Function.call,p):p,g&&((y.virtual||(y.virtual={}))[u]=p,e&c.R&&E&&!E[u]&&o(E,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},27016:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},86838:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},37837:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},93805:function(e,t,n){var r=n(22703),a=n(55468);e.exports=n(18867)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},22412:function(e,t,n){var r=n(86838).document;e.exports=r&&r.documentElement},34684:function(e,t,n){e.exports=!n(18867)&&!n(27016)((function(){return 7!=Object.defineProperty(n(51810)("div"),"a",{get:function(){return 7}}).a}))},4637:function(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},18193:function(e,t,n){var r=n(50401);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},24045:function(e,t,n){var r=n(50401);e.exports=Array.isArray||function(e){return"Array"==r(e)}},72441:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},99296:function(e,t,n){"use strict";var r=n(21356),a=n(55468),i=n(84276),o={};n(93805)(o,n(32262)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},81679:function(e,t,n){"use strict";var r=n(60494),a=n(78255),i=n(2475),o=n(93805),s=n(59066),l=n(99296),c=n(84276),u=n(62787),d=n(32262)("iterator"),p=!([].keys&&"next"in[].keys()),f="keys",m="values",h=function(){return this};e.exports=function(e,t,n,g,b,v,y){l(n,t,g);var E,w,S,_=function(e){if(!p&&e in O)return O[e];switch(e){case f:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",T=b==m,k=!1,O=e.prototype,N=O[d]||O["@@iterator"]||b&&O[b],A=N||_(b),R=b?T?_("entries"):A:void 0,C="Array"==t&&O.entries||N;if(C&&(S=u(C.call(new e)))!==Object.prototype&&S.next&&(c(S,x,!0),r||"function"==typeof S[d]||o(S,d,h)),T&&N&&N.name!==m&&(k=!0,A=function(){return N.call(this)}),r&&!y||!p&&!k&&O[d]||o(O,d,A),s[t]=A,s[x]=h,b)if(E={values:T?A:_(m),keys:v?A:_(f),entries:R},y)for(w in E)w in O||i(O,w,E[w]);else a(a.P+a.F*(p||k),t,E);return E}},84554:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},59066:function(e){e.exports={}},60494:function(e){e.exports=!0},16844:function(e,t,n){var r=n(33935)("meta"),a=n(72441),i=n(37837),o=n(22703).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(27016)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},6430:function(e,t,n){"use strict";var r=n(18867),a=n(98975),i=n(14292),o=n(69681),s=n(55406),l=n(18193),c=Object.assign;e.exports=!c||n(27016)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=i.f,p=o.f;c>u;)for(var f,m=l(arguments[u++]),h=d?a(m).concat(d(m)):a(m),g=h.length,b=0;g>b;)f=h[b++],r&&!p.call(m,f)||(n[f]=m[f]);return n}:c},21356:function(e,t,n){var r=n(40916),a=n(14058),i=n(59564),o=n(33006)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(51810)("iframe"),r=i.length;for(t.style.display="none",n(22412).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("