mirror of https://github.com/hashicorp/consul
2524 lines
1.2 MiB
JavaScript
2524 lines
1.2 MiB
JavaScript
|
/*! For license information please see chunk.924.719761ac5e77d019056f.js.LICENSE.txt */
|
|||
|
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[924],{2654:e=>{e.exports='<svg width="0" height="0" class="flight-sprite-container" aria-hidden="true"><defs><linearGradient id="amazon-ecs-color-24__paint0_linear_1587_73" x1="13.489" x2="2.176" y1="7" y2="12.37" gradientUnits="userSpaceOnUse"><stop offset=".261" stop-color="#F7981D"/><stop offset=".697" stop-color="#F37731"/><stop offset="1" stop-color="#F1623E"/></linearGradient><linearGradient id="amazon-ecs-color-24__paint1_linear_1587_73" x1="13.489" x2="2.176" y1="7" y2="12.37" gradientUnits="userSpaceOnUse"><stop offset=".261" stop-color="#F7981D"/><stop offset=".697" stop-color="#F37731"/><stop offset="1" stop-color="#F1623E"/></linearGradient><linearGradient id="amazon-ecs-color-16__paint0_linear_1587_77" x1="9.248" x2=".634" y1="3.807" y2="7.896" gradientUnits="userSpaceOnUse"><stop offset=".261" stop-color="#F7981D"/><stop offset=".697" stop-color="#F37731"/><stop offset="1" stop-color="#F1623E"/></linearGradient><linearGradient id="amazon-ecs-color-16__paint1_linear_1587_77" x1="9.248" x2=".634" y1="3.807" y2="7.896" gradientUnits="userSpaceOnUse"><stop offset=".261" stop-color="#F7981D"/><stop offset=".697" stop-color="#F37731"/><stop offset="1" stop-color="#F1623E"/></linearGradient><linearGradient id="amazon-eks-color-24__paint0_linear_879_136" x1="15.383" x2="12.246" y1="14.57" y2="7.514" gradientUnits="userSpaceOnUse"><stop stop-color="#426DDB"/><stop offset="1" stop-color="#3B4BDB"/></linearGradient><linearGradient id="amazon-eks-color-24__paint1_linear_879_136" x1="22.99" x2="13.995" y1="15.694" y2=".202" gradientUnits="userSpaceOnUse"><stop stop-color="#426DDB"/><stop offset="1" stop-color="#3B4BDB"/></linearGradient><linearGradient id="amazon-eks-color-24__paint2_linear_879_136" x1="14.046" x2="4.239" y1="22.021" y2="4.702" gradientUnits="userSpaceOnUse"><stop stop-color="#2775FF"/><stop offset="1" stop-color="#188DFF"/></linearGradient><linearGradient id="amazon-eks-color-16__paint0_linear_879_141" x1="10.691" x2="8.521" y1="9.879" y2="4.634" gradientUnits="userSpaceOnUse"><stop stop-color="#426DDB"/><stop offset="1" stop-color="#3B4BDB"/></linearGradient><linearGradient id="amazon-eks-color-16__paint1_linear_879_141" x1="15.693" x2="9.546" y1="10.544" y2="-.213" gradientUnits="userSpaceOnUse"><stop stop-color="#426DDB"/><stop offset="1" stop-color="#3B4BDB"/></linearGradient><linearGradient id="amazon-eks-color-16__paint2_linear_879_141" x1="9.433" x2="2.732" y1="14.904" y2="2.88" gradientUnits="userSpaceOnUse"><stop stop-color="#2775FF"/><stop offset="1" stop-color="#188DFF"/></linearGradient><linearGradient id="azure-aks-color-24__paint0_linear_2372_167" x1="5.267" x2="11.633" y1="5.8" y2="5.8" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint1_linear_2372_167" x1="12.145" x2="18.5" y1="5.856" y2="5.856" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint2_linear_2372_167" x1="2.011" x2="8.367" y1="11.778" y2="11.778" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint3_linear_2372_167" x1="8.867" x2="15.222" y1="11.733" y2="11.733" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint4_linear_2372_167" x1="15.722" x2="22.089" y1="11.789" y2="11.789" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint5_linear_2372_167" x1="5.189" x2="11.556" y1="17.822" y2="17.822" gradientUnits="userSpaceOnUse"><stop stop-color="#B77AF4"/><stop offset="1" stop-color="#773ADC"/></linearGradient><linearGradient id="azure-aks-color-24__paint6_linear_2372_167" x1="12.056" x2="18.422
|
|||
|
a.r(t),a.d(t,{iconNames:()=>l})
|
|||
|
const l=["loading","loading-static","running","running-static","apple","apple-color","alibaba","alibaba-color","amazon-ecs","amazon-ecs-color","amazon-eks","amazon-eks-color","auth0","auth0-color","aws","aws-color","aws-cdk","aws-cdk-color","aws-cloudwatch","aws-cloudwatch-color","aws-ec2","aws-ec2-color","aws-lambda","aws-lambda-color","aws-s3","aws-s3-color","azure","azure-color","azure-aks","azure-aks-color","azure-blob-storage","azure-blob-storage-color","azure-devops","azure-devops-color","azure-vms","azure-vms-color","bitbucket","bitbucket-color","bridgecrew","bridgecrew-color","cisco","cisco-color","codepen","codepen-color","datadog","datadog-color","digital-ocean","digital-ocean-color","docker","docker-color","elastic-observability","elastic-observability-color","f5","f5-color","facebook","facebook-color","figma","figma-color","gcp","gcp-color","gitlab","gitlab-color","github","github-color","google","google-color","google-docs","google-docs-color","google-drive","google-drive-color","google-forms","google-forms-color","google-sheets","google-sheets-color","google-slides","google-slides-color","grafana","grafana-color","helm","helm-color","infracost","infracost-color","jfrog","jfrog-color","jira","jira-color","kubernetes","kubernetes-color","lightlytics","lightlytics-color","linkedin","linkedin-color","linode","linode-color","linux","linux-color","loom","loom-color","microsoft","microsoft-color","microsoft-teams","microsoft-teams-color","new-relic","new-relic-color","okta","okta-color","oracle","oracle-color","opa","opa-color","pack","pack-color","saml","saml-color","slack","slack-color","snyk","snyk-color","splunk","splunk-color","twitch","twitch-color","twitter","twitter-color","twitter-x","twitter-x-color","vantage","vantage-color","venafi","venafi-color","vercel","vercel-color","vmware","vmware-color","youtube","youtube-color","boundary","boundary-color","consul","consul-color","nomad","nomad-color","packer","packer-color","terraform","terraform-color","vagrant","vagrant-color","vault","vault-color","vault-secrets","vault-secrets-color","waypoint","waypoint-color","hashicorp","hashicorp-color","hcp","hcp-color","activity","alert-circle","alert-circle-fill","alert-diamond","alert-diamond-fill","alert-triangle","alert-triangle-fill","alert-octagon","alert-octagon-fill","align-center","align-justify","align-left","align-right","ampersand","api","archive","arrow-down","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-left","arrow-left-circle","arrow-right","arrow-right-circle","arrow-up","arrow-up-circle","arrow-up-left","arrow-up-right","at-sign","award","auto-apply","bank-vault","bar-chart","bar-chart-alt","battery","battery-charging","beaker","bell","bell-active-fill","bell-active","bell-off","bookmark","bookmark-fill","bookmark-add","bookmark-add-fill","bookmark-remove","bookmark-remove-fill","bottom","box","briefcase","bug","build","bulb","calendar","camera","camera-off","caret","cast","certificate","change","change-circle","change-square","check","check-circle","check-circle-fill","check-diamond","check-diamond-fill","check-hexagon","check-hexagon-fill","check-square","check-square-fill","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up","circle","circle-dot","circle-fill","circle-half","clipboard","clipboard-checked","clipboard-copy","clipboard-x","clock","clock-filled","cloud","closed-caption","cloud-check","cloud-download","cloud-lightning","cloud-lock","cloud-off","cloud-upload","cloud-x","code","collections","command","compass","connection","connection-gateway","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","crop","crosshair","dashboard","database","delay","delete","diamond","diamond-fill","disc","discussion-circle","discussion-square","docs","docs-download","docs-link","dollar-sign","dot","dot-half","download","droplet","duplicate","edit","enterprise","entry-point","exit-point","external-link","eve
|
|||
|
function l(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n}var i
|
|||
|
a.r(t),a.d(t,{InterpreterStatus:()=>i,assign:()=>r,createMachine:()=>f,interpret:()=>p}),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(i||(i={}))
|
|||
|
var o={type:"xstate.init"}
|
|||
|
function n(e){return void 0===e?[]:[].concat(e)}function r(e){return{type:"xstate.assign",assignment:e}}function c(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function h(e){return function(t){return e===t}}function s(e){return"string"==typeof e?{type:e}:e}function d(e,t){return{value:e,context:t,actions:[],changed:!1,matches:h(e)}}function u(e,t,a){var l=t,i=!1
|
|||
|
return[e.filter((function(e){if("xstate.assign"===e.type){i=!0
|
|||
|
var t=Object.assign({},l)
|
|||
|
return"function"==typeof e.assignment?t=e.assignment(l,a):Object.keys(e.assignment).forEach((function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](l,a):e.assignment[i]})),l=t,!1}return!0})),l,i]}function f(e,t){void 0===t&&(t={})
|
|||
|
var a=l(u(n(e.states[e.initial].entry).map((function(e){return c(e,t.actions)})),e.context,o),2),i=a[0],r=a[1],f={config:e,_options:t,initialState:{value:e.initial,actions:i,context:r,matches:h(e.initial)},transition:function(t,a){var i,o,r="string"==typeof t?{value:t,context:e.context}:t,v=r.value,p=r.context,m=s(a),y=e.states[v]
|
|||
|
if(y.on){var g=n(y.on[m.type])
|
|||
|
try{for(var b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],l=0
|
|||
|
if(a)return a.call(e)
|
|||
|
if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}}
|
|||
|
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),z=b.next();!z.done;z=b.next()){var M=z.value
|
|||
|
if(void 0===M)return d(v,p)
|
|||
|
var A="string"==typeof M?{target:M}:M,w=A.target,x=A.actions,H=void 0===x?[]:x,V=A.cond,_=void 0===V?function(){return!0}:V,B=void 0===w,L=null!=w?w:v,C=e.states[L]
|
|||
|
if(_(p,m)){var E=l(u((B?n(H):[].concat(y.exit,H,C.entry).filter((function(e){return e}))).map((function(e){return c(e,f._options.actions)})),p,m),3),k=E[0],D=E[1],S=E[2],F=null!=w?w:v
|
|||
|
return{value:F,context:D,actions:k,changed:w!==v||k.length>0||S,matches:h(F)}}}}catch(e){i={error:e}}finally{try{z&&!z.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}return d(v,p)}}
|
|||
|
return f}var v=function(e,t){return e.actions.forEach((function(a){var l=a.exec
|
|||
|
return l&&l(e.context,t)}))}
|
|||
|
function p(e){var t=e.initialState,a=i.NotStarted,l=new Set,n={_machine:e,send:function(o){a===i.Running&&(t=e.transition(t,o),v(t,s(o)),l.forEach((function(e){return e(t)})))},subscribe:function(e){return l.add(e),e(t),{unsubscribe:function(){return l.delete(e)}}},start:function(l){if(l){var r="object"==typeof l?l:{context:e.config.context,value:l}
|
|||
|
t={value:r.value,actions:[],context:r.context,matches:h(r.value)}}return a=i.Running,v(t,o),n},stop:function(){return a=i.Stopped,l.clear(),n},get state(){return t},get status(){return a}}
|
|||
|
return n}},1413:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>s})
|
|||
|
var l=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"]):checked','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])']
|
|||
|
function i(e,t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this._previouslyFocused=null,this.container=e,this.dialog=e.querySelector('dialog, [role="dialog"], [role="alertdialog"]'),this.role=this.dialog.getAttribute("role")||"dialog",this.useDialog="show"in this.dialog,this._listeners={},this.create(t)}function o(e){return Array.prototype.slice.call(e)}function n(e,t){return o((t||document).querySelectorAll(e))}function r(e){var t=c(e),a=e.querySelector("[autofocus]")||t[0]
|
|||
|
a&&a.focus()}function c(e){return n(l.join(","),e).filter((function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}))}function h(){n("[data-a11y-dialog]").forEach((function(e){new i(e,e.getAttribute("data-a11y-dialog")||void 0)}))}i.prototype.create=function(e){var t,a,l
|
|||
|
return this._targets=this._targets||(l=e,NodeList.prototype.isPrototypeOf(l)?o(l):Element.prototype.isPrototypeOf(l)?[l]:"string"==typeof l?n(l):void 0)||((a=o((t=this.container).parentNode.childNodes).filter((function(e){return 1===e.nodeType}))).splice(a.indexOf(t),1),a),this.shown=this.dialog.hasAttribute("open"),this.dialog.setAttribute("role",this.role),this.useDialog?(this.container.setAttribute("data-a11y-dialog-native",""),this.container.removeAttribute("aria-hidden")):this.shown?this.container.removeAttribute("aria-hidden"):this.container.setAttribute("aria-hidden",!0),this._openers=n('[data-a11y-dialog-show="'+this.container.id+'"]'),this._openers.forEach(function(e){e.addEventListener("click",this._show)}.bind(this)),this._closers=n("[data-a11y-dialog-hide]",this.container).concat(n('[data-a11y-dialog-hide="'+this.container.id+'"]')),this._closers.forEach(function(e){e.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},i.prototype.show=function(e){return this.shown||(this.shown=!0,this._previouslyFocused=document.activeElement,this.useDialog?this.dialog.showModal(e instanceof Event?void 0:e):(this.dialog.setAttribute("open",""),this.container.removeAttribute("aria-hidden"),this._targets.forEach((function(e){e.hasAttribute("aria-hidden")&&e.setAttribute("data-a11y-dialog-original-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true")}))),r(this.dialog),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e)),this},i.prototype.hide=function(e){return this.shown?(this.shown=!1,this.useDialog?this.dialog.close(e instanceof Event?void 0:e):(this.dialog.removeAttribute("open"),this.container.setAttribute("aria-hidden","true"),this._targets.forEach((function(e){e.hasAttribute("data-a11y-dialog-original-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-a11y-dialog-original-aria-hidden")),e.removeAttribute("data-a11y-dialog-original-aria-hidden")):e.removeAttribute("aria-hidden")}))),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},i.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(e){e.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(e){e.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},i.prototype.on=function(e,t){return void 0===this._listeners[e]&&(this._listeners[e]=[]),this._listeners[e].push(t),this},i.prototype.off=function(e,t){var a=(this._listeners[e]||[]).indexOf(t)
|
|||
|
return a>-1&&this._listeners[e].splice(a,1),this},i.prototype._fire=function(e,t){(this._listeners[e]||[]).forEach(function(e){e(this.container,t)}.bind(this))},i.prototype._bindKeypress=function(e){this.dialog.contains(document.activeElement)&&(this.shown&&27===e.which&&"alertdialog"!==this.role&&(e.preventDefault(),this.hide(e)),this.shown&&9===e.which&&function(e,t){var a=c(e),l=a.indexOf(document.activeElement)
|
|||
|
t.shiftKey&&0===l?(a[a.length-1].focus(),t.preventDefault()):t.shiftKey||l!==a.length-1||(a[0].focus(),t.preventDefault())}(this.dialog,e))},i.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('dialog, [role="dialog"], [role="alertdialog"]')&&r(this.container)},"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16))
|
|||
|
const s=i},8294:(e,t)=>{"use strict"
|
|||
|
t.byteLength=function(e){var t=c(e),a=t[0],l=t[1]
|
|||
|
return 3*(a+l)/4-l},t.toByteArray=function(e){var t,a,o=c(e),n=o[0],r=o[1],h=new i(function(e,t,a){return 3*(t+a)/4-a}(0,n,r)),s=0,d=r>0?n-4:n
|
|||
|
for(a=0;a<d;a+=4)t=l[e.charCodeAt(a)]<<18|l[e.charCodeAt(a+1)]<<12|l[e.charCodeAt(a+2)]<<6|l[e.charCodeAt(a+3)],h[s++]=t>>16&255,h[s++]=t>>8&255,h[s++]=255&t
|
|||
|
return 2===r&&(t=l[e.charCodeAt(a)]<<2|l[e.charCodeAt(a+1)]>>4,h[s++]=255&t),1===r&&(t=l[e.charCodeAt(a)]<<10|l[e.charCodeAt(a+1)]<<4|l[e.charCodeAt(a+2)]>>2,h[s++]=t>>8&255,h[s++]=255&t),h},t.fromByteArray=function(e){for(var t,l=e.length,i=l%3,o=[],n=16383,r=0,c=l-i;r<c;r+=n)o.push(h(e,r,r+n>c?c:r+n))
|
|||
|
return 1===i?(t=e[l-1],o.push(a[t>>2]+a[t<<4&63]+"==")):2===i&&(t=(e[l-2]<<8)+e[l-1],o.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),o.join("")}
|
|||
|
for(var a=[],l=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,r=o.length;n<r;++n)a[n]=o[n],l[o.charCodeAt(n)]=n
|
|||
|
function c(e){var t=e.length
|
|||
|
if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
|
|||
|
var a=e.indexOf("=")
|
|||
|
return-1===a&&(a=t),[a,a===t?0:4-a%4]}function h(e,t,l){for(var i,o,n=[],r=t;r<l;r+=3)i=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),n.push(a[(o=i)>>18&63]+a[o>>12&63]+a[o>>6&63]+a[63&o])
|
|||
|
return n.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},9079:function(e){var t
|
|||
|
t=function(){return function(){var e={686:function(e,t,a){"use strict"
|
|||
|
a.d(t,{default:function(){return z}})
|
|||
|
var l=a(279),i=a.n(l),o=a(370),n=a.n(o),r=a(817),c=a.n(r)
|
|||
|
function h(e){try{return document.execCommand(e)}catch(e){return!1}}var s=function(e){var t=c()(e)
|
|||
|
return h("cut"),t},d=function(e,t){var a=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),a=document.createElement("textarea")
|
|||
|
a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[t?"right":"left"]="-9999px"
|
|||
|
var l=window.pageYOffset||document.documentElement.scrollTop
|
|||
|
return a.style.top="".concat(l,"px"),a.setAttribute("readonly",""),a.value=e,a}(e)
|
|||
|
t.container.appendChild(a)
|
|||
|
var l=c()(a)
|
|||
|
return h("copy"),a.remove(),l},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},a=""
|
|||
|
return"string"==typeof e?a=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?a=d(e.value,t):(a=c()(e),h("copy")),a}
|
|||
|
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 v(e){return v="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},v(e)}function p(e,t){for(var a=0;a<t.length;a++){var l=t[a]
|
|||
|
l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,t){var a="data-clipboard-".concat(e)
|
|||
|
if(t.hasAttribute(a))return t.getAttribute(a)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
|
|||
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e)
|
|||
|
var t,a,l,i,o,r=(i=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
|
|||
|
if(Reflect.construct.sham)return!1
|
|||
|
if("function"==typeof Proxy)return!0
|
|||
|
try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t,a=y(i)
|
|||
|
if(o){var l=y(this).constructor
|
|||
|
e=Reflect.construct(a,arguments,l)}else e=a.apply(this,arguments)
|
|||
|
return!(t=e)||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
|
|||
|
return e}(this):t})
|
|||
|
function c(e,t){var a
|
|||
|
return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(a=r.call(this)).resolveOptions(t),a.listenClick(e),a}return t=c,a=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|||
|
this.action="function"==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"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this
|
|||
|
this.listener=n()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,a=this.action(t)||"copy",l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,a=void 0===t?"copy":t,l=e.container,i=e.target,o=e.text
|
|||
|
if("copy"!==a&&"cut"!==a)throw new Error('Invalid "action" value, use either "copy" or "cut"')
|
|||
|
if(void 0!==i){if(!i||"object"!==f(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element')
|
|||
|
if("copy"===a&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute')
|
|||
|
if("cut"===a&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?u(o,{container:l}):i?"cut"===a?s(i):u(i,{container:l}):void 0}({action:a,container:this.container,target:this.target(t),text:this.text(t)})
|
|||
|
this.emit(l?"success":"error",{action:a,text:l,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e)
|
|||
|
if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],l=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body}
|
|||
|
return u(e,t)}},{key:"cut",value:function(e){return s(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,a=!!document.queryCommandSupported
|
|||
|
return t.forEach((function(e){a=a&&!!document.queryCommandSupported(e)})),a}}],a&&p(t.prototype,a),l&&p(t,l),c}(i()),z=b},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,a){var l=a(828)
|
|||
|
function i(e,t,a,l,i){var n=o.apply(this,arguments)
|
|||
|
return e.addEventListener(a,n,i),{destroy:function(){e.removeEventListener(a,n,i)}}}function o(e,t,a,i){return function(a){a.delegateTarget=l(a.target,t),a.delegateTarget&&i.call(e,a)}}e.exports=function(e,t,a,l,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof a?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,a,l,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var a=Object.prototype.toString.call(e)
|
|||
|
return void 0!==e&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"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,a){var l=a(879),i=a(438)
|
|||
|
e.exports=function(e,t,a){if(!e&&!t&&!a)throw new Error("Missing required arguments")
|
|||
|
if(!l.string(t))throw new TypeError("Second argument must be a String")
|
|||
|
if(!l.fn(a))throw new TypeError("Third argument must be a Function")
|
|||
|
if(l.node(e))return function(e,t,a){return e.addEventListener(t,a),{destroy:function(){e.removeEventListener(t,a)}}}(e,t,a)
|
|||
|
if(l.nodeList(e))return function(e,t,a){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,a)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,a)}))}}}(e,t,a)
|
|||
|
if(l.string(e))return function(e,t,a){return i(document.body,e,t,a)}(e,t,a)
|
|||
|
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 a=e.hasAttribute("readonly")
|
|||
|
a||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),a||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus()
|
|||
|
var l=window.getSelection(),i=document.createRange()
|
|||
|
i.selectNodeContents(e),l.removeAllRanges(),l.addRange(i),t=l.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,a){var l=this.e||(this.e={})
|
|||
|
return(l[e]||(l[e]=[])).push({fn:t,ctx:a}),this},once:function(e,t,a){var l=this
|
|||
|
function i(){l.off(e,i),t.apply(a,arguments)}return i._=t,this.on(e,i,a)},emit:function(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),l=0,i=a.length;l<i;l++)a[l].fn.apply(a[l].ctx,t)
|
|||
|
return this},off:function(e,t){var a=this.e||(this.e={}),l=a[e],i=[]
|
|||
|
if(l&&t)for(var o=0,n=l.length;o<n;o++)l[o].fn!==t&&l[o].fn._!==t&&i.push(l[o])
|
|||
|
return i.length?a[e]=i:delete a[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={}
|
|||
|
function a(l){if(t[l])return t[l].exports
|
|||
|
var i=t[l]={exports:{}}
|
|||
|
return e[l](i,i.exports,a),i.exports}return a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e}
|
|||
|
return a.d(t,{a:t}),t},a.d=function(e,t){for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a(686)}().default},e.exports=t()},9731:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}a.d(t,{Z:()=>l})},8734:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Nw:()=>c,ZP:()=>s,ZR:()=>h,ml:()=>r})
|
|||
|
var l=a(9731),i=a(7870),o=a(3342)
|
|||
|
const n=(0,i.Z)(l.Z),r=n.right,c=n.left,h=(0,i.Z)(o.Z).center,s=r},7870:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>i})
|
|||
|
var l=a(9731)
|
|||
|
function i(e){let t=e,a=e
|
|||
|
function i(e,t,l,i){for(null==l&&(l=0),null==i&&(i=e.length);l<i;){const o=l+i>>>1
|
|||
|
a(e[o],t)<0?l=o+1:i=o}return l}return 1===e.length&&(t=(t,a)=>e(t)-a,a=function(e){return(t,a)=>(0,l.Z)(e(t),a)}(e)),{left:i,center:function(e,a,l,o){null==l&&(l=0),null==o&&(o=e.length)
|
|||
|
const n=i(e,a,l,o-1)
|
|||
|
return n>l&&t(e[n-1],a)>-t(e[n],a)?n-1:n},right:function(e,t,l,i){for(null==l&&(l=0),null==i&&(i=e.length);l<i;){const o=l+i>>>1
|
|||
|
a(e[o],t)>0?i=o:l=o+1}return l}}}},5447:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{Adder:()=>m,InternMap:()=>b,InternSet:()=>z,ascending:()=>i.Z,bin:()=>I,bisect:()=>l.ZP,bisectCenter:()=>l.ZR,bisectLeft:()=>l.Nw,bisectRight:()=>l.ml,bisector:()=>o.Z,count:()=>n,cross:()=>s,cumsum:()=>d,descending:()=>u,deviation:()=>v,difference:()=>Me,disjoint:()=>Ae,every:()=>pe,extent:()=>p,fcumsum:()=>g,filter:()=>ye,fsum:()=>y,greatest:()=>ne,greatestIndex:()=>re,group:()=>V,groupSort:()=>O,groups:()=>_,histogram:()=>I,index:()=>C,indexes:()=>E,intersection:()=>xe,least:()=>ie,leastIndex:()=>oe,map:()=>ge,max:()=>Z.Z,maxIndex:()=>Y,mean:()=>K,median:()=>W,merge:()=>X,min:()=>J.Z,minIndex:()=>Q,nice:()=>R,pairs:()=>ee,permute:()=>S,quantile:()=>G.Z,quantileSorted:()=>G.s,quickselect:()=>ae.Z,range:()=>le.Z,reduce:()=>be,reverse:()=>ze,rollup:()=>B,rollups:()=>L,scan:()=>ce,shuffle:()=>he,shuffler:()=>se,some:()=>me,sort:()=>F,subset:()=>Ve,sum:()=>de,superset:()=>He,thresholdFreedmanDiaconis:()=>$,thresholdScott:()=>q,thresholdSturges:()=>j,tickIncrement:()=>U.G9,tickStep:()=>U.ly,ticks:()=>U.ZP,transpose:()=>ue,union:()=>_e,variance:()=>f,zip:()=>ve})
|
|||
|
var l=a(8734),i=a(9731),o=a(7870)
|
|||
|
function n(e,t){let a=0
|
|||
|
if(void 0===t)for(let l of e)null!=l&&(l=+l)>=l&&++a
|
|||
|
else{let l=-1
|
|||
|
for(let i of e)null!=(i=t(i,++l,e))&&(i=+i)>=i&&++a}return a}function r(e){return 0|e.length}function c(e){return!(e>0)}function h(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function s(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a]
|
|||
|
const l="function"==typeof t[t.length-1]&&function(e){return t=>e(...t)}(t.pop()),i=(t=t.map(h)).map(r),o=t.length-1,n=new Array(o+1).fill(0),s=[]
|
|||
|
if(o<0||i.some(c))return s
|
|||
|
for(;;){s.push(n.map(((e,a)=>t[a][e])))
|
|||
|
let e=o
|
|||
|
for(;++n[e]===i[e];){if(0===e)return l?s.map(l):s
|
|||
|
n[e--]=0}}}function d(e,t){var a=0,l=0
|
|||
|
return Float64Array.from(e,void 0===t?e=>a+=+e||0:i=>a+=+t(i,l++,e)||0)}function u(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function f(e,t){let a,l=0,i=0,o=0
|
|||
|
if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(a=n-i,i+=a/++l,o+=a*(n-i))
|
|||
|
else{let n=-1
|
|||
|
for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(a=r-i,i+=a/++l,o+=a*(r-i))}if(l>1)return o/(l-1)}function v(e,t){const a=f(e,t)
|
|||
|
return a?Math.sqrt(a):a}function p(e,t){let a,l
|
|||
|
if(void 0===t)for(const i of e)null!=i&&(void 0===a?i>=i&&(a=l=i):(a>i&&(a=i),l<i&&(l=i)))
|
|||
|
else{let i=-1
|
|||
|
for(let o of e)null!=(o=t(o,++i,e))&&(void 0===a?o>=o&&(a=l=o):(a>o&&(a=o),l<o&&(l=o)))}return[a,l]}class m{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials
|
|||
|
let a=0
|
|||
|
for(let l=0;l<this._n&&l<32;l++){const i=t[l],o=e+i,n=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e)
|
|||
|
n&&(t[a++]=n),e=o}return t[a]=e,this._n=a+1,this}valueOf(){const e=this._partials
|
|||
|
let t,a,l,i=this._n,o=0
|
|||
|
if(i>0){for(o=e[--i];i>0&&(t=o,a=e[--i],o=t+a,l=a-(o-t),!l););i>0&&(l<0&&e[i-1]<0||l>0&&e[i-1]>0)&&(a=2*l,t=o+a,a==t-o&&(o=t))}return o}}function y(e,t){const a=new m
|
|||
|
if(void 0===t)for(let l of e)(l=+l)&&a.add(l)
|
|||
|
else{let l=-1
|
|||
|
for(let i of e)(i=+t(i,++l,e))&&a.add(i)}return+a}function g(e,t){const a=new m
|
|||
|
let l=-1
|
|||
|
return Float64Array.from(e,void 0===t?e=>a.add(+e||0):i=>a.add(+t(i,++l,e)||0))}class b extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x
|
|||
|
if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[a,l]of e)this.set(a,l)}get(e){return super.get(M(this,e))}has(e){return super.has(M(this,e))}set(e,t){return super.set(A(this,e),t)}delete(e){return super.delete(w(this,e))}}class z extends Set{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x
|
|||
|
if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const a of e)this.add(a)}has(e){return super.has(M(this,e))}add(e){return super.add(A(this,e))}delete(e){return super.delete(w(this,e))}}function M(e,t){let{_intern:a,_key:l}=e
|
|||
|
const i=l(t)
|
|||
|
return a.has(i)?a.get(i):t}function A(e,t){let{_intern:a,_key:l}=e
|
|||
|
const i=l(t)
|
|||
|
return a.has(i)?a.get(i):(a.set(i,t),t)}function w(e,t){let{_intern:a,_key:l}=e
|
|||
|
const i=l(t)
|
|||
|
return a.has(i)&&(t=a.get(t),a.delete(i)),t}function x(e){return null!==e&&"object"==typeof e?e.valueOf():e}function H(e){return e}function V(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
return D(e,H,H,a)}function _(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
return D(e,Array.from,H,a)}function B(e,t){for(var a=arguments.length,l=new Array(a>2?a-2:0),i=2;i<a;i++)l[i-2]=arguments[i]
|
|||
|
return D(e,H,t,l)}function L(e,t){for(var a=arguments.length,l=new Array(a>2?a-2:0),i=2;i<a;i++)l[i-2]=arguments[i]
|
|||
|
return D(e,Array.from,t,l)}function C(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
return D(e,H,k,a)}function E(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
return D(e,Array.from,k,a)}function k(e){if(1!==e.length)throw new Error("duplicate key")
|
|||
|
return e[0]}function D(e,t,a,l){return function e(i,o){if(o>=l.length)return a(i)
|
|||
|
const n=new b,r=l[o++]
|
|||
|
let c=-1
|
|||
|
for(const t of i){const e=r(t,++c,i),a=n.get(e)
|
|||
|
a?a.push(t):n.set(e,[t])}for(const[t,a]of n)n.set(t,e(a,o))
|
|||
|
return t(n)}(e,0)}function S(e,t){return Array.from(t,(t=>e[t]))}function F(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable")
|
|||
|
e=Array.from(e)
|
|||
|
let[o=i.Z]=a
|
|||
|
if(1===o.length||a.length>1){const t=Uint32Array.from(e,((e,t)=>t))
|
|||
|
return a.length>1?(a=a.map((t=>e.map(t))),t.sort(((e,t)=>{for(const l of a){const a=(0,i.Z)(l[e],l[t])
|
|||
|
if(a)return a}}))):(o=e.map(o),t.sort(((e,t)=>(0,i.Z)(o[e],o[t])))),S(e,t)}return e.sort(o)}function O(e,t,a){return(1===t.length?F(B(e,t,a),((e,t)=>{let[a,l]=e,[o,n]=t
|
|||
|
return(0,i.Z)(l,n)||(0,i.Z)(a,o)})):F(V(e,a),((e,a)=>{let[l,o]=e,[n,r]=a
|
|||
|
return t(o,r)||(0,i.Z)(l,n)}))).map((e=>{let[t]=e
|
|||
|
return t}))}var T=Array.prototype,P=T.slice
|
|||
|
function N(e){return function(){return e}}T.map
|
|||
|
var U=a(7666)
|
|||
|
function R(e,t,a){let l
|
|||
|
for(;;){const i=(0,U.G9)(e,t,a)
|
|||
|
if(i===l||0===i||!isFinite(i))return[e,t]
|
|||
|
i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),l=i}}function j(e){return Math.ceil(Math.log(n(e))/Math.LN2)+1}function I(){var e=H,t=p,a=j
|
|||
|
function i(i){Array.isArray(i)||(i=Array.from(i))
|
|||
|
var o,n,r=i.length,c=new Array(r)
|
|||
|
for(o=0;o<r;++o)c[o]=e(i[o],o,i)
|
|||
|
var h=t(c),s=h[0],d=h[1],u=a(c,s,d)
|
|||
|
if(!Array.isArray(u)){const e=d,a=+u
|
|||
|
if(t===p&&([s,d]=R(s,d,a)),(u=(0,U.ZP)(s,d,a))[u.length-1]>=d)if(e>=d&&t===p){const e=(0,U.G9)(s,d,a)
|
|||
|
isFinite(e)&&(e>0?d=(Math.floor(d/e)+1)*e:e<0&&(d=(Math.ceil(d*-e)+1)/-e))}else u.pop()}for(var f=u.length;u[0]<=s;)u.shift(),--f
|
|||
|
for(;u[f-1]>d;)u.pop(),--f
|
|||
|
var v,m=new Array(f+1)
|
|||
|
for(o=0;o<=f;++o)(v=m[o]=[]).x0=o>0?u[o-1]:s,v.x1=o<f?u[o]:d
|
|||
|
for(o=0;o<r;++o)s<=(n=c[o])&&n<=d&&m[(0,l.ZP)(u,n,0,f)].push(i[o])
|
|||
|
return m}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:N(t),i):e},i.domain=function(e){return arguments.length?(t="function"==typeof e?e:N([e[0],e[1]]),i):t},i.thresholds=function(e){return arguments.length?(a="function"==typeof e?e:Array.isArray(e)?N(P.call(e)):N(e),i):a},i}var G=a(1657)
|
|||
|
function $(e,t,a){return Math.ceil((a-t)/(2*((0,G.Z)(e,.75)-(0,G.Z)(e,.25))*Math.pow(n(e),-1/3)))}function q(e,t,a){return Math.ceil((a-t)/(3.5*v(e)*Math.pow(n(e),-1/3)))}var Z=a(6780)
|
|||
|
function Y(e,t){let a,l=-1,i=-1
|
|||
|
if(void 0===t)for(const o of e)++i,null!=o&&(a<o||void 0===a&&o>=o)&&(a=o,l=i)
|
|||
|
else for(let o of e)null!=(o=t(o,++i,e))&&(a<o||void 0===a&&o>=o)&&(a=o,l=i)
|
|||
|
return l}function K(e,t){let a=0,l=0
|
|||
|
if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&(++a,l+=i)
|
|||
|
else{let i=-1
|
|||
|
for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++a,l+=o)}if(a)return l/a}function W(e,t){return(0,G.Z)(e,.5,t)}function X(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}var J=a(3631)
|
|||
|
function Q(e,t){let a,l=-1,i=-1
|
|||
|
if(void 0===t)for(const o of e)++i,null!=o&&(a>o||void 0===a&&o>=o)&&(a=o,l=i)
|
|||
|
else for(let o of e)null!=(o=t(o,++i,e))&&(a>o||void 0===a&&o>=o)&&(a=o,l=i)
|
|||
|
return l}function ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te
|
|||
|
const a=[]
|
|||
|
let l,i=!1
|
|||
|
for(const o of e)i&&a.push(t(l,o)),l=o,i=!0
|
|||
|
return a}function te(e,t){return[e,t]}var ae=a(8608),le=a(5232)
|
|||
|
function ie(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Z,l=!1
|
|||
|
if(1===a.length){let o
|
|||
|
for(const n of e){const e=a(n);(l?(0,i.Z)(e,o)<0:0===(0,i.Z)(e,e))&&(t=n,o=e,l=!0)}}else for(const i of e)(l?a(i,t)<0:0===a(i,i))&&(t=i,l=!0)
|
|||
|
return t}function oe(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Z
|
|||
|
if(1===a.length)return Q(e,a)
|
|||
|
let l=-1,o=-1
|
|||
|
for(const i of e)++o,(l<0?0===a(i,i):a(i,t)<0)&&(t=i,l=o)
|
|||
|
return l}function ne(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Z,l=!1
|
|||
|
if(1===a.length){let o
|
|||
|
for(const n of e){const e=a(n);(l?(0,i.Z)(e,o)>0:0===(0,i.Z)(e,e))&&(t=n,o=e,l=!0)}}else for(const i of e)(l?a(i,t)>0:0===a(i,i))&&(t=i,l=!0)
|
|||
|
return t}function re(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Z
|
|||
|
if(1===a.length)return Y(e,a)
|
|||
|
let l=-1,o=-1
|
|||
|
for(const i of e)++o,(l<0?0===a(i,i):a(i,t)>0)&&(t=i,l=o)
|
|||
|
return l}function ce(e,t){const a=oe(e,t)
|
|||
|
return a<0?void 0:a}const he=se(Math.random)
|
|||
|
function se(e){return function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length)-(a=+a)
|
|||
|
for(;l;){const i=e()*l--|0,o=t[l+a]
|
|||
|
t[l+a]=t[i+a],t[i+a]=o}return t}}function de(e,t){let a=0
|
|||
|
if(void 0===t)for(let l of e)(l=+l)&&(a+=l)
|
|||
|
else{let l=-1
|
|||
|
for(let i of e)(i=+t(i,++l,e))&&(a+=i)}return a}function ue(e){if(!(i=e.length))return[]
|
|||
|
for(var t=-1,a=(0,J.Z)(e,fe),l=new Array(a);++t<a;)for(var i,o=-1,n=l[t]=new Array(i);++o<i;)n[o]=e[o][t]
|
|||
|
return l}function fe(e){return e.length}function ve(){return ue(arguments)}function pe(e,t){if("function"!=typeof t)throw new TypeError("test is not a function")
|
|||
|
let a=-1
|
|||
|
for(const l of e)if(!t(l,++a,e))return!1
|
|||
|
return!0}function me(e,t){if("function"!=typeof t)throw new TypeError("test is not a function")
|
|||
|
let a=-1
|
|||
|
for(const l of e)if(t(l,++a,e))return!0
|
|||
|
return!1}function ye(e,t){if("function"!=typeof t)throw new TypeError("test is not a function")
|
|||
|
const a=[]
|
|||
|
let l=-1
|
|||
|
for(const i of e)t(i,++l,e)&&a.push(i)
|
|||
|
return a}function ge(e,t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable")
|
|||
|
if("function"!=typeof t)throw new TypeError("mapper is not a function")
|
|||
|
return Array.from(e,((a,l)=>t(a,l,e)))}function be(e,t,a){if("function"!=typeof t)throw new TypeError("reducer is not a function")
|
|||
|
const l=e[Symbol.iterator]()
|
|||
|
let i,o,n=-1
|
|||
|
if(arguments.length<3){if(({done:i,value:a}=l.next()),i)return;++n}for(;({done:i,value:o}=l.next()),!i;)a=t(a,o,++n,e)
|
|||
|
return a}function ze(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable")
|
|||
|
return Array.from(e).reverse()}function Me(e){e=new Set(e)
|
|||
|
for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
for(const i of a)for(const t of i)e.delete(t)
|
|||
|
return e}function Ae(e,t){const a=t[Symbol.iterator](),l=new Set
|
|||
|
for(const i of e){if(l.has(i))return!1
|
|||
|
let e,t
|
|||
|
for(;({value:e,done:t}=a.next())&&!t;){if(Object.is(i,e))return!1
|
|||
|
l.add(e)}}return!0}function we(e){return e instanceof Set?e:new Set(e)}function xe(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
e=new Set(e),a=a.map(we)
|
|||
|
e:for(const i of e)for(const t of a)if(!t.has(i)){e.delete(i)
|
|||
|
continue e}return e}function He(e,t){const a=e[Symbol.iterator](),l=new Set
|
|||
|
for(const i of t){if(l.has(i))continue
|
|||
|
let e,t
|
|||
|
for(;({value:e,done:t}=a.next());){if(t)return!1
|
|||
|
if(l.add(e),Object.is(i,e))break}}return!0}function Ve(e,t){return He(t,e)}function _e(){const e=new Set
|
|||
|
for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l]
|
|||
|
for(const i of a)for(const t of i)e.add(t)
|
|||
|
return e}},6780:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t){let a
|
|||
|
if(void 0===t)for(const l of e)null!=l&&(a<l||void 0===a&&l>=l)&&(a=l)
|
|||
|
else{let l=-1
|
|||
|
for(let i of e)null!=(i=t(i,++l,e))&&(a<i||void 0===a&&i>=i)&&(a=i)}return a}a.d(t,{Z:()=>l})},3631:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t){let a
|
|||
|
if(void 0===t)for(const l of e)null!=l&&(a>l||void 0===a&&l>=l)&&(a=l)
|
|||
|
else{let l=-1
|
|||
|
for(let i of e)null!=(i=t(i,++l,e))&&(a>i||void 0===a&&i>=i)&&(a=i)}return a}a.d(t,{Z:()=>l})},3342:(e,t,a)=>{"use strict"
|
|||
|
function l(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(yield a)
|
|||
|
else{let a=-1
|
|||
|
for(let l of e)null!=(l=t(l,++a,e))&&(l=+l)>=l&&(yield l)}}a.d(t,{K:()=>i,Z:()=>l})},1657:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>r,s:()=>c})
|
|||
|
var l=a(6780),i=a(3631),o=a(8608),n=a(3342)
|
|||
|
function r(e,t,a){if(r=(e=Float64Array.from((0,n.K)(e,a))).length){if((t=+t)<=0||r<2)return(0,i.Z)(e)
|
|||
|
if(t>=1)return(0,l.Z)(e)
|
|||
|
var r,c=(r-1)*t,h=Math.floor(c),s=(0,l.Z)((0,o.Z)(e,h).subarray(0,h+1))
|
|||
|
return s+((0,i.Z)(e.subarray(h+1))-s)*(c-h)}}function c(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.Z
|
|||
|
if(l=e.length){if((t=+t)<=0||l<2)return+a(e[0],0,e)
|
|||
|
if(t>=1)return+a(e[l-1],l-1,e)
|
|||
|
var l,i=(l-1)*t,o=Math.floor(i),r=+a(e[o],o,e)
|
|||
|
return r+(+a(e[o+1],o+1,e)-r)*(i-o)}}},8608:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>i})
|
|||
|
var l=a(9731)
|
|||
|
function i(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:l.Z
|
|||
|
for(;n>a;){if(n-a>600){const l=n-a+1,o=t-a+1,c=Math.log(l),h=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*h*(l-h)/l)*(o-l/2<0?-1:1)
|
|||
|
i(e,t,Math.max(a,Math.floor(t-o*h/l+s)),Math.min(n,Math.floor(t+(l-o)*h/l+s)),r)}const l=e[t]
|
|||
|
let c=a,h=n
|
|||
|
for(o(e,a,t),r(e[n],l)>0&&o(e,a,n);c<h;){for(o(e,c,h),++c,--h;r(e[c],l)<0;)++c
|
|||
|
for(;r(e[h],l)>0;)--h}0===r(e[a],l)?o(e,a,h):(++h,o(e,h,n)),h<=t&&(a=h+1),t<=h&&(n=h-1)}return e}function o(e,t,a){const l=e[t]
|
|||
|
e[t]=e[a],e[a]=l}},5232:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t,a){e=+e,t=+t,a=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+a
|
|||
|
for(var l=-1,i=0|Math.max(0,Math.ceil((t-e)/a)),o=new Array(i);++l<i;)o[l]=e+l*a
|
|||
|
return o}a.d(t,{Z:()=>l})},7666:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{G9:()=>r,ZP:()=>n,ly:()=>c})
|
|||
|
var l=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2)
|
|||
|
function n(e,t,a){var l,i,o,n,c=-1
|
|||
|
if(a=+a,(e=+e)==(t=+t)&&a>0)return[e]
|
|||
|
if((l=t<e)&&(i=e,e=t,t=i),0===(n=r(e,t,a))||!isFinite(n))return[]
|
|||
|
if(n>0){let a=Math.round(e/n),l=Math.round(t/n)
|
|||
|
for(a*n<e&&++a,l*n>t&&--l,o=new Array(i=l-a+1);++c<i;)o[c]=(a+c)*n}else{n=-n
|
|||
|
let a=Math.round(e*n),l=Math.round(t*n)
|
|||
|
for(a/n<e&&++a,l/n>t&&--l,o=new Array(i=l-a+1);++c<i;)o[c]=(a+c)/n}return l&&o.reverse(),o}function r(e,t,a){var n=(t-e)/Math.max(0,a),r=Math.floor(Math.log(n)/Math.LN10),c=n/Math.pow(10,r)
|
|||
|
return r>=0?(c>=l?10:c>=i?5:c>=o?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(c>=l?10:c>=i?5:c>=o?2:1)}function c(e,t,a){var n=Math.abs(t-e)/Math.max(0,a),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),c=n/r
|
|||
|
return c>=l?r*=10:c>=i?r*=5:c>=o&&(r*=2),t<e?-r:r}},2622:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{B8:()=>x,Il:()=>i,J5:()=>n,SU:()=>w,Ss:()=>H,ZP:()=>z,xV:()=>o})
|
|||
|
var l=a(8797)
|
|||
|
function i(){}var o=.7,n=1/o,r="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[r,r,r]+"\\)$"),u=new RegExp("^rgb\\("+[h,h,h]+"\\)$"),f=new RegExp("^rgba\\("+[r,r,r,c]+"\\)$"),v=new RegExp("^rgba\\("+[h,h,h,c]+"\\)$"),p=new RegExp("^hsl\\("+[c,h,h]+"\\)$"),m=new RegExp("^hsla\\("+[c,h,h,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
|
|||
|
function g(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function z(e){var t,a
|
|||
|
return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(a=t[1].length,t=parseInt(t[1],16),6===a?M(t):3===a?new H(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===a?A(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===a?A(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new H(t[1],t[2],t[3],1):(t=u.exec(e))?new H(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?A(t[1],t[2],t[3],t[4]):(t=v.exec(e))?A(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=p.exec(e))?L(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?L(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?M(y[e]):"transparent"===e?new H(NaN,NaN,NaN,0):null}function M(e){return new H(e>>16&255,e>>8&255,255&e,1)}function A(e,t,a,l){return l<=0&&(e=t=a=NaN),new H(e,t,a,l)}function w(e){return e instanceof i||(e=z(e)),e?new H((e=e.rgb()).r,e.g,e.b,e.opacity):new H}function x(e,t,a,l){return 1===arguments.length?w(e):new H(e,t,a,null==l?1:l)}function H(e,t,a,l){this.r=+e,this.g=+t,this.b=+a,this.opacity=+l}function V(){return"#"+B(this.r)+B(this.g)+B(this.b)}function _(){var e=this.opacity
|
|||
|
return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function B(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function L(e,t,a,l){return l<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new E(e,t,a,l)}function C(e){if(e instanceof E)return new E(e.h,e.s,e.l,e.opacity)
|
|||
|
if(e instanceof i||(e=z(e)),!e)return new E
|
|||
|
if(e instanceof E)return e
|
|||
|
var t=(e=e.rgb()).r/255,a=e.g/255,l=e.b/255,o=Math.min(t,a,l),n=Math.max(t,a,l),r=NaN,c=n-o,h=(n+o)/2
|
|||
|
return c?(r=t===n?(a-l)/c+6*(a<l):a===n?(l-t)/c+2:(t-a)/c+4,c/=h<.5?n+o:2-n-o,r*=60):c=h>0&&h<1?0:r,new E(r,c,h,e.opacity)}function E(e,t,a,l){this.h=+e,this.s=+t,this.l=+a,this.opacity=+l}function k(e,t,a){return 255*(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)}(0,l.Z)(i,z,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return C(this).formatHsl()},formatRgb:b,toString:b}),(0,l.Z)(H,x,(0,l.l)(i,{brighter:function(e){return e=null==e?n:Math.pow(n,e),new H(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new H(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatRgb:_,toString:_})),(0,l.Z)(E,(function(e,t,a,l){return 1===arguments.length?C(e):new E(e,t,a,null==l?1:l)}),(0,l.l)(i,{brighter:function(e){return e=null==e?n:Math.pow(n,e),new E(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new E(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,l=a+(a<.5?a:1-a)*t,i=2*a-l
|
|||
|
return new H(k(e>=240?e-240:e+120,i,l),k(e,i,l),k(e<120?e+240:e-120,i,l),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity
|
|||
|
return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},8797:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function i(e,t){var a=Object.create(e.prototype)
|
|||
|
for(var l in t)a[l]=t[l]
|
|||
|
return a}a.d(t,{Z:()=>l,l:()=>i})},3068:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{ZP:()=>r,wx:()=>o,yi:()=>n})
|
|||
|
var l=a(4472)
|
|||
|
function i(e,t){return function(a){return e+a*t}}function o(e,t){var a=t-e
|
|||
|
return a?i(e,a>180||a<-180?a-360*Math.round(a/360):a):(0,l.Z)(isNaN(e)?t:e)}function n(e){return 1==(e=+e)?r:function(t,a){return a-t?function(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(l){return Math.pow(e+l*t,a)}}(t,a,e):(0,l.Z)(isNaN(t)?a:t)}}function r(e,t){var a=t-e
|
|||
|
return a?i(e,a):(0,l.Z)(isNaN(e)?t:e)}},4472:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>l})
|
|||
|
const l=e=>()=>e},6016:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{ZP:()=>n,hD:()=>c})
|
|||
|
var l=a(2622)
|
|||
|
function i(e,t,a,l,i){var o=e*e,n=o*e
|
|||
|
return((1-3*e+3*o-n)*t+(4-6*o+3*n)*a+(1+3*e+3*o-3*n)*l+n*i)/6}var o=a(3068)
|
|||
|
const n=function e(t){var a=(0,o.yi)(t)
|
|||
|
function i(e,t){var i=a((e=(0,l.B8)(e)).r,(t=(0,l.B8)(t)).r),n=a(e.g,t.g),r=a(e.b,t.b),c=(0,o.ZP)(e.opacity,t.opacity)
|
|||
|
return function(t){return e.r=i(t),e.g=n(t),e.b=r(t),e.opacity=c(t),e+""}}return i.gamma=e,i}(1)
|
|||
|
function r(e){return function(t){var a,i,o=t.length,n=new Array(o),r=new Array(o),c=new Array(o)
|
|||
|
for(a=0;a<o;++a)i=(0,l.B8)(t[a]),n[a]=i.r||0,r[a]=i.g||0,c[a]=i.b||0
|
|||
|
return n=e(n),r=e(r),c=e(c),i.opacity=1,function(e){return i.r=n(e),i.g=r(e),i.b=c(e),i+""}}}var c=r((function(e){var t=e.length-1
|
|||
|
return function(a){var l=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),o=e[l],n=e[l+1],r=l>0?e[l-1]:2*o-n,c=l<t-1?e[l+2]:2*n-o
|
|||
|
return i((a-l/t)*t,r,o,n,c)}}))
|
|||
|
r((function(e){var t=e.length
|
|||
|
return function(a){var l=Math.floor(((a%=1)<0?++a:a)*t),o=e[(l+t-1)%t],n=e[l%t],r=e[(l+1)%t],c=e[(l+2)%t]
|
|||
|
return i((a-l/t)*t,o,n,r,c)}}))},2331:(e,t,a)=>{"use strict"
|
|||
|
function l(e){for(var t=e.length/6|0,a=new Array(t),l=0;l<t;)a[l]="#"+e.slice(6*l,6*++l)
|
|||
|
return a}a.r(t),a.d(t,{interpolateBlues:()=>oe,interpolateBrBG:()=>y,interpolateBuGn:()=>F,interpolateBuPu:()=>T,interpolateCividis:()=>me,interpolateCool:()=>Oe,interpolateCubehelixDefault:()=>Se,interpolateGnBu:()=>N,interpolateGreens:()=>re,interpolateGreys:()=>he,interpolateInferno:()=>Ze,interpolateMagma:()=>qe,interpolateOrRd:()=>R,interpolateOranges:()=>pe,interpolatePRGn:()=>b,interpolatePiYG:()=>M,interpolatePlasma:()=>Ye,interpolatePuBu:()=>$,interpolatePuBuGn:()=>I,interpolatePuOr:()=>w,interpolatePuRd:()=>Z,interpolatePurples:()=>de,interpolateRainbow:()=>Pe,interpolateRdBu:()=>H,interpolateRdGy:()=>_,interpolateRdPu:()=>K,interpolateRdYlBu:()=>L,interpolateRdYlGn:()=>E,interpolateReds:()=>fe,interpolateSinebow:()=>je,interpolateSpectral:()=>D,interpolateTurbo:()=>Ie,interpolateViridis:()=>$e,interpolateWarm:()=>Fe,interpolateYlGn:()=>Q,interpolateYlGnBu:()=>X,interpolateYlOrBr:()=>te,interpolateYlOrRd:()=>le,schemeAccent:()=>o,schemeBlues:()=>ie,schemeBrBG:()=>m,schemeBuGn:()=>S,schemeBuPu:()=>O,schemeCategory10:()=>i,schemeDark2:()=>n,schemeGnBu:()=>P,schemeGreens:()=>ne,schemeGreys:()=>ce,schemeOrRd:()=>U,schemeOranges:()=>ve,schemePRGn:()=>g,schemePaired:()=>r,schemePastel1:()=>c,schemePastel2:()=>h,schemePiYG:()=>z,schemePuBu:()=>G,schemePuBuGn:()=>j,schemePuOr:()=>A,schemePuRd:()=>q,schemePurples:()=>se,schemeRdBu:()=>x,schemeRdGy:()=>V,schemeRdPu:()=>Y,schemeRdYlBu:()=>B,schemeRdYlGn:()=>C,schemeReds:()=>ue,schemeSet1:()=>s,schemeSet2:()=>d,schemeSet3:()=>u,schemeSpectral:()=>k,schemeTableau10:()=>f,schemeYlGn:()=>J,schemeYlGnBu:()=>W,schemeYlOrBr:()=>ee,schemeYlOrRd:()=>ae})
|
|||
|
const i=l("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),o=l("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),n=l("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),r=l("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),c=l("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),h=l("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),s=l("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),d=l("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),u=l("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),f=l("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")
|
|||
|
var v=a(6016)
|
|||
|
const p=e=>(0,v.hD)(e[e.length-1])
|
|||
|
var m=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(l)
|
|||
|
const y=p(m)
|
|||
|
var g=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(l)
|
|||
|
const b=p(g)
|
|||
|
var z=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(l)
|
|||
|
const M=p(z)
|
|||
|
var A=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(l)
|
|||
|
const w=p(A)
|
|||
|
var x=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(l)
|
|||
|
const H=p(x)
|
|||
|
var V=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(l)
|
|||
|
const _=p(V)
|
|||
|
var B=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(l)
|
|||
|
const L=p(B)
|
|||
|
var C=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(l)
|
|||
|
const E=p(C)
|
|||
|
var k=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(l)
|
|||
|
const D=p(k)
|
|||
|
var S=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(l)
|
|||
|
const F=p(S)
|
|||
|
var O=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(l)
|
|||
|
const T=p(O)
|
|||
|
var P=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(l)
|
|||
|
const N=p(P)
|
|||
|
var U=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(l)
|
|||
|
const R=p(U)
|
|||
|
var j=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(l)
|
|||
|
const I=p(j)
|
|||
|
var G=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(l)
|
|||
|
const $=p(G)
|
|||
|
var q=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(l)
|
|||
|
const Z=p(q)
|
|||
|
var Y=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(l)
|
|||
|
const K=p(Y)
|
|||
|
var W=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(l)
|
|||
|
const X=p(W)
|
|||
|
var J=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(l)
|
|||
|
const Q=p(J)
|
|||
|
var ee=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(l)
|
|||
|
const te=p(ee)
|
|||
|
var ae=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(l)
|
|||
|
const le=p(ae)
|
|||
|
var ie=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(l)
|
|||
|
const oe=p(ie)
|
|||
|
var ne=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(l)
|
|||
|
const re=p(ne)
|
|||
|
var ce=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(l)
|
|||
|
const he=p(ce)
|
|||
|
var se=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(l)
|
|||
|
const de=p(se)
|
|||
|
var ue=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(l)
|
|||
|
const fe=p(ue)
|
|||
|
var ve=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(l)
|
|||
|
const pe=p(ve)
|
|||
|
function me(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}var ye=a(8797),ge=a(2622)
|
|||
|
const be=Math.PI/180,ze=180/Math.PI
|
|||
|
var Me=-.14861,Ae=1.78277,we=-.29227,xe=-.90649,He=1.97294,Ve=He*xe,_e=He*Ae,Be=Ae*we-xe*Me
|
|||
|
function Le(e,t,a,l){return 1===arguments.length?function(e){if(e instanceof Ce)return new Ce(e.h,e.s,e.l,e.opacity)
|
|||
|
e instanceof ge.Ss||(e=(0,ge.SU)(e))
|
|||
|
var t=e.r/255,a=e.g/255,l=e.b/255,i=(Be*l+Ve*t-_e*a)/(Be+Ve-_e),o=l-i,n=(He*(a-i)-we*o)/xe,r=Math.sqrt(n*n+o*o)/(He*i*(1-i)),c=r?Math.atan2(n,o)*ze-120:NaN
|
|||
|
return new Ce(c<0?c+360:c,r,i,e.opacity)}(e):new Ce(e,t,a,null==l?1:l)}function Ce(e,t,a,l){this.h=+e,this.s=+t,this.l=+a,this.opacity=+l}(0,ye.Z)(Ce,Le,(0,ye.l)(ge.Il,{brighter:function(e){return e=null==e?ge.J5:Math.pow(ge.J5,e),new Ce(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ge.xV:Math.pow(ge.xV,e),new Ce(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*be,t=+this.l,a=isNaN(this.s)?0:this.s*t*(1-t),l=Math.cos(e),i=Math.sin(e)
|
|||
|
return new ge.Ss(255*(t+a*(Me*l+Ae*i)),255*(t+a*(we*l+xe*i)),255*(t+a*(He*l)),this.opacity)}}))
|
|||
|
var Ee=a(3068)
|
|||
|
function ke(e){return function t(a){function l(t,l){var i=e((t=Le(t)).h,(l=Le(l)).h),o=(0,Ee.ZP)(t.s,l.s),n=(0,Ee.ZP)(t.l,l.l),r=(0,Ee.ZP)(t.opacity,l.opacity)
|
|||
|
return function(e){return t.h=i(e),t.s=o(e),t.l=n(Math.pow(e,a)),t.opacity=r(e),t+""}}return a=+a,l.gamma=t,l}(1)}ke(Ee.wx)
|
|||
|
var De=ke(Ee.ZP)
|
|||
|
const Se=De(Le(300,.5,0),Le(-240,.5,1))
|
|||
|
var Fe=De(Le(-100,.75,.35),Le(80,1.5,.8)),Oe=De(Le(260,.75,.35),Le(80,1.5,.8)),Te=Le()
|
|||
|
function Pe(e){(e<0||e>1)&&(e-=Math.floor(e))
|
|||
|
var t=Math.abs(e-.5)
|
|||
|
return Te.h=360*e-100,Te.s=1.5-1.5*t,Te.l=.8-.9*t,Te+""}var Ne=(0,ge.B8)(),Ue=Math.PI/3,Re=2*Math.PI/3
|
|||
|
function je(e){var t
|
|||
|
return e=(.5-e)*Math.PI,Ne.r=255*(t=Math.sin(e))*t,Ne.g=255*(t=Math.sin(e+Ue))*t,Ne.b=255*(t=Math.sin(e+Re))*t,Ne+""}function Ie(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function Ge(e){var t=e.length
|
|||
|
return function(a){return e[Math.max(0,Math.min(t-1,Math.floor(a*t)))]}}const $e=Ge(l("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"))
|
|||
|
var qe=Ge(l("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Ze=Ge(l("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Ye=Ge(l("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059
|
|||
|
a.r(t),a.d(t,{scaleBand:()=>c,scaleDiverging:()=>sl,scaleDivergingLog:()=>dl,scaleDivergingPow:()=>fl,scaleDivergingSqrt:()=>vl,scaleDivergingSymlog:()=>ul,scaleIdentity:()=>J,scaleImplicit:()=>n,scaleLinear:()=>X,scaleLog:()=>re,scaleOrdinal:()=>r,scalePoint:()=>s,scalePow:()=>me,scaleQuantile:()=>Ae,scaleQuantize:()=>we,scaleRadial:()=>be,scaleSequential:()=>ll,scaleSequentialLog:()=>il,scaleSequentialPow:()=>nl,scaleSequentialQuantile:()=>cl,scaleSequentialSqrt:()=>rl,scaleSequentialSymlog:()=>ol,scaleSqrt:()=>ye,scaleSymlog:()=>de,scaleThreshold:()=>xe,scaleTime:()=>Qa,scaleUtc:()=>el,tickFormat:()=>K})
|
|||
|
var l=a(5232)
|
|||
|
function i(e,t){switch(arguments.length){case 0:break
|
|||
|
case 1:this.range(e)
|
|||
|
break
|
|||
|
default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break
|
|||
|
case 1:"function"==typeof e?this.interpolator(e):this.range(e)
|
|||
|
break
|
|||
|
default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const n=Symbol("implicit")
|
|||
|
function r(){var e=new Map,t=[],a=[],l=n
|
|||
|
function o(i){var o=i+"",r=e.get(o)
|
|||
|
if(!r){if(l!==n)return l
|
|||
|
e.set(o,r=t.push(i))}return a[(r-1)%a.length]}return o.domain=function(a){if(!arguments.length)return t.slice()
|
|||
|
t=[],e=new Map
|
|||
|
for(const l of a){const a=l+""
|
|||
|
e.has(a)||e.set(a,t.push(l))}return o},o.range=function(e){return arguments.length?(a=Array.from(e),o):a.slice()},o.unknown=function(e){return arguments.length?(l=e,o):l},o.copy=function(){return r(t,a).unknown(l)},i.apply(o,arguments),o}function c(){var e,t,a=r().unknown(void 0),o=a.domain,n=a.range,h=0,s=1,d=!1,u=0,f=0,v=.5
|
|||
|
function p(){var a=o().length,i=s<h,r=i?s:h,c=i?h:s
|
|||
|
e=(c-r)/Math.max(1,a-u+2*f),d&&(e=Math.floor(e)),r+=(c-r-e*(a-u))*v,t=e*(1-u),d&&(r=Math.round(r),t=Math.round(t))
|
|||
|
var p=(0,l.Z)(a).map((function(t){return r+e*t}))
|
|||
|
return n(i?p.reverse():p)}return delete a.unknown,a.domain=function(e){return arguments.length?(o(e),p()):o()},a.range=function(e){return arguments.length?([h,s]=e,h=+h,s=+s,p()):[h,s]},a.rangeRound=function(e){return[h,s]=e,h=+h,s=+s,d=!0,p()},a.bandwidth=function(){return t},a.step=function(){return e},a.round=function(e){return arguments.length?(d=!!e,p()):d},a.padding=function(e){return arguments.length?(u=Math.min(1,f=+e),p()):u},a.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),p()):u},a.paddingOuter=function(e){return arguments.length?(f=+e,p()):f},a.align=function(e){return arguments.length?(v=Math.max(0,Math.min(1,e)),p()):v},a.copy=function(){return c(o(),[h,s]).round(d).paddingInner(u).paddingOuter(f).align(v)},i.apply(p(),arguments)}function h(e){var t=e.copy
|
|||
|
return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return h(t())},e}function s(){return h(c.apply(null,arguments).paddingInner(1))}var d=a(7666),u=a(8734),f=a(2622),v=a(6016)
|
|||
|
function p(e,t){var a,l=t?t.length:0,i=e?Math.min(l,e.length):0,o=new Array(i),n=new Array(l)
|
|||
|
for(a=0;a<i;++a)o[a]=x(e[a],t[a])
|
|||
|
for(;a<l;++a)n[a]=t[a]
|
|||
|
return function(e){for(a=0;a<i;++a)n[a]=o[a](e)
|
|||
|
return n}}function m(e,t){var a=new Date
|
|||
|
return e=+e,t=+t,function(l){return a.setTime(e*(1-l)+t*l),a}}function y(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function g(e,t){var a,l={},i={}
|
|||
|
for(a in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)a in e?l[a]=x(e[a],t[a]):i[a]=t[a]
|
|||
|
return function(e){for(a in l)i[a]=l[a](e)
|
|||
|
return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,z=new RegExp(b.source,"g")
|
|||
|
function M(e,t){var a,l,i,o=b.lastIndex=z.lastIndex=0,n=-1,r=[],c=[]
|
|||
|
for(e+="",t+="";(a=b.exec(e))&&(l=z.exec(t));)(i=l.index)>o&&(i=t.slice(o,i),r[n]?r[n]+=i:r[++n]=i),(a=a[0])===(l=l[0])?r[n]?r[n]+=l:r[++n]=l:(r[++n]=null,c.push({i:n,x:y(a,l)})),o=z.lastIndex
|
|||
|
return o<t.length&&(i=t.slice(o),r[n]?r[n]+=i:r[++n]=i),r.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var a,l=0;l<t;++l)r[(a=c[l]).i]=a.x(e)
|
|||
|
return r.join("")})}var A=a(4472)
|
|||
|
function w(e,t){t||(t=[])
|
|||
|
var a,l=e?Math.min(t.length,e.length):0,i=t.slice()
|
|||
|
return function(o){for(a=0;a<l;++a)i[a]=e[a]*(1-o)+t[a]*o
|
|||
|
return i}}function x(e,t){var a,l,i=typeof t
|
|||
|
return null==t||"boolean"===i?(0,A.Z)(t):("number"===i?y:"string"===i?(a=(0,f.ZP)(t))?(t=a,v.ZP):M:t instanceof f.ZP?v.ZP:t instanceof Date?m:(l=t,!ArrayBuffer.isView(l)||l instanceof DataView?Array.isArray(t)?p:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?g:y:w))(e,t)}function H(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function V(e){return+e}var _=[0,1]
|
|||
|
function B(e){return e}function L(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:(a=isNaN(t)?NaN:.5,function(){return a})
|
|||
|
var a}function C(e,t,a){var l=e[0],i=e[1],o=t[0],n=t[1]
|
|||
|
return i<l?(l=L(i,l),o=a(n,o)):(l=L(l,i),o=a(o,n)),function(e){return o(l(e))}}function E(e,t,a){var l=Math.min(e.length,t.length)-1,i=new Array(l),o=new Array(l),n=-1
|
|||
|
for(e[l]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++n<l;)i[n]=L(e[n],e[n+1]),o[n]=a(t[n],t[n+1])
|
|||
|
return function(t){var a=(0,u.ZP)(e,t,1,l)-1
|
|||
|
return o[a](i[a](t))}}function k(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function D(){var e,t,a,l,i,o,n=_,r=_,c=x,h=B
|
|||
|
function s(){var e,t,a,c=Math.min(n.length,r.length)
|
|||
|
return h!==B&&(e=n[0],t=n[c-1],e>t&&(a=e,e=t,t=a),h=function(a){return Math.max(e,Math.min(t,a))}),l=c>2?E:C,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?a:(i||(i=l(n.map(e),r,c)))(e(h(t)))}return d.invert=function(a){return h(t((o||(o=l(r,n.map(e),y)))(a)))},d.domain=function(e){return arguments.length?(n=Array.from(e,V),s()):n.slice()},d.range=function(e){return arguments.length?(r=Array.from(e),s()):r.slice()},d.rangeRound=function(e){return r=Array.from(e),c=H,s()},d.clamp=function(e){return arguments.length?(h=!!e||B,s()):h!==B},d.interpolate=function(e){return arguments.length?(c=e,s()):c},d.unknown=function(e){return arguments.length?(a=e,d):a},function(a,l){return e=a,t=l,s()}}function S(){return D()(B,B)}var F,O=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|||
|
function T(e){if(!(t=O.exec(e)))throw new Error("invalid format: "+e)
|
|||
|
var t
|
|||
|
return new P({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function P(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function N(e,t){if((a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|||
|
var a,l=e.slice(0,a)
|
|||
|
return[l.length>1?l[0]+l.slice(2):l,+e.slice(a+1)]}function U(e){return(e=N(Math.abs(e)))?e[1]:NaN}function R(e,t){var a=N(e,t)
|
|||
|
if(!a)return e+""
|
|||
|
var l=a[0],i=a[1]
|
|||
|
return i<0?"0."+new Array(-i).join("0")+l:l.length>i+1?l.slice(0,i+1)+"."+l.slice(i+1):l+new Array(i-l.length+2).join("0")}T.prototype=P.prototype,P.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
|
|||
|
const j={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>R(100*e,t),r:R,s:function(e,t){var a=N(e,t)
|
|||
|
if(!a)return e+""
|
|||
|
var l=a[0],i=a[1],o=i-(F=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,n=l.length
|
|||
|
return o===n?l:o>n?l+new Array(o-n+1).join("0"):o>0?l.slice(0,o)+"."+l.slice(o):"0."+new Array(1-o).join("0")+N(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|||
|
function I(e){return e}var G,$,q,Z=Array.prototype.map,Y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|||
|
function K(e,t,a,l){var i,o=(0,d.ly)(e,t,a)
|
|||
|
switch((l=T(null==l?",f":l)).type){case"s":var n=Math.max(Math.abs(e),Math.abs(t))
|
|||
|
return null!=l.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(U(t)/3)))-U(Math.abs(e)))}(o,n))||(l.precision=i),q(l,n)
|
|||
|
case"":case"e":case"g":case"p":case"r":null!=l.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,U(t)-U(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(l.precision=i-("e"===l.type))
|
|||
|
break
|
|||
|
case"f":case"%":null!=l.precision||isNaN(i=function(e){return Math.max(0,-U(Math.abs(e)))}(o))||(l.precision=i-2*("%"===l.type))}return $(l)}function W(e){var t=e.domain
|
|||
|
return e.ticks=function(e){var a=t()
|
|||
|
return(0,d.ZP)(a[0],a[a.length-1],null==e?10:e)},e.tickFormat=function(e,a){var l=t()
|
|||
|
return K(l[0],l[l.length-1],null==e?10:e,a)},e.nice=function(a){null==a&&(a=10)
|
|||
|
var l,i,o=t(),n=0,r=o.length-1,c=o[n],h=o[r],s=10
|
|||
|
for(h<c&&(i=c,c=h,h=i,i=n,n=r,r=i);s-- >0;){if((i=(0,d.G9)(c,h,a))===l)return o[n]=c,o[r]=h,t(o)
|
|||
|
if(i>0)c=Math.floor(c/i)*i,h=Math.ceil(h/i)*i
|
|||
|
else{if(!(i<0))break
|
|||
|
c=Math.ceil(c*i)/i,h=Math.floor(h*i)/i}l=i}return e},e}function X(){var e=S()
|
|||
|
return e.copy=function(){return k(e,X())},i.apply(e,arguments),W(e)}function J(e){var t
|
|||
|
function a(e){return null==e||isNaN(e=+e)?t:e}return a.invert=a,a.domain=a.range=function(t){return arguments.length?(e=Array.from(t,V),a):e.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return J(e).unknown(t)},e=arguments.length?Array.from(e,V):[0,1],W(a)}function Q(e,t){var a,l=0,i=(e=e.slice()).length-1,o=e[l],n=e[i]
|
|||
|
return n<o&&(a=l,l=i,i=a,a=o,o=n,n=a),e[l]=t.floor(o),e[i]=t.ceil(n),e}function ee(e){return Math.log(e)}function te(e){return Math.exp(e)}function ae(e){return-Math.log(-e)}function le(e){return-Math.exp(-e)}function ie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oe(e){return function(t){return-e(-t)}}function ne(e){var t,a,l=e(ee,te),i=l.domain,o=10
|
|||
|
function n(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),a=function(e){return 10===e?ie:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=oe(t),a=oe(a),e(ae,le)):e(ee,te),l}return l.base=function(e){return arguments.length?(o=+e,n()):o},l.domain=function(e){return arguments.length?(i(e),n()):i()},l.ticks=function(e){var l,n=i(),r=n[0],c=n[n.length-1];(l=c<r)&&(f=r,r=c,c=f)
|
|||
|
var h,s,u,f=t(r),v=t(c),p=null==e?10:+e,m=[]
|
|||
|
if(!(o%1)&&v-f<p){if(f=Math.floor(f),v=Math.ceil(v),r>0){for(;f<=v;++f)for(s=1,h=a(f);s<o;++s)if(!((u=h*s)<r)){if(u>c)break
|
|||
|
m.push(u)}}else for(;f<=v;++f)for(s=o-1,h=a(f);s>=1;--s)if(!((u=h*s)<r)){if(u>c)break
|
|||
|
m.push(u)}2*m.length<p&&(m=(0,d.ZP)(r,c,p))}else m=(0,d.ZP)(f,v,Math.min(v-f,p)).map(a)
|
|||
|
return l?m.reverse():m},l.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$(i)),e===1/0)return i
|
|||
|
null==e&&(e=10)
|
|||
|
var n=Math.max(1,o*e/l.ticks().length)
|
|||
|
return function(e){var l=e/a(Math.round(t(e)))
|
|||
|
return l*o<o-.5&&(l*=o),l<=n?i(e):""}},l.nice=function(){return i(Q(i(),{floor:function(e){return a(Math.floor(t(e)))},ceil:function(e){return a(Math.ceil(t(e)))}}))},l}function re(){var e=ne(D()).domain([1,10])
|
|||
|
return e.copy=function(){return k(e,re()).base(e.base())},i.apply(e,arguments),e}function ce(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function he(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function se(e){var t=1,a=e(ce(t),he(t))
|
|||
|
return a.constant=function(a){return arguments.length?e(ce(t=+a),he(t)):t},W(a)}function de(){var e=se(D())
|
|||
|
return e.copy=function(){return k(e,de()).constant(e.constant())},i.apply(e,arguments)}function ue(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ve(e){return e<0?-e*e:e*e}function pe(e){var t=e(B,B),a=1
|
|||
|
return t.exponent=function(t){return arguments.length?1==(a=+t)?e(B,B):.5===a?e(fe,ve):e(ue(a),ue(1/a)):a},W(t)}function me(){var e=pe(D())
|
|||
|
return e.copy=function(){return k(e,me()).exponent(e.exponent())},i.apply(e,arguments),e}function ye(){return me.apply(null,arguments).exponent(.5)}function ge(e){return Math.sign(e)*e*e}function be(){var e,t=S(),a=[0,1],l=!1
|
|||
|
function o(a){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(a))
|
|||
|
return isNaN(i)?e:l?Math.round(i):i}return o.invert=function(e){return t.invert(ge(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((a=Array.from(e,V)).map(ge)),o):a.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(l=!!e,o):l},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return be(t.domain(),a).round(l).clamp(t.clamp()).unknown(e)},i.apply(o,arguments),W(o)}G=function(e){var t,a,l=void 0===e.grouping||void 0===e.thousands?I:(t=Z.call(e.grouping,Number),a=e.thousands+"",function(e,l){for(var i=e.length,o=[],n=0,r=t[0],c=0;i>0&&r>0&&(c+r+1>l&&(r=Math.max(1,l-c)),o.push(e.substring(i-=r,i+r)),!((c+=r+1)>l));)r=t[n=(n+1)%t.length]
|
|||
|
return o.reverse().join(a)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",n=void 0===e.decimal?".":e.decimal+"",r=void 0===e.numerals?I:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Z.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",h=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+""
|
|||
|
function d(e){var t=(e=T(e)).fill,a=e.align,d=e.sign,u=e.symbol,f=e.zero,v=e.width,p=e.comma,m=e.precision,y=e.trim,g=e.type
|
|||
|
"n"===g?(p=!0,g="g"):j[g]||(void 0===m&&(m=12),y=!0,g="g"),(f||"0"===t&&"="===a)&&(f=!0,t="0",a="=")
|
|||
|
var b="$"===u?i:"#"===u&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",z="$"===u?o:/[%p]/.test(g)?c:"",M=j[g],A=/[defgprs%]/.test(g)
|
|||
|
function w(e){var i,o,c,u=b,w=z
|
|||
|
if("c"===g)w=M(e)+w,e=""
|
|||
|
else{var x=(e=+e)<0||1/e<0
|
|||
|
if(e=isNaN(e)?s:M(Math.abs(e),m),y&&(e=function(e){e:for(var t,a=e.length,l=1,i=-1;l<a;++l)switch(e[l]){case".":i=t=l
|
|||
|
break
|
|||
|
case"0":0===i&&(i=l),t=l
|
|||
|
break
|
|||
|
default:if(!+e[l])break e
|
|||
|
i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),x&&0==+e&&"+"!==d&&(x=!1),u=(x?"("===d?d:h:"-"===d||"("===d?"":d)+u,w=("s"===g?Y[8+F/3]:"")+w+(x&&"("===d?")":""),A)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){w=(46===c?n+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i)
|
|||
|
break}}p&&!f&&(e=l(e,1/0))
|
|||
|
var H=u.length+e.length+w.length,V=H<v?new Array(v-H+1).join(t):""
|
|||
|
switch(p&&f&&(e=l(V+e,V.length?v-w.length:1/0),V=""),a){case"<":e=u+e+w+V
|
|||
|
break
|
|||
|
case"=":e=u+V+e+w
|
|||
|
break
|
|||
|
case"^":e=V.slice(0,H=V.length>>1)+u+e+w+V.slice(H)
|
|||
|
break
|
|||
|
default:e=V+u+e+w}return r(e)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),w.toString=function(){return e+""},w}return{format:d,formatPrefix:function(e,t){var a=d(((e=T(e)).type="f",e)),l=3*Math.max(-8,Math.min(8,Math.floor(U(t)/3))),i=Math.pow(10,-l),o=Y[8+l/3]
|
|||
|
return function(e){return a(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),$=G.format,q=G.formatPrefix
|
|||
|
var ze=a(1657),Me=a(9731)
|
|||
|
function Ae(){var e,t=[],a=[],l=[]
|
|||
|
function o(){var e=0,i=Math.max(1,a.length)
|
|||
|
for(l=new Array(i-1);++e<i;)l[e-1]=(0,ze.s)(t,e/i)
|
|||
|
return n}function n(t){return null==t||isNaN(t=+t)?e:a[(0,u.ZP)(l,t)]}return n.invertExtent=function(e){var i=a.indexOf(e)
|
|||
|
return i<0?[NaN,NaN]:[i>0?l[i-1]:t[0],i<l.length?l[i]:t[t.length-1]]},n.domain=function(e){if(!arguments.length)return t.slice()
|
|||
|
t=[]
|
|||
|
for(let a of e)null==a||isNaN(a=+a)||t.push(a)
|
|||
|
return t.sort(Me.Z),o()},n.range=function(e){return arguments.length?(a=Array.from(e),o()):a.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.quantiles=function(){return l.slice()},n.copy=function(){return Ae().domain(t).range(a).unknown(e)},i.apply(n,arguments)}function we(){var e,t=0,a=1,l=1,o=[.5],n=[0,1]
|
|||
|
function r(t){return null!=t&&t<=t?n[(0,u.ZP)(o,t,0,l)]:e}function c(){var e=-1
|
|||
|
for(o=new Array(l);++e<l;)o[e]=((e+1)*a-(e-l)*t)/(l+1)
|
|||
|
return r}return r.domain=function(e){return arguments.length?([t,a]=e,t=+t,a=+a,c()):[t,a]},r.range=function(e){return arguments.length?(l=(n=Array.from(e)).length-1,c()):n.slice()},r.invertExtent=function(e){var i=n.indexOf(e)
|
|||
|
return i<0?[NaN,NaN]:i<1?[t,o[0]]:i>=l?[o[l-1],a]:[o[i-1],o[i]]},r.unknown=function(t){return arguments.length?(e=t,r):r},r.thresholds=function(){return o.slice()},r.copy=function(){return we().domain([t,a]).range(n).unknown(e)},i.apply(W(r),arguments)}function xe(){var e,t=[.5],a=[0,1],l=1
|
|||
|
function o(i){return null!=i&&i<=i?a[(0,u.ZP)(t,i,0,l)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),l=Math.min(t.length,a.length-1),o):t.slice()},o.range=function(e){return arguments.length?(a=Array.from(e),l=Math.min(t.length,a.length-1),o):a.slice()},o.invertExtent=function(e){var l=a.indexOf(e)
|
|||
|
return[t[l-1],t[l]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return xe().domain(t).range(a).unknown(e)},i.apply(o,arguments)}var He=a(7870)
|
|||
|
const Ve=1e3,_e=60*Ve,Be=60*_e,Le=24*Be,Ce=7*Le,Ee=30*Le,ke=365*Le
|
|||
|
var De=new Date,Se=new Date
|
|||
|
function Fe(e,t,a,l){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(e){var t=i(e),a=i.ceil(e)
|
|||
|
return e-t<a-e?t:a},i.offset=function(e,a){return t(e=new Date(+e),null==a?1:Math.floor(a)),e},i.range=function(a,l,o){var n,r=[]
|
|||
|
if(a=i.ceil(a),o=null==o?1:Math.floor(o),!(a<l&&o>0))return r
|
|||
|
do{r.push(n=new Date(+a)),t(a,o),e(a)}while(n<a&&a<l)
|
|||
|
return r},i.filter=function(a){return Fe((function(t){if(t>=t)for(;e(t),!a(t);)t.setTime(t-1)}),(function(e,l){if(e>=e)if(l<0)for(;++l<=0;)for(;t(e,-1),!a(e););else for(;--l>=0;)for(;t(e,1),!a(e););}))},a&&(i.count=function(t,l){return De.setTime(+t),Se.setTime(+l),e(De),e(Se),Math.floor(a(De,Se))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(l?function(t){return l(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Oe=Fe((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}))
|
|||
|
Oe.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Fe((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,a){t.setTime(+t+a*e)}),(function(t,a){return(a-t)/e})):Oe:null}
|
|||
|
const Te=Oe
|
|||
|
Oe.range
|
|||
|
var Pe=Fe((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ve)}),(function(e,t){return(t-e)/Ve}),(function(e){return e.getUTCSeconds()}))
|
|||
|
const Ne=Pe
|
|||
|
Pe.range
|
|||
|
var Ue=Fe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ve)}),(function(e,t){e.setTime(+e+t*_e)}),(function(e,t){return(t-e)/_e}),(function(e){return e.getMinutes()}))
|
|||
|
const Re=Ue
|
|||
|
Ue.range
|
|||
|
var je=Fe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ve-e.getMinutes()*_e)}),(function(e,t){e.setTime(+e+t*Be)}),(function(e,t){return(t-e)/Be}),(function(e){return e.getHours()}))
|
|||
|
const Ie=je
|
|||
|
je.range
|
|||
|
var Ge=Fe((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_e)/Le),(e=>e.getDate()-1))
|
|||
|
const $e=Ge
|
|||
|
function qe(e){return Fe((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_e)/Ce}))}Ge.range
|
|||
|
var Ze=qe(0),Ye=qe(1),Ke=qe(2),We=qe(3),Xe=qe(4),Je=qe(5),Qe=qe(6),et=(Ze.range,Ye.range,Ke.range,We.range,Xe.range,Je.range,Qe.range,Fe((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})))
|
|||
|
const tt=et
|
|||
|
et.range
|
|||
|
var at=Fe((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}))
|
|||
|
at.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fe((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,a){t.setFullYear(t.getFullYear()+a*e)})):null}
|
|||
|
const lt=at
|
|||
|
at.range
|
|||
|
var it=Fe((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*_e)}),(function(e,t){return(t-e)/_e}),(function(e){return e.getUTCMinutes()}))
|
|||
|
const ot=it
|
|||
|
it.range
|
|||
|
var nt=Fe((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Be)}),(function(e,t){return(t-e)/Be}),(function(e){return e.getUTCHours()}))
|
|||
|
const rt=nt
|
|||
|
nt.range
|
|||
|
var ct=Fe((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Le}),(function(e){return e.getUTCDate()-1}))
|
|||
|
const ht=ct
|
|||
|
function st(e){return Fe((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ce}))}ct.range
|
|||
|
var dt=st(0),ut=st(1),ft=st(2),vt=st(3),pt=st(4),mt=st(5),yt=st(6),gt=(dt.range,ut.range,ft.range,vt.range,pt.range,mt.range,yt.range,Fe((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})))
|
|||
|
const bt=gt
|
|||
|
gt.range
|
|||
|
var zt=Fe((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}))
|
|||
|
zt.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fe((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,a){t.setUTCFullYear(t.getUTCFullYear()+a*e)})):null}
|
|||
|
const Mt=zt
|
|||
|
function At(e,t,a,l,i,o){const n=[[Ne,1,Ve],[Ne,5,5*Ve],[Ne,15,15*Ve],[Ne,30,30*Ve],[o,1,_e],[o,5,5*_e],[o,15,15*_e],[o,30,30*_e],[i,1,Be],[i,3,3*Be],[i,6,6*Be],[i,12,12*Be],[l,1,Le],[l,2,2*Le],[a,1,Ce],[t,1,Ee],[t,3,3*Ee],[e,1,ke]]
|
|||
|
function r(t,a,l){const i=Math.abs(a-t)/l,o=(0,He.Z)((e=>{let[,,t]=e
|
|||
|
return t})).right(n,i)
|
|||
|
if(o===n.length)return e.every((0,d.ly)(t/ke,a/ke,l))
|
|||
|
if(0===o)return Te.every(Math.max((0,d.ly)(t,a,l),1))
|
|||
|
const[r,c]=n[i/n[o-1][2]<n[o][2]/i?o-1:o]
|
|||
|
return r.every(c)}return[function(e,t,a){const l=t<e
|
|||
|
l&&([e,t]=[t,e])
|
|||
|
const i=a&&"function"==typeof a.range?a:r(e,t,a),o=i?i.range(e,+t+1):[]
|
|||
|
return l?o.reverse():o},r]}zt.range
|
|||
|
const[wt,xt]=At(Mt,bt,dt,ht,rt,ot),[Ht,Vt]=At(lt,tt,Ze,$e,Ie,Re)
|
|||
|
function _t(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L)
|
|||
|
return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Bt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L))
|
|||
|
return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Lt(e,t,a){return{y:e,m:t,d:a,H:0,M:0,S:0,L:0}}var Ct,Et,kt,Dt={"-":"",_:" ",0:"0"},St=/^\s*\d+/,Ft=/^%/,Ot=/[\\^$*+?|[\]().{}]/g
|
|||
|
function Tt(e,t,a){var l=e<0?"-":"",i=(l?-e:e)+"",o=i.length
|
|||
|
return l+(o<a?new Array(a-o+1).join(t)+i:i)}function Pt(e){return e.replace(Ot,"\\$&")}function Nt(e){return new RegExp("^(?:"+e.map(Pt).join("|")+")","i")}function Ut(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Rt(e,t,a){var l=St.exec(t.slice(a,a+1))
|
|||
|
return l?(e.w=+l[0],a+l[0].length):-1}function jt(e,t,a){var l=St.exec(t.slice(a,a+1))
|
|||
|
return l?(e.u=+l[0],a+l[0].length):-1}function It(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.U=+l[0],a+l[0].length):-1}function Gt(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.V=+l[0],a+l[0].length):-1}function $t(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.W=+l[0],a+l[0].length):-1}function qt(e,t,a){var l=St.exec(t.slice(a,a+4))
|
|||
|
return l?(e.y=+l[0],a+l[0].length):-1}function Zt(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.y=+l[0]+(+l[0]>68?1900:2e3),a+l[0].length):-1}function Yt(e,t,a){var l=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(a,a+6))
|
|||
|
return l?(e.Z=l[1]?0:-(l[2]+(l[3]||"00")),a+l[0].length):-1}function Kt(e,t,a){var l=St.exec(t.slice(a,a+1))
|
|||
|
return l?(e.q=3*l[0]-3,a+l[0].length):-1}function Wt(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.m=l[0]-1,a+l[0].length):-1}function Xt(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.d=+l[0],a+l[0].length):-1}function Jt(e,t,a){var l=St.exec(t.slice(a,a+3))
|
|||
|
return l?(e.m=0,e.d=+l[0],a+l[0].length):-1}function Qt(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.H=+l[0],a+l[0].length):-1}function ea(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.M=+l[0],a+l[0].length):-1}function ta(e,t,a){var l=St.exec(t.slice(a,a+2))
|
|||
|
return l?(e.S=+l[0],a+l[0].length):-1}function aa(e,t,a){var l=St.exec(t.slice(a,a+3))
|
|||
|
return l?(e.L=+l[0],a+l[0].length):-1}function la(e,t,a){var l=St.exec(t.slice(a,a+6))
|
|||
|
return l?(e.L=Math.floor(l[0]/1e3),a+l[0].length):-1}function ia(e,t,a){var l=Ft.exec(t.slice(a,a+1))
|
|||
|
return l?a+l[0].length:-1}function oa(e,t,a){var l=St.exec(t.slice(a))
|
|||
|
return l?(e.Q=+l[0],a+l[0].length):-1}function na(e,t,a){var l=St.exec(t.slice(a))
|
|||
|
return l?(e.s=+l[0],a+l[0].length):-1}function ra(e,t){return Tt(e.getDate(),t,2)}function ca(e,t){return Tt(e.getHours(),t,2)}function ha(e,t){return Tt(e.getHours()%12||12,t,2)}function sa(e,t){return Tt(1+$e.count(lt(e),e),t,3)}function da(e,t){return Tt(e.getMilliseconds(),t,3)}function ua(e,t){return da(e,t)+"000"}function fa(e,t){return Tt(e.getMonth()+1,t,2)}function va(e,t){return Tt(e.getMinutes(),t,2)}function pa(e,t){return Tt(e.getSeconds(),t,2)}function ma(e){var t=e.getDay()
|
|||
|
return 0===t?7:t}function ya(e,t){return Tt(Ze.count(lt(e)-1,e),t,2)}function ga(e){var t=e.getDay()
|
|||
|
return t>=4||0===t?Xe(e):Xe.ceil(e)}function ba(e,t){return e=ga(e),Tt(Xe.count(lt(e),e)+(4===lt(e).getDay()),t,2)}function za(e){return e.getDay()}function Ma(e,t){return Tt(Ye.count(lt(e)-1,e),t,2)}function Aa(e,t){return Tt(e.getFullYear()%100,t,2)}function wa(e,t){return Tt((e=ga(e)).getFullYear()%100,t,2)}function xa(e,t){return Tt(e.getFullYear()%1e4,t,4)}function Ha(e,t){var a=e.getDay()
|
|||
|
return Tt((e=a>=4||0===a?Xe(e):Xe.ceil(e)).getFullYear()%1e4,t,4)}function Va(e){var t=e.getTimezoneOffset()
|
|||
|
return(t>0?"-":(t*=-1,"+"))+Tt(t/60|0,"0",2)+Tt(t%60,"0",2)}function _a(e,t){return Tt(e.getUTCDate(),t,2)}function Ba(e,t){return Tt(e.getUTCHours(),t,2)}function La(e,t){return Tt(e.getUTCHours()%12||12,t,2)}function Ca(e,t){return Tt(1+ht.count(Mt(e),e),t,3)}function Ea(e,t){return Tt(e.getUTCMilliseconds(),t,3)}function ka(e,t){return Ea(e,t)+"000"}function Da(e,t){return Tt(e.getUTCMonth()+1,t,2)}function Sa(e,t){return Tt(e.getUTCMinutes(),t,2)}function Fa(e,t){return Tt(e.getUTCSeconds(),t,2)}function Oa(e){var t=e.getUTCDay()
|
|||
|
return 0===t?7:t}function Ta(e,t){return Tt(dt.count(Mt(e)-1,e),t,2)}function Pa(e){var t=e.getUTCDay()
|
|||
|
return t>=4||0===t?pt(e):pt.ceil(e)}function Na(e,t){return e=Pa(e),Tt(pt.count(Mt(e),e)+(4===Mt(e).getUTCDay()),t,2)}function Ua(e){return e.getUTCDay()}function Ra(e,t){return Tt(ut.count(Mt(e)-1,e),t,2)}function ja(e,t){return Tt(e.getUTCFullYear()%100,t,2)}function Ia(e,t){return Tt((e=Pa(e)).getUTCFullYear()%100,t,2)}function Ga(e,t){return Tt(e.getUTCFullYear()%1e4,t,4)}function $a(e,t){var a=e.getUTCDay()
|
|||
|
return Tt((e=a>=4||0===a?pt(e):pt.ceil(e)).getUTCFullYear()%1e4,t,4)}function qa(){return"+0000"}function Za(){return"%"}function Ya(e){return+e}function Ka(e){return Math.floor(+e/1e3)}function Wa(e){return new Date(e)}function Xa(e){return e instanceof Date?+e:+new Date(+e)}function Ja(e,t,a,l,i,o,n,r,c,h){var s=S(),d=s.invert,u=s.domain,f=h(".%L"),v=h(":%S"),p=h("%I:%M"),m=h("%I %p"),y=h("%a %d"),g=h("%b %d"),b=h("%B"),z=h("%Y")
|
|||
|
function M(e){return(c(e)<e?f:r(e)<e?v:n(e)<e?p:o(e)<e?m:l(e)<e?i(e)<e?y:g:a(e)<e?b:z)(e)}return s.invert=function(e){return new Date(d(e))},s.domain=function(e){return arguments.length?u(Array.from(e,Xa)):u().map(Wa)},s.ticks=function(t){var a=u()
|
|||
|
return e(a[0],a[a.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?M:h(t)},s.nice=function(e){var a=u()
|
|||
|
return e&&"function"==typeof e.range||(e=t(a[0],a[a.length-1],null==e?10:e)),e?u(Q(a,e)):s},s.copy=function(){return k(s,Ja(e,t,a,l,i,o,n,r,c,h))},s}function Qa(){return i.apply(Ja(Ht,Vt,lt,tt,Ze,$e,Ie,Re,Ne,Et).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function el(){return i.apply(Ja(wt,xt,Mt,bt,dt,ht,rt,ot,Ne,kt).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function tl(){var e,t,a,l,i,o=0,n=1,r=B,c=!1
|
|||
|
function h(t){return null==t||isNaN(t=+t)?i:r(0===a?.5:(t=(l(t)-e)*a,c?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var a,l
|
|||
|
return arguments.length?([a,l]=t,r=e(a,l),h):[r(0),r(1)]}}return h.domain=function(i){return arguments.length?([o,n]=i,e=l(o=+o),t=l(n=+n),a=e===t?0:1/(t-e),h):[o,n]},h.clamp=function(e){return arguments.length?(c=!!e,h):c},h.interpolator=function(e){return arguments.length?(r=e,h):r},h.range=s(x),h.rangeRound=s(H),h.unknown=function(e){return arguments.length?(i=e,h):i},function(i){return l=i,e=i(o),t=i(n),a=e===t?0:1/(t-e),h}}function al(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ll(){var e=W(tl()(B))
|
|||
|
return e.copy=function(){return al(e,ll())},o.apply(e,arguments)}function il(){var e=ne(tl()).domain([1,10])
|
|||
|
return e.copy=function(){return al(e,il()).base(e.base())},o.apply(e,arguments)}function ol(){var e=se(tl())
|
|||
|
return e.copy=function(){return al(e,ol()).constant(e.constant())},o.apply(e,arguments)}function nl(){var e=pe(tl())
|
|||
|
return e.copy=function(){return al(e,nl()).exponent(e.exponent())},o.apply(e,arguments)}function rl(){return nl.apply(null,arguments).exponent(.5)}function cl(){var e=[],t=B
|
|||
|
function a(a){if(null!=a&&!isNaN(a=+a))return t(((0,u.ZP)(e,a,1)-1)/(e.length-1))}return a.domain=function(t){if(!arguments.length)return e.slice()
|
|||
|
e=[]
|
|||
|
for(let a of t)null==a||isNaN(a=+a)||e.push(a)
|
|||
|
return e.sort(Me.Z),a},a.interpolator=function(e){return arguments.length?(t=e,a):t},a.range=function(){return e.map(((a,l)=>t(l/(e.length-1))))},a.quantiles=function(t){return Array.from({length:t+1},((a,l)=>(0,ze.Z)(e,l/t)))},a.copy=function(){return cl(t).domain(e)},o.apply(a,arguments)}function hl(){var e,t,a,l,i,o,n,r=0,c=.5,h=1,s=1,d=B,u=!1
|
|||
|
function f(e){return isNaN(e=+e)?n:(e=.5+((e=+o(e))-t)*(s*e<s*t?l:i),d(u?Math.max(0,Math.min(1,e)):e))}function v(e){return function(t){var a,l,i
|
|||
|
return arguments.length?([a,l,i]=t,d=function(e,t){void 0===t&&(t=e,e=x)
|
|||
|
for(var a=0,l=t.length-1,i=t[0],o=new Array(l<0?0:l);a<l;)o[a]=e(i,i=t[++a])
|
|||
|
return function(e){var t=Math.max(0,Math.min(l-1,Math.floor(e*=l)))
|
|||
|
return o[t](e-t)}}(e,[a,l,i]),f):[d(0),d(.5),d(1)]}}return f.domain=function(n){return arguments.length?([r,c,h]=n,e=o(r=+r),t=o(c=+c),a=o(h=+h),l=e===t?0:.5/(t-e),i=t===a?0:.5/(a-t),s=t<e?-1:1,f):[r,c,h]},f.clamp=function(e){return arguments.length?(u=!!e,f):u},f.interpolator=function(e){return arguments.length?(d=e,f):d},f.range=v(x),f.rangeRound=v(H),f.unknown=function(e){return arguments.length?(n=e,f):n},function(n){return o=n,e=n(r),t=n(c),a=n(h),l=e===t?0:.5/(t-e),i=t===a?0:.5/(a-t),s=t<e?-1:1,f}}function sl(){var e=W(hl()(B))
|
|||
|
return e.copy=function(){return al(e,sl())},o.apply(e,arguments)}function dl(){var e=ne(hl()).domain([.1,1,10])
|
|||
|
return e.copy=function(){return al(e,dl()).base(e.base())},o.apply(e,arguments)}function ul(){var e=se(hl())
|
|||
|
return e.copy=function(){return al(e,ul()).constant(e.constant())},o.apply(e,arguments)}function fl(){var e=pe(hl())
|
|||
|
return e.copy=function(){return al(e,fl()).exponent(e.exponent())},o.apply(e,arguments)}function vl(){return fl.apply(null,arguments).exponent(.5)}Ct=function(e){var t=e.dateTime,a=e.date,l=e.time,i=e.periods,o=e.days,n=e.shortDays,r=e.months,c=e.shortMonths,h=Nt(i),s=Ut(i),d=Nt(o),u=Ut(o),f=Nt(n),v=Ut(n),p=Nt(r),m=Ut(r),y=Nt(c),g=Ut(c),b={a:function(e){return n[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return r[e.getMonth()]},c:null,d:ra,e:ra,f:ua,g:wa,G:Ha,H:ca,I:ha,j:sa,L:da,m:fa,M:va,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ya,s:Ka,S:pa,u:ma,U:ya,V:ba,w:za,W:Ma,x:null,X:null,y:Aa,Y:xa,Z:Va,"%":Za},z={a:function(e){return n[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return r[e.getUTCMonth()]},c:null,d:_a,e:_a,f:ka,g:Ia,G:$a,H:Ba,I:La,j:Ca,L:Ea,m:Da,M:Sa,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ya,s:Ka,S:Fa,u:Oa,U:Ta,V:Na,w:Ua,W:Ra,x:null,X:null,y:ja,Y:Ga,Z:qa,"%":Za},M={a:function(e,t,a){var l=f.exec(t.slice(a))
|
|||
|
return l?(e.w=v.get(l[0].toLowerCase()),a+l[0].length):-1},A:function(e,t,a){var l=d.exec(t.slice(a))
|
|||
|
return l?(e.w=u.get(l[0].toLowerCase()),a+l[0].length):-1},b:function(e,t,a){var l=y.exec(t.slice(a))
|
|||
|
return l?(e.m=g.get(l[0].toLowerCase()),a+l[0].length):-1},B:function(e,t,a){var l=p.exec(t.slice(a))
|
|||
|
return l?(e.m=m.get(l[0].toLowerCase()),a+l[0].length):-1},c:function(e,a,l){return x(e,t,a,l)},d:Xt,e:Xt,f:la,g:Zt,G:qt,H:Qt,I:Qt,j:Jt,L:aa,m:Wt,M:ea,p:function(e,t,a){var l=h.exec(t.slice(a))
|
|||
|
return l?(e.p=s.get(l[0].toLowerCase()),a+l[0].length):-1},q:Kt,Q:oa,s:na,S:ta,u:jt,U:It,V:Gt,w:Rt,W:$t,x:function(e,t,l){return x(e,a,t,l)},X:function(e,t,a){return x(e,l,t,a)},y:Zt,Y:qt,Z:Yt,"%":ia}
|
|||
|
function A(e,t){return function(a){var l,i,o,n=[],r=-1,c=0,h=e.length
|
|||
|
for(a instanceof Date||(a=new Date(+a));++r<h;)37===e.charCodeAt(r)&&(n.push(e.slice(c,r)),null!=(i=Dt[l=e.charAt(++r)])?l=e.charAt(++r):i="e"===l?" ":"0",(o=t[l])&&(l=o(a,i)),n.push(l),c=r+1)
|
|||
|
return n.push(e.slice(c,r)),n.join("")}}function w(e,t){return function(a){var l,i,o=Lt(1900,void 0,1)
|
|||
|
if(x(o,e,a+="",0)!=a.length)return null
|
|||
|
if("Q"in o)return new Date(o.Q)
|
|||
|
if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0))
|
|||
|
if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null
|
|||
|
"w"in o||(o.w=1),"Z"in o?(i=(l=Bt(Lt(o.y,0,1))).getUTCDay(),l=i>4||0===i?ut.ceil(l):ut(l),l=ht.offset(l,7*(o.V-1)),o.y=l.getUTCFullYear(),o.m=l.getUTCMonth(),o.d=l.getUTCDate()+(o.w+6)%7):(i=(l=_t(Lt(o.y,0,1))).getDay(),l=i>4||0===i?Ye.ceil(l):Ye(l),l=$e.offset(l,7*(o.V-1)),o.y=l.getFullYear(),o.m=l.getMonth(),o.d=l.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Bt(Lt(o.y,0,1)).getUTCDay():_t(Lt(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7)
|
|||
|
return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Bt(o)):_t(o)}}function x(e,t,a,l){for(var i,o,n=0,r=t.length,c=a.length;n<r;){if(l>=c)return-1
|
|||
|
if(37===(i=t.charCodeAt(n++))){if(i=t.charAt(n++),!(o=M[i in Dt?t.charAt(n++):i])||(l=o(e,a,l))<0)return-1}else if(i!=a.charCodeAt(l++))return-1}return l}return b.x=A(a,b),b.X=A(l,b),b.c=A(t,b),z.x=A(a,z),z.X=A(l,z),z.c=A(t,z),{format:function(e){var t=A(e+="",b)
|
|||
|
return t.toString=function(){return e},t},parse:function(e){var t=w(e+="",!1)
|
|||
|
return t.toString=function(){return e},t},utcFormat:function(e){var t=A(e+="",z)
|
|||
|
return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+="",!0)
|
|||
|
return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Et=Ct.format,Ct.parse,kt=Ct.utcFormat,Ct.utcParse},8740:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{create:()=>me,creator:()=>c,local:()=>ge,matcher:()=>v,namespace:()=>o,namespaces:()=>i,pointer:()=>Me,pointers:()=>Ae,select:()=>pe,selectAll:()=>we,selection:()=>ve,selector:()=>s,selectorAll:()=>f,style:()=>O,window:()=>k})
|
|||
|
var l="http://www.w3.org/1999/xhtml"
|
|||
|
const i={svg:"http://www.w3.org/2000/svg",xhtml:l,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|||
|
function o(e){var t=e+="",a=t.indexOf(":")
|
|||
|
return a>=0&&"xmlns"!==(t=e.slice(0,a))&&(e=e.slice(a+1)),i.hasOwnProperty(t)?{space:i[t],local:e}:e}function n(e){return function(){var t=this.ownerDocument,a=this.namespaceURI
|
|||
|
return a===l&&t.documentElement.namespaceURI===l?t.createElement(e):t.createElementNS(a,e)}}function r(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function c(e){var t=o(e)
|
|||
|
return(t.local?r:n)(t)}function h(){}function s(e){return null==e?h:function(){return this.querySelector(e)}}function d(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function u(){return[]}function f(e){return null==e?u:function(){return this.querySelectorAll(e)}}function v(e){return function(){return this.matches(e)}}function p(e){return function(t){return t.matches(e)}}var m=Array.prototype.find
|
|||
|
function y(){return this.firstElementChild}var g=Array.prototype.filter
|
|||
|
function b(){return this.children}function z(e){return new Array(e.length)}function M(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A(e,t,a,l,i,o){for(var n,r=0,c=t.length,h=o.length;r<h;++r)(n=t[r])?(n.__data__=o[r],l[r]=n):a[r]=new M(e,o[r])
|
|||
|
for(;r<c;++r)(n=t[r])&&(i[r]=n)}function w(e,t,a,l,i,o,n){var r,c,h,s=new Map,d=t.length,u=o.length,f=new Array(d)
|
|||
|
for(r=0;r<d;++r)(c=t[r])&&(f[r]=h=n.call(c,c.__data__,r,t)+"",s.has(h)?i[r]=c:s.set(h,c))
|
|||
|
for(r=0;r<u;++r)h=n.call(e,o[r],r,o)+"",(c=s.get(h))?(l[r]=c,c.__data__=o[r],s.delete(h)):a[r]=new M(e,o[r])
|
|||
|
for(r=0;r<d;++r)(c=t[r])&&s.get(f[r])===c&&(i[r]=c)}function x(e){return e.__data__}function H(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function V(e){return function(){this.removeAttribute(e)}}function _(e){return function(){this.removeAttributeNS(e.space,e.local)}}function B(e,t){return function(){this.setAttribute(e,t)}}function L(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function C(e,t){return function(){var a=t.apply(this,arguments)
|
|||
|
null==a?this.removeAttribute(e):this.setAttribute(e,a)}}function E(e,t){return function(){var a=t.apply(this,arguments)
|
|||
|
null==a?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,a)}}function k(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function D(e){return function(){this.style.removeProperty(e)}}function S(e,t,a){return function(){this.style.setProperty(e,t,a)}}function F(e,t,a){return function(){var l=t.apply(this,arguments)
|
|||
|
null==l?this.style.removeProperty(e):this.style.setProperty(e,l,a)}}function O(e,t){return e.style.getPropertyValue(t)||k(e).getComputedStyle(e,null).getPropertyValue(t)}function T(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function N(e,t){return function(){var a=t.apply(this,arguments)
|
|||
|
null==a?delete this[e]:this[e]=a}}function U(e){return e.trim().split(/^|\s+/)}function R(e){return e.classList||new j(e)}function j(e){this._node=e,this._names=U(e.getAttribute("class")||"")}function I(e,t){for(var a=R(e),l=-1,i=t.length;++l<i;)a.add(t[l])}function G(e,t){for(var a=R(e),l=-1,i=t.length;++l<i;)a.remove(t[l])}function $(e){return function(){I(this,e)}}function q(e){return function(){G(this,e)}}function Z(e,t){return function(){(t.apply(this,arguments)?I:G)(this,e)}}function Y(){this.textContent=""}function K(e){return function(){this.textContent=e}}function W(e){return function(){var t=e.apply(this,arguments)
|
|||
|
this.textContent=null==t?"":t}}function X(){this.innerHTML=""}function J(e){return function(){this.innerHTML=e}}function Q(e){return function(){var t=e.apply(this,arguments)
|
|||
|
this.innerHTML=null==t?"":t}}function ee(){this.nextSibling&&this.parentNode.appendChild(this)}function te(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ae(){return null}function le(){var e=this.parentNode
|
|||
|
e&&e.removeChild(this)}function ie(){var e=this.cloneNode(!1),t=this.parentNode
|
|||
|
return t?t.insertBefore(e,this.nextSibling):e}function oe(){var e=this.cloneNode(!0),t=this.parentNode
|
|||
|
return t?t.insertBefore(e,this.nextSibling):e}function ne(e){return function(){var t=this.__on
|
|||
|
if(t){for(var a,l=0,i=-1,o=t.length;l<o;++l)a=t[l],e.type&&a.type!==e.type||a.name!==e.name?t[++i]=a:this.removeEventListener(a.type,a.listener,a.options);++i?t.length=i:delete this.__on}}}function re(e,t,a){return function(){var l,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|||
|
if(i)for(var n=0,r=i.length;n<r;++n)if((l=i[n]).type===e.type&&l.name===e.name)return this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=o,l.options=a),void(l.value=t)
|
|||
|
this.addEventListener(e.type,o,a),l={type:e.type,name:e.name,value:t,listener:o,options:a},i?i.push(l):this.__on=[l]}}function ce(e,t,a){var l=k(e),i=l.CustomEvent
|
|||
|
"function"==typeof i?i=new i(t,a):(i=l.document.createEvent("Event"),a?(i.initEvent(t,a.bubbles,a.cancelable),i.detail=a.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function he(e,t){return function(){return ce(this,e,t)}}function se(e,t){return function(){return ce(this,e,t.apply(this,arguments))}}M.prototype={constructor:M,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},j.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
|
|||
|
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|||
|
var de=[null]
|
|||
|
function ue(e,t){this._groups=e,this._parents=t}function fe(){return new ue([[document.documentElement]],de)}ue.prototype=fe.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=s(e))
|
|||
|
for(var t=this._groups,a=t.length,l=new Array(a),i=0;i<a;++i)for(var o,n,r=t[i],c=r.length,h=l[i]=new Array(c),d=0;d<c;++d)(o=r[d])&&(n=e.call(o,o.__data__,d,r))&&("__data__"in o&&(n.__data__=o.__data__),h[d]=n)
|
|||
|
return new ue(l,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){var t=e.apply(this,arguments)
|
|||
|
return null==t?[]:d(t)}}(e):f(e)
|
|||
|
for(var t=this._groups,a=t.length,l=[],i=[],o=0;o<a;++o)for(var n,r=t[o],c=r.length,h=0;h<c;++h)(n=r[h])&&(l.push(e.call(n,n.__data__,h,r)),i.push(n))
|
|||
|
return new ue(l,i)},selectChild:function(e){return this.select(null==e?y:function(e){return function(){return m.call(this.children,e)}}("function"==typeof e?e:p(e)))},selectChildren:function(e){return this.selectAll(null==e?b:function(e){return function(){return g.call(this.children,e)}}("function"==typeof e?e:p(e)))},filter:function(e){"function"!=typeof e&&(e=v(e))
|
|||
|
for(var t=this._groups,a=t.length,l=new Array(a),i=0;i<a;++i)for(var o,n=t[i],r=n.length,c=l[i]=[],h=0;h<r;++h)(o=n[h])&&e.call(o,o.__data__,h,n)&&c.push(o)
|
|||
|
return new ue(l,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,x)
|
|||
|
var a,l=t?w:A,i=this._parents,o=this._groups
|
|||
|
"function"!=typeof e&&(a=e,e=function(){return a})
|
|||
|
for(var n=o.length,r=new Array(n),c=new Array(n),h=new Array(n),s=0;s<n;++s){var u=i[s],f=o[s],v=f.length,p=d(e.call(u,u&&u.__data__,s,i)),m=p.length,y=c[s]=new Array(m),g=r[s]=new Array(m)
|
|||
|
l(u,f,y,g,h[s]=new Array(v),p,t)
|
|||
|
for(var b,z,M=0,H=0;M<m;++M)if(b=y[M]){for(M>=H&&(H=M+1);!(z=g[H])&&++H<m;);b._next=z||null}}return(r=new ue(r,i))._enter=c,r._exit=h,r},enter:function(){return new ue(this._enter||this._groups.map(z),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(z),this._parents)},join:function(e,t,a){var l=this.enter(),i=this,o=this.exit()
|
|||
|
return l="function"==typeof e?e(l):l.append(e+""),null!=t&&(i=t(i)),null==a?o.remove():a(o),l&&i?l.merge(i).order():i},merge:function(e){if(!(e instanceof ue))throw new Error("invalid merge")
|
|||
|
for(var t=this._groups,a=e._groups,l=t.length,i=a.length,o=Math.min(l,i),n=new Array(l),r=0;r<o;++r)for(var c,h=t[r],s=a[r],d=h.length,u=n[r]=new Array(d),f=0;f<d;++f)(c=h[f]||s[f])&&(u[f]=c)
|
|||
|
for(;r<l;++r)n[r]=t[r]
|
|||
|
return new ue(n,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,a=e.length;++t<a;)for(var l,i=e[t],o=i.length-1,n=i[o];--o>=0;)(l=i[o])&&(n&&4^l.compareDocumentPosition(n)&&n.parentNode.insertBefore(l,n),n=l)
|
|||
|
return this},sort:function(e){function t(t,a){return t&&a?e(t.__data__,a.__data__):!t-!a}e||(e=H)
|
|||
|
for(var a=this._groups,l=a.length,i=new Array(l),o=0;o<l;++o){for(var n,r=a[o],c=r.length,h=i[o]=new Array(c),s=0;s<c;++s)(n=r[s])&&(h[s]=n)
|
|||
|
h.sort(t)}return new ue(i,this._parents).order()},call:function(){var e=arguments[0]
|
|||
|
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l=e[t],i=0,o=l.length;i<o;++i){var n=l[i]
|
|||
|
if(n)return n}return null},size:function(){let e=0
|
|||
|
for(const t of this)++e
|
|||
|
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var i,o=t[a],n=0,r=o.length;n<r;++n)(i=o[n])&&e.call(i,i.__data__,n,o)
|
|||
|
return this},attr:function(e,t){var a=o(e)
|
|||
|
if(arguments.length<2){var l=this.node()
|
|||
|
return a.local?l.getAttributeNS(a.space,a.local):l.getAttribute(a)}return this.each((null==t?a.local?_:V:"function"==typeof t?a.local?E:C:a.local?L:B)(a,t))},style:function(e,t,a){return arguments.length>1?this.each((null==t?D:"function"==typeof t?F:S)(e,t,null==a?"":a)):O(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?T:"function"==typeof t?N:P)(e,t)):this.node()[e]},classed:function(e,t){var a=U(e+"")
|
|||
|
if(arguments.length<2){for(var l=R(this.node()),i=-1,o=a.length;++i<o;)if(!l.contains(a[i]))return!1
|
|||
|
return!0}return this.each(("function"==typeof t?Z:t?$:q)(a,t))},text:function(e){return arguments.length?this.each(null==e?Y:("function"==typeof e?W:K)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?X:("function"==typeof e?Q:J)(e)):this.node().innerHTML},raise:function(){return this.each(ee)},lower:function(){return this.each(te)},append:function(e){var t="function"==typeof e?e:c(e)
|
|||
|
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var a="function"==typeof e?e:c(e),l=null==t?ae:"function"==typeof t?t:s(t)
|
|||
|
return this.select((function(){return this.insertBefore(a.apply(this,arguments),l.apply(this,arguments)||null)}))},remove:function(){return this.each(le)},clone:function(e){return this.select(e?oe:ie)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,a){var l,i,o=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",a=e.indexOf(".")
|
|||
|
return a>=0&&(t=e.slice(a+1),e=e.slice(0,a)),{type:e,name:t}}))}(e+""),n=o.length
|
|||
|
if(!(arguments.length<2)){for(r=t?re:ne,l=0;l<n;++l)this.each(r(o[l],t,a))
|
|||
|
return this}var r=this.node().__on
|
|||
|
if(r)for(var c,h=0,s=r.length;h<s;++h)for(l=0,c=r[h];l<n;++l)if((i=o[l]).type===c.type&&i.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"==typeof t?se:he)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l,i=e[t],o=0,n=i.length;o<n;++o)(l=i[o])&&(yield l)}}
|
|||
|
const ve=fe
|
|||
|
function pe(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],de)}function me(e){return pe(c(e).call(document.documentElement))}var ye=0
|
|||
|
function ge(){return new be}function be(){this._="@"+(++ye).toString(36)}function ze(e){let t
|
|||
|
for(;t=e.sourceEvent;)e=t
|
|||
|
return e}function Me(e,t){if(e=ze(e),void 0===t&&(t=e.currentTarget),t){var a=t.ownerSVGElement||t
|
|||
|
if(a.createSVGPoint){var l=a.createSVGPoint()
|
|||
|
return l.x=e.clientX,l.y=e.clientY,[(l=l.matrixTransform(t.getScreenCTM().inverse())).x,l.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect()
|
|||
|
return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Ae(e,t){return e.target&&(e=ze(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>Me(e,t)))}function we(e){return"string"==typeof e?new ue([document.querySelectorAll(e)],[document.documentElement]):new ue([null==e?[]:d(e)],de)}be.prototype=ge.prototype={constructor:be,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return
|
|||
|
return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}}},5043:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{arc:()=>L,area:()=>T,areaRadial:()=>q,curveBasis:()=>He,curveBasisClosed:()=>_e,curveBasisOpen:()=>Le,curveBumpX:()=>Ee,curveBumpY:()=>ke,curveBundle:()=>Se,curveCardinal:()=>Te,curveCardinalClosed:()=>Ne,curveCardinalOpen:()=>Re,curveCatmullRom:()=>Ge,curveCatmullRomClosed:()=>qe,curveCatmullRomOpen:()=>Ye,curveLinear:()=>D,curveLinearClosed:()=>We,curveMonotoneX:()=>it,curveMonotoneY:()=>ot,curveNatural:()=>ct,curveStep:()=>st,curveStepAfter:()=>ut,curveStepBefore:()=>dt,line:()=>O,lineRadial:()=>$,linkHorizontal:()=>ee,linkRadial:()=>ae,linkVertical:()=>te,pie:()=>U,pointRadial:()=>Z,radialArea:()=>q,radialLine:()=>$,stack:()=>yt,stackOffsetDiverging:()=>bt,stackOffsetExpand:()=>gt,stackOffsetNone:()=>ft,stackOffsetSilhouette:()=>zt,stackOffsetWiggle:()=>Mt,stackOrderAppearance:()=>At,stackOrderAscending:()=>xt,stackOrderDescending:()=>Vt,stackOrderInsideOut:()=>_t,stackOrderNone:()=>vt,stackOrderReverse:()=>Bt,symbol:()=>Me,symbolCircle:()=>le,symbolCross:()=>ie,symbolDiamond:()=>re,symbolSquare:()=>ue,symbolStar:()=>de,symbolTriangle:()=>ve,symbolWye:()=>be,symbols:()=>ze})
|
|||
|
const l=Math.PI,i=2*l,o=1e-6,n=i-o
|
|||
|
function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new r}r.prototype=c.prototype={constructor:r,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,a,l){this._+="Q"+ +e+","+ +t+","+(this._x1=+a)+","+(this._y1=+l)},bezierCurveTo:function(e,t,a,l,i,o){this._+="C"+ +e+","+ +t+","+ +a+","+ +l+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,a,i,n){e=+e,t=+t,a=+a,i=+i,n=+n
|
|||
|
var r=this._x1,c=this._y1,h=a-e,s=i-t,d=r-e,u=c-t,f=d*d+u*u
|
|||
|
if(n<0)throw new Error("negative radius: "+n)
|
|||
|
if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t)
|
|||
|
else if(f>o)if(Math.abs(u*h-s*d)>o&&n){var v=a-r,p=i-c,m=h*h+s*s,y=v*v+p*p,g=Math.sqrt(m),b=Math.sqrt(f),z=n*Math.tan((l-Math.acos((m+f-y)/(2*g*b)))/2),M=z/b,A=z/g
|
|||
|
Math.abs(M-1)>o&&(this._+="L"+(e+M*d)+","+(t+M*u)),this._+="A"+n+","+n+",0,0,"+ +(u*v>d*p)+","+(this._x1=e+A*h)+","+(this._y1=t+A*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,a,r,c,h){e=+e,t=+t,h=!!h
|
|||
|
var s=(a=+a)*Math.cos(r),d=a*Math.sin(r),u=e+s,f=t+d,v=1^h,p=h?r-c:c-r
|
|||
|
if(a<0)throw new Error("negative radius: "+a)
|
|||
|
null===this._x1?this._+="M"+u+","+f:(Math.abs(this._x1-u)>o||Math.abs(this._y1-f)>o)&&(this._+="L"+u+","+f),a&&(p<0&&(p=p%i+i),p>n?this._+="A"+a+","+a+",0,1,"+v+","+(e-s)+","+(t-d)+"A"+a+","+a+",0,1,"+v+","+(this._x1=u)+","+(this._y1=f):p>o&&(this._+="A"+a+","+a+",0,"+ +(p>=l)+","+v+","+(this._x1=e+a*Math.cos(c))+","+(this._y1=t+a*Math.sin(c))))},rect:function(e,t,a,l){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +a+"v"+ +l+"h"+-a+"Z"},toString:function(){return this._}}
|
|||
|
const h=c
|
|||
|
function s(e){return function(){return e}}var d=Math.abs,u=Math.atan2,f=Math.cos,v=Math.max,p=Math.min,m=Math.sin,y=Math.sqrt,g=1e-12,b=Math.PI,z=b/2,M=2*b
|
|||
|
function A(e){return e>=1?z:e<=-1?-z:Math.asin(e)}function w(e){return e.innerRadius}function x(e){return e.outerRadius}function H(e){return e.startAngle}function V(e){return e.endAngle}function _(e){return e&&e.padAngle}function B(e,t,a,l,i,o,n){var r=e-a,c=t-l,h=(n?o:-o)/y(r*r+c*c),s=h*c,d=-h*r,u=e+s,f=t+d,p=a+s,m=l+d,g=(u+p)/2,b=(f+m)/2,z=p-u,M=m-f,A=z*z+M*M,w=i-o,x=u*m-p*f,H=(M<0?-1:1)*y(v(0,w*w*A-x*x)),V=(x*M-z*H)/A,_=(-x*z-M*H)/A,B=(x*M+z*H)/A,L=(-x*z+M*H)/A,C=V-g,E=_-b,k=B-g,D=L-b
|
|||
|
return C*C+E*E>k*k+D*D&&(V=B,_=L),{cx:V,cy:_,x01:-s,y01:-d,x11:V*(i/w-1),y11:_*(i/w-1)}}function L(){var e=w,t=x,a=s(0),l=null,i=H,o=V,n=_,r=null
|
|||
|
function c(){var c,s,v,w=+e.apply(this,arguments),x=+t.apply(this,arguments),H=i.apply(this,arguments)-z,V=o.apply(this,arguments)-z,_=d(V-H),L=V>H
|
|||
|
if(r||(r=c=h()),x<w&&(s=x,x=w,w=s),x>g)if(_>M-g)r.moveTo(x*f(H),x*m(H)),r.arc(0,0,x,H,V,!L),w>g&&(r.moveTo(w*f(V),w*m(V)),r.arc(0,0,w,V,H,L))
|
|||
|
else{var C,E,k=H,D=V,S=H,F=V,O=_,T=_,P=n.apply(this,arguments)/2,N=P>g&&(l?+l.apply(this,arguments):y(w*w+x*x)),U=p(d(x-w)/2,+a.apply(this,arguments)),R=U,j=U
|
|||
|
if(N>g){var I=A(N/w*m(P)),G=A(N/x*m(P));(O-=2*I)>g?(S+=I*=L?1:-1,F-=I):(O=0,S=F=(H+V)/2),(T-=2*G)>g?(k+=G*=L?1:-1,D-=G):(T=0,k=D=(H+V)/2)}var $=x*f(k),q=x*m(k),Z=w*f(F),Y=w*m(F)
|
|||
|
if(U>g){var K,W=x*f(D),X=x*m(D),J=w*f(S),Q=w*m(S)
|
|||
|
if(_<b&&(K=function(e,t,a,l,i,o,n,r){var c=a-e,h=l-t,s=n-i,d=r-o,u=d*c-s*h
|
|||
|
if(!(u*u<g))return[e+(u=(s*(t-o)-d*(e-i))/u)*c,t+u*h]}($,q,J,Q,W,X,Z,Y))){var ee=$-K[0],te=q-K[1],ae=W-K[0],le=X-K[1],ie=1/m(((v=(ee*ae+te*le)/(y(ee*ee+te*te)*y(ae*ae+le*le)))>1?0:v<-1?b:Math.acos(v))/2),oe=y(K[0]*K[0]+K[1]*K[1])
|
|||
|
R=p(U,(w-oe)/(ie-1)),j=p(U,(x-oe)/(ie+1))}}T>g?j>g?(C=B(J,Q,$,q,x,j,L),E=B(W,X,Z,Y,x,j,L),r.moveTo(C.cx+C.x01,C.cy+C.y01),j<U?r.arc(C.cx,C.cy,j,u(C.y01,C.x01),u(E.y01,E.x01),!L):(r.arc(C.cx,C.cy,j,u(C.y01,C.x01),u(C.y11,C.x11),!L),r.arc(0,0,x,u(C.cy+C.y11,C.cx+C.x11),u(E.cy+E.y11,E.cx+E.x11),!L),r.arc(E.cx,E.cy,j,u(E.y11,E.x11),u(E.y01,E.x01),!L))):(r.moveTo($,q),r.arc(0,0,x,k,D,!L)):r.moveTo($,q),w>g&&O>g?R>g?(C=B(Z,Y,W,X,w,-R,L),E=B($,q,J,Q,w,-R,L),r.lineTo(C.cx+C.x01,C.cy+C.y01),R<U?r.arc(C.cx,C.cy,R,u(C.y01,C.x01),u(E.y01,E.x01),!L):(r.arc(C.cx,C.cy,R,u(C.y01,C.x01),u(C.y11,C.x11),!L),r.arc(0,0,w,u(C.cy+C.y11,C.cx+C.x11),u(E.cy+E.y11,E.cx+E.x11),L),r.arc(E.cx,E.cy,R,u(E.y11,E.x11),u(E.y01,E.x01),!L))):r.arc(0,0,w,F,S,L):r.lineTo(Z,Y)}else r.moveTo(0,0)
|
|||
|
if(r.closePath(),c)return r=null,c+""||null}return c.centroid=function(){var a=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,l=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-b/2
|
|||
|
return[f(l)*a,m(l)*a]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),c):t},c.cornerRadius=function(e){return arguments.length?(a="function"==typeof e?e:s(+e),c):a},c.padRadius=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:s(+e),c):l},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:s(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),c):o},c.padAngle=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),c):n},c.context=function(e){return arguments.length?(r=null==e?null:e,c):r},c}var C=Array.prototype.slice
|
|||
|
function E(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function k(e){this._context=e}function D(e){return new k(e)}function S(e){return e[0]}function F(e){return e[1]}function O(e,t){var a=s(!0),l=null,i=D,o=null
|
|||
|
function n(n){var r,c,s,d=(n=E(n)).length,u=!1
|
|||
|
for(null==l&&(o=i(s=h())),r=0;r<=d;++r)!(r<d&&a(c=n[r],r,n))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+e(c,r,n),+t(c,r,n))
|
|||
|
if(s)return o=null,s+""||null}return e="function"==typeof e?e:void 0===e?S:s(e),t="function"==typeof t?t:void 0===t?F:s(t),n.x=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),n):t},n.defined=function(e){return arguments.length?(a="function"==typeof e?e:s(!!e),n):a},n.curve=function(e){return arguments.length?(i=e,null!=l&&(o=i(l)),n):i},n.context=function(e){return arguments.length?(null==e?l=o=null:o=i(l=e),n):l},n}function T(e,t,a){var l=null,i=s(!0),o=null,n=D,r=null
|
|||
|
function c(c){var s,d,u,f,v,p=(c=E(c)).length,m=!1,y=new Array(p),g=new Array(p)
|
|||
|
for(null==o&&(r=n(v=h())),s=0;s<=p;++s){if(!(s<p&&i(f=c[s],s,c))===m)if(m=!m)d=s,r.areaStart(),r.lineStart()
|
|||
|
else{for(r.lineEnd(),r.lineStart(),u=s-1;u>=d;--u)r.point(y[u],g[u])
|
|||
|
r.lineEnd(),r.areaEnd()}m&&(y[s]=+e(f,s,c),g[s]=+t(f,s,c),r.point(l?+l(f,s,c):y[s],a?+a(f,s,c):g[s]))}if(v)return r=null,v+""||null}function d(){return O().defined(i).curve(n).context(o)}return e="function"==typeof e?e:void 0===e?S:s(+e),t="function"==typeof t?t:s(void 0===t?0:+t),a="function"==typeof a?a:void 0===a?F:s(+a),c.x=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),l=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),c):e},c.x1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:s(+e),c):l},c.y=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),a=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),c):t},c.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:s(+e),c):a},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(a)},c.lineX1=function(){return d().x(l).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:s(!!e),c):i},c.curve=function(e){return arguments.length?(n=e,null!=o&&(r=n(o)),c):n},c.context=function(e){return arguments.length?(null==e?o=r=null:r=n(o=e),c):o},c}function P(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function N(e){return e}function U(){var e=N,t=P,a=null,l=s(0),i=s(M),o=s(0)
|
|||
|
function n(n){var r,c,h,s,d,u=(n=E(n)).length,f=0,v=new Array(u),p=new Array(u),m=+l.apply(this,arguments),y=Math.min(M,Math.max(-M,i.apply(this,arguments)-m)),g=Math.min(Math.abs(y)/u,o.apply(this,arguments)),b=g*(y<0?-1:1)
|
|||
|
for(r=0;r<u;++r)(d=p[v[r]=r]=+e(n[r],r,n))>0&&(f+=d)
|
|||
|
for(null!=t?v.sort((function(e,a){return t(p[e],p[a])})):null!=a&&v.sort((function(e,t){return a(n[e],n[t])})),r=0,h=f?(y-u*b)/f:0;r<u;++r,m=s)c=v[r],s=m+((d=p[c])>0?d*h:0)+b,p[c]={data:n[c],index:r,value:d,startAngle:m,endAngle:s,padAngle:g}
|
|||
|
return p}return n.value=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),n):e},n.sortValues=function(e){return arguments.length?(t=e,a=null,n):t},n.sort=function(e){return arguments.length?(a=e,t=null,n):a},n.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:s(+e),n):l},n.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:s(+e),n):i},n.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),n):o},n}k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
default:this._context.lineTo(e,t)}}}
|
|||
|
var R=I(D)
|
|||
|
function j(e){this._curve=e}function I(e){function t(t){return new j(e(t))}return t._curve=e,t}function G(e){var t=e.curve
|
|||
|
return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(I(e)):t()._curve},e}function $(){return G(O().curve(R))}function q(){var e=T().curve(R),t=e.curve,a=e.lineX0,l=e.lineX1,i=e.lineY0,o=e.lineY1
|
|||
|
return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return G(a())},delete e.lineX0,e.lineEndAngle=function(){return G(l())},delete e.lineX1,e.lineInnerRadius=function(){return G(i())},delete e.lineY0,e.lineOuterRadius=function(){return G(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(I(e)):t()._curve},e}function Z(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}function Y(e){return e.source}function K(e){return e.target}function W(e){var t=Y,a=K,l=S,i=F,o=null
|
|||
|
function n(){var n,r=C.call(arguments),c=t.apply(this,r),s=a.apply(this,r)
|
|||
|
if(o||(o=n=h()),e(o,+l.apply(this,(r[0]=c,r)),+i.apply(this,r),+l.apply(this,(r[0]=s,r)),+i.apply(this,r)),n)return o=null,n+""||null}return n.source=function(e){return arguments.length?(t=e,n):t},n.target=function(e){return arguments.length?(a=e,n):a},n.x=function(e){return arguments.length?(l="function"==typeof e?e:s(+e),n):l},n.y=function(e){return arguments.length?(i="function"==typeof e?e:s(+e),n):i},n.context=function(e){return arguments.length?(o=null==e?null:e,n):o},n}function X(e,t,a,l,i){e.moveTo(t,a),e.bezierCurveTo(t=(t+l)/2,a,t,i,l,i)}function J(e,t,a,l,i){e.moveTo(t,a),e.bezierCurveTo(t,a=(a+i)/2,l,a,l,i)}function Q(e,t,a,l,i){var o=Z(t,a),n=Z(t,a=(a+i)/2),r=Z(l,a),c=Z(l,i)
|
|||
|
e.moveTo(o[0],o[1]),e.bezierCurveTo(n[0],n[1],r[0],r[1],c[0],c[1])}function ee(){return W(X)}function te(){return W(J)}function ae(){var e=W(Q)
|
|||
|
return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}j.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}
|
|||
|
const le={draw:function(e,t){var a=Math.sqrt(t/b)
|
|||
|
e.moveTo(a,0),e.arc(0,0,a,0,M)}},ie={draw:function(e,t){var a=Math.sqrt(t/5)/2
|
|||
|
e.moveTo(-3*a,-a),e.lineTo(-a,-a),e.lineTo(-a,-3*a),e.lineTo(a,-3*a),e.lineTo(a,-a),e.lineTo(3*a,-a),e.lineTo(3*a,a),e.lineTo(a,a),e.lineTo(a,3*a),e.lineTo(-a,3*a),e.lineTo(-a,a),e.lineTo(-3*a,a),e.closePath()}}
|
|||
|
var oe=Math.sqrt(1/3),ne=2*oe
|
|||
|
const re={draw:function(e,t){var a=Math.sqrt(t/ne),l=a*oe
|
|||
|
e.moveTo(0,-a),e.lineTo(l,0),e.lineTo(0,a),e.lineTo(-l,0),e.closePath()}}
|
|||
|
var ce=Math.sin(b/10)/Math.sin(7*b/10),he=Math.sin(M/10)*ce,se=-Math.cos(M/10)*ce
|
|||
|
const de={draw:function(e,t){var a=Math.sqrt(.8908130915292852*t),l=he*a,i=se*a
|
|||
|
e.moveTo(0,-a),e.lineTo(l,i)
|
|||
|
for(var o=1;o<5;++o){var n=M*o/5,r=Math.cos(n),c=Math.sin(n)
|
|||
|
e.lineTo(c*a,-r*a),e.lineTo(r*l-c*i,c*l+r*i)}e.closePath()}},ue={draw:function(e,t){var a=Math.sqrt(t),l=-a/2
|
|||
|
e.rect(l,l,a,a)}}
|
|||
|
var fe=Math.sqrt(3)
|
|||
|
const ve={draw:function(e,t){var a=-Math.sqrt(t/(3*fe))
|
|||
|
e.moveTo(0,2*a),e.lineTo(-fe*a,-a),e.lineTo(fe*a,-a),e.closePath()}}
|
|||
|
var pe=-.5,me=Math.sqrt(3)/2,ye=1/Math.sqrt(12),ge=3*(ye/2+1)
|
|||
|
const be={draw:function(e,t){var a=Math.sqrt(t/ge),l=a/2,i=a*ye,o=l,n=a*ye+a,r=-o,c=n
|
|||
|
e.moveTo(l,i),e.lineTo(o,n),e.lineTo(r,c),e.lineTo(pe*l-me*i,me*l+pe*i),e.lineTo(pe*o-me*n,me*o+pe*n),e.lineTo(pe*r-me*c,me*r+pe*c),e.lineTo(pe*l+me*i,pe*i-me*l),e.lineTo(pe*o+me*n,pe*n-me*o),e.lineTo(pe*r+me*c,pe*c-me*r),e.closePath()}}
|
|||
|
var ze=[le,ie,re,ue,de,ve,be]
|
|||
|
function Me(e,t){var a=null
|
|||
|
function l(){var l
|
|||
|
if(a||(a=l=h()),e.apply(this,arguments).draw(a,+t.apply(this,arguments)),l)return a=null,l+""||null}return e="function"==typeof e?e:s(e||le),t="function"==typeof t?t:s(void 0===t?64:+t),l.type=function(t){return arguments.length?(e="function"==typeof t?t:s(t),l):e},l.size=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),l):t},l.context=function(e){return arguments.length?(a=null==e?null:e,l):a},l}function Ae(){}function we(e,t,a){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+a)/6)}function xe(e){this._context=e}function He(e){return new xe(e)}function Ve(e){this._context=e}function _e(e){return new Ve(e)}function Be(e){this._context=e}function Le(e){return new Be(e)}xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:we(this,this._x1,this._y1)
|
|||
|
case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6)
|
|||
|
default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ve.prototype={areaStart:Ae,areaEnd:Ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath()
|
|||
|
break
|
|||
|
case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath()
|
|||
|
break
|
|||
|
case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t
|
|||
|
break
|
|||
|
case 1:this._point=2,this._x3=e,this._y3=t
|
|||
|
break
|
|||
|
case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6)
|
|||
|
break
|
|||
|
default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3
|
|||
|
var a=(this._x0+4*this._x1+e)/6,l=(this._y0+4*this._y1+t)/6
|
|||
|
this._line?this._context.lineTo(a,l):this._context.moveTo(a,l)
|
|||
|
break
|
|||
|
case 3:this._point=4
|
|||
|
default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}
|
|||
|
class Ce{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Ee(e){return new Ce(e,!0)}function ke(e){return new Ce(e,!1)}function De(e,t){this._basis=new xe(e),this._beta=t}De.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,a=e.length-1
|
|||
|
if(a>0)for(var l,i=e[0],o=t[0],n=e[a]-i,r=t[a]-o,c=-1;++c<=a;)l=c/a,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+l*n),this._beta*t[c]+(1-this._beta)*(o+l*r))
|
|||
|
this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}}
|
|||
|
const Se=function e(t){function a(e){return 1===t?new xe(e):new De(e,t)}return a.beta=function(t){return e(+t)},a}(.85)
|
|||
|
function Fe(e,t,a){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-a),e._x2,e._y2)}function Oe(e,t){this._context=e,this._k=(1-t)/6}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2)
|
|||
|
break
|
|||
|
case 3:Fe(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2,this._x1=e,this._y1=t
|
|||
|
break
|
|||
|
case 2:this._point=3
|
|||
|
default:Fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const Te=function e(t){function a(e){return new Oe(e,t)}return a.tension=function(t){return e(+t)},a}(0)
|
|||
|
function Pe(e,t){this._context=e,this._k=(1-t)/6}Pe.prototype={areaStart:Ae,areaEnd:Ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath()
|
|||
|
break
|
|||
|
case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath()
|
|||
|
break
|
|||
|
case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t
|
|||
|
break
|
|||
|
case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t)
|
|||
|
break
|
|||
|
case 2:this._point=3,this._x5=e,this._y5=t
|
|||
|
break
|
|||
|
default:Fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const Ne=function e(t){function a(e){return new Pe(e,t)}return a.tension=function(t){return e(+t)},a}(0)
|
|||
|
function Ue(e,t){this._context=e,this._k=(1-t)/6}Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2)
|
|||
|
break
|
|||
|
case 3:this._point=4
|
|||
|
default:Fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const Re=function e(t){function a(e){return new Ue(e,t)}return a.tension=function(t){return e(+t)},a}(0)
|
|||
|
function je(e,t,a){var l=e._x1,i=e._y1,o=e._x2,n=e._y2
|
|||
|
if(e._l01_a>g){var r=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a)
|
|||
|
l=(l*r-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*r-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>g){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a)
|
|||
|
o=(o*h+e._x1*e._l23_2a-t*e._l12_2a)/s,n=(n*h+e._y1*e._l23_2a-a*e._l12_2a)/s}e._context.bezierCurveTo(l,i,o,n,e._x2,e._y2)}function Ie(e,t){this._context=e,this._alpha=t}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2)
|
|||
|
break
|
|||
|
case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var a=this._x2-e,l=this._y2-t
|
|||
|
this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+l*l,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3
|
|||
|
default:je(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const Ge=function e(t){function a(e){return t?new Ie(e,t):new Oe(e,0)}return a.alpha=function(t){return e(+t)},a}(.5)
|
|||
|
function $e(e,t){this._context=e,this._alpha=t}$e.prototype={areaStart:Ae,areaEnd:Ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath()
|
|||
|
break
|
|||
|
case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath()
|
|||
|
break
|
|||
|
case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var a=this._x2-e,l=this._y2-t
|
|||
|
this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+l*l,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t
|
|||
|
break
|
|||
|
case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t)
|
|||
|
break
|
|||
|
case 2:this._point=3,this._x5=e,this._y5=t
|
|||
|
break
|
|||
|
default:je(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const qe=function e(t){function a(e){return t?new $e(e,t):new Pe(e,0)}return a.alpha=function(t){return e(+t)},a}(.5)
|
|||
|
function Ze(e,t){this._context=e,this._alpha=t}Ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var a=this._x2-e,l=this._y2-t
|
|||
|
this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+l*l,this._alpha))}switch(this._point){case 0:this._point=1
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2)
|
|||
|
break
|
|||
|
case 3:this._point=4
|
|||
|
default:je(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}}
|
|||
|
const Ye=function e(t){function a(e){return t?new Ze(e,t):new Ue(e,0)}return a.alpha=function(t){return e(+t)},a}(.5)
|
|||
|
function Ke(e){this._context=e}function We(e){return new Ke(e)}function Xe(e){return e<0?-1:1}function Je(e,t,a){var l=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(l||i<0&&-0),n=(a-e._y1)/(i||l<0&&-0),r=(o*i+n*l)/(l+i)
|
|||
|
return(Xe(o)+Xe(n))*Math.min(Math.abs(o),Math.abs(n),.5*Math.abs(r))||0}function Qe(e,t){var a=e._x1-e._x0
|
|||
|
return a?(3*(e._y1-e._y0)/a-t)/2:t}function et(e,t,a){var l=e._x0,i=e._y0,o=e._x1,n=e._y1,r=(o-l)/3
|
|||
|
e._context.bezierCurveTo(l+r,i+r*t,o-r,n-r*a,o,n)}function tt(e){this._context=e}function at(e){this._context=new lt(e)}function lt(e){this._context=e}function it(e){return new tt(e)}function ot(e){return new at(e)}function nt(e){this._context=e}function rt(e){var t,a,l=e.length-1,i=new Array(l),o=new Array(l),n=new Array(l)
|
|||
|
for(i[0]=0,o[0]=2,n[0]=e[0]+2*e[1],t=1;t<l-1;++t)i[t]=1,o[t]=4,n[t]=4*e[t]+2*e[t+1]
|
|||
|
for(i[l-1]=2,o[l-1]=7,n[l-1]=8*e[l-1]+e[l],t=1;t<l;++t)a=i[t]/o[t-1],o[t]-=a,n[t]-=a*n[t-1]
|
|||
|
for(i[l-1]=n[l-1]/o[l-1],t=l-2;t>=0;--t)i[t]=(n[t]-i[t+1])/o[t]
|
|||
|
for(o[l-1]=(e[l]+i[l-1])/2,t=0;t<l-1;++t)o[t]=2*e[t+1]-i[t+1]
|
|||
|
return[i,o]}function ct(e){return new nt(e)}function ht(e,t){this._context=e,this._t=t}function st(e){return new ht(e,.5)}function dt(e){return new ht(e,0)}function ut(e){return new ht(e,1)}function ft(e,t){if((i=e.length)>1)for(var a,l,i,o=1,n=e[t[0]],r=n.length;o<i;++o)for(l=n,n=e[t[o]],a=0;a<r;++a)n[a][1]+=n[a][0]=isNaN(l[a][1])?l[a][0]:l[a][1]}function vt(e){for(var t=e.length,a=new Array(t);--t>=0;)a[t]=t
|
|||
|
return a}function pt(e,t){return e[t]}function mt(e){const t=[]
|
|||
|
return t.key=e,t}function yt(){var e=s([]),t=vt,a=ft,l=pt
|
|||
|
function i(i){var o,n,r=Array.from(e.apply(this,arguments),mt),c=r.length,h=-1
|
|||
|
for(const e of i)for(o=0,++h;o<c;++o)(r[o][h]=[0,+l(e,r[o].key,h,i)]).data=e
|
|||
|
for(o=0,n=E(t(r));o<c;++o)r[n[o]].index=o
|
|||
|
return a(r,n),r}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:s(Array.from(t)),i):e},i.value=function(e){return arguments.length?(l="function"==typeof e?e:s(+e),i):l},i.order=function(e){return arguments.length?(t=null==e?vt:"function"==typeof e?e:s(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(a=null==e?ft:e,i):a},i}function gt(e,t){if((l=e.length)>0){for(var a,l,i,o=0,n=e[0].length;o<n;++o){for(i=a=0;a<l;++a)i+=e[a][o][1]||0
|
|||
|
if(i)for(a=0;a<l;++a)e[a][o][1]/=i}ft(e,t)}}function bt(e,t){if((r=e.length)>0)for(var a,l,i,o,n,r,c=0,h=e[t[0]].length;c<h;++c)for(o=n=0,a=0;a<r;++a)(i=(l=e[t[a]][c])[1]-l[0])>0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=n,l[0]=n+=i):(l[0]=0,l[1]=i)}function zt(e,t){if((a=e.length)>0){for(var a,l=0,i=e[t[0]],o=i.length;l<o;++l){for(var n=0,r=0;n<a;++n)r+=e[n][l][1]||0
|
|||
|
i[l][1]+=i[l][0]=-r/2}ft(e,t)}}function Mt(e,t){if((i=e.length)>0&&(l=(a=e[t[0]]).length)>0){for(var a,l,i,o=0,n=1;n<l;++n){for(var r=0,c=0,h=0;r<i;++r){for(var s=e[t[r]],d=s[n][1]||0,u=(d-(s[n-1][1]||0))/2,f=0;f<r;++f){var v=e[t[f]]
|
|||
|
u+=(v[n][1]||0)-(v[n-1][1]||0)}c+=d,h+=u*d}a[n-1][1]+=a[n-1][0]=o,c&&(o-=h/c)}a[n-1][1]+=a[n-1][0]=o,ft(e,t)}}function At(e){var t=e.map(wt)
|
|||
|
return vt(e).sort((function(e,a){return t[e]-t[a]}))}function wt(e){for(var t,a=-1,l=0,i=e.length,o=-1/0;++a<i;)(t=+e[a][1])>o&&(o=t,l=a)
|
|||
|
return l}function xt(e){var t=e.map(Ht)
|
|||
|
return vt(e).sort((function(e,a){return t[e]-t[a]}))}function Ht(e){for(var t,a=0,l=-1,i=e.length;++l<i;)(t=+e[l][1])&&(a+=t)
|
|||
|
return a}function Vt(e){return xt(e).reverse()}function _t(e){var t,a,l=e.length,i=e.map(Ht),o=At(e),n=0,r=0,c=[],h=[]
|
|||
|
for(t=0;t<l;++t)a=o[t],n<r?(n+=i[a],c.push(a)):(r+=i[a],h.push(a))
|
|||
|
return h.reverse().concat(c)}function Bt(e){return vt(e).reverse()}Ke.prototype={areaStart:Ae,areaEnd:Ae,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1)
|
|||
|
break
|
|||
|
case 3:et(this,this._t0,Qe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN
|
|||
|
if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
break
|
|||
|
case 2:this._point=3,et(this,Qe(this,a=Je(this,e,t)),a)
|
|||
|
break
|
|||
|
default:et(this,this._t0,a=Je(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}},(at.prototype=Object.create(tt.prototype)).point=function(e,t){tt.prototype.point.call(this,t,e)},lt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,a,l,i,o){this._context.bezierCurveTo(t,e,l,a,o,i)}},nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,a=e.length
|
|||
|
if(a)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===a)this._context.lineTo(e[1],t[1])
|
|||
|
else for(var l=rt(e),i=rt(t),o=0,n=1;n<a;++o,++n)this._context.bezierCurveTo(l[0][o],i[0][o],l[1][o],i[1][o],e[n],t[n]);(this._line||0!==this._line&&1===a)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t)
|
|||
|
break
|
|||
|
case 1:this._point=2
|
|||
|
default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t)
|
|||
|
else{var a=this._x*(1-this._t)+e*this._t
|
|||
|
this._context.lineTo(a,this._y),this._context.lineTo(a,t)}}this._x=e,this._y=t}}},2350:function(e){e.exports=function(){"use strict"
|
|||
|
var e=6e4,t=36e5,a="millisecond",l="second",i="minute",o="hour",n="day",r="week",c="month",h="quarter",s="year",d="date",u="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100
|
|||
|
return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},m=function(e,t,a){var l=String(e)
|
|||
|
return!l||l.length>=t?e:""+Array(t+1-l.length).join(a)+e},y={s:m,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),l=Math.floor(a/60),i=a%60
|
|||
|
return(t<=0?"+":"-")+m(l,2,"0")+":"+m(i,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t)
|
|||
|
var l=12*(a.year()-t.year())+(a.month()-t.month()),i=t.clone().add(l,c),o=a-i<0,n=t.clone().add(l+(o?-1:1),c)
|
|||
|
return+(-(l+(a-i)/(o?i-n:n-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:s,w:r,d:n,D:d,h:o,m:i,s:l,ms:a,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",b={}
|
|||
|
b[g]=p
|
|||
|
var z=function(e){return e instanceof x},M=function e(t,a,l){var i
|
|||
|
if(!t)return g
|
|||
|
if("string"==typeof t){var o=t.toLowerCase()
|
|||
|
b[o]&&(i=o),a&&(b[o]=a,i=o)
|
|||
|
var n=t.split("-")
|
|||
|
if(!i&&n.length>1)return e(n[0])}else{var r=t.name
|
|||
|
b[r]=t,i=r}return!l&&i&&(g=i),i||!l&&g},A=function(e,t){if(z(e))return e.clone()
|
|||
|
var a="object"==typeof t?t:{}
|
|||
|
return a.date=e,a.args=arguments,new x(a)},w=y
|
|||
|
w.l=M,w.i=z,w.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})}
|
|||
|
var x=function(){function p(e){this.$L=M(e.locale,null,!0),this.parse(e)}var m=p.prototype
|
|||
|
return m.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc
|
|||
|
if(null===t)return new Date(NaN)
|
|||
|
if(w.u(t))return new Date
|
|||
|
if(t instanceof Date)return new Date(t)
|
|||
|
if("string"==typeof t&&!/Z$/i.test(t)){var l=t.match(f)
|
|||
|
if(l){var i=l[2]-1||0,o=(l[7]||"0").substring(0,3)
|
|||
|
return a?new Date(Date.UTC(l[1],i,l[3]||1,l[4]||0,l[5]||0,l[6]||0,o)):new Date(l[1],i,l[3]||1,l[4]||0,l[5]||0,l[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d
|
|||
|
this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===u)},m.isSame=function(e,t){var a=A(e)
|
|||
|
return this.startOf(t)<=a&&a<=this.endOf(t)},m.isAfter=function(e,t){return A(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<A(e)},m.$g=function(e,t,a){return w.u(e)?this[t]:this.set(a,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var a=this,h=!!w.u(t)||t,u=w.p(e),f=function(e,t){var l=w.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a)
|
|||
|
return h?l:l.endOf(n)},v=function(e,t){return w.w(a.toDate()[e].apply(a.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},p=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"")
|
|||
|
switch(u){case s:return h?f(1,0):f(31,11)
|
|||
|
case c:return h?f(1,m):f(0,m+1)
|
|||
|
case r:var b=this.$locale().weekStart||0,z=(p<b?p+7:p)-b
|
|||
|
return f(h?y-z:y+(6-z),m)
|
|||
|
case n:case d:return v(g+"Hours",0)
|
|||
|
case o:return v(g+"Minutes",1)
|
|||
|
case i:return v(g+"Seconds",2)
|
|||
|
case l:return v(g+"Milliseconds",3)
|
|||
|
default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var r,h=w.p(e),u="set"+(this.$u?"UTC":""),f=(r={},r[n]=u+"Date",r[d]=u+"Date",r[c]=u+"Month",r[s]=u+"FullYear",r[o]=u+"Hours",r[i]=u+"Minutes",r[l]=u+"Seconds",r[a]=u+"Milliseconds",r)[h],v=h===n?this.$D+(t-this.$W):t
|
|||
|
if(h===c||h===s){var p=this.clone().set(d,1)
|
|||
|
p.$d[f](v),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](v)
|
|||
|
return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[w.p(e)]()},m.add=function(a,h){var d,u=this
|
|||
|
a=Number(a)
|
|||
|
var f=w.p(h),v=function(e){var t=A(u)
|
|||
|
return w.w(t.date(t.date()+Math.round(e*a)),u)}
|
|||
|
if(f===c)return this.set(c,this.$M+a)
|
|||
|
if(f===s)return this.set(s,this.$y+a)
|
|||
|
if(f===n)return v(1)
|
|||
|
if(f===r)return v(7)
|
|||
|
var p=(d={},d[i]=e,d[o]=t,d[l]=1e3,d)[f]||1,m=this.$d.getTime()+a*p
|
|||
|
return w.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,a=this.$locale()
|
|||
|
if(!this.isValid())return a.invalidDate||u
|
|||
|
var l=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),o=this.$H,n=this.$m,r=this.$M,c=a.weekdays,h=a.months,s=function(e,a,i,o){return e&&(e[a]||e(t,l))||i[a].slice(0,o)},d=function(e){return w.s(o%12||12,e,"0")},f=a.meridiem||function(e,t,a){var l=e<12?"AM":"PM"
|
|||
|
return a?l.toLowerCase():l},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:w.s(r+1,2,"0"),MMM:s(a.monthsShort,r,h,3),MMMM:s(h,r),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:s(a.weekdaysMin,this.$W,c,2),ddd:s(a.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:w.s(o,2,"0"),h:d(1),hh:d(2),a:f(o,n,!0),A:f(o,n,!1),m:String(n),mm:w.s(n,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:i}
|
|||
|
return l.replace(v,(function(e,t){return t||p[e]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(a,d,u){var f,v=w.p(d),p=A(a),m=(p.utcOffset()-this.utcOffset())*e,y=this-p,g=w.m(this,p)
|
|||
|
return g=(f={},f[s]=g/12,f[c]=g,f[h]=g/3,f[r]=(y-m)/6048e5,f[n]=(y-m)/864e5,f[o]=y/t,f[i]=y/e,f[l]=y/1e3,f)[v]||y,u?g:w.a(g)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L
|
|||
|
var a=this.clone(),l=M(e,t,!0)
|
|||
|
return l&&(a.$L=l),a},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},p}(),H=x.prototype
|
|||
|
return A.prototype=H,[["$ms",a],["$s",l],["$m",i],["$H",o],["$W",n],["$M",c],["$y",s],["$D",d]].forEach((function(e){H[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,x,A),e.$i=!0),A},A.locale=M,A.isDayjs=z,A.unix=function(e){return A(1e3*e)},A.en=b[g],A.Ls=b,A.p={},A}()},8888:function(e){e.exports=function(){"use strict"
|
|||
|
return function(e,t,a){var l="h:mm A",i={lastDay:"[Yesterday at] "+l,sameDay:"[Today at] "+l,nextDay:"[Tomorrow at] "+l,nextWeek:"dddd [at] "+l,lastWeek:"[Last] dddd [at] "+l,sameElse:"MM/DD/YYYY"}
|
|||
|
t.prototype.calendar=function(e,t){var l=t||this.$locale().calendar||i,o=a(e||void 0).startOf("d"),n=this.diff(o,"d",!0),r="sameElse",c=n<-6?r:n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":r,h=l[c]||i[c]
|
|||
|
return"function"==typeof h?h.call(this,a()):this.format(h)}}}()},2543:function(e){e.exports=function(){"use strict"
|
|||
|
return function(e,t,a){e=e||{}
|
|||
|
var l=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}
|
|||
|
function o(e,t,a,i){return l.fromToBase(e,t,a,i)}a.en.relativeTime=i,l.fromToBase=function(t,l,o,n,r){for(var c,h,s,d=o.$locale().relativeTime||i,u=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=u.length,v=0;v<f;v+=1){var p=u[v]
|
|||
|
p.d&&(c=n?a(t).diff(o,p.d,!0):o.diff(t,p.d,!0))
|
|||
|
var m=(e.rounding||Math.round)(Math.abs(c))
|
|||
|
if(s=c>0,m<=p.r||!p.r){m<=1&&v>0&&(p=u[v-1])
|
|||
|
var y=d[p.l]
|
|||
|
r&&(m=r(""+m)),h="string"==typeof y?y.replace("%d",m):y(m,l,p.l,s)
|
|||
|
break}}if(l)return h
|
|||
|
var g=s?d.future:d.past
|
|||
|
return"function"==typeof g?g(h):g.replace("%s",h)},l.to=function(e,t){return o(e,t,this,!0)},l.from=function(e,t){return o(e,t,this)}
|
|||
|
var n=function(e){return e.$u?a.utc():a()}
|
|||
|
l.toNow=function(e){return this.to(n(this),e)},l.fromNow=function(e){return this.from(n(this),e)}}}()},3924:e=>{"use strict"
|
|||
|
var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e)
|
|||
|
return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}(e)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
|
|||
|
function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?r((a=e,Array.isArray(a)?[]:{}),e,t):e
|
|||
|
var a}function i(e,t,a){return e.concat(t).map((function(e){return l(e,a)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function n(e,t){try{return t in e}catch(e){return!1}}function r(e,a,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=l
|
|||
|
var h=Array.isArray(a)
|
|||
|
return h===Array.isArray(e)?h?c.arrayMerge(e,a,c):function(e,t,a){var i={}
|
|||
|
return a.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=l(e[t],a)})),o(t).forEach((function(o){(function(e,t){return n(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(n(e,o)&&a.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return r
|
|||
|
var a=t.customMerge(e)
|
|||
|
return"function"==typeof a?a:r}(o,a)(e[o],t[o],a):i[o]=l(t[o],a))})),i}(e,a,c):l(a,c)}r.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
|
|||
|
return e.reduce((function(e,a){return r(e,a,t)}),{})}
|
|||
|
var c=r
|
|||
|
e.exports=c},3109:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>S})
|
|||
|
var l=a(4927),i=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=i.join(","),n="undefined"==typeof Element,r=n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!n&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},h=function(e,t,a){var l=Array.prototype.slice.apply(e.querySelectorAll(o))
|
|||
|
return t&&r.call(e,o)&&l.unshift(e),l.filter(a)},s=function e(t,a,l){for(var i=[],n=Array.from(t);n.length;){var c=n.shift()
|
|||
|
if("SLOT"===c.tagName){var h=c.assignedElements(),s=e(h.length?h:c.children,!0,l)
|
|||
|
l.flatten?i.push.apply(i,s):i.push({scope:c,candidates:s})}else{r.call(c,o)&&l.filter(c)&&(a||!t.includes(c))&&i.push(c)
|
|||
|
var d=c.shadowRoot||"function"==typeof l.getShadowRoot&&l.getShadowRoot(c),u=!l.shadowRootFilter||l.shadowRootFilter(c)
|
|||
|
if(d&&u){var f=e(!0===d?c.children:d.children,!0,l)
|
|||
|
l.flatten?i.push.apply(i,f):i.push({scope:c,candidates:f})}else n.unshift.apply(n,c.children)}}return i},d=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},u=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},f=function(e){return"INPUT"===e.tagName},v=function(e){var t=e.getBoundingClientRect(),a=t.width,l=t.height
|
|||
|
return 0===a&&0===l},p=function(e,t){return!(t.disabled||function(e){return f(e)&&"hidden"===e.type}(t)||function(e,t){var a=t.displayCheck,l=t.getShadowRoot
|
|||
|
if("hidden"===getComputedStyle(e).visibility)return!0
|
|||
|
var i=r.call(e,"details>summary:first-of-type")?e.parentElement:e
|
|||
|
if(r.call(i,"details:not([open]) *"))return!0
|
|||
|
var o=c(e).host,n=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e)
|
|||
|
if(a&&"full"!==a){if("non-zero-area"===a)return v(e)}else{if("function"==typeof l){for(var h=e;e;){var s=e.parentElement,d=c(e)
|
|||
|
if(s&&!s.shadowRoot&&!0===l(s))return v(e)
|
|||
|
e=e.assignedSlot?e.assignedSlot:s||d===e.ownerDocument?s:d.host}e=h}if(n)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var a=0;a<t.children.length;a++){var l=t.children.item(a)
|
|||
|
if("LEGEND"===l.tagName)return!!r.call(t,"fieldset[disabled] *")||!l.contains(e)}return!0}t=t.parentElement}return!1}(t))},m=function(e,t){return!(function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0
|
|||
|
var t,a=e.form||c(e),l=function(e){return a.querySelectorAll('input[type="radio"][name="'+e+'"]')}
|
|||
|
if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=l(window.CSS.escape(e.name))
|
|||
|
else try{t=l(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]}(t,e.form)
|
|||
|
return!i||i===e}(e)}(t)||d(t)<0||!p(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10)
|
|||
|
return!!(isNaN(t)||t>=0)},g=function e(t){var a=[],l=[]
|
|||
|
return t.forEach((function(t,i){var o=!!t.scope,n=o?t.scope:t,r=d(n,o),c=o?e(t.candidates):n
|
|||
|
0===r?o?a.push.apply(a,c):a.push(n):l.push({documentOrder:i,tabIndex:r,item:t,isScope:o,content:c})})),l.sort(u).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(a)},b=function(e,t){var a
|
|||
|
return a=(t=t||{}).getShadowRoot?s([e],t.includeContainer,{filter:m.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):h(e,t.includeContainer,m.bind(null,t)),g(a)},z=function(e,t){if(t=t||{},!e)throw new Error("No node provided")
|
|||
|
return!1!==r.call(e,o)&&m(t,e)},M=i.concat("iframe").join(","),A=function(e,t){if(t=t||{},!e)throw new Error("No node provided")
|
|||
|
return!1!==r.call(e,M)&&p(t,e)}
|
|||
|
function w(e,t){var a=Object.keys(e)
|
|||
|
if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e)
|
|||
|
t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function x(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{}
|
|||
|
t%2?w(Object(a),!0).forEach((function(t){H(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):w(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function H(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var V,_=(V=[],{activateTrap:function(e){if(V.length>0){var t=V[V.length-1]
|
|||
|
t!==e&&t.pause()}var a=V.indexOf(e);-1===a||V.splice(a,1),V.push(e)},deactivateTrap:function(e){var t=V.indexOf(e);-1!==t&&V.splice(t,1),V.length>0&&V[V.length-1].unpause()}}),B=function(e){return setTimeout(e,0)},L=function(e,t){var a=-1
|
|||
|
return e.every((function(e,l){return!t(e)||(a=l,!1)})),a},C=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
return"function"==typeof e?e.apply(void 0,a):e},E=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},k=function(e,t){var a,l=(null==t?void 0:t.document)||document,i=x({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},n=function(e,t,a){return e&&void 0!==e[t]?e[t]:i[a||t]},r=function(e){return o.containerGroups.findIndex((function(t){var a=t.container,l=t.tabbableNodes
|
|||
|
return a.contains(e)||l.find((function(t){return t===e}))}))},c=function(e){var t=i[e]
|
|||
|
if("function"==typeof t){for(var a=arguments.length,o=new Array(a>1?a-1:0),n=1;n<a;n++)o[n-1]=arguments[n]
|
|||
|
t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t
|
|||
|
throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var r=t
|
|||
|
if("string"==typeof t&&!(r=l.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"))
|
|||
|
return r},d=function(){var e=c("initialFocus")
|
|||
|
if(!1===e)return!1
|
|||
|
if(void 0===e)if(r(l.activeElement)>=0)e=l.activeElement
|
|||
|
else{var t=o.tabbableGroups[0]
|
|||
|
e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element")
|
|||
|
return e},u=function(){if(o.containerGroups=o.containers.map((function(e){var t,a,l=b(e,i.tabbableOptions),o=(t=e,(a=(a=i.tabbableOptions)||{}).getShadowRoot?s([t],a.includeContainer,{filter:p.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):h(t,a.includeContainer,p.bind(null,a)))
|
|||
|
return{container:e,tabbableNodes:l,focusableNodes:o,firstTabbableNode:l.length>0?l[0]:null,lastTabbableNode:l.length>0?l[l.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=o.findIndex((function(t){return t===e}))
|
|||
|
if(!(a<0))return t?o.slice(a+1).find((function(e){return z(e,i.tabbableOptions)})):o.slice(0,a).reverse().find((function(e){return z(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function e(t){!1!==t&&t!==l.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(d()))},v=function(e){var t=c("setReturnFocus",e)
|
|||
|
return t||!1!==t&&e},m=function(e){var t=E(e)
|
|||
|
r(t)>=0||(C(i.clickOutsideDeactivates,e)?a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!A(t,i.tabbableOptions)}):C(i.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t=E(e),a=r(t)>=0
|
|||
|
a||t instanceof Document?a&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),f(o.mostRecentlyFocusedNode||d()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==C(i.escapeDeactivates,e))return e.preventDefault(),void a.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=E(e)
|
|||
|
u()
|
|||
|
var a=null
|
|||
|
if(o.tabbableGroups.length>0){var l=r(t),n=l>=0?o.containerGroups[l]:void 0
|
|||
|
if(l<0)a=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode
|
|||
|
else if(e.shiftKey){var h=L(o.tabbableGroups,(function(e){var a=e.firstTabbableNode
|
|||
|
return t===a}))
|
|||
|
if(h<0&&(n.container===t||A(t,i.tabbableOptions)&&!z(t,i.tabbableOptions)&&!n.nextTabbableNode(t,!1))&&(h=l),h>=0){var s=0===h?o.tabbableGroups.length-1:h-1
|
|||
|
a=o.tabbableGroups[s].lastTabbableNode}}else{var d=L(o.tabbableGroups,(function(e){var a=e.lastTabbableNode
|
|||
|
return t===a}))
|
|||
|
if(d<0&&(n.container===t||A(t,i.tabbableOptions)&&!z(t,i.tabbableOptions)&&!n.nextTabbableNode(t))&&(d=l),d>=0){var v=d===o.tabbableGroups.length-1?0:d+1
|
|||
|
a=o.tabbableGroups[v].firstTabbableNode}}}else a=c("fallbackFocus")
|
|||
|
a&&(e.preventDefault(),f(a))}(e)},M=function(e){var t=E(e)
|
|||
|
r(t)>=0||C(i.clickOutsideDeactivates,e)||C(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(o.active)return _.activateTrap(a),o.delayInitialFocusTimer=i.delayInitialFocus?B((function(){f(d())})):f(d()),l.addEventListener("focusin",y,!0),l.addEventListener("mousedown",m,{capture:!0,passive:!1}),l.addEventListener("touchstart",m,{capture:!0,passive:!1}),l.addEventListener("click",M,{capture:!0,passive:!1}),l.addEventListener("keydown",g,{capture:!0,passive:!1}),a},H=function(){if(o.active)return l.removeEventListener("focusin",y,!0),l.removeEventListener("mousedown",m,!0),l.removeEventListener("touchstart",m,!0),l.removeEventListener("click",M,!0),l.removeEventListener("keydown",g,!0),a}
|
|||
|
return(a={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this
|
|||
|
var t=n(e,"onActivate"),a=n(e,"onPostActivate"),i=n(e,"checkCanFocusTrap")
|
|||
|
i||u(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=l.activeElement,t&&t()
|
|||
|
var r=function(){i&&u(),w(),a&&a()}
|
|||
|
return i?(i(o.containers.concat()).then(r,r),this):(r(),this)},deactivate:function(e){if(!o.active)return this
|
|||
|
var t=x({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e)
|
|||
|
clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,H(),o.active=!1,o.paused=!1,_.deactivateTrap(a)
|
|||
|
var l=n(t,"onDeactivate"),r=n(t,"onPostDeactivate"),c=n(t,"checkCanReturnFocus"),h=n(t,"returnFocus","returnFocusOnDeactivate")
|
|||
|
l&&l()
|
|||
|
var s=function(){B((function(){h&&f(v(o.nodeFocusedBeforeActivation)),r&&r()}))}
|
|||
|
return h&&c?(c(v(o.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,H()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,u(),w(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean)
|
|||
|
return o.containers=t.map((function(e){return"string"==typeof e?l.querySelector(e):e})),o.active&&u(),this}}).updateContainerElements(e),a}
|
|||
|
let D
|
|||
|
try{D=(0,l.capabilities)("3.22")}catch{D=(0,l.capabilities)("3.13")}var S=(0,l.setModifierManager)((()=>({capabilities:D,createModifier:()=>({focusTrapOptions:void 0,isActive:!0,isPaused:!1,shouldSelfFocus:!1,focusTrap:void 0}),installModifier(e,t,a){let{named:{isActive:l,isPaused:i,shouldSelfFocus:o,focusTrapOptions:n,additionalElements:r,_createFocusTrap:c}}=a
|
|||
|
e.focusTrapOptions={...n}||{},void 0!==l&&(e.isActive=l),void 0!==i&&(e.isPaused=i),e.focusTrapOptions&&void 0===e.focusTrapOptions.initialFocus&&o&&(e.focusTrapOptions.initialFocus=t)
|
|||
|
let h=k
|
|||
|
c&&(h=c),!1!==e.focusTrapOptions.returnFocusOnDeactivate&&(e.focusTrapOptions.returnFocusOnDeactivate=!0),e.focusTrap=h(void 0!==r?[t,...r]:t,e.focusTrapOptions),e.isActive&&e.focusTrap.activate(),e.isPaused&&e.focusTrap.pause()},updateModifier(e,t){let{named:a}=t
|
|||
|
const l=a.focusTrapOptions||{}
|
|||
|
if(e.isActive&&!a.isActive){const{returnFocusOnDeactivate:t}=l,a=void 0===t
|
|||
|
e.focusTrap.deactivate({returnFocus:a})}else!e.isActive&&a.isActive&&e.focusTrap.activate()
|
|||
|
e.isPaused&&!a.isPaused?e.focusTrap.unpause():!e.isPaused&&a.isPaused&&e.focusTrap.pause(),e.focusTrapOptions=l,void 0!==a.isActive&&(e.isActive=a.isActive),void 0!==a.isPaused&&(e.isPaused=a.isPaused)},destroyModifier(e){let{focusTrap:t}=e
|
|||
|
t.deactivate()}})),class{})},3720:(e,t,a)=>{"use strict"
|
|||
|
function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e,t,a,l){a&&Object.defineProperty(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(l):void 0})}function o(e,t,a,l,i){var o={}
|
|||
|
return Object.keys(l).forEach((function(e){o[e]=l[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=a.slice().reverse().reduce((function(a,l){return l(e,t,a)||a}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}a.d(t,{_:()=>l,a:()=>o,b:()=>i})},5487:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Bq:()=>i,sd:()=>o,zA:()=>l})
|
|||
|
const l={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=","<":",",">":".","?":"/",":":";",'"':"'","~":"`","{":"[","}":"]","|":"\\"},i={"å":"a",b:"b","ç":"c","∂":"d","ƒ":"f","©":"g","˙":"h","∆":"j","˚":"k","¬":"l","µ":"m","ø":"o","π":"p","œ":"q","®":"r","ß":"s","†":"t","√":"v","∑":"w","≈":"x","¥":"y","Ω":"z","¡":"1","™":"2","£":"3","¢":"4","∞":"5","§":"6","¶":"7","•":"8","ª":"9","º":"0","–":"-","≠":"=","≤":",","≥":".","÷":"/","…":";","æ":"'","“":"[","‘":"]","«":"\\"},o={"Å":"a","ı":"b","Î":"d","Ï":"f","˝":"g","Ó":"h","ˆ":"i","Ô":"j","":"k","Ò":"l","Â":"m","˜":"n","Ø":"o","Œ":"q","‰":"r","Í":"s","ˇ":"t","¨":"u","◊":"v","„":"w","˛":"x","Á":"y","¸":"z","⁄":"1","€":"2","‹":"3","›":"4","fi":"5","fl":"6","‡":"7","°":"8","·":"9","‚":"0","—":"-","±":"=","¯":",","˘":".","¿":"/","Ú":";","Æ":"'","`":"`","”":"[","’":"]","»":"\\"}},3481:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>r})
|
|||
|
var l=a(6354),i=a(3353),o=a(4005),n=a(9026),r=(a(3800),a(2956),a(5487),a(6826),a(1866),(0,l.helper)((function(e){let[t,a]=e
|
|||
|
return function(e){(0,i.assert)("ember-keyboard: You must pass a function as the second argument to the `if-key` helper","function"==typeof a),(0,i.assert)("ember-keyboard: The `if-key` helper expects to be invoked with a KeyboardEvent",e instanceof KeyboardEvent),(0,o.Z)((0,n.Z)(e.type,t),e)&&a(e)}})))},6415:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>d})
|
|||
|
var l,i,o=a(3720),n=a(6354),r=a.n(n),c=a(3353),h=a(8574),s=a(9026)
|
|||
|
let d=(l=class extends(r()){constructor(){super(...arguments),(0,o.b)(this,"keyboard",i,this),(0,o._)(this,"keyCombo",void 0),(0,o._)(this,"callback",void 0),(0,o._)(this,"keyboardActivated",!0),(0,o._)(this,"keyboardPriority",0),(0,o._)(this,"eventName","keydown"),(0,o._)(this,"keyboardHandlers",void 0)}compute(e,t){let[a,l]=e,{event:i="keydown",activated:o=!0,priority:n=0}=t;(0,c.assert)("ember-keyboard: You must pass a function as the second argument to the `on-key` helper","function"==typeof l),this.keyCombo=a,this.callback=l,this.eventName=i,this.keyboardActivated=o,this.keyboardPriority=n,this.keyboardHandlers={},this.keyboardHandlers[(0,s.Z)(i,a)]=l,this.keyboard.register(this)}willDestroy(){this.keyboard.unregister(this),super.willDestroy(...arguments)}},i=(0,o.a)(l.prototype,"keyboard",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)},4146:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>v})
|
|||
|
var l=a(3720),i=a(2509),o=a(8574),n=a(7219),r=a(9341),c=a(9026),h=a(4005)
|
|||
|
a(3800),a(2956),a(3353),a(5487),a(6826),a(1866)
|
|||
|
const s=["input","select","textarea"]
|
|||
|
let d
|
|||
|
var u,f
|
|||
|
u=class extends i.default{constructor(e,t){super(e,t),(0,l.b)(this,"keyboard",f,this),(0,l._)(this,"element",void 0),(0,l._)(this,"keyboardPriority",0),(0,l._)(this,"activatedParamValue",!0),(0,l._)(this,"eventName","keydown"),(0,l._)(this,"onlyWhenFocused",!0),(0,l._)(this,"listenerName",void 0),(0,l._)(this,"removeEventListeners",(()=>{this.onlyWhenFocused&&(this.element.removeEventListener("click",this.onFocus,!0),this.element.removeEventListener("focus",this.onFocus,!0),this.element.removeEventListener("focusout",this.onFocusOut,!0))})),this.keyboard.register(this),(0,r.registerDestructor)(this,(()=>{this.removeEventListeners(),this.keyboard.unregister(this)}))}modify(e,t,a){this.element=e,this.removeEventListeners(),this.setupProperties(t,a),this.onlyWhenFocused&&this.addEventListeners()}setupProperties(e,t){let[a,l]=e,{activated:i,event:o,priority:n,onlyWhenFocused:r}=t
|
|||
|
this.keyCombo=a,this.callback=l,this.eventName=o||"keydown",this.activatedParamValue="activated"in t?!!i:void 0,this.keyboardPriority=n?parseInt(n,10):0,this.listenerName=(0,c.Z)(this.eventName,this.keyCombo),this.onlyWhenFocused=void 0!==r?r:s.includes(this.element.tagName.toLowerCase())}addEventListeners(){this.element.addEventListener("click",this.onFocus,!0),this.element.addEventListener("focus",this.onFocus,!0),this.element.addEventListener("focusout",this.onFocusOut,!0)}onFocus(){this.isFocused=!0}onFocusOut(){this.isFocused=!1}get keyboardActivated(){return!1!==this.activatedParamValue&&(!this.onlyWhenFocused||this.isFocused)}get keyboardFirstResponder(){return!!this.onlyWhenFocused&&this.isFocused}canHandleKeyboardEvent(e){return(0,h.Z)(this.listenerName,e)}handleKeyboardEvent(e,t){(0,h.Z)(this.listenerName,e)&&(this.callback?this.callback(e,t):this.element.click())}},f=(0,l.a)(u.prototype,"keyboard",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.a)(u.prototype,"onFocus",[n.action],Object.getOwnPropertyDescriptor(u.prototype,"onFocus"),u.prototype),(0,l.a)(u.prototype,"onFocusOut",[n.action],Object.getOwnPropertyDescriptor(u.prototype,"onFocusOut"),u.prototype),d=u
|
|||
|
var v=d},9690:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>f})
|
|||
|
var l,i=a(3720),o=a(8574),n=a.n(o),r=a(1292),c=a(7219),h=a(8773),s=a(9026),d=a(4005)
|
|||
|
function u(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null
|
|||
|
if(e.handleKeyboardEvent){if(e.canHandleKeyboardEvent&&!e.canHandleKeyboardEvent(t))return
|
|||
|
e.handleKeyboardEvent(t,a)}else{if(!e.keyboardHandlers)throw new Error("A responder registered with the ember-keyboard service must implement either `keyboardHandlers` (property returning a dictionary of listenerNames to handler functions), or `handleKeyboardEvent(event)`)")
|
|||
|
Object.keys(e.keyboardHandlers).forEach((l=>{(0,d.Z)(l,t)&&(a?e.keyboardHandlers[l](t,a):e.keyboardHandlers[l](t))}))}}a(3800),a(2956),a(3353),a(5487),a(6826),a(1866)
|
|||
|
let f=(l=class extends(n()){get activeResponders(){let{registeredResponders:e}=this
|
|||
|
return Array.from(e).filter((e=>e.keyboardActivated))}get sortedResponders(){return this.activeResponders.sort(((e,t)=>function(e,t,a){return function(e,t,a,l){return function(e,t){let a=e-t
|
|||
|
return(a>0)-(a<0)}(l?l((0,c.get)(e,a)):(0,c.get)(e,a),l?l((0,c.get)(t,a)):(0,c.get)(t,a))}(t,e,a,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null)}(e,t,"keyboardPriority")))}get firstResponders(){return this.sortedResponders.filter((e=>e.keyboardFirstResponder))}get normalResponders(){return this.sortedResponders.filter((e=>!e.keyboardFirstResponder))}constructor(){if(super(...arguments),(0,i._)(this,"registeredResponders",new Set),"undefined"!=typeof FastBoot)return
|
|||
|
let e=((0,r.getOwner)(this).resolveRegistration("config:environment")||{}).emberKeyboard||{}
|
|||
|
e.disableOnInputFields&&(this._disableOnInput=!0),this._listeners=e.listeners||["keyUp","keyDown","keyPress"],this._listeners=this._listeners.map((e=>e.toLowerCase())),this._listeners.forEach((e=>{document.addEventListener(e,this._respond)}))}willDestroy(){super.willDestroy(...arguments),"undefined"==typeof FastBoot&&this._listeners.forEach((e=>{document.removeEventListener(e,this._respond)}))}_respond(e){if(this._disableOnInput&&e.target){var t
|
|||
|
const a=null!==(t=e.composedPath()[0])&&void 0!==t?t:e.target,l=a.tagName
|
|||
|
if(a.getAttribute&&null!=a.getAttribute("contenteditable")||"TEXTAREA"===l||"INPUT"===l)return}(0,h.run)((()=>{let{firstResponders:t,normalResponders:a}=this
|
|||
|
!function(e,t){let{firstResponders:a,normalResponders:l}=t,i=!1,o=!1
|
|||
|
const n={stopImmediatePropagation(){i=!0},stopPropagation(){o=!0}}
|
|||
|
for(const c of a)if(u(c,e,n),i)break
|
|||
|
if(o)return
|
|||
|
i=!1
|
|||
|
let r=Number.POSITIVE_INFINITY
|
|||
|
for(const c of l){const t=Number(c.keyboardPriority)
|
|||
|
if(!i||t!==r){if(t<r){if(o)return
|
|||
|
i=!1,r=t}u(c,e,n)}}}(e,{firstResponders:t,normalResponders:a})}))}register(e){this.registeredResponders.add(e)}unregister(e){this.registeredResponders.delete(e)}keyDown(){return function(e){return(0,s.Z)("keydown",e)}(...arguments)}keyPress(){return function(e){return(0,s.Z)("keypress",e)}(...arguments)}keyUp(){return function(e){return(0,s.Z)("keyup",e)}(...arguments)}},(0,i.a)(l.prototype,"_respond",[c.action],Object.getOwnPropertyDescriptor(l.prototype,"_respond"),l.prototype),l)},6826:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>i})
|
|||
|
var l=a(1866)
|
|||
|
function i(e){if(!(0,l.isNone)(e))switch(e){case 0:return"left"
|
|||
|
case 1:return"middle"
|
|||
|
case 2:return"right"}}},4005:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>c})
|
|||
|
var l=a(3800),i=a(2956),o=a(5487),n=a(6826)
|
|||
|
a(3353),a(1866)
|
|||
|
const r="_all"
|
|||
|
function c(e,t){let a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.Z)()
|
|||
|
if(e instanceof l.Z)a=e
|
|||
|
else{if("string"!=typeof e)throw new Error("Expected a `string` or `KeyCombo` as `keyComboOrKeyComboString` argument to `isKey`")
|
|||
|
a=l.Z.parse(e,c)}return a.type===t.type&&(!!function(e){return e.keyOrCode===r&&!1===e.altKey&&!1===e.ctrlKey&&!1===e.metaKey&&!1===e.shiftKey}(a)||!(!function(e,t){return e.type===t.type&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey&&e.shiftKey===t.shiftKey}(a,t)||!function(e,t){return t instanceof KeyboardEvent&&(e.keyOrCode===r||e.keyOrCode===t.code||e.keyOrCode===t.key)}(a,t)&&!function(e,t){return t instanceof MouseEvent&&(e.keyOrCode===r||e.keyOrCode===(0,n.Z)(t.button))}(a,t))||function(e,t,a){return s([],e)&&s(["shift"],t)?t.key===e.keyOrCode:s(["shift"],e)&&s(["shift"],t)?(l=t.key,(o.zA[l]||l)===e.keyOrCode):"Macintosh"===a&&s(["alt"],e)&&s(["alt"],t)?function(e){return o.Bq[e]||e}(t.key)===e.keyOrCode:!("Macintosh"!==a||!s(["shift","alt"],e)||!s(["shift","alt"],t))&&function(e){return o.sd[e]||e}(t.key)===e.keyOrCode
|
|||
|
var l}(a,t,c))}const h=["alt","ctrl","meta","shift","cmd"].filter((e=>"cmd"!=e))
|
|||
|
function s(e,t){for(let a of h){if(e.includes(a)&&!t[`${a}Key`])return!1
|
|||
|
if(!e.includes(a)&&t[`${a}Key`])return!1}return!0}},3800:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>s})
|
|||
|
var l=a(3720),i=a(2956)
|
|||
|
a(3353)
|
|||
|
const o=/^alt$/i,n=/^shift$/i,r=/^ctrl$/i,c=/^meta$/i,h=/^cmd$/i
|
|||
|
class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.Z)();(0,l._)(this,"type",void 0),(0,l._)(this,"altKey",!1),(0,l._)(this,"ctrlKey",!1),(0,l._)(this,"shiftKey",!1),(0,l._)(this,"metaKey",!1),(0,l._)(this,"keyOrCode",void 0),(0,l._)(this,"platform",void 0),this.platform=e}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.Z)(),a=new s(t),[l,...d]=e.split(":")
|
|||
|
return d=d.join(":"),a.type=l,"+"===d?(a.keyOrCode=d,a):(d.split("+").forEach((e=>{o.test(e)?a.altKey=!0:r.test(e)?a.ctrlKey=!0:c.test(e)?a.metaKey=!0:n.test(e)?a.shiftKey=!0:h.test(e)?t.indexOf("Mac")>-1?a.metaKey=!0:a.ctrlKey=!0:a.keyOrCode=e})),a)}createMatchingKeyboardEvent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|||
|
return new KeyboardEvent(this.type,Object.assign({key:this.keyOrCode,code:this.keyOrCode,altKey:this.altKey,ctrlKey:this.ctrlKey,metaKey:this.metaKey,shiftKey:this.shiftKey},e))}}},9026:(e,t,a)=>{"use strict"
|
|||
|
function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=t
|
|||
|
"string"==typeof t&&(a=t.split("+")),a.indexOf("cmd")>-1&&(a[a.indexOf("cmd")]=function(e){if("undefined"==typeof FastBoot)return void 0===e&&(e=navigator.platform),e.indexOf("Mac")>-1?"meta":"ctrl"}())
|
|||
|
let l=function(e){return e.sort().join("+")}(a||[])
|
|||
|
return""===l&&(l="_all"),`${e}:${l}`}a.d(t,{Z:()=>l})},2956:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{Z:()=>o})
|
|||
|
var l=a(3353)
|
|||
|
let i
|
|||
|
function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent
|
|||
|
if((0,l.runInDebug)((()=>{i=null})),!i){let t="Unknown OS";-1!=e.indexOf("Win")&&(t="Windows"),-1!=e.indexOf("Mac")&&(t="Macintosh"),-1!=e.indexOf("Linux")&&(t="Linux"),-1!=e.indexOf("Android")&&(t="Android"),-1!=e.indexOf("like Mac")&&(t="iOS"),i=t}return i}},2509:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{default:()=>c,modifier:()=>s})
|
|||
|
var l=a(1292),i=a(4927),o=a(9341)
|
|||
|
function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class r{constructor(e){this.owner=e,n(this,"capabilities",(0,i.capabilities)("3.22"))}createModifier(e,t){return{instance:new e(this.owner,t),element:null}}installModifier(e,t,a){const l=function(e,t){const a=e
|
|||
|
return a.element=t,a}(e,t)
|
|||
|
l.instance.modify(t,a.positional,a.named)}updateModifier(e,t){e.instance.modify(e.element,t.positional,t.named)}destroyModifier(e){let{instance:t}=e;(0,o.destroy)(t)}}class c{constructor(e,t){(0,l.setOwner)(this,e)}modify(e,t,a){}}(0,i.setModifierManager)((e=>new r(e)),c)
|
|||
|
const h=new class{constructor(){n(this,"capabilities",(0,i.capabilities)("3.22"))}createModifier(e){return{element:null,instance:e}}installModifier(e,t,a){const l=function(e,t){const a=e
|
|||
|
return a.element=t,a}(e,t),{positional:i,named:o}=a,n=e.instance(t,i,o)
|
|||
|
"function"==typeof n&&(l.teardown=n)}updateModifier(e,t){"function"==typeof e.teardown&&e.teardown()
|
|||
|
const a=e.instance(e.element,t.positional,t.named)
|
|||
|
"function"==typeof a&&(e.teardown=a)}destroyModifier(e){"function"==typeof e.teardown&&e.teardown()}}
|
|||
|
function s(e){return(0,i.setModifierManager)((()=>h),e)}},3276:e=>{function t(e,t,a,l){var i,o=null==(i=l)||"number"==typeof i||"boolean"==typeof i?l:a(l),n=t.get(o)
|
|||
|
return void 0===n&&(n=e.call(this,l),t.set(o,n)),n}function a(e,t,a){var l=Array.prototype.slice.call(arguments,3),i=a(l),o=t.get(i)
|
|||
|
return void 0===o&&(o=e.apply(this,l),t.set(i,o)),o}function l(e,t,a,l,i){return a.bind(t,e,l,i)}function i(e,i){return l(e,this,1===e.length?t:a,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function n(){this.cache=Object.create(null)}n.prototype.has=function(e){return e in this.cache},n.prototype.get=function(e){return this.cache[e]},n.prototype.set=function(e,t){this.cache[e]=t}
|
|||
|
var r={create:function(){return new n}}
|
|||
|
e.exports=function(e,t){var a=t&&t.cache?t.cache:r,l=t&&t.serializer?t.serializer:o
|
|||
|
return(t&&t.strategy?t.strategy:i)(e,{cache:a,serializer:l})},e.exports.strategies={variadic:function(e,t){return l(e,this,a,t.cache.create(),t.serializer)},monadic:function(e,a){return l(e,this,t,a.cache.create(),a.serializer)}}},2349:e=>{function t(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return e}function l(e,l){const i=(l=l||{}).delimiter||".",o=l.maxDepth,n=l.transformKey||a,r={}
|
|||
|
return function e(a,c,h){h=h||1,Object.keys(a).forEach((function(s){const d=a[s],u=l.safe&&Array.isArray(d),f=Object.prototype.toString.call(d),v=t(d),p="[object Object]"===f||"[object Array]"===f,m=c?c+i+n(s):n(s)
|
|||
|
if(!u&&!v&&p&&Object.keys(d).length&&(!l.maxDepth||h<o))return e(d,m,h+1)
|
|||
|
r[m]=d}))}(e),r}e.exports=l,l.flatten=l,l.unflatten=function e(i,o){const n=(o=o||{}).delimiter||".",r=o.overwrite||!1,c=o.transformKey||a,h={}
|
|||
|
if(t(i)||"[object Object]"!==Object.prototype.toString.call(i))return i
|
|||
|
function s(e){const t=Number(e)
|
|||
|
return isNaN(t)||-1!==e.indexOf(".")||o.object?e:t}return i=Object.keys(i).reduce((function(e,t){const a=Object.prototype.toString.call(i[t])
|
|||
|
return"[object Object]"!==a&&"[object Array]"!==a||function(e){const t=Object.prototype.toString.call(e),a="[object Object]"===t
|
|||
|
return!e||("[object Array]"===t?!e.length:a?!Object.keys(e).length:void 0)}(i[t])?(e[t]=i[t],e):function(e,t,a){return Object.keys(a).reduce((function(t,l){return t[e+n+l]=a[l],t}),t)}(t,e,l(i[t],o))}),{}),Object.keys(i).forEach((function(t){const a=t.split(n).map(c)
|
|||
|
let l=s(a.shift()),d=s(a[0]),u=h
|
|||
|
for(;void 0!==d;){if("__proto__"===l)return
|
|||
|
const e=Object.prototype.toString.call(u[l]),t="[object Object]"===e||"[object Array]"===e
|
|||
|
if(!r&&!t&&void 0!==u[l])return;(r&&!t||!r&&null==u[l])&&(u[l]="number"!=typeof d||o.object?{}:[]),u=u[l],a.length>0&&(l=s(a.shift()),d=s(a[0]))}u[l]=e(i[t],o)})),h}},5011:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{SKELETON_TYPE:()=>i,SyntaxError:()=>L,TYPE:()=>l,createLiteralElement:()=>y,createNumberElement:()=>g,isArgumentElement:()=>r,isDateElement:()=>h,isDateTimeSkeleton:()=>m,isLiteralElement:()=>n,isNumberElement:()=>c,isNumberSkeleton:()=>p,isPluralElement:()=>u,isPoundElement:()=>f,isSelectElement:()=>d,isTagElement:()=>v,isTimeElement:()=>s,parse:()=>D,pegParse:()=>C})
|
|||
|
var l,i,o=a(2985)
|
|||
|
function n(e){return e.type===l.literal}function r(e){return e.type===l.argument}function c(e){return e.type===l.number}function h(e){return e.type===l.date}function s(e){return e.type===l.time}function d(e){return e.type===l.select}function u(e){return e.type===l.plural}function f(e){return e.type===l.pound}function v(e){return e.type===l.tag}function p(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}function y(e){return{type:l.literal,value:e}}function g(e,t){return{type:l.number,value:e,style:t}}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}))
|
|||
|
var b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,M=/^(@+)?(\+|#+)?$/g,A=/(\*)(0+)|(#+)(0+)|(0+)/g,w=/^(0+)$/
|
|||
|
function x(e){var t={}
|
|||
|
return e.replace(M,(function(e,a,l){return"string"!=typeof l?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):"+"===l?t.minimumSignificantDigits=a.length:"#"===a[0]?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+("string"==typeof l?l.length:0)),""})),t}function H(e){switch(e){case"sign-auto":return{signDisplay:"auto"}
|
|||
|
case"sign-accounting":case"()":return{currencySign:"accounting"}
|
|||
|
case"sign-always":case"+!":return{signDisplay:"always"}
|
|||
|
case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"}
|
|||
|
case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"}
|
|||
|
case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"}
|
|||
|
case"sign-never":case"+_":return{signDisplay:"never"}}}function V(e){var t
|
|||
|
if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var a=e.slice(0,2)
|
|||
|
if("+!"===a?(t.signDisplay="always",e=e.slice(2)):"+?"===a&&(t.signDisplay="exceptZero",e=e.slice(2)),!w.test(e))throw new Error("Malformed concise eng/scientific notation")
|
|||
|
t.minimumIntegerDigits=e.length}return t}function _(e){return H(e)||{}}function B(e){for(var t={},a=0,l=e;a<l.length;a++){var i=l[a]
|
|||
|
switch(i.stem){case"percent":case"%":t.style="percent"
|
|||
|
continue
|
|||
|
case"%x100":t.style="percent",t.scale=100
|
|||
|
continue
|
|||
|
case"currency":t.style="currency",t.currency=i.options[0]
|
|||
|
continue
|
|||
|
case"group-off":case",_":t.useGrouping=!1
|
|||
|
continue
|
|||
|
case"precision-integer":case".":t.maximumFractionDigits=0
|
|||
|
continue
|
|||
|
case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"")
|
|||
|
continue
|
|||
|
case"compact-short":case"K":t.notation="compact",t.compactDisplay="short"
|
|||
|
continue
|
|||
|
case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long"
|
|||
|
continue
|
|||
|
case"scientific":t=(0,o.pi)((0,o.pi)((0,o.pi)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,o.pi)((0,o.pi)({},e),_(t))}),{}))
|
|||
|
continue
|
|||
|
case"engineering":t=(0,o.pi)((0,o.pi)((0,o.pi)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,o.pi)((0,o.pi)({},e),_(t))}),{}))
|
|||
|
continue
|
|||
|
case"notation-simple":t.notation="standard"
|
|||
|
continue
|
|||
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow"
|
|||
|
continue
|
|||
|
case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short"
|
|||
|
continue
|
|||
|
case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long"
|
|||
|
continue
|
|||
|
case"unit-width-iso-code":t.currencyDisplay="symbol"
|
|||
|
continue
|
|||
|
case"scale":t.scale=parseFloat(i.options[0])
|
|||
|
continue
|
|||
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option")
|
|||
|
i.options[0].replace(A,(function(e,a,l,i,o,n){if(a)t.minimumIntegerDigits=l.length
|
|||
|
else{if(i&&o)throw new Error("We currently do not support maximum integer digits")
|
|||
|
if(n)throw new Error("We currently do not support exact integer digits")}return""}))
|
|||
|
continue}if(w.test(i.stem))t.minimumIntegerDigits=i.stem.length
|
|||
|
else if(z.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option")
|
|||
|
i.stem.replace(z,(function(e,a,l,i,o,n){return"*"===l?t.minimumFractionDigits=a.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&n?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+n.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""})),i.options.length&&(t=(0,o.pi)((0,o.pi)({},t),x(i.options[0])))}else if(M.test(i.stem))t=(0,o.pi)((0,o.pi)({},t),x(i.stem))
|
|||
|
else{var n=H(i.stem)
|
|||
|
n&&(t=(0,o.pi)((0,o.pi)({},t),n))
|
|||
|
var r=V(i.stem)
|
|||
|
r&&(t=(0,o.pi)((0,o.pi)({},t),r))}}return t}var L=function(e){function t(a,l,i,o){var n=e.call(this)||this
|
|||
|
return n.message=a,n.expected=l,n.found=i,n.location=o,n.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,t),n}return(0,o.ZT)(t,e),t.buildMessage=function(e,t){function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function l(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function o(e){switch(e.type){case"literal":return'"'+l(e.text)+'"'
|
|||
|
case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}))
|
|||
|
return"["+(e.inverted?"^":"")+t+"]"
|
|||
|
case"any":return"any character"
|
|||
|
case"end":return"end of input"
|
|||
|
case"other":return e.description}}return"Expected "+function(e){var t,a,l=e.map(o)
|
|||
|
if(l.sort(),l.length>0){for(t=1,a=1;t<l.length;t++)l[t-1]!==l[t]&&(l[a]=l[t],a++)
|
|||
|
l.length=a}switch(l.length){case 1:return l[0]
|
|||
|
case 2:return l[0]+" or "+l[1]
|
|||
|
default:return l.slice(0,-1).join(", ")+", or "+l[l.length-1]}}(e)+" but "+((n=t)?'"'+l(n)+'"':"end of input")+" found."
|
|||
|
var n},t}(Error),C=function(e,t){t=void 0!==t?t:{}
|
|||
|
var a,n={},r={start:Ct},c=Ct,h=function(){return!ca},s=function(e){return e},d=function(){return ca},u="<",f=xt("<",!1),v=function(e){return e.join("")},p=function(){return"<"},m=function(e){return(0,o.pi)({type:l.literal,value:e},ia())},y="#",g=xt("#",!1),z=function(){return(0,o.pi)({type:l.pound},ia())},M=Vt("tagElement"),A=function(e,t,a){return e!==a&&wt('Mismatch tag "'+e+'" !== "'+a+'"',At()),(0,o.pi)({type:l.tag,value:e,children:t},ia())},w="/>",x=xt("/>",!1),H=function(e){return(0,o.pi)({type:l.literal,value:e.join("")},ia())},V=">",_=xt(">",!1),C=function(e){return e},E="</",k=xt("</",!1),D=Vt("argumentElement"),S="{",F=xt("{",!1),O="}",T=xt("}",!1),P=function(e){return(0,o.pi)({type:l.argument,value:e},ia())},N=Vt("numberSkeletonId"),U=/^['\/{}]/,R=Ht(["'","/","{","}"],!1,!1),j={type:"any"},I=Vt("numberSkeletonTokenOption"),G="/",$=xt("/",!1),q=function(e){return e},Z=Vt("numberSkeletonToken"),Y=function(e,t){return{stem:e,options:t}},K=function(e){return(0,o.pi)({type:i.number,tokens:e,parsedOptions:ha?B(e):{}},ia())},W="::",X=xt("::",!1),J=function(e){return e},Q=function(){return aa.push("numberArgStyle"),!0},ee=function(e){return aa.pop(),e.replace(/\s*$/,"")},te=",",ae=xt(",",!1),le="number",ie=xt("number",!1),oe=function(e,t,a){return(0,o.pi)({type:"number"===t?l.number:"date"===t?l.date:l.time,style:a&&a[2],value:e},ia())},ne="'",re=xt("'",!1),ce=/^[^']/,he=Ht(["'"],!0,!1),se=/^[^a-zA-Z'{}]/,de=Ht([["a","z"],["A","Z"],"'","{","}"],!0,!1),ue=/^[a-zA-Z]/,fe=Ht([["a","z"],["A","Z"]],!1,!1),ve=function(e){return(0,o.pi)({type:i.dateTime,pattern:e,parsedOptions:ha?(t=e,a={},t.replace(b,(function(e){var t=e.length
|
|||
|
switch(e[0]){case"G":a.era=4===t?"long":5===t?"narrow":"short"
|
|||
|
break
|
|||
|
case"y":a.year=2===t?"2-digit":"numeric"
|
|||
|
break
|
|||
|
case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead")
|
|||
|
case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported")
|
|||
|
case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][t-1]
|
|||
|
break
|
|||
|
case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported")
|
|||
|
case"d":a.day=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead")
|
|||
|
case"E":a.weekday=4===t?"short":5===t?"narrow":"short"
|
|||
|
break
|
|||
|
case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported")
|
|||
|
a.weekday=["short","long","narrow","short"][t-4]
|
|||
|
break
|
|||
|
case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported")
|
|||
|
a.weekday=["short","long","narrow","short"][t-4]
|
|||
|
break
|
|||
|
case"a":a.hour12=!0
|
|||
|
break
|
|||
|
case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead")
|
|||
|
case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead")
|
|||
|
case"m":a.minute=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"s":a.second=["numeric","2-digit"][t-1]
|
|||
|
break
|
|||
|
case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead")
|
|||
|
case"z":a.timeZoneName=t<4?"short":"long"
|
|||
|
break
|
|||
|
case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),a):{}},ia())
|
|||
|
var t,a},pe=function(){return aa.push("dateOrTimeArgStyle"),!0},me="date",ye=xt("date",!1),ge="time",be=xt("time",!1),ze="plural",Me=xt("plural",!1),Ae="selectordinal",we=xt("selectordinal",!1),xe="offset:",He=xt("offset:",!1),Ve=function(e,t,a,i){return(0,o.pi)({type:l.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:a?a[2]:0,options:i.reduce((function(e,t){var a=t.id,l=t.value,i=t.location
|
|||
|
return a in e&&wt('Duplicate option "'+a+'" in plural element: "'+Mt()+'"',At()),e[a]={value:l,location:i},e}),{})},ia())},_e="select",Be=xt("select",!1),Le=function(e,t){return(0,o.pi)({type:l.select,value:e,options:t.reduce((function(e,t){var a=t.id,l=t.value,i=t.location
|
|||
|
return a in e&&wt('Duplicate option "'+a+'" in select element: "'+Mt()+'"',At()),e[a]={value:l,location:i},e}),{})},ia())},Ce="=",Ee=xt("=",!1),ke=function(e){return aa.push("select"),!0},De=function(e,t){return aa.pop(),(0,o.pi)({id:e,value:t},ia())},Se=function(e){return aa.push("plural"),!0},Fe=function(e,t){return aa.pop(),(0,o.pi)({id:e,value:t},ia())},Oe=Vt("whitespace"),Te=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pe=Ht([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),Ne=Vt("syntax pattern"),Ue=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Re=Ht([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),je=Vt("optional whitespace"),Ie=Vt("number"),Ge="-",$e=xt("-",!1),qe=function(e,t){return t?e?-t:t:0},Ze=(Vt("apostrophe"),Vt("double apostrophes")),Ye="''",Ke=xt("''",!1),We=function(){return"'"},Xe=function(e,t){return e+t.replace("''","'")},Je=function(e){return!("<"===e||"{"===e||la()&&"#"===e||aa.length>1&&"}"===e)},Qe="\n",et=xt("\n",!1),tt=function(e){return"<"===e||">"===e||"{"===e||"}"===e||la()&&"#"===e},at=Vt("argNameOrNumber"),lt=Vt("validTag"),it=Vt("argNumber"),ot="0",nt=xt("0",!1),rt=function(){return 0},ct=/^[1-9]/,ht=Ht([["1","9"]],!1,!1),st=/^[0-9]/,dt=Ht([["0","9"]],!1,!1),ut=function(e){return parseInt(e.join(""),10)},ft=Vt("argName"),vt=Vt("tagName"),pt=0,mt=0,yt=[{line:1,column:1}],gt=0,bt=[],zt=0
|
|||
|
if(void 0!==t.startRule){if(!(t.startRule in r))throw new Error("Can't start parsing from rule \""+t.startRule+'".')
|
|||
|
c=r[t.startRule]}function Mt(){return e.substring(mt,pt)}function At(){return Bt(mt,pt)}function wt(e,t){throw function(e,t){return new L(e,[],"",t)}(e,t=void 0!==t?t:Bt(mt,pt))}function xt(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ht(e,t,a){return{type:"class",parts:e,inverted:t,ignoreCase:a}}function Vt(e){return{type:"other",description:e}}function _t(t){var a,l=yt[t]
|
|||
|
if(l)return l
|
|||
|
for(a=t-1;!yt[a];)a--
|
|||
|
for(l={line:(l=yt[a]).line,column:l.column};a<t;)10===e.charCodeAt(a)?(l.line++,l.column=1):l.column++,a++
|
|||
|
return yt[t]=l,l}function Bt(e,t){var a=_t(e),l=_t(t)
|
|||
|
return{start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:l.line,column:l.column}}}function Lt(e){pt<gt||(pt>gt&&(gt=pt,bt=[]),bt.push(e))}function Ct(){return Et()}function Et(){var e,t
|
|||
|
for(e=[],t=kt();t!==n;)e.push(t),t=kt()
|
|||
|
return e}function kt(){var t,a
|
|||
|
return t=pt,mt=pt,(h()?void 0:n)!==n?(a=function(){var e,t,a,l
|
|||
|
return zt++,(e=Ft())===n&&(e=pt,(t=Ot())!==n&&(a=Et())!==n&&(l=Tt())!==n?(mt=e,e=t=A(t,a,l)):(pt=e,e=n)),zt--,e===n&&(t=n,0===zt&&Lt(M)),e}(),a!==n?(mt=t,t=s(a)):(pt=t,t=n)):(pt=t,t=n),t===n&&(t=function(){var e,t
|
|||
|
return e=pt,(t=Dt())!==n&&(mt=e,t=m(t)),t}())===n&&(t=function(){var t,a,l,i
|
|||
|
return zt++,t=pt,123===e.charCodeAt(pt)?(a=S,pt++):(a=n,0===zt&&Lt(F)),a!==n&&Zt()!==n&&(l=Jt())!==n&&Zt()!==n?(125===e.charCodeAt(pt)?(i=O,pt++):(i=n,0===zt&&Lt(T)),i!==n?(mt=t,t=a=P(l)):(pt=t,t=n)):(pt=t,t=n),zt--,t===n&&(a=n,0===zt&&Lt(D)),t}())===n&&(t=function(){var t
|
|||
|
return t=function(){var t,a,l,i,o,r,c,h,s
|
|||
|
return t=pt,123===e.charCodeAt(pt)?(a=S,pt++):(a=n,0===zt&&Lt(F)),a!==n&&Zt()!==n&&(l=Jt())!==n&&Zt()!==n?(44===e.charCodeAt(pt)?(i=te,pt++):(i=n,0===zt&&Lt(ae)),i!==n&&Zt()!==n?(e.substr(pt,6)===le?(o=le,pt+=6):(o=n,0===zt&&Lt(ie)),o!==n&&Zt()!==n?(r=pt,44===e.charCodeAt(pt)?(c=te,pt++):(c=n,0===zt&&Lt(ae)),c!==n&&(h=Zt())!==n?(s=function(){var t,a,l
|
|||
|
return t=pt,e.substr(pt,2)===W?(a=W,pt+=2):(a=n,0===zt&&Lt(X)),a!==n?(l=function(){var e,t,a
|
|||
|
if(e=pt,t=[],(a=Ut())!==n)for(;a!==n;)t.push(a),a=Ut()
|
|||
|
else t=n
|
|||
|
return t!==n&&(mt=e,t=K(t)),t}(),l!==n?(mt=t,t=a=J(l)):(pt=t,t=n)):(pt=t,t=n),t===n&&(t=pt,mt=pt,(a=(a=Q())?void 0:n)!==n&&(l=Dt())!==n?(mt=t,t=a=ee(l)):(pt=t,t=n)),t}(),s!==n?r=c=[c,h,s]:(pt=r,r=n)):(pt=r,r=n),r===n&&(r=null),r!==n&&(c=Zt())!==n?(125===e.charCodeAt(pt)?(h=O,pt++):(h=n,0===zt&&Lt(T)),h!==n?(mt=t,t=a=oe(l,o,r)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n),t}(),t===n&&(t=function(){var t,a,l,i,o,r,c,h,s
|
|||
|
return t=pt,123===e.charCodeAt(pt)?(a=S,pt++):(a=n,0===zt&&Lt(F)),a!==n&&Zt()!==n&&(l=Jt())!==n&&Zt()!==n?(44===e.charCodeAt(pt)?(i=te,pt++):(i=n,0===zt&&Lt(ae)),i!==n&&Zt()!==n?(e.substr(pt,4)===me?(o=me,pt+=4):(o=n,0===zt&&Lt(ye)),o===n&&(e.substr(pt,4)===ge?(o=ge,pt+=4):(o=n,0===zt&&Lt(be))),o!==n&&Zt()!==n?(r=pt,44===e.charCodeAt(pt)?(c=te,pt++):(c=n,0===zt&&Lt(ae)),c!==n&&(h=Zt())!==n?(s=function(){var t,a,l
|
|||
|
return t=pt,e.substr(pt,2)===W?(a=W,pt+=2):(a=n,0===zt&&Lt(X)),a!==n?(l=function(){var t,a,l,i
|
|||
|
if(t=pt,a=pt,l=[],(i=Rt())===n&&(i=jt()),i!==n)for(;i!==n;)l.push(i),(i=Rt())===n&&(i=jt())
|
|||
|
else l=n
|
|||
|
return(a=l!==n?e.substring(a,pt):l)!==n&&(mt=t,a=ve(a)),a}(),l!==n?(mt=t,t=a=J(l)):(pt=t,t=n)):(pt=t,t=n),t===n&&(t=pt,mt=pt,(a=(a=pe())?void 0:n)!==n&&(l=Dt())!==n?(mt=t,t=a=ee(l)):(pt=t,t=n)),t}(),s!==n?r=c=[c,h,s]:(pt=r,r=n)):(pt=r,r=n),r===n&&(r=null),r!==n&&(c=Zt())!==n?(125===e.charCodeAt(pt)?(h=O,pt++):(h=n,0===zt&&Lt(T)),h!==n?(mt=t,t=a=oe(l,o,r)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n),t}()),t}(),t===n&&(t=function(){var t,a,l,i,o,r,c,h,s,d,u
|
|||
|
if(t=pt,123===e.charCodeAt(pt)?(a=S,pt++):(a=n,0===zt&&Lt(F)),a!==n)if(Zt()!==n)if((l=Jt())!==n)if(Zt()!==n)if(44===e.charCodeAt(pt)?(i=te,pt++):(i=n,0===zt&&Lt(ae)),i!==n)if(Zt()!==n)if(e.substr(pt,6)===ze?(o=ze,pt+=6):(o=n,0===zt&&Lt(Me)),o===n&&(e.substr(pt,13)===Ae?(o=Ae,pt+=13):(o=n,0===zt&&Lt(we))),o!==n)if(Zt()!==n)if(44===e.charCodeAt(pt)?(r=te,pt++):(r=n,0===zt&&Lt(ae)),r!==n)if(Zt()!==n)if(c=pt,e.substr(pt,7)===xe?(h=xe,pt+=7):(h=n,0===zt&&Lt(He)),h!==n&&(s=Zt())!==n&&(d=Yt())!==n?c=h=[h,s,d]:(pt=c,c=n),c===n&&(c=null),c!==n)if((h=Zt())!==n){if(s=[],(d=Gt())!==n)for(;d!==n;)s.push(d),d=Gt()
|
|||
|
else s=n
|
|||
|
s!==n&&(d=Zt())!==n?(125===e.charCodeAt(pt)?(u=O,pt++):(u=n,0===zt&&Lt(T)),u!==n?(mt=t,t=a=Ve(l,o,c,s)):(pt=t,t=n)):(pt=t,t=n)}else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
return t}())===n&&(t=function(){var t,a,l,i,o,r,c,h,s
|
|||
|
if(t=pt,123===e.charCodeAt(pt)?(a=S,pt++):(a=n,0===zt&&Lt(F)),a!==n)if(Zt()!==n)if((l=Jt())!==n)if(Zt()!==n)if(44===e.charCodeAt(pt)?(i=te,pt++):(i=n,0===zt&&Lt(ae)),i!==n)if(Zt()!==n)if(e.substr(pt,6)===_e?(o=_e,pt+=6):(o=n,0===zt&&Lt(Be)),o!==n)if(Zt()!==n)if(44===e.charCodeAt(pt)?(r=te,pt++):(r=n,0===zt&&Lt(ae)),r!==n)if(Zt()!==n){if(c=[],(h=It())!==n)for(;h!==n;)c.push(h),h=It()
|
|||
|
else c=n
|
|||
|
c!==n&&(h=Zt())!==n?(125===e.charCodeAt(pt)?(s=O,pt++):(s=n,0===zt&&Lt(T)),s!==n?(mt=t,t=a=Le(l,c)):(pt=t,t=n)):(pt=t,t=n)}else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
return t}())===n&&(t=function(){var t,a
|
|||
|
return t=pt,35===e.charCodeAt(pt)?(a=y,pt++):(a=n,0===zt&&Lt(g)),a!==n&&(mt=t,a=z()),a}())),t}function Dt(){var t,a,l,i
|
|||
|
if(t=pt,mt=pt,(a=(a=d())?void 0:n)!==n){if(l=[],(i=Kt())===n&&(i=Wt())===n&&(i=Xt())===n&&(60===e.charCodeAt(pt)?(i=u,pt++):(i=n,0===zt&&Lt(f))),i!==n)for(;i!==n;)l.push(i),(i=Kt())===n&&(i=Wt())===n&&(i=Xt())===n&&(60===e.charCodeAt(pt)?(i=u,pt++):(i=n,0===zt&&Lt(f)))
|
|||
|
else l=n
|
|||
|
l!==n?(mt=t,t=a=v(l)):(pt=t,t=n)}else pt=t,t=n
|
|||
|
if(t===n){if(t=pt,a=[],(l=Kt())===n&&(l=Wt())===n&&(l=Xt())===n&&(l=St()),l!==n)for(;l!==n;)a.push(l),(l=Kt())===n&&(l=Wt())===n&&(l=Xt())===n&&(l=St())
|
|||
|
else a=n
|
|||
|
a!==n&&(mt=t,a=v(a)),t=a}return t}function St(){var t,a,l
|
|||
|
return t=pt,a=pt,zt++,(l=Ot())===n&&(l=Tt())===n&&(l=Ft()),zt--,l===n?a=void 0:(pt=a,a=n),a!==n?(60===e.charCodeAt(pt)?(l=u,pt++):(l=n,0===zt&&Lt(f)),l!==n?(mt=t,t=a=p()):(pt=t,t=n)):(pt=t,t=n),t}function Ft(){var t,a,l,i,o,r
|
|||
|
return t=pt,a=pt,60===e.charCodeAt(pt)?(l=u,pt++):(l=n,0===zt&&Lt(f)),l!==n&&(i=Qt())!==n&&(o=Zt())!==n?(e.substr(pt,2)===w?(r=w,pt+=2):(r=n,0===zt&&Lt(x)),r!==n?a=l=[l,i,o,r]:(pt=a,a=n)):(pt=a,a=n),a!==n&&(mt=t,a=H(a)),a}function Ot(){var t,a,l,i
|
|||
|
return t=pt,60===e.charCodeAt(pt)?(a=u,pt++):(a=n,0===zt&&Lt(f)),a!==n&&(l=Qt())!==n?(62===e.charCodeAt(pt)?(i=V,pt++):(i=n,0===zt&&Lt(_)),i!==n?(mt=t,t=a=C(l)):(pt=t,t=n)):(pt=t,t=n),t}function Tt(){var t,a,l,i
|
|||
|
return t=pt,e.substr(pt,2)===E?(a=E,pt+=2):(a=n,0===zt&&Lt(k)),a!==n&&(l=Qt())!==n?(62===e.charCodeAt(pt)?(i=V,pt++):(i=n,0===zt&&Lt(_)),i!==n?(mt=t,t=a=C(l)):(pt=t,t=n)):(pt=t,t=n),t}function Pt(){var t,a,l,i,o
|
|||
|
if(zt++,t=pt,a=[],l=pt,i=pt,zt++,(o=$t())===n&&(U.test(e.charAt(pt))?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(R))),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n),l!==n)for(;l!==n;)a.push(l),l=pt,i=pt,zt++,(o=$t())===n&&(U.test(e.charAt(pt))?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(R))),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n)
|
|||
|
else a=n
|
|||
|
return t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(N)),t}function Nt(){var t,a,l
|
|||
|
return zt++,t=pt,47===e.charCodeAt(pt)?(a=G,pt++):(a=n,0===zt&&Lt($)),a!==n&&(l=Pt())!==n?(mt=t,t=a=q(l)):(pt=t,t=n),zt--,t===n&&(a=n,0===zt&&Lt(I)),t}function Ut(){var e,t,a,l
|
|||
|
if(zt++,e=pt,Zt()!==n)if((t=Pt())!==n){for(a=[],l=Nt();l!==n;)a.push(l),l=Nt()
|
|||
|
a!==n?(mt=e,e=Y(t,a)):(pt=e,e=n)}else pt=e,e=n
|
|||
|
else pt=e,e=n
|
|||
|
return zt--,e===n&&0===zt&&Lt(Z),e}function Rt(){var t,a,l,i
|
|||
|
if(t=pt,39===e.charCodeAt(pt)?(a=ne,pt++):(a=n,0===zt&&Lt(re)),a!==n){if(l=[],(i=Kt())===n&&(ce.test(e.charAt(pt))?(i=e.charAt(pt),pt++):(i=n,0===zt&&Lt(he))),i!==n)for(;i!==n;)l.push(i),(i=Kt())===n&&(ce.test(e.charAt(pt))?(i=e.charAt(pt),pt++):(i=n,0===zt&&Lt(he)))
|
|||
|
else l=n
|
|||
|
l!==n?(39===e.charCodeAt(pt)?(i=ne,pt++):(i=n,0===zt&&Lt(re)),i!==n?t=a=[a,l,i]:(pt=t,t=n)):(pt=t,t=n)}else pt=t,t=n
|
|||
|
if(t===n)if(t=[],(a=Kt())===n&&(se.test(e.charAt(pt))?(a=e.charAt(pt),pt++):(a=n,0===zt&&Lt(de))),a!==n)for(;a!==n;)t.push(a),(a=Kt())===n&&(se.test(e.charAt(pt))?(a=e.charAt(pt),pt++):(a=n,0===zt&&Lt(de)))
|
|||
|
else t=n
|
|||
|
return t}function jt(){var t,a
|
|||
|
if(t=[],ue.test(e.charAt(pt))?(a=e.charAt(pt),pt++):(a=n,0===zt&&Lt(fe)),a!==n)for(;a!==n;)t.push(a),ue.test(e.charAt(pt))?(a=e.charAt(pt),pt++):(a=n,0===zt&&Lt(fe))
|
|||
|
else t=n
|
|||
|
return t}function It(){var t,a,l,i,o
|
|||
|
return t=pt,Zt()!==n&&(a=ta())!==n&&Zt()!==n?(123===e.charCodeAt(pt)?(l=S,pt++):(l=n,0===zt&&Lt(F)),l!==n?(mt=pt,(ke(a)?void 0:n)!==n&&(i=Et())!==n?(125===e.charCodeAt(pt)?(o=O,pt++):(o=n,0===zt&&Lt(T)),o!==n?(mt=t,t=De(a,i)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n),t}function Gt(){var t,a,l,i,o
|
|||
|
return t=pt,Zt()!==n?(a=function(){var t,a,l,i
|
|||
|
return t=pt,a=pt,61===e.charCodeAt(pt)?(l=Ce,pt++):(l=n,0===zt&&Lt(Ee)),l!==n&&(i=Yt())!==n?a=l=[l,i]:(pt=a,a=n),(t=a!==n?e.substring(t,pt):a)===n&&(t=ta()),t}(),a!==n&&Zt()!==n?(123===e.charCodeAt(pt)?(l=S,pt++):(l=n,0===zt&&Lt(F)),l!==n?(mt=pt,(Se(a)?void 0:n)!==n&&(i=Et())!==n?(125===e.charCodeAt(pt)?(o=O,pt++):(o=n,0===zt&&Lt(T)),o!==n?(mt=t,t=Fe(a,i)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n)):(pt=t,t=n),t}function $t(){var t
|
|||
|
return zt++,Te.test(e.charAt(pt))?(t=e.charAt(pt),pt++):(t=n,0===zt&&Lt(Pe)),zt--,t===n&&0===zt&&Lt(Oe),t}function qt(){var t
|
|||
|
return zt++,Ue.test(e.charAt(pt))?(t=e.charAt(pt),pt++):(t=n,0===zt&&Lt(Re)),zt--,t===n&&0===zt&&Lt(Ne),t}function Zt(){var t,a,l
|
|||
|
for(zt++,t=pt,a=[],l=$t();l!==n;)a.push(l),l=$t()
|
|||
|
return t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(je)),t}function Yt(){var t,a,l
|
|||
|
return zt++,t=pt,45===e.charCodeAt(pt)?(a=Ge,pt++):(a=n,0===zt&&Lt($e)),a===n&&(a=null),a!==n&&(l=ea())!==n?(mt=t,t=a=qe(a,l)):(pt=t,t=n),zt--,t===n&&(a=n,0===zt&&Lt(Ie)),t}function Kt(){var t,a
|
|||
|
return zt++,t=pt,e.substr(pt,2)===Ye?(a=Ye,pt+=2):(a=n,0===zt&&Lt(Ke)),a!==n&&(mt=t,a=We()),zt--,(t=a)===n&&(a=n,0===zt&&Lt(Ze)),t}function Wt(){var t,a,l,i,o,r
|
|||
|
if(t=pt,39===e.charCodeAt(pt)?(a=ne,pt++):(a=n,0===zt&&Lt(re)),a!==n)if(l=function(){var t,a,l,i
|
|||
|
return t=pt,a=pt,e.length>pt?(l=e.charAt(pt),pt++):(l=n,0===zt&&Lt(j)),l!==n?(mt=pt,(i=(i=tt(l))?void 0:n)!==n?a=l=[l,i]:(pt=a,a=n)):(pt=a,a=n),a!==n?e.substring(t,pt):a}(),l!==n){for(i=pt,o=[],e.substr(pt,2)===Ye?(r=Ye,pt+=2):(r=n,0===zt&&Lt(Ke)),r===n&&(ce.test(e.charAt(pt))?(r=e.charAt(pt),pt++):(r=n,0===zt&&Lt(he)));r!==n;)o.push(r),e.substr(pt,2)===Ye?(r=Ye,pt+=2):(r=n,0===zt&&Lt(Ke)),r===n&&(ce.test(e.charAt(pt))?(r=e.charAt(pt),pt++):(r=n,0===zt&&Lt(he)));(i=o!==n?e.substring(i,pt):o)!==n?(39===e.charCodeAt(pt)?(o=ne,pt++):(o=n,0===zt&&Lt(re)),o===n&&(o=null),o!==n?(mt=t,t=a=Xe(l,i)):(pt=t,t=n)):(pt=t,t=n)}else pt=t,t=n
|
|||
|
else pt=t,t=n
|
|||
|
return t}function Xt(){var t,a,l,i
|
|||
|
return t=pt,a=pt,e.length>pt?(l=e.charAt(pt),pt++):(l=n,0===zt&&Lt(j)),l!==n?(mt=pt,(i=(i=Je(l))?void 0:n)!==n?a=l=[l,i]:(pt=a,a=n)):(pt=a,a=n),a===n&&(10===e.charCodeAt(pt)?(a=Qe,pt++):(a=n,0===zt&&Lt(et))),a!==n?e.substring(t,pt):a}function Jt(){var t,a
|
|||
|
return zt++,t=pt,(a=ea())===n&&(a=ta()),t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(at)),t}function Qt(){var t,a
|
|||
|
return zt++,t=pt,(a=ea())===n&&(a=function(){var t,a,l,i,o
|
|||
|
if(zt++,t=pt,a=[],45===e.charCodeAt(pt)?(l=Ge,pt++):(l=n,0===zt&&Lt($e)),l===n&&(l=pt,i=pt,zt++,(o=$t())===n&&(o=qt()),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n)),l!==n)for(;l!==n;)a.push(l),45===e.charCodeAt(pt)?(l=Ge,pt++):(l=n,0===zt&&Lt($e)),l===n&&(l=pt,i=pt,zt++,(o=$t())===n&&(o=qt()),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n))
|
|||
|
else a=n
|
|||
|
return t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(vt)),t}()),t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(lt)),t}function ea(){var t,a,l,i,o
|
|||
|
if(zt++,t=pt,48===e.charCodeAt(pt)?(a=ot,pt++):(a=n,0===zt&&Lt(nt)),a!==n&&(mt=t,a=rt()),(t=a)===n){if(t=pt,a=pt,ct.test(e.charAt(pt))?(l=e.charAt(pt),pt++):(l=n,0===zt&&Lt(ht)),l!==n){for(i=[],st.test(e.charAt(pt))?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(dt));o!==n;)i.push(o),st.test(e.charAt(pt))?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(dt))
|
|||
|
i!==n?a=l=[l,i]:(pt=a,a=n)}else pt=a,a=n
|
|||
|
a!==n&&(mt=t,a=ut(a)),t=a}return zt--,t===n&&(a=n,0===zt&&Lt(it)),t}function ta(){var t,a,l,i,o
|
|||
|
if(zt++,t=pt,a=[],l=pt,i=pt,zt++,(o=$t())===n&&(o=qt()),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n),l!==n)for(;l!==n;)a.push(l),l=pt,i=pt,zt++,(o=$t())===n&&(o=qt()),zt--,o===n?i=void 0:(pt=i,i=n),i!==n?(e.length>pt?(o=e.charAt(pt),pt++):(o=n,0===zt&&Lt(j)),o!==n?l=i=[i,o]:(pt=l,l=n)):(pt=l,l=n)
|
|||
|
else a=n
|
|||
|
return t=a!==n?e.substring(t,pt):a,zt--,t===n&&(a=n,0===zt&&Lt(ft)),t}var aa=["root"]
|
|||
|
function la(){return"plural"===aa[aa.length-1]}function ia(){return t&&t.captureLocation?{location:At()}:{}}var oa,na,ra,ca=t&&t.ignoreTag,ha=t&&t.shouldParseSkeleton
|
|||
|
if((a=c())!==n&&pt===e.length)return a
|
|||
|
throw a!==n&&pt<e.length&&Lt({type:"end"}),oa=bt,na=gt<e.length?e.charAt(gt):null,ra=gt<e.length?Bt(gt,gt+1):Bt(gt,gt),new L(L.buildMessage(oa,na),oa,na,ra)},E=/(^|[^\\])#/g
|
|||
|
function k(e){e.forEach((function(e){(u(e)||d(e))&&Object.keys(e.options).forEach((function(t){for(var a,l=e.options[t],i=-1,r=void 0,c=0;c<l.value.length;c++){var h=l.value[c]
|
|||
|
if(n(h)&&E.test(h.value)){i=c,r=h
|
|||
|
break}}if(r){var s=r.value.replace(E,"$1{"+e.value+", number}"),d=C(s);(a=l.value).splice.apply(a,(0,o.ev)([i,1],d))}k(l.value)}))}))}function D(e,t){t=(0,o.pi)({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{})
|
|||
|
var a=C(e,t)
|
|||
|
return t.normalizeHashtagInPlural&&k(a),a}},5861:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{ErrorCode:()=>fe,FormatError:()=>ye,IntlMessageFormat:()=>xe,InvalidValueError:()=>ge,InvalidValueTypeError:()=>be,MissingValueError:()=>ze,PART_TYPE:()=>me,default:()=>He,formatToParts:()=>Ae,isFormatXMLElementFn:()=>Me})
|
|||
|
var l,i,o,n=a(2985)
|
|||
|
function r(e){return e.type===i.literal}function c(e){return e.type===i.argument}function h(e){return e.type===i.number}function s(e){return e.type===i.date}function d(e){return e.type===i.time}function u(e){return e.type===i.select}function f(e){return e.type===i.plural}function v(e){return e.type===i.pound}function p(e){return e.type===i.tag}function m(e){return!(!e||"object"!=typeof e||e.type!==o.number)}function y(e){return!(!e||"object"!=typeof e||e.type!==o.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(l||(l={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}))
|
|||
|
var g=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g
|
|||
|
function z(e){var t={}
|
|||
|
return e.replace(b,(function(e){var a=e.length
|
|||
|
switch(e[0]){case"G":t.era=4===a?"long":5===a?"narrow":"short"
|
|||
|
break
|
|||
|
case"y":t.year=2===a?"2-digit":"numeric"
|
|||
|
break
|
|||
|
case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead")
|
|||
|
case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported")
|
|||
|
case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1]
|
|||
|
break
|
|||
|
case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported")
|
|||
|
case"d":t.day=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead")
|
|||
|
case"E":t.weekday=4===a?"short":5===a?"narrow":"short"
|
|||
|
break
|
|||
|
case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported")
|
|||
|
t.weekday=["short","long","narrow","short"][a-4]
|
|||
|
break
|
|||
|
case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported")
|
|||
|
t.weekday=["short","long","narrow","short"][a-4]
|
|||
|
break
|
|||
|
case"a":t.hour12=!0
|
|||
|
break
|
|||
|
case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead")
|
|||
|
case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead")
|
|||
|
case"m":t.minute=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"s":t.second=["numeric","2-digit"][a-1]
|
|||
|
break
|
|||
|
case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead")
|
|||
|
case"z":t.timeZoneName=a<4?"short":"long"
|
|||
|
break
|
|||
|
case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var M=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,A=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,w=/^(@+)?(\+|#+)?[rs]?$/g,x=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/
|
|||
|
function V(e){var t={}
|
|||
|
return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(w,(function(e,a,l){return"string"!=typeof l?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):"+"===l?t.minimumSignificantDigits=a.length:"#"===a[0]?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+("string"==typeof l?l.length:0)),""})),t}function _(e){switch(e){case"sign-auto":return{signDisplay:"auto"}
|
|||
|
case"sign-accounting":case"()":return{currencySign:"accounting"}
|
|||
|
case"sign-always":case"+!":return{signDisplay:"always"}
|
|||
|
case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"}
|
|||
|
case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"}
|
|||
|
case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"}
|
|||
|
case"sign-never":case"+_":return{signDisplay:"never"}}}function B(e){var t
|
|||
|
if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var a=e.slice(0,2)
|
|||
|
if("+!"===a?(t.signDisplay="always",e=e.slice(2)):"+?"===a&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw new Error("Malformed concise eng/scientific notation")
|
|||
|
t.minimumIntegerDigits=e.length}return t}function L(e){return _(e)||{}}function C(e){for(var t={},a=0,l=e;a<l.length;a++){var i=l[a]
|
|||
|
switch(i.stem){case"percent":case"%":t.style="percent"
|
|||
|
continue
|
|||
|
case"%x100":t.style="percent",t.scale=100
|
|||
|
continue
|
|||
|
case"currency":t.style="currency",t.currency=i.options[0]
|
|||
|
continue
|
|||
|
case"group-off":case",_":t.useGrouping=!1
|
|||
|
continue
|
|||
|
case"precision-integer":case".":t.maximumFractionDigits=0
|
|||
|
continue
|
|||
|
case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"")
|
|||
|
continue
|
|||
|
case"compact-short":case"K":t.notation="compact",t.compactDisplay="short"
|
|||
|
continue
|
|||
|
case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long"
|
|||
|
continue
|
|||
|
case"scientific":t=(0,n.pi)((0,n.pi)((0,n.pi)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,n.pi)((0,n.pi)({},e),L(t))}),{}))
|
|||
|
continue
|
|||
|
case"engineering":t=(0,n.pi)((0,n.pi)((0,n.pi)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,n.pi)((0,n.pi)({},e),L(t))}),{}))
|
|||
|
continue
|
|||
|
case"notation-simple":t.notation="standard"
|
|||
|
continue
|
|||
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow"
|
|||
|
continue
|
|||
|
case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short"
|
|||
|
continue
|
|||
|
case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long"
|
|||
|
continue
|
|||
|
case"unit-width-iso-code":t.currencyDisplay="symbol"
|
|||
|
continue
|
|||
|
case"scale":t.scale=parseFloat(i.options[0])
|
|||
|
continue
|
|||
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option")
|
|||
|
i.options[0].replace(x,(function(e,a,l,i,o,n){if(a)t.minimumIntegerDigits=l.length
|
|||
|
else{if(i&&o)throw new Error("We currently do not support maximum integer digits")
|
|||
|
if(n)throw new Error("We currently do not support exact integer digits")}return""}))
|
|||
|
continue}if(H.test(i.stem))t.minimumIntegerDigits=i.stem.length
|
|||
|
else if(A.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option")
|
|||
|
i.stem.replace(A,(function(e,a,l,i,o,n){return"*"===l?t.minimumFractionDigits=a.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&n?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+n.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""}))
|
|||
|
var o=i.options[0]
|
|||
|
"w"===o?t=(0,n.pi)((0,n.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,n.pi)((0,n.pi)({},t),V(o)))}else if(w.test(i.stem))t=(0,n.pi)((0,n.pi)({},t),V(i.stem))
|
|||
|
else{var r=_(i.stem)
|
|||
|
r&&(t=(0,n.pi)((0,n.pi)({},t),r))
|
|||
|
var c=B(i.stem)
|
|||
|
c&&(t=(0,n.pi)((0,n.pi)({},t),c))}}return t}var E,k={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb
|
|||
|
function D(e){var t=e.hourCycle
|
|||
|
if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k"
|
|||
|
case"h23":return"H"
|
|||
|
case"h12":return"h"
|
|||
|
case"h11":return"K"
|
|||
|
default:throw new Error("Invalid hourCycle")}var a,l=e.language
|
|||
|
return"root"!==l&&(a=e.maximize().region),(k[a||""]||k[l||""]||k["".concat(l,"-001")]||k["001"])[0]}var S=new RegExp("^".concat(g.source,"*")),F=new RegExp("".concat(g.source,"*$"))
|
|||
|
function O(e,t){return{start:e,end:t}}var T=!!String.prototype.startsWith,P=!!String.fromCodePoint,N=!!Object.fromEntries,U=!!String.prototype.codePointAt,R=!!String.prototype.trimStart,j=!!String.prototype.trimEnd,I=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},G=!0
|
|||
|
try{G="a"===(null===(E=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===E?void 0:E[0])}catch(e){G=!1}var $,q=T?function(e,t,a){return e.startsWith(t,a)}:function(e,t,a){return e.slice(a,a+t.length)===t},Z=P?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
|
|||
|
for(var a,l="",i=e.length,o=0;i>o;){if((a=e[o++])>1114111)throw RangeError(a+" is not a valid code point")
|
|||
|
l+=a<65536?String.fromCharCode(a):String.fromCharCode(55296+((a-=65536)>>10),a%1024+56320)}return l},Y=N?Object.fromEntries:function(e){for(var t={},a=0,l=e;a<l.length;a++){var i=l[a],o=i[0],n=i[1]
|
|||
|
t[o]=n}return t},K=U?function(e,t){return e.codePointAt(t)}:function(e,t){var a=e.length
|
|||
|
if(!(t<0||t>=a)){var l,i=e.charCodeAt(t)
|
|||
|
return i<55296||i>56319||t+1===a||(l=e.charCodeAt(t+1))<56320||l>57343?i:l-56320+(i-55296<<10)+65536}},W=R?function(e){return e.trimStart()}:function(e){return e.replace(S,"")},X=j?function(e){return e.trimEnd()}:function(e){return e.replace(F,"")}
|
|||
|
function J(e,t){return new RegExp(e,t)}if(G){var Q=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu")
|
|||
|
$=function(e,t){var a
|
|||
|
return Q.lastIndex=t,null!==(a=Q.exec(e)[1])&&void 0!==a?a:""}}else $=function(e,t){for(var a=[];;){var l=K(e,t)
|
|||
|
if(void 0===l||ae(l)||le(l))break
|
|||
|
a.push(l),t+=l>=65536?2:1}return Z.apply(void 0,a)}
|
|||
|
var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once")
|
|||
|
return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,a){for(var o=[];!this.isEOF();){var n=this.char()
|
|||
|
if(123===n){if((r=this.parseArgument(e,a)).err)return r
|
|||
|
o.push(r.val)}else{if(125===n&&e>0)break
|
|||
|
if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(a)break
|
|||
|
return this.error(l.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&te(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r
|
|||
|
o.push(r.val)}else{var r
|
|||
|
if((r=this.parseLiteral(e,t)).err)return r
|
|||
|
o.push(r.val)}}else{var c=this.clonePosition()
|
|||
|
this.bump(),o.push({type:i.pound,location:O(c,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var a=this.clonePosition()
|
|||
|
this.bump()
|
|||
|
var o=this.parseTagName()
|
|||
|
if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:O(a,this.clonePosition())},err:null}
|
|||
|
if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0)
|
|||
|
if(n.err)return n
|
|||
|
var r=n.val,c=this.clonePosition()
|
|||
|
if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(l.INVALID_TAG,O(c,this.clonePosition()))
|
|||
|
var h=this.clonePosition()
|
|||
|
return o!==this.parseTagName()?this.error(l.UNMATCHED_CLOSING_TAG,O(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:o,children:r,location:O(a,this.clonePosition())},err:null}:this.error(l.INVALID_TAG,O(c,this.clonePosition())))}return this.error(l.UNCLOSED_TAG,O(a,this.clonePosition()))}return this.error(l.INVALID_TAG,O(a,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset()
|
|||
|
for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump()
|
|||
|
return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var a=this.clonePosition(),l="";;){var o=this.tryParseQuote(t)
|
|||
|
if(o)l+=o
|
|||
|
else{var n=this.tryParseUnquoted(e,t)
|
|||
|
if(n)l+=n
|
|||
|
else{var r=this.tryParseLeftAngleBracket()
|
|||
|
if(!r)break
|
|||
|
l+=r}}}var c=O(a,this.clonePosition())
|
|||
|
return{val:{type:i.literal,value:l,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<")
|
|||
|
var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null
|
|||
|
switch(this.peek()){case 39:return this.bump(),this.bump(),"'"
|
|||
|
case 123:case 60:case 62:case 125:break
|
|||
|
case 35:if("plural"===e||"selectordinal"===e)break
|
|||
|
return null
|
|||
|
default:return null}this.bump()
|
|||
|
var t=[this.char()]
|
|||
|
for(this.bump();!this.isEOF();){var a=this.char()
|
|||
|
if(39===a){if(39!==this.peek()){this.bump()
|
|||
|
break}t.push(39),this.bump()}else t.push(a)
|
|||
|
this.bump()}return Z.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null
|
|||
|
var a=this.char()
|
|||
|
return 60===a||123===a||35===a&&("plural"===t||"selectordinal"===t)||125===a&&e>0?null:(this.bump(),Z(a))},e.prototype.parseArgument=function(e,t){var a=this.clonePosition()
|
|||
|
if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,O(a,this.clonePosition()))
|
|||
|
if(125===this.char())return this.bump(),this.error(l.EMPTY_ARGUMENT,O(a,this.clonePosition()))
|
|||
|
var o=this.parseIdentifierIfPossible().value
|
|||
|
if(!o)return this.error(l.MALFORMED_ARGUMENT,O(a,this.clonePosition()))
|
|||
|
if(this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,O(a,this.clonePosition()))
|
|||
|
switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:O(a,this.clonePosition())},err:null}
|
|||
|
case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,O(a,this.clonePosition())):this.parseArgumentOptions(e,t,o,a)
|
|||
|
default:return this.error(l.MALFORMED_ARGUMENT,O(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),a=$(this.message,t),l=t+a.length
|
|||
|
return this.bumpTo(l),{value:a,location:O(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,a,r){var c,h=this.clonePosition(),s=this.parseIdentifierIfPossible().value,d=this.clonePosition()
|
|||
|
switch(s){case"":return this.error(l.EXPECT_ARGUMENT_TYPE,O(h,d))
|
|||
|
case"number":case"date":case"time":this.bumpSpace()
|
|||
|
var u=null
|
|||
|
if(this.bumpIf(",")){this.bumpSpace()
|
|||
|
var f=this.clonePosition()
|
|||
|
if((A=this.parseSimpleArgStyleIfPossible()).err)return A
|
|||
|
if(0===(y=X(A.val)).length)return this.error(l.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()))
|
|||
|
u={style:y,styleLocation:O(f,this.clonePosition())}}if((w=this.tryParseArgumentClose(r)).err)return w
|
|||
|
var v=O(r,this.clonePosition())
|
|||
|
if(u&&q(null==u?void 0:u.style,"::",0)){var p=W(u.style.slice(2))
|
|||
|
if("number"===s)return(A=this.parseNumberSkeletonFromString(p,u.styleLocation)).err?A:{val:{type:i.number,value:a,location:v,style:A.val},err:null}
|
|||
|
if(0===p.length)return this.error(l.EXPECT_DATE_TIME_SKELETON,v)
|
|||
|
var m=p
|
|||
|
this.locale&&(m=function(e,t){for(var a="",l=0;l<e.length;l++){var i=e.charAt(l)
|
|||
|
if("j"===i){for(var o=0;l+1<e.length&&e.charAt(l+1)===i;)o++,l++
|
|||
|
var n=1+(1&o),r=o<2?1:3+(o>>1),c=D(t)
|
|||
|
for("H"!=c&&"k"!=c||(r=0);r-- >0;)a+="a"
|
|||
|
for(;n-- >0;)a=c+a}else a+="J"===i?"H":i}return a}(p,this.locale))
|
|||
|
var y={type:o.dateTime,pattern:m,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?z(m):{}}
|
|||
|
return{val:{type:"date"===s?i.date:i.time,value:a,location:v,style:y},err:null}}return{val:{type:"number"===s?i.number:"date"===s?i.date:i.time,value:a,location:v,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null}
|
|||
|
case"plural":case"selectordinal":case"select":var g=this.clonePosition()
|
|||
|
if(this.bumpSpace(),!this.bumpIf(","))return this.error(l.EXPECT_SELECT_ARGUMENT_OPTIONS,O(g,(0,n.pi)({},g)))
|
|||
|
this.bumpSpace()
|
|||
|
var b=this.parseIdentifierIfPossible(),M=0
|
|||
|
if("select"!==s&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()))
|
|||
|
var A
|
|||
|
if(this.bumpSpace(),(A=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,l.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return A
|
|||
|
this.bumpSpace(),b=this.parseIdentifierIfPossible(),M=A.val}var w,x=this.tryParsePluralOrSelectOptions(e,s,t,b)
|
|||
|
if(x.err)return x
|
|||
|
if((w=this.tryParseArgumentClose(r)).err)return w
|
|||
|
var H=O(r,this.clonePosition())
|
|||
|
return"select"===s?{val:{type:i.select,value:a,options:Y(x.val),location:H},err:null}:{val:{type:i.plural,value:a,options:Y(x.val),offset:M,pluralType:"plural"===s?"cardinal":"ordinal",location:H},err:null}
|
|||
|
default:return this.error(l.INVALID_ARGUMENT_TYPE,O(h,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,O(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump()
|
|||
|
var a=this.clonePosition()
|
|||
|
if(!this.bumpUntil("'"))return this.error(l.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(a,this.clonePosition()))
|
|||
|
this.bump()
|
|||
|
break
|
|||
|
case 123:e+=1,this.bump()
|
|||
|
break
|
|||
|
case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null}
|
|||
|
e-=1
|
|||
|
break
|
|||
|
default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var a=[]
|
|||
|
try{a=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty")
|
|||
|
for(var t=[],a=0,l=e.split(M).filter((function(e){return e.length>0}));a<l.length;a++){var i=l[a].split("/")
|
|||
|
if(0===i.length)throw new Error("Invalid number skeleton")
|
|||
|
for(var o=i[0],n=i.slice(1),r=0,c=n;r<c.length;r++)if(0===c[r].length)throw new Error("Invalid number skeleton")
|
|||
|
t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(l.INVALID_NUMBER_SKELETON,t)}return{val:{type:o.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?C(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,a,i){for(var o,n=!1,r=[],c=new Set,h=i.value,s=i.location;;){if(0===h.length){var d=this.clonePosition()
|
|||
|
if("select"===t||!this.bumpIf("="))break
|
|||
|
var u=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_SELECTOR,l.INVALID_PLURAL_ARGUMENT_SELECTOR)
|
|||
|
if(u.err)return u
|
|||
|
s=O(d,this.clonePosition()),h=this.message.slice(d.offset,this.offset())}if(c.has(h))return this.error("select"===t?l.DUPLICATE_SELECT_ARGUMENT_SELECTOR:l.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,s)
|
|||
|
"other"===h&&(n=!0),this.bumpSpace()
|
|||
|
var f=this.clonePosition()
|
|||
|
if(!this.bumpIf("{"))return this.error("select"===t?l.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:l.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()))
|
|||
|
var v=this.parseMessage(e+1,t,a)
|
|||
|
if(v.err)return v
|
|||
|
var p=this.tryParseArgumentClose(f)
|
|||
|
if(p.err)return p
|
|||
|
r.push([h,{value:v.val,location:O(f,this.clonePosition())}]),c.add(h),this.bumpSpace(),h=(o=this.parseIdentifierIfPossible()).value,s=o.location}return 0===r.length?this.error("select"===t?l.EXPECT_SELECT_ARGUMENT_SELECTOR:l.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(l.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:r,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var a=1,l=this.clonePosition()
|
|||
|
this.bumpIf("+")||this.bumpIf("-")&&(a=-1)
|
|||
|
for(var i=!1,o=0;!this.isEOF();){var n=this.char()
|
|||
|
if(!(n>=48&&n<=57))break
|
|||
|
i=!0,o=10*o+(n-48),this.bump()}var r=O(l,this.clonePosition())
|
|||
|
return i?I(o*=a)?{val:o,err:null}:this.error(t,r):this.error(e,r)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset
|
|||
|
if(e>=this.message.length)throw Error("out of bound")
|
|||
|
var t=K(this.message,e)
|
|||
|
if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"))
|
|||
|
return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char()
|
|||
|
10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(q(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump()
|
|||
|
return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),a=this.message.indexOf(e,t)
|
|||
|
return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()))
|
|||
|
for(e=Math.min(e,this.message.length);;){var t=this.offset()
|
|||
|
if(t===e)break
|
|||
|
if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"))
|
|||
|
if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null
|
|||
|
var e=this.char(),t=this.offset(),a=this.message.charCodeAt(t+(e>=65536?2:1))
|
|||
|
return null!=a?a:null},e}()
|
|||
|
function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ae(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,u(e)||f(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value)
|
|||
|
else h(e)&&m(e.style)||(s(e)||d(e))&&y(e.style)?delete e.style.location:p(e)&&ie(e.children)}))}function oe(e,t){void 0===t&&(t={}),t=(0,n.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)
|
|||
|
var a=new ee(e,t).parse()
|
|||
|
if(a.err){var i=SyntaxError(l[a.err.kind])
|
|||
|
throw i.location=a.err.location,i.originalMessage=a.err.message,i}return(null==t?void 0:t.captureLocation)||ie(a.val),a.val}function ne(e,t){var a=t&&t.cache?t.cache:ve,l=t&&t.serializer?t.serializer:de
|
|||
|
return(t&&t.strategy?t.strategy:se)(e,{cache:a,serializer:l})}function re(e,t,a,l){var i,o=null==(i=l)||"number"==typeof i||"boolean"==typeof i?l:a(l),n=t.get(o)
|
|||
|
return void 0===n&&(n=e.call(this,l),t.set(o,n)),n}function ce(e,t,a){var l=Array.prototype.slice.call(arguments,3),i=a(l),o=t.get(i)
|
|||
|
return void 0===o&&(o=e.apply(this,l),t.set(i,o)),o}function he(e,t,a,l,i){return a.bind(t,e,l,i)}function se(e,t){return he(e,this,1===e.length?re:ce,t.cache.create(),t.serializer)}var de=function(){return JSON.stringify(arguments)}
|
|||
|
function ue(){this.cache=Object.create(null)}ue.prototype.get=function(e){return this.cache[e]},ue.prototype.set=function(e,t){this.cache[e]=t}
|
|||
|
var fe,ve={create:function(){return new ue}},pe={variadic:function(e,t){return he(e,this,ce,t.cache.create(),t.serializer)},monadic:function(e,t){return he(e,this,re,t.cache.create(),t.serializer)}}
|
|||
|
!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(fe||(fe={}))
|
|||
|
var me,ye=function(e){function t(t,a,l){var i=e.call(this,t)||this
|
|||
|
return i.code=a,i.originalMessage=l,i}return(0,n.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ge=function(e){function t(t,a,l,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(l).join('", "'),'"'),fe.INVALID_VALUE,i)||this}return(0,n.ZT)(t,e),t}(ye),be=function(e){function t(t,a,l){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),fe.INVALID_VALUE,l)||this}return(0,n.ZT)(t,e),t}(ye),ze=function(e){function t(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),fe.MISSING_VALUE,a)||this}return(0,n.ZT)(t,e),t}(ye)
|
|||
|
function Me(e){return"function"==typeof e}function Ae(e,t,a,l,i,o,n){if(1===e.length&&r(e[0]))return[{type:me.literal,value:e[0].value}]
|
|||
|
for(var g=[],b=0,z=e;b<z.length;b++){var M=z[b]
|
|||
|
if(r(M))g.push({type:me.literal,value:M.value})
|
|||
|
else if(v(M))"number"==typeof o&&g.push({type:me.literal,value:a.getNumberFormat(t).format(o)})
|
|||
|
else{var A=M.value
|
|||
|
if(!i||!(A in i))throw new ze(A,n)
|
|||
|
var w=i[A]
|
|||
|
if(c(M))w&&"string"!=typeof w&&"number"!=typeof w||(w="string"==typeof w||"number"==typeof w?String(w):""),g.push({type:"string"==typeof w?me.literal:me.object,value:w})
|
|||
|
else if(s(M)){var x="string"==typeof M.style?l.date[M.style]:y(M.style)?M.style.parsedOptions:void 0
|
|||
|
g.push({type:me.literal,value:a.getDateTimeFormat(t,x).format(w)})}else if(d(M))x="string"==typeof M.style?l.time[M.style]:y(M.style)?M.style.parsedOptions:l.time.medium,g.push({type:me.literal,value:a.getDateTimeFormat(t,x).format(w)})
|
|||
|
else if(h(M))(x="string"==typeof M.style?l.number[M.style]:m(M.style)?M.style.parsedOptions:void 0)&&x.scale&&(w*=x.scale||1),g.push({type:me.literal,value:a.getNumberFormat(t,x).format(w)})
|
|||
|
else{if(p(M)){var H=M.children,V=M.value,_=i[V]
|
|||
|
if(!Me(_))throw new be(V,"function",n)
|
|||
|
var B=_(Ae(H,t,a,l,i,o).map((function(e){return e.value})))
|
|||
|
Array.isArray(B)||(B=[B]),g.push.apply(g,B.map((function(e){return{type:"string"==typeof e?me.literal:me.object,value:e}})))}if(u(M)){if(!(L=M.options[w]||M.options.other))throw new ge(M.value,w,Object.keys(M.options),n)
|
|||
|
g.push.apply(g,Ae(L.value,t,a,l,i))}else if(f(M)){var L
|
|||
|
if(!(L=M.options["=".concat(w)])){if(!Intl.PluralRules)throw new ye('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fe.MISSING_INTL_API,n)
|
|||
|
var C=a.getPluralRules(t,{type:M.pluralType}).select(w-(M.offset||0))
|
|||
|
L=M.options[C]||M.options.other}if(!L)throw new ge(M.value,w,Object.keys(M.options),n)
|
|||
|
g.push.apply(g,Ae(L.value,t,a,l,i,w-(M.offset||0)))}}}}return(E=g).length<2?E:E.reduce((function(e,t){var a=e[e.length-1]
|
|||
|
return a&&a.type===me.literal&&t.type===me.literal?a.value+=t.value:e.push(t),e}),[])
|
|||
|
var E}function we(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(me||(me={}))
|
|||
|
var xe=function(){function e(t,a,l,i){var o,r,c,h=this
|
|||
|
if(void 0===a&&(a=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=h.formatToParts(e)
|
|||
|
if(1===t.length)return t[0].value
|
|||
|
var a=t.reduce((function(e,t){return e.length&&t.type===me.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[])
|
|||
|
return a.length<=1?a[0]||"":a},this.formatToParts=function(e){return Ae(h.ast,h.locales,h.formatters,h.formats,e,void 0,h.message)},this.resolvedOptions=function(){return{locale:h.resolvedLocale.toString()}},this.getAst=function(){return h.ast},this.locales=a,this.resolvedLocale=e.resolveLocale(a),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`")
|
|||
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t
|
|||
|
if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.")
|
|||
|
this.formats=(r=e.formats,(c=l)?Object.keys(r).reduce((function(e,t){var a,l
|
|||
|
return e[t]=(a=r[t],(l=c[t])?(0,n.pi)((0,n.pi)((0,n.pi)({},a||{}),l||{}),Object.keys(a).reduce((function(e,t){return e[t]=(0,n.pi)((0,n.pi)({},a[t]),l[t]||{}),e}),{})):a),e}),(0,n.pi)({},r)):r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ne((function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a]
|
|||
|
return new((e=Intl.NumberFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:we(o.number),strategy:pe.variadic}),getDateTimeFormat:ne((function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a]
|
|||
|
return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:we(o.dateTime),strategy:pe.variadic}),getPluralRules:ne((function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a]
|
|||
|
return new((e=Intl.PluralRules).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:we(o.pluralRules),strategy:pe.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e)
|
|||
|
return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=oe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()
|
|||
|
const He=xe},5709:(e,t,a)=>{var l=a(9958),i=a(2451)
|
|||
|
function o(e){this.Container=e||Array,this.items=new Map,this.clear(),Object.defineProperty(this.items,"constructor",{value:o,enumerable:!1})}o.prototype.clear=function(){this.size=0,this.dimension=0,this.items.clear()},o.prototype.set=function(e,t){var a,l=this.items.get(e)
|
|||
|
return l||(this.dimension++,l=new this.Container,this.items.set(e,l)),this.Container===Set?(a=l.size,l.add(t),a<l.size&&this.size++):(l.push(t),this.size++),this},o.prototype.delete=function(e){var t=this.items.get(e)
|
|||
|
return!!t&&(this.size-=this.Container===Set?t.size:t.length,this.dimension--,this.items.delete(e),!0)},o.prototype.remove=function(e,t){var a,l,i=this.items.get(e)
|
|||
|
return!!i&&(this.Container===Set?((a=i.delete(t))&&this.size--,0===i.size&&(this.items.delete(e),this.dimension--),a):-1!==(l=i.indexOf(t))&&(this.size--,1===i.length?(this.items.delete(e),this.dimension--,!0):(i.splice(l,1),!0)))},o.prototype.has=function(e){return this.items.has(e)},o.prototype.get=function(e){return this.items.get(e)},o.prototype.multiplicity=function(e){var t=this.items.get(e)
|
|||
|
return void 0===t?0:this.Container===Set?t.size:t.length},o.prototype.count=o.prototype.multiplicity,o.prototype.forEach=function(e,t){var a
|
|||
|
function l(l){e.call(t,l,a)}t=arguments.length>1?t:this,this.items.forEach((function(e,t){a=t,e.forEach(l)}))},o.prototype.forEachAssociation=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},o.prototype.keys=function(){return this.items.keys()},o.prototype.values=function(){var e,t,a,i,o=this.items.values(),n=!1
|
|||
|
return this.Container===Set?new l((function a(){if(!n){if((t=o.next()).done)return{done:!0}
|
|||
|
n=!0,e=t.value.values()}return(t=e.next()).done?(n=!1,a()):{done:!1,value:t.value}})):new l((function l(){if(!n){if((t=o.next()).done)return{done:!0}
|
|||
|
n=!0,e=t.value,a=0,i=e.length}return a>=i?(n=!1,l()):{done:!1,value:e[a++]}}))},o.prototype.entries=function(){var e,t,a,i,o,n=this.items.entries(),r=!1
|
|||
|
return this.Container===Set?new l((function l(){if(!r){if((t=n.next()).done)return{done:!0}
|
|||
|
r=!0,a=t.value[0],e=t.value[1].values()}return(t=e.next()).done?(r=!1,l()):{done:!1,value:[a,t.value]}})):new l((function l(){if(!r){if((t=n.next()).done)return{done:!0}
|
|||
|
r=!0,a=t.value[0],e=t.value[1],i=0,o=e.length}return i>=o?(r=!1,l()):{done:!1,value:[a,e[i++]]}}))},o.prototype.containers=function(){return this.items.values()},o.prototype.associations=function(){return this.items.entries()},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.entries),o.prototype.inspect=function(){return this.items},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.prototype.toJSON=function(){return this.items},o.from=function(e,t){var a=new o(t)
|
|||
|
return i(e,(function(e,t){a.set(t,e)})),a},e.exports=o},2519:(e,t)=>{t.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.")
|
|||
|
var e,t,a=new Set,l=1/0,i=null,o=arguments.length
|
|||
|
for(t=0;t<o;t++){if(0===(e=arguments[t]).size)return a
|
|||
|
e.size<l&&(l=e.size,i=e)}for(var n,r,c,h,s=i.values();!(n=s.next()).done;){for(r=n.value,c=!0,t=0;t<o;t++)if((h=arguments[t])!==i&&!h.has(r)){c=!1
|
|||
|
break}c&&a.add(r)}return a},t.union=function(){if(arguments.length<2)throw new Error("mnemonist/Set.union: needs at least two arguments.")
|
|||
|
var e,t,a,l=new Set,i=arguments.length
|
|||
|
for(e=0;e<i;e++)for(t=arguments[e].values();!(a=t.next()).done;)l.add(a.value)
|
|||
|
return l},t.difference=function(e,t){if(!e.size)return new Set
|
|||
|
if(!t.size)return new Set(e)
|
|||
|
for(var a,l=new Set,i=e.values();!(a=i.next()).done;)t.has(a.value)||l.add(a.value)
|
|||
|
return l},t.symmetricDifference=function(e,t){for(var a,l=new Set,i=e.values();!(a=i.next()).done;)t.has(a.value)||l.add(a.value)
|
|||
|
for(i=t.values();!(a=i.next()).done;)e.has(a.value)||l.add(a.value)
|
|||
|
return l},t.isSubset=function(e,t){var a,l=e.values()
|
|||
|
if(e===t)return!0
|
|||
|
if(e.size>t.size)return!1
|
|||
|
for(;!(a=l.next()).done;)if(!t.has(a.value))return!1
|
|||
|
return!0},t.isSuperset=function(e,a){return t.isSubset(a,e)},t.add=function(e,t){for(var a,l=t.values();!(a=l.next()).done;)e.add(a.value)},t.subtract=function(e,t){for(var a,l=t.values();!(a=l.next()).done;)e.delete(a.value)},t.intersect=function(e,t){for(var a,l=e.values();!(a=l.next()).done;)t.has(a.value)||e.delete(a.value)},t.disjunct=function(e,t){for(var a,l=e.values(),i=[];!(a=l.next()).done;)t.has(a.value)&&i.push(a.value)
|
|||
|
for(l=t.values();!(a=l.next()).done;)e.has(a.value)||e.add(a.value)
|
|||
|
for(var o=0,n=i.length;o<n;o++)e.delete(i[o])},t.intersectionSize=function(e,t){var a
|
|||
|
if(e.size>t.size&&(a=e,e=t,t=a),0===e.size)return 0
|
|||
|
if(e===t)return e.size
|
|||
|
for(var l,i=e.values(),o=0;!(l=i.next()).done;)t.has(l.value)&&o++
|
|||
|
return o},t.unionSize=function(e,a){var l=t.intersectionSize(e,a)
|
|||
|
return e.size+a.size-l},t.jaccard=function(e,a){var l=t.intersectionSize(e,a)
|
|||
|
return 0===l?0:l/(e.size+a.size-l)},t.overlap=function(e,a){var l=t.intersectionSize(e,a)
|
|||
|
return 0===l?0:l/Math.min(e.size,a.size)}},4977:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,a,l){t(e!=a,l)},t.notOk=function(e,a){t(!e,a)},t.equal=function(e,a,l){t(e==a,l)},t.ok=t,e.exports=t},4208:e=>{e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject")
|
|||
|
for(var t=["on","fire","off"],a=0;a<t.length;++a)if(e.hasOwnProperty(t[a]))throw new Error("Subject cannot be eventified, since it already has property '"+t[a]+"'")}(e)
|
|||
|
var t=function(e){var t=Object.create(null)
|
|||
|
return{on:function(a,l,i){if("function"!=typeof l)throw new Error("callback is expected to be a function")
|
|||
|
var o=t[a]
|
|||
|
return o||(o=t[a]=[]),o.push({callback:l,ctx:i}),e},off:function(a,l){if(void 0===a)return t=Object.create(null),e
|
|||
|
if(t[a])if("function"!=typeof l)delete t[a]
|
|||
|
else for(var i=t[a],o=0;o<i.length;++o)i[o].callback===l&&i.splice(o,1)
|
|||
|
return e},fire:function(a){var l,i=t[a]
|
|||
|
if(!i)return e
|
|||
|
arguments.length>1&&(l=Array.prototype.splice.call(arguments,1))
|
|||
|
for(var o=0;o<i.length;++o){var n=i[o]
|
|||
|
n.callback.apply(n.ctx,l)}return e}}}(e)
|
|||
|
return e.on=t.on,e.off=t.off,e.fire=t.fire,e}},6001:(e,t,a)=>{e.exports=function(e){if("uniqueLinkId"in(e=e||{})&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n","\n","Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."),e.multigraph=e.uniqueLinkId),void 0===e.multigraph&&(e.multigraph=!1),"function"!=typeof Map)throw new Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph")
|
|||
|
var t,a=new Map,h=[],s={},d=0,u=e.multigraph?function(e,t,a){var l=c(e,t),i=s.hasOwnProperty(l)
|
|||
|
if(i||_(e,t)){i||(s[l]=0)
|
|||
|
var o="@"+ ++s[l]
|
|||
|
l=c(e+o,t+o)}return new r(e,t,a,l)}:function(e,t,a){return new r(e,t,a,c(e,t))},f=[],v=B,p=B,m=B,y=B,g={addNode:M,addLink:function(e,t,a){m()
|
|||
|
var l=A(e)||M(e),i=A(t)||M(t),o=u(e,t,a)
|
|||
|
return h.push(o),n(l,o),e!==t&&n(i,o),v(o,"add"),y(),o},removeLink:V,removeNode:w,getNode:A,getNodeCount:x,getLinkCount:H,getLinksCount:H,getNodesCount:x,getLinks:function(e){var t=A(e)
|
|||
|
return t?t.links:null},forEachNode:E,forEachLinkedNode:function(e,t,l){var i=A(e)
|
|||
|
if(i&&i.links&&"function"==typeof t)return l?function(e,t,l){for(var i=0;i<e.length;++i){var o=e[i]
|
|||
|
if(o.fromId===t&&l(a.get(o.toId),o))return!0}}(i.links,e,t):function(e,t,l){for(var i=0;i<e.length;++i){var o=e[i],n=o.fromId===t?o.toId:o.fromId
|
|||
|
if(l(a.get(n),o))return!0}}(i.links,e,t)},forEachLink:function(e){var t,a
|
|||
|
if("function"==typeof e)for(t=0,a=h.length;t<a;++t)e(h[t])},beginUpdate:m,endUpdate:y,clear:function(){m(),E((function(e){w(e.id)})),y()},hasLink:_,hasNode:A,getLink:_}
|
|||
|
return l(g),t=g.on,g.on=function(){return g.beginUpdate=m=L,g.endUpdate=y=C,v=b,p=z,g.on=t,t.apply(g,arguments)},g
|
|||
|
function b(e,t){f.push({link:e,changeType:t})}function z(e,t){f.push({node:e,changeType:t})}function M(e,t){if(void 0===e)throw new Error("Invalid node identifier")
|
|||
|
m()
|
|||
|
var l=A(e)
|
|||
|
return l?(l.data=t,p(l,"update")):(l=new o(e,t),p(l,"add")),a.set(e,l),y(),l}function A(e){return a.get(e)}function w(e){var t=A(e)
|
|||
|
if(!t)return!1
|
|||
|
m()
|
|||
|
var l=t.links
|
|||
|
if(l){t.links=null
|
|||
|
for(var i=0;i<l.length;++i)V(l[i])}return a.delete(e),p(t,"remove"),y(),!0}function x(){return a.size}function H(){return h.length}function V(e){if(!e)return!1
|
|||
|
var t=i(e,h)
|
|||
|
if(t<0)return!1
|
|||
|
m(),h.splice(t,1)
|
|||
|
var a=A(e.fromId),l=A(e.toId)
|
|||
|
return a&&(t=i(e,a.links))>=0&&a.links.splice(t,1),l&&(t=i(e,l.links))>=0&&l.links.splice(t,1),v(e,"remove"),y(),!0}function _(e,t){var a,l=A(e)
|
|||
|
if(!l||!l.links)return null
|
|||
|
for(a=0;a<l.links.length;++a){var i=l.links[a]
|
|||
|
if(i.fromId===e&&i.toId===t)return i}return null}function B(){}function L(){d+=1}function C(){0==(d-=1)&&f.length>0&&(g.fire("changed",f),f.length=0)}function E(e){if("function"!=typeof e)throw new Error("Function is expected to iterate over graph nodes. You passed "+e)
|
|||
|
for(var t=a.values(),l=t.next();!l.done;){if(e(l.value))return!0
|
|||
|
l=t.next()}}}
|
|||
|
var l=a(4208)
|
|||
|
function i(e,t){if(!t)return-1
|
|||
|
if(t.indexOf)return t.indexOf(e)
|
|||
|
var a,l=t.length
|
|||
|
for(a=0;a<l;a+=1)if(t[a]===e)return a
|
|||
|
return-1}function o(e,t){this.id=e,this.links=null,this.data=t}function n(e,t){e.links?e.links.push(t):e.links=[t]}function r(e,t,a,l){this.fromId=e,this.toId=t,this.data=a,this.id=l}function c(e,t){return e.toString()+"👉 "+t.toString()}},2451:(e,t,a)=>{var l=a(1317),i=l.ARRAY_BUFFER_SUPPORT,o=l.SYMBOL_SUPPORT
|
|||
|
e.exports=function(e,t){var a,l,n,r,c
|
|||
|
if(!e)throw new Error("obliterator/forEach: invalid iterable.")
|
|||
|
if("function"!=typeof t)throw new Error("obliterator/forEach: expecting a callback.")
|
|||
|
if(Array.isArray(e)||i&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(n=0,r=e.length;n<r;n++)t(e[n],n)
|
|||
|
else if("function"!=typeof e.forEach)if(o&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(l in e)e.hasOwnProperty(l)&&t(e[l],l)
|
|||
|
else for(a=e,n=0;!0!==(c=a.next()).done;)t(c.value,n),n++
|
|||
|
else e.forEach(t)}},9958:e=>{function t(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!")
|
|||
|
this.next=e}"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this}),t.of=function(){var e=arguments,a=e.length,l=0
|
|||
|
return new t((function(){return l>=a?{done:!0}:{done:!1,value:e[l++]}}))},t.empty=function(){return new t((function(){return{done:!0}}))},t.fromSequence=function(e){var a=0,l=e.length
|
|||
|
return new t((function(){return a>=l?{done:!0}:{done:!1,value:e[a++]}}))},t.is=function(e){return e instanceof t||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=t},1317:(e,t)=>{t.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,t.SYMBOL_SUPPORT="undefined"!=typeof Symbol},89:e=>{"use strict"
|
|||
|
var t=/(\x2D?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D
|
|||
|
function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms"
|
|||
|
var i=null
|
|||
|
return e=(e+"").replace(/(\d)[,_](\d)/g,"$1$2"),e.replace(t,(function(e,t,a){(a=l(a))&&(i=(i||0)+parseFloat(t,10)*a)})),i&&i/(l(a)||1)}function l(e){return a[e]||a[e.toLowerCase().replace(/s$/,"")]}e.exports=a,e.exports.default=a,a.nanosecond=a.ns=1e-6,a["µs"]=a["μs"]=a.us=a.microsecond=.001,a.millisecond=a.ms=a[""]=1,a.second=a.sec=a.s=1e3*a.ms,a.minute=a.min=a.m=60*a.s,a.hour=a.hr=a.h=60*a.m,a.day=a.d=24*a.h,a.week=a.wk=a.w=7*a.d,a.month=a.b=30.4375*a.d,a.year=a.yr=a.y=365.25*a.d},3507:e=>{"use strict"
|
|||
|
e.exports=e=>{if("number"!=typeof e)throw new TypeError("Expected a number")
|
|||
|
const t=e>0?Math.floor:Math.ceil
|
|||
|
return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}},9837:(e,t,a)=>{"use strict"
|
|||
|
const l=a(3507)
|
|||
|
e.exports=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
|||
|
if(!Number.isFinite(e))throw new TypeError("Expected a finite number")
|
|||
|
t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0)
|
|||
|
const a=[],i=(e,l,i,o)=>{if(!(0!==a.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===i))return
|
|||
|
let n,r
|
|||
|
if(o=(o||e||"0").toString(),t.colonNotation){n=a.length>0?":":"",r=""
|
|||
|
const e=o.includes(".")?o.split(".")[0].length:o.length,t=a.length>0?2:1
|
|||
|
o="0".repeat(Math.max(0,t-e))+o}else n="",r=t.verbose?" "+(c=l,1===e?c:`${c}s`):i
|
|||
|
var c
|
|||
|
a.push(n+o+r)},o=l(e)
|
|||
|
if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","µs"),i(o.nanoseconds,"nanosecond","ns")
|
|||
|
else{const e=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,l=e>=1?Math.round(e):Math.ceil(e),n=a?e.toFixed(a):l
|
|||
|
i(Number.parseFloat(n,10),"millisecond","ms",n)}else{const a=((e,t)=>{const a=Math.floor(e*10**t+1e-7)
|
|||
|
return(Math.round(a)/10**t).toFixed(t)})(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),l=t.keepDecimalsOnWholeSeconds?a:a.replace(/\.0+$/,"")
|
|||
|
i(Number.parseFloat(l,10),"second","s",l)}if(0===a.length)return"0"+(t.verbose?" milliseconds":"ms")
|
|||
|
if(t.compact)return a[0]
|
|||
|
if("number"==typeof t.unitCount){const e=t.colonNotation?"":" "
|
|||
|
return a.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?a.join(""):a.join(" ")}},9640:(e,t,a)=>{"use strict"
|
|||
|
function l(e){if(null==e)return window
|
|||
|
if("[object Window]"!==e.toString()){var t=e.ownerDocument
|
|||
|
return t&&t.defaultView||window}return e}function i(e){return e instanceof l(e).Element||e instanceof Element}function o(e){return e instanceof l(e).HTMLElement||e instanceof HTMLElement}function n(e){return"undefined"!=typeof ShadowRoot&&(e instanceof l(e).ShadowRoot||e instanceof ShadowRoot)}a.r(t),a.d(t,{animateFill:()=>dt,createSingleton:()=>ct,default:()=>bt,delegate:()=>st,followCursor:()=>pt,hideAll:()=>nt,inlinePositioning:()=>mt,roundArrow:()=>fe,sticky:()=>yt})
|
|||
|
var r=Math.max,c=Math.min,h=Math.round
|
|||
|
function s(){var e=navigator.userAgentData
|
|||
|
return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(s())}function u(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1)
|
|||
|
var n=e.getBoundingClientRect(),r=1,c=1
|
|||
|
t&&o(e)&&(r=e.offsetWidth>0&&h(n.width)/e.offsetWidth||1,c=e.offsetHeight>0&&h(n.height)/e.offsetHeight||1)
|
|||
|
var s=(i(e)?l(e):window).visualViewport,u=!d()&&a,f=(n.left+(u&&s?s.offsetLeft:0))/r,v=(n.top+(u&&s?s.offsetTop:0))/c,p=n.width/r,m=n.height/c
|
|||
|
return{width:p,height:m,top:v,right:f+p,bottom:v+m,left:f,x:f,y:v}}function f(e){var t=l(e)
|
|||
|
return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return u(p(e)).left+f(e).scrollLeft}function y(e){return l(e).getComputedStyle(e)}function g(e){var t=y(e),a=t.overflow,l=t.overflowX,i=t.overflowY
|
|||
|
return/auto|scroll|overlay|hidden/.test(a+i+l)}function b(e,t,a){void 0===a&&(a=!1)
|
|||
|
var i,n,r=o(t),c=o(t)&&function(e){var t=e.getBoundingClientRect(),a=h(t.width)/e.offsetWidth||1,l=h(t.height)/e.offsetHeight||1
|
|||
|
return 1!==a||1!==l}(t),s=p(t),d=u(e,c,a),y={scrollLeft:0,scrollTop:0},b={x:0,y:0}
|
|||
|
return(r||!r&&!a)&&(("body"!==v(t)||g(s))&&(y=(i=t)!==l(i)&&o(i)?{scrollLeft:(n=i).scrollLeft,scrollTop:n.scrollTop}:f(i)),o(t)?((b=u(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):s&&(b.x=m(s))),{x:d.left+y.scrollLeft-b.x,y:d.top+y.scrollTop-b.y,width:d.width,height:d.height}}function z(e){var t=u(e),a=e.offsetWidth,l=e.offsetHeight
|
|||
|
return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function M(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(n(e)?e.host:null)||p(e)}function A(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:o(e)&&g(e)?e:A(M(e))}function w(e,t){var a
|
|||
|
void 0===t&&(t=[])
|
|||
|
var i=A(e),o=i===(null==(a=e.ownerDocument)?void 0:a.body),n=l(i),r=o?[n].concat(n.visualViewport||[],g(i)?i:[]):i,c=t.concat(r)
|
|||
|
return o?c:c.concat(w(M(r)))}function x(e){return["table","td","th"].indexOf(v(e))>=0}function H(e){return o(e)&&"fixed"!==y(e).position?e.offsetParent:null}function V(e){for(var t=l(e),a=H(e);a&&x(a)&&"static"===y(a).position;)a=H(a)
|
|||
|
return a&&("html"===v(a)||"body"===v(a)&&"static"===y(a).position)?t:a||function(e){var t=/firefox/i.test(s())
|
|||
|
if(/Trident/i.test(s())&&o(e)&&"fixed"===y(e).position)return null
|
|||
|
var a=M(e)
|
|||
|
for(n(a)&&(a=a.host);o(a)&&["html","body"].indexOf(v(a))<0;){var l=y(a)
|
|||
|
if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a
|
|||
|
a=a.parentNode}return null}(e)||t}var _="top",B="bottom",L="right",C="left",E="auto",k=[_,B,L,C],D="start",S="end",F="clippingParents",O="viewport",T="popper",P="reference",N=k.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+S])}),[]),U=[].concat(k,[E]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+S])}),[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]
|
|||
|
function j(e){var t=new Map,a=new Set,l=[]
|
|||
|
function i(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e)
|
|||
|
l&&i(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||i(e)})),l}var I={placement:"bottom",modifiers:[],strategy:"absolute"}
|
|||
|
function G(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a]
|
|||
|
return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var $={passive:!0}
|
|||
|
function q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,a=e.reference,l=e.element,i=e.placement,o=i?q(i):null,n=i?Z(i):null,r=a.x+a.width/2-l.width/2,c=a.y+a.height/2-l.height/2
|
|||
|
switch(o){case _:t={x:r,y:a.y-l.height}
|
|||
|
break
|
|||
|
case B:t={x:r,y:a.y+a.height}
|
|||
|
break
|
|||
|
case L:t={x:a.x+a.width,y:c}
|
|||
|
break
|
|||
|
case C:t={x:a.x-l.width,y:c}
|
|||
|
break
|
|||
|
default:t={x:a.x,y:a.y}}var h=o?Y(o):null
|
|||
|
if(null!=h){var s="y"===h?"height":"width"
|
|||
|
switch(n){case D:t[h]=t[h]-(a[s]/2-l[s]/2)
|
|||
|
break
|
|||
|
case S:t[h]=t[h]+(a[s]/2-l[s]/2)}}return t}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"}
|
|||
|
function X(e){var t,a=e.popper,i=e.popperRect,o=e.placement,n=e.variation,r=e.offsets,c=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,v=r.x,m=void 0===v?0:v,g=r.y,b=void 0===g?0:g,z="function"==typeof u?u({x:m,y:b}):{x:m,y:b}
|
|||
|
m=z.x,b=z.y
|
|||
|
var M=r.hasOwnProperty("x"),A=r.hasOwnProperty("y"),w=C,x=_,H=window
|
|||
|
if(d){var E=V(a),k="clientHeight",D="clientWidth"
|
|||
|
E===l(a)&&"static"!==y(E=p(a)).position&&"absolute"===c&&(k="scrollHeight",D="scrollWidth"),(o===_||(o===C||o===L)&&n===S)&&(x=B,b-=(f&&E===H&&H.visualViewport?H.visualViewport.height:E[k])-i.height,b*=s?1:-1),o!==C&&(o!==_&&o!==B||n!==S)||(w=L,m-=(f&&E===H&&H.visualViewport?H.visualViewport.width:E[D])-i.width,m*=s?1:-1)}var F,O=Object.assign({position:c},d&&W),T=!0===u?function(e){var t=e.x,a=e.y,l=window.devicePixelRatio||1
|
|||
|
return{x:h(t*l)/l||0,y:h(a*l)/l||0}}({x:m,y:b}):{x:m,y:b}
|
|||
|
return m=T.x,b=T.y,s?Object.assign({},O,((F={})[x]=A?"0":"",F[w]=M?"0":"",F.transform=(H.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",F)):Object.assign({},O,((t={})[x]=A?b+"px":"",t[w]=M?m+"px":"",t.transform="",t))}const J={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state
|
|||
|
Object.keys(t.elements).forEach((function(e){var a=t.styles[e]||{},l=t.attributes[e]||{},i=t.elements[e]
|
|||
|
o(i)&&v(i)&&(Object.assign(i.style,a),Object.keys(l).forEach((function(e){var t=l[e]
|
|||
|
!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
|
|||
|
return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach((function(e){var l=t.elements[e],i=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:a[e]).reduce((function(e,t){return e[t]="",e}),{})
|
|||
|
o(l)&&v(l)&&(Object.assign(l.style,n),Object.keys(i).forEach((function(e){l.removeAttribute(e)})))}))}},requires:["computeStyles"]}
|
|||
|
var Q={left:"right",right:"left",bottom:"top",top:"bottom"}
|
|||
|
function ee(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var te={start:"end",end:"start"}
|
|||
|
function ae(e){return e.replace(/start|end/g,(function(e){return te[e]}))}function le(e,t){var a=t.getRootNode&&t.getRootNode()
|
|||
|
if(e.contains(t))return!0
|
|||
|
if(a&&n(a)){var l=t
|
|||
|
do{if(l&&e.isSameNode(l))return!0
|
|||
|
l=l.parentNode||l.host}while(l)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t,a){return t===O?ie(function(e,t){var a=l(e),i=p(e),o=a.visualViewport,n=i.clientWidth,r=i.clientHeight,c=0,h=0
|
|||
|
if(o){n=o.width,r=o.height
|
|||
|
var s=d();(s||!s&&"fixed"===t)&&(c=o.offsetLeft,h=o.offsetTop)}return{width:n,height:r,x:c+m(e),y:h}}(e,a)):i(t)?function(e,t){var a=u(e,!1,"fixed"===t)
|
|||
|
return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):ie(function(e){var t,a=p(e),l=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=r(a.scrollWidth,a.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),n=r(a.scrollHeight,a.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-l.scrollLeft+m(e),h=-l.scrollTop
|
|||
|
return"rtl"===y(i||a).direction&&(c+=r(a.clientWidth,i?i.clientWidth:0)-o),{width:o,height:n,x:c,y:h}}(p(e)))}function ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function re(e,t){return t.reduce((function(t,a){return t[a]=e,t}),{})}function ce(e,t){void 0===t&&(t={})
|
|||
|
var a=t,l=a.placement,n=void 0===l?e.placement:l,h=a.strategy,s=void 0===h?e.strategy:h,d=a.boundary,f=void 0===d?F:d,m=a.rootBoundary,g=void 0===m?O:m,b=a.elementContext,z=void 0===b?T:b,A=a.altBoundary,x=void 0!==A&&A,H=a.padding,C=void 0===H?0:H,E=ne("number"!=typeof C?C:re(C,k)),D=z===T?P:T,S=e.rects.popper,N=e.elements[x?D:z],U=function(e,t,a,l){var n="clippingParents"===t?function(e){var t=w(M(e)),a=["absolute","fixed"].indexOf(y(e).position)>=0&&o(e)?V(e):e
|
|||
|
return i(a)?t.filter((function(e){return i(e)&&le(e,a)&&"body"!==v(e)})):[]}(e):[].concat(t),h=[].concat(n,[a]),s=h[0],d=h.reduce((function(t,a){var i=oe(e,a,l)
|
|||
|
return t.top=r(i.top,t.top),t.right=c(i.right,t.right),t.bottom=c(i.bottom,t.bottom),t.left=r(i.left,t.left),t}),oe(e,s,l))
|
|||
|
return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}(i(N)?N:N.contextElement||p(e.elements.popper),f,g,s),R=u(e.elements.reference),j=K({reference:R,element:S,strategy:"absolute",placement:n}),I=ie(Object.assign({},S,j)),G=z===T?I:R,$={top:U.top-G.top+E.top,bottom:G.bottom-U.bottom+E.bottom,left:U.left-G.left+E.left,right:G.right-U.right+E.right},q=e.modifiersData.offset
|
|||
|
if(z===T&&q){var Z=q[n]
|
|||
|
Object.keys($).forEach((function(e){var t=[L,B].indexOf(e)>=0?1:-1,a=[_,B].indexOf(e)>=0?"y":"x"
|
|||
|
$[e]+=Z[a]*t}))}return $}function he(e,t,a){return r(e,c(t,a))}function se(e,t,a){return void 0===a&&(a={x:0,y:0}),{top:e.top-t.height-a.y,right:e.right-t.width+a.x,bottom:e.bottom-t.height+a.y,left:e.left-t.width-a.x}}function de(e){return[_,L,B,C].some((function(t){return e[t]>=0}))}var ue=function(e){void 0===e&&(e={})
|
|||
|
var t=e,a=t.defaultModifiers,l=void 0===a?[]:a,o=t.defaultOptions,n=void 0===o?I:o
|
|||
|
return function(e,t,a){void 0===a&&(a=n)
|
|||
|
var o,r,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},I,n),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},h=[],s=!1,d={state:c,setOptions:function(a){var o="function"==typeof a?a(c.options):a
|
|||
|
u(),c.options=Object.assign({},n,c.options,o),c.scrollParents={reference:i(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)}
|
|||
|
var r,s,f=function(e){var t=j(e)
|
|||
|
return R.reduce((function(e,a){return e.concat(t.filter((function(e){return e.phase===a})))}),[])}((r=[].concat(l,c.options.modifiers),s=r.reduce((function(e,t){var a=e[t.name]
|
|||
|
return e[t.name]=a?Object.assign({},a,t,{options:Object.assign({},a.options,t.options),data:Object.assign({},a.data,t.data)}):t,e}),{}),Object.keys(s).map((function(e){return s[e]}))))
|
|||
|
return c.orderedModifiers=f.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,a=e.options,l=void 0===a?{}:a,i=e.effect
|
|||
|
if("function"==typeof i){var o=i({state:c,name:t,instance:d,options:l})
|
|||
|
h.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!s){var e=c.elements,t=e.reference,a=e.popper
|
|||
|
if(G(t,a)){c.rects={reference:b(t,V(a),"fixed"===c.options.strategy),popper:z(a)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}))
|
|||
|
for(var l=0;l<c.orderedModifiers.length;l++)if(!0!==c.reset){var i=c.orderedModifiers[l],o=i.fn,n=i.options,r=void 0===n?{}:n,h=i.name
|
|||
|
"function"==typeof o&&(c=o({state:c,options:r,name:h,instance:d})||c)}else c.reset=!1,l=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(c)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(o())}))}))),r}),destroy:function(){u(),s=!0}}
|
|||
|
if(!G(e,t))return d
|
|||
|
function u(){h.forEach((function(e){return e()})),h=[]}return d.setOptions(a).then((function(e){!s&&a.onFirstUpdate&&a.onFirstUpdate(e)})),d}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,a=e.instance,i=e.options,o=i.scroll,n=void 0===o||o,r=i.resize,c=void 0===r||r,h=l(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper)
|
|||
|
return n&&s.forEach((function(e){e.addEventListener("scroll",a.update,$)})),c&&h.addEventListener("resize",a.update,$),function(){n&&s.forEach((function(e){e.removeEventListener("scroll",a.update,$)})),c&&h.removeEventListener("resize",a.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,a=e.name
|
|||
|
t.modifiersData[a]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,a=e.options,l=a.gpuAcceleration,i=void 0===l||l,o=a.adaptive,n=void 0===o||o,r=a.roundOffsets,c=void 0===r||r,h={placement:q(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy}
|
|||
|
null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},J,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,a=e.options,l=e.name,i=a.offset,o=void 0===i?[0,0]:i,n=U.reduce((function(e,a){return e[a]=function(e,t,a){var l=q(e),i=[C,_].indexOf(l)>=0?-1:1,o="function"==typeof a?a(Object.assign({},t,{placement:e})):a,n=o[0],r=o[1]
|
|||
|
return n=n||0,r=(r||0)*i,[C,L].indexOf(l)>=0?{x:r,y:n}:{x:n,y:r}}(a,t.rects,o),e}),{}),r=n[t.placement],c=r.x,h=r.y
|
|||
|
null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=h),t.modifiersData[l]=n}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name
|
|||
|
if(!t.modifiersData[l]._skip){for(var i=a.mainAxis,o=void 0===i||i,n=a.altAxis,r=void 0===n||n,c=a.fallbackPlacements,h=a.padding,s=a.boundary,d=a.rootBoundary,u=a.altBoundary,f=a.flipVariations,v=void 0===f||f,p=a.allowedAutoPlacements,m=t.options.placement,y=q(m),g=c||(y!==m&&v?function(e){if(q(e)===E)return[]
|
|||
|
var t=ee(e)
|
|||
|
return[ae(e),t,ae(t)]}(m):[ee(m)]),b=[m].concat(g).reduce((function(e,a){return e.concat(q(a)===E?function(e,t){void 0===t&&(t={})
|
|||
|
var a=t,l=a.placement,i=a.boundary,o=a.rootBoundary,n=a.padding,r=a.flipVariations,c=a.allowedAutoPlacements,h=void 0===c?U:c,s=Z(l),d=s?r?N:N.filter((function(e){return Z(e)===s})):k,u=d.filter((function(e){return h.indexOf(e)>=0}))
|
|||
|
0===u.length&&(u=d)
|
|||
|
var f=u.reduce((function(t,a){return t[a]=ce(e,{placement:a,boundary:i,rootBoundary:o,padding:n})[q(a)],t}),{})
|
|||
|
return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:a,boundary:s,rootBoundary:d,padding:h,flipVariations:v,allowedAutoPlacements:p}):a)}),[]),z=t.rects.reference,M=t.rects.popper,A=new Map,w=!0,x=b[0],H=0;H<b.length;H++){var V=b[H],S=q(V),F=Z(V)===D,O=[_,B].indexOf(S)>=0,T=O?"width":"height",P=ce(t,{placement:V,boundary:s,rootBoundary:d,altBoundary:u,padding:h}),R=O?F?L:C:F?B:_
|
|||
|
z[T]>M[T]&&(R=ee(R))
|
|||
|
var j=ee(R),I=[]
|
|||
|
if(o&&I.push(P[S]<=0),r&&I.push(P[R]<=0,P[j]<=0),I.every((function(e){return e}))){x=V,w=!1
|
|||
|
break}A.set(V,I)}if(w)for(var G=function(e){var t=b.find((function(t){var a=A.get(t)
|
|||
|
if(a)return a.slice(0,e).every((function(e){return e}))}))
|
|||
|
if(t)return x=t,"break"},$=v?3:1;$>0&&"break"!==G($);$--);t.placement!==x&&(t.modifiersData[l]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name,i=a.mainAxis,o=void 0===i||i,n=a.altAxis,h=void 0!==n&&n,s=a.boundary,d=a.rootBoundary,u=a.altBoundary,f=a.padding,v=a.tether,p=void 0===v||v,m=a.tetherOffset,y=void 0===m?0:m,g=ce(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:u}),b=q(t.placement),M=Z(t.placement),A=!M,w=Y(b),x="x"===w?"y":"x",H=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,S="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,F="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0}
|
|||
|
if(H){if(o){var P,N="y"===w?_:C,U="y"===w?B:L,R="y"===w?"height":"width",j=H[w],I=j+g[N],G=j-g[U],$=p?-k[R]/2:0,K=M===D?E[R]:k[R],W=M===D?-k[R]:-E[R],X=t.elements.arrow,J=p&&X?z(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[N],te=Q[U],ae=he(0,E[R],J[R]),le=A?E[R]/2-$-ae-ee-F.mainAxis:K-ae-ee-F.mainAxis,ie=A?-E[R]/2+$+ae+te+F.mainAxis:W+ae+te+F.mainAxis,oe=t.elements.arrow&&V(t.elements.arrow),ne=oe?"y"===w?oe.clientTop||0:oe.clientLeft||0:0,re=null!=(P=null==O?void 0:O[w])?P:0,se=j+ie-re,de=he(p?c(I,j+le-re-ne):I,j,p?r(G,se):G)
|
|||
|
H[w]=de,T[w]=de-j}if(h){var ue,fe="x"===w?_:C,ve="x"===w?B:L,pe=H[x],me="y"===x?"height":"width",ye=pe+g[fe],ge=pe-g[ve],be=-1!==[_,C].indexOf(b),ze=null!=(ue=null==O?void 0:O[x])?ue:0,Me=be?ye:pe-E[me]-k[me]-ze+F.altAxis,Ae=be?pe+E[me]+k[me]-ze-F.altAxis:ge,we=p&&be?function(e,t,a){var l=he(e,t,a)
|
|||
|
return l>a?a:l}(Me,pe,Ae):he(p?Me:ye,pe,p?Ae:ge)
|
|||
|
H[x]=we,T[x]=we-pe}t.modifiersData[l]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,a=e.state,l=e.name,i=e.options,o=a.elements.arrow,n=a.modifiersData.popperOffsets,r=q(a.placement),c=Y(r),h=[C,L].indexOf(r)>=0?"height":"width"
|
|||
|
if(o&&n){var s=function(e,t){return ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:re(e,k))}(i.padding,a),d=z(o),u="y"===c?_:C,f="y"===c?B:L,v=a.rects.reference[h]+a.rects.reference[c]-n[c]-a.rects.popper[h],p=n[c]-a.rects.reference[c],m=V(o),y=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,g=v/2-p/2,b=s[u],M=y-d[h]-s[f],A=y/2-d[h]/2+g,w=he(b,A,M),x=c
|
|||
|
a.modifiersData[l]=((t={})[x]=w,t.centerOffset=w-A,t)}},effect:function(e){var t=e.state,a=e.options.element,l=void 0===a?"[data-popper-arrow]":a
|
|||
|
null!=l&&("string"!=typeof l||(l=t.elements.popper.querySelector(l)))&&le(t.elements.popper,l)&&(t.elements.arrow=l)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,a=e.name,l=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,n=ce(t,{elementContext:"reference"}),r=ce(t,{altBoundary:!0}),c=se(n,l),h=se(r,i,o),s=de(c),d=de(h)
|
|||
|
t.modifiersData[a]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:s,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]}),fe='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',ve="tippy-box",pe="tippy-content",me="tippy-backdrop",ye="tippy-arrow",ge="tippy-svg-arrow",be={passive:!0,capture:!0},ze=function(){return document.body}
|
|||
|
function Me(e,t,a){if(Array.isArray(e)){var l=e[t]
|
|||
|
return null==l?Array.isArray(a)?a[t]:a:l}return e}function Ae(e,t){var a={}.toString.call(e)
|
|||
|
return 0===a.indexOf("[object")&&a.indexOf(t+"]")>-1}function we(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xe(e,t){return 0===t?e:function(l){clearTimeout(a),a=setTimeout((function(){e(l)}),t)}
|
|||
|
var a}function He(e,t){var a=Object.assign({},e)
|
|||
|
return t.forEach((function(e){delete a[e]})),a}function Ve(e){return[].concat(e)}function _e(e,t){-1===e.indexOf(t)&&e.push(t)}function Be(e){return e.split("-")[0]}function Le(e){return[].slice.call(e)}function Ce(e){return Object.keys(e).reduce((function(t,a){return void 0!==e[a]&&(t[a]=e[a]),t}),{})}function Ee(){return document.createElement("div")}function ke(e){return["Element","Fragment"].some((function(t){return Ae(e,t)}))}function De(e){return Ae(e,"MouseEvent")}function Se(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Fe(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Oe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Te(e){var t,a=Ve(e)[0]
|
|||
|
return null!=a&&null!=(t=a.ownerDocument)&&t.body?a.ownerDocument:document}function Pe(e,t,a){var l=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[l](t,a)}))}function Ne(e,t){for(var a=t;a;){var l
|
|||
|
if(e.contains(a))return!0
|
|||
|
a=null==a.getRootNode||null==(l=a.getRootNode())?void 0:l.host}return!1}var Ue={isTouch:!1},Re=0
|
|||
|
function je(){Ue.isTouch||(Ue.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ie))}function Ie(){var e=performance.now()
|
|||
|
e-Re<20&&(Ue.isTouch=!1,document.removeEventListener("mousemove",Ie)),Re=e}function Ge(){var e=document.activeElement
|
|||
|
if(Se(e)){var t=e._tippy
|
|||
|
e.blur&&!t.state.isVisible&&e.blur()}}var $e=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),qe=Object.assign({appendTo:ze,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ze=Object.keys(qe)
|
|||
|
function Ye(e){var t=(e.plugins||[]).reduce((function(t,a){var l,i=a.name,o=a.defaultValue
|
|||
|
return i&&(t[i]=void 0!==e[i]?e[i]:null!=(l=qe[i])?l:o),t}),{})
|
|||
|
return Object.assign({},e,t)}function Ke(e,t){var a=Object.assign({},t,{content:we(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ye(Object.assign({},qe,{plugins:t}))):Ze).reduce((function(t,a){var l=(e.getAttribute("data-tippy-"+a)||"").trim()
|
|||
|
if(!l)return t
|
|||
|
if("content"===a)t[a]=l
|
|||
|
else try{t[a]=JSON.parse(l)}catch(e){t[a]=l}return t}),{})}(e,t.plugins))
|
|||
|
return a.aria=Object.assign({},qe.aria,a.aria),a.aria={expanded:"auto"===a.aria.expanded?t.interactive:a.aria.expanded,content:"auto"===a.aria.content?t.interactive?null:"describedby":a.aria.content},a}var We=function(){return"innerHTML"}
|
|||
|
function Xe(e,t){e[We()]=t}function Je(e){var t=Ee()
|
|||
|
return!0===e?t.className=ye:(t.className=ge,ke(e)?t.appendChild(e):Xe(t,e)),t}function Qe(e,t){ke(t.content)?(Xe(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Xe(e,t.content):e.textContent=t.content)}function et(e){var t=e.firstElementChild,a=Le(t.children)
|
|||
|
return{box:t,content:a.find((function(e){return e.classList.contains(pe)})),arrow:a.find((function(e){return e.classList.contains(ye)||e.classList.contains(ge)})),backdrop:a.find((function(e){return e.classList.contains(me)}))}}function tt(e){var t=Ee(),a=Ee()
|
|||
|
a.className=ve,a.setAttribute("data-state","hidden"),a.setAttribute("tabindex","-1")
|
|||
|
var l=Ee()
|
|||
|
function i(a,l){var i=et(t),o=i.box,n=i.content,r=i.arrow
|
|||
|
l.theme?o.setAttribute("data-theme",l.theme):o.removeAttribute("data-theme"),"string"==typeof l.animation?o.setAttribute("data-animation",l.animation):o.removeAttribute("data-animation"),l.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof l.maxWidth?l.maxWidth+"px":l.maxWidth,l.role?o.setAttribute("role",l.role):o.removeAttribute("role"),a.content===l.content&&a.allowHTML===l.allowHTML||Qe(n,e.props),l.arrow?r?a.arrow!==l.arrow&&(o.removeChild(r),o.appendChild(Je(l.arrow))):o.appendChild(Je(l.arrow)):r&&o.removeChild(r)}return l.className=pe,l.setAttribute("data-state","hidden"),Qe(l,e.props),t.appendChild(a),a.appendChild(l),i(e.props,e.props),{popper:t,onUpdate:i}}tt.$$tippy=!0
|
|||
|
var at=1,lt=[],it=[]
|
|||
|
function ot(e,t){void 0===t&&(t={})
|
|||
|
var a=qe.plugins.concat(t.plugins||[])
|
|||
|
document.addEventListener("touchstart",je,be),window.addEventListener("blur",Ge)
|
|||
|
var l,i=Object.assign({},t,{plugins:a}),o=(l=e,ke(l)?[l]:function(e){return Ae(e,"NodeList")}(l)?Le(l):Array.isArray(l)?l:Le(document.querySelectorAll(l))).reduce((function(e,t){var a=t&&function(e,t){var a,l,i,o,n,r,c,h,s=Ke(e,Object.assign({},qe,Ye(Ce(t)))),d=!1,u=!1,f=!1,v=!1,p=[],m=xe(Z,s.interactiveDebounce),y=at++,g=(h=s.plugins).filter((function(e,t){return h.indexOf(e)===t})),b={id:y,reference:e,popper:Ee(),popperInstance:null,props:s,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(a),clearTimeout(l),cancelAnimationFrame(i)},setProps:function(t){if(!b.state.isDestroyed){D("onBeforeUpdate",[b,t]),$()
|
|||
|
var a=b.props,l=Ke(e,Object.assign({},a,Ce(t),{ignoreAttributes:!0}))
|
|||
|
b.props=l,G(),a.interactiveDebounce!==l.interactiveDebounce&&(O(),m=xe(Z,l.interactiveDebounce)),a.triggerTarget&&!l.triggerTarget?Ve(a.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):l.triggerTarget&&e.removeAttribute("aria-expanded"),F(),k(),A&&A(a,l),b.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,a=!b.state.isEnabled,l=Ue.isTouch&&!b.props.touch,i=Me(b.props.duration,0,qe.duration)
|
|||
|
if(!(e||t||a||l||B().hasAttribute("disabled")||(D("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,_()&&(M.style.visibility="visible"),k(),U(),b.state.isMounted||(M.style.transition="none"),_()){var o=C()
|
|||
|
Fe([o.box,o.content],0)}var n,c,h
|
|||
|
r=function(){var e
|
|||
|
if(b.state.isVisible&&!v){if(v=!0,M.offsetHeight,M.style.transition=b.props.moveTransition,_()&&b.props.animation){var t=C(),a=t.box,l=t.content
|
|||
|
Fe([a,l],i),Oe([a,l],"visible")}S(),F(),_e(it,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&_()&&function(e,t){j(e,(function(){b.state.isShown=!0,D("onShown",[b])}))}(i)}},c=b.props.appendTo,h=B(),(n=b.props.interactive&&c===ze||"parent"===c?h.parentNode:we(c,[h])).contains(M)||n.appendChild(M),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,a=!b.state.isEnabled,l=Me(b.props.duration,1,qe.duration)
|
|||
|
if(!(e||t||a)&&(D("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,v=!1,d=!1,_()&&(M.style.visibility="hidden"),O(),R(),k(!0),_()){var i=C(),o=i.box,n=i.content
|
|||
|
b.props.animation&&(Fe([o,n],l),Oe([o,n],"hidden"))}S(),F(),b.props.animation?_()&&function(e,t){j(e,(function(){!b.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&t()}))}(l,b.unmount):b.unmount()}},hideWithInteractivity:function(e){L().addEventListener("mousemove",m),_e(lt,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(J(),Q().forEach((function(e){e._tippy.unmount()})),M.parentNode&&M.parentNode.removeChild(M),it=it.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b]))}}
|
|||
|
if(!s.render)return b
|
|||
|
var z=s.render(b),M=z.popper,A=z.onUpdate
|
|||
|
M.setAttribute("data-tippy-root",""),M.id="tippy-"+b.id,b.popper=M,e._tippy=b,M._tippy=b
|
|||
|
var w=g.map((function(e){return e.fn(b)})),x=e.hasAttribute("aria-expanded")
|
|||
|
return G(),F(),k(),D("onCreate",[b]),s.showOnCreate&&ee(),M.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),M.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",m)})),b
|
|||
|
function H(){var e=b.props.touch
|
|||
|
return Array.isArray(e)?e:[e,0]}function V(){return"hold"===H()[0]}function _(){var e
|
|||
|
return!(null==(e=b.props.render)||!e.$$tippy)}function B(){return c||e}function L(){var e=B().parentNode
|
|||
|
return e?Te(e):document}function C(){return et(M)}function E(e){return b.state.isMounted&&!b.state.isVisible||Ue.isTouch||o&&"focus"===o.type?0:Me(b.props.delay,e?0:1,qe.delay)}function k(e){void 0===e&&(e=!1),M.style.pointerEvents=b.props.interactive&&!e?"":"none",M.style.zIndex=""+b.props.zIndex}function D(e,t,a){var l
|
|||
|
void 0===a&&(a=!0),w.forEach((function(a){a[e]&&a[e].apply(a,t)})),a&&(l=b.props)[e].apply(l,t)}function S(){var t=b.props.aria
|
|||
|
if(t.content){var a="aria-"+t.content,l=M.id
|
|||
|
Ve(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(a)
|
|||
|
if(b.state.isVisible)e.setAttribute(a,t?t+" "+l:l)
|
|||
|
else{var i=t&&t.replace(l,"").trim()
|
|||
|
i?e.setAttribute(a,i):e.removeAttribute(a)}}))}}function F(){!x&&b.props.aria.expanded&&Ve(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===B()?"true":"false"):e.removeAttribute("aria-expanded")}))}function O(){L().removeEventListener("mousemove",m),lt=lt.filter((function(e){return e!==m}))}function T(t){if(!Ue.isTouch||!f&&"mousedown"!==t.type){var a=t.composedPath&&t.composedPath()[0]||t.target
|
|||
|
if(!b.props.interactive||!Ne(M,a)){if(Ve(b.props.triggerTarget||e).some((function(e){return Ne(e,a)}))){if(Ue.isTouch)return
|
|||
|
if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t])
|
|||
|
!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout((function(){u=!1})),b.state.isMounted||R())}}}function P(){f=!0}function N(){f=!1}function U(){var e=L()
|
|||
|
e.addEventListener("mousedown",T,!0),e.addEventListener("touchend",T,be),e.addEventListener("touchstart",N,be),e.addEventListener("touchmove",P,be)}function R(){var e=L()
|
|||
|
e.removeEventListener("mousedown",T,!0),e.removeEventListener("touchend",T,be),e.removeEventListener("touchstart",N,be),e.removeEventListener("touchmove",P,be)}function j(e,t){var a=C().box
|
|||
|
function l(e){e.target===a&&(Pe(a,"remove",l),t())}if(0===e)return t()
|
|||
|
Pe(a,"remove",n),Pe(a,"add",l),n=l}function I(t,a,l){void 0===l&&(l=!1),Ve(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,a,l),p.push({node:e,eventType:t,handler:a,options:l})}))}function G(){var e
|
|||
|
V()&&(I("touchstart",q,{passive:!0}),I("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(I(e,q),e){case"mouseenter":I("mouseleave",Y)
|
|||
|
break
|
|||
|
case"focus":I($e?"focusout":"blur",K)
|
|||
|
break
|
|||
|
case"focusin":I("focusout",K)}}))}function $(){p.forEach((function(e){var t=e.node,a=e.eventType,l=e.handler,i=e.options
|
|||
|
t.removeEventListener(a,l,i)})),p=[]}function q(e){var t,a=!1
|
|||
|
if(b.state.isEnabled&&!W(e)&&!u){var l="focus"===(null==(t=o)?void 0:t.type)
|
|||
|
o=e,c=e.currentTarget,F(),!b.state.isVisible&&De(e)&<.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?a=!0:ee(e),"click"===e.type&&(d=!a),a&&!l&&te(e)}}function Z(e){var t=e.target,a=B().contains(t)||M.contains(t)
|
|||
|
if("mousemove"!==e.type||!a){var l=Q().concat(M).map((function(e){var t,a=null==(t=e._tippy.popperInstance)?void 0:t.state
|
|||
|
return a?{popperRect:e.getBoundingClientRect(),popperState:a,props:s}:null})).filter(Boolean);(function(e,t){var a=t.clientX,l=t.clientY
|
|||
|
return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,n=Be(i.placement),r=i.modifiersData.offset
|
|||
|
if(!r)return!0
|
|||
|
var c="bottom"===n?r.top.y:0,h="top"===n?r.bottom.y:0,s="right"===n?r.left.x:0,d="left"===n?r.right.x:0,u=t.top-l+c>o,f=l-t.bottom-h>o,v=t.left-a+s>o,p=a-t.right-d>o
|
|||
|
return u||f||v||p}))})(l,e)&&(O(),te(e))}}function Y(e){W(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==B()||b.props.interactive&&e.relatedTarget&&M.contains(e.relatedTarget)||te(e)}function W(e){return!!Ue.isTouch&&V()!==e.type.indexOf("touch")>=0}function X(){J()
|
|||
|
var t=b.props,a=t.popperOptions,l=t.placement,i=t.offset,o=t.getReferenceClientRect,n=t.moveTransition,c=_()?et(M).arrow:null,h=o?{getBoundingClientRect:o,contextElement:o.contextElement||B()}:e,s=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!n}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state
|
|||
|
if(_()){var a=C().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?a.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?a.setAttribute("data-"+e,""):a.removeAttribute("data-"+e)})),t.attributes.popper={}}}}]
|
|||
|
_()&&c&&s.push({name:"arrow",options:{element:c,padding:3}}),s.push.apply(s,(null==a?void 0:a.modifiers)||[]),b.popperInstance=ue(h,M,Object.assign({},a,{placement:l,onFirstUpdate:r,modifiers:s}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Le(M.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),U()
|
|||
|
var t=E(!0),l=H(),i=l[0],o=l[1]
|
|||
|
Ue.isTouch&&"hold"===i&&o&&(t=o),t?a=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=E(!1)
|
|||
|
t?l=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else R()}}(t,i)
|
|||
|
return a&&e.push(a),e}),[])
|
|||
|
return ke(e)?o[0]:o}ot.defaultProps=qe,ot.setDefaultProps=function(e){Object.keys(e).forEach((function(t){qe[t]=e[t]}))},ot.currentInput=Ue
|
|||
|
var nt=function(e){var t=void 0===e?{}:e,a=t.exclude,l=t.duration
|
|||
|
it.forEach((function(e){var t=!1
|
|||
|
if(a&&(t=Se(a)?e.reference===a:e.popper===a.popper),!t){var i=e.props.duration
|
|||
|
e.setProps({duration:l}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}}))},rt=Object.assign({},J,{effect:function(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
|
|||
|
Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow)}}),ct=function(e,t){var a
|
|||
|
void 0===t&&(t={})
|
|||
|
var l,i=e,o=[],n=[],r=t.overrides,c=[],h=!1
|
|||
|
function s(){n=i.map((function(e){return Ve(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){o=i.map((function(e){return e.reference}))}function u(e){i.forEach((function(t){e?t.enable():t.disable()}))}function f(e){return i.map((function(t){var a=t.setProps
|
|||
|
return t.setProps=function(i){a(i),t.reference===l&&e.setProps(i)},function(){t.setProps=a}}))}function v(e,t){var a=n.indexOf(t)
|
|||
|
if(t!==l){l=t
|
|||
|
var c=(r||[]).concat("content").reduce((function(e,t){return e[t]=i[a].props[t],e}),{})
|
|||
|
e.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var e
|
|||
|
return null==(e=o[a])?void 0:e.getBoundingClientRect()}}))}}u(!1),d(),s()
|
|||
|
var p={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){l=null},onClickOutside:function(e){e.props.showOnCreate&&!h&&(h=!0,l=null)},onShow:function(e){e.props.showOnCreate&&!h&&(h=!0,v(e,o[0]))},onTrigger:function(e,t){v(e,t.currentTarget)}}}},m=ot(Ee(),Object.assign({},He(t,["overrides"]),{plugins:[p].concat(t.plugins||[]),triggerTarget:n,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(a=t.popperOptions)?void 0:a.modifiers)||[],[rt])})})),y=m.show
|
|||
|
m.show=function(e){if(y(),!l&&null==e)return v(m,o[0])
|
|||
|
if(!l||null!=e){if("number"==typeof e)return o[e]&&v(m,o[e])
|
|||
|
if(i.indexOf(e)>=0){var t=e.reference
|
|||
|
return v(m,t)}return o.indexOf(e)>=0?v(m,e):void 0}},m.showNext=function(){var e=o[0]
|
|||
|
if(!l)return m.show(0)
|
|||
|
var t=o.indexOf(l)
|
|||
|
m.show(o[t+1]||e)},m.showPrevious=function(){var e=o[o.length-1]
|
|||
|
if(!l)return m.show(e)
|
|||
|
var t=o.indexOf(l),a=o[t-1]||e
|
|||
|
m.show(a)}
|
|||
|
var g=m.setProps
|
|||
|
return m.setProps=function(e){r=e.overrides||r,g(e)},m.setInstances=function(e){u(!0),c.forEach((function(e){return e()})),i=e,u(!1),d(),s(),c=f(m),m.setProps({triggerTarget:n})},c=f(m),m},ht={mouseover:"mouseenter",focusin:"focus",click:"click"}
|
|||
|
function st(e,t){var a=[],l=[],i=!1,o=t.target,n=He(t,["target"]),r=Object.assign({},n,{trigger:"manual",touch:!1}),c=Object.assign({touch:qe.touch},n,{showOnCreate:!0}),h=ot(e,r)
|
|||
|
function s(e){if(e.target&&!i){var a=e.target.closest(o)
|
|||
|
if(a){var n=a.getAttribute("data-tippy-trigger")||t.trigger||qe.trigger
|
|||
|
if(!a._tippy&&!("touchstart"===e.type&&"boolean"==typeof c.touch||"touchstart"!==e.type&&n.indexOf(ht[e.type])<0)){var r=ot(a,c)
|
|||
|
r&&(l=l.concat(r))}}}}function d(e,t,l,i){void 0===i&&(i=!1),e.addEventListener(t,l,i),a.push({node:e,eventType:t,handler:l,options:i})}return Ve(h).forEach((function(e){var t=e.destroy,o=e.enable,n=e.disable
|
|||
|
e.destroy=function(e){void 0===e&&(e=!0),e&&l.forEach((function(e){e.destroy()})),l=[],a.forEach((function(e){var t=e.node,a=e.eventType,l=e.handler,i=e.options
|
|||
|
t.removeEventListener(a,l,i)})),a=[],t()},e.enable=function(){o(),l.forEach((function(e){return e.enable()})),i=!1},e.disable=function(){n(),l.forEach((function(e){return e.disable()})),i=!0},function(e){var t=e.reference
|
|||
|
d(t,"touchstart",s,be),d(t,"mouseover",s),d(t,"focusin",s),d(t,"click",s)}(e)})),h}var dt={name:"animateFill",defaultValue:!1,fn:function(e){var t
|
|||
|
if(null==(t=e.props.render)||!t.$$tippy)return{}
|
|||
|
var a=et(e.popper),l=a.box,i=a.content,o=e.props.animateFill?function(){var e=Ee()
|
|||
|
return e.className=me,Oe([e],"hidden"),e}():null
|
|||
|
return{onCreate:function(){o&&(l.insertBefore(o,l.firstElementChild),l.setAttribute("data-animatefill",""),l.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=l.style.transitionDuration,t=Number(e.replace("ms",""))
|
|||
|
i.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,Oe([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&Oe([o],"hidden")}}}},ut={clientX:0,clientY:0},ft=[]
|
|||
|
function vt(e){var t=e.clientX,a=e.clientY
|
|||
|
ut={clientX:t,clientY:a}}var pt={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,a=Te(e.props.triggerTarget||t),l=!1,i=!1,o=!0,n=e.props
|
|||
|
function r(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){a.addEventListener("mousemove",d)}function h(){a.removeEventListener("mousemove",d)}function s(){l=!0,e.setProps({getReferenceClientRect:null}),l=!1}function d(a){var l=!a.target||t.contains(a.target),i=e.props.followCursor,o=a.clientX,n=a.clientY,r=t.getBoundingClientRect(),c=o-r.left,h=n-r.top
|
|||
|
!l&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),a=o,l=n
|
|||
|
"initial"===i&&(a=e.left+c,l=e.top+h)
|
|||
|
var r="horizontal"===i?e.top:l,s="vertical"===i?e.right:a,d="horizontal"===i?e.bottom:l,u="vertical"===i?e.left:a
|
|||
|
return{width:s-u,height:d-r,top:r,right:s,bottom:d,left:u}}})}function u(){e.props.followCursor&&(ft.push({instance:e,doc:a}),function(e){e.addEventListener("mousemove",vt)}(a))}function f(){0===(ft=ft.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===a})).length&&function(e){e.removeEventListener("mousemove",vt)}(a)}return{onCreate:u,onDestroy:f,onBeforeUpdate:function(){n=e.props},onAfterUpdate:function(t,a){var o=a.followCursor
|
|||
|
l||void 0!==o&&n.followCursor!==o&&(f(),o?(u(),!e.state.isMounted||i||r()||c()):(h(),s()))},onMount:function(){e.props.followCursor&&!i&&(o&&(d(ut),o=!1),r()||c())},onTrigger:function(e,t){De(t)&&(ut={clientX:t.clientX,clientY:t.clientY}),i="focus"===t.type},onHidden:function(){e.props.followCursor&&(s(),h(),o=!0)}}}},mt={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,a=e.reference,l=-1,i=!1,o=[],n={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var n=i.state
|
|||
|
e.props.inlinePositioning&&(-1!==o.indexOf(n.placement)&&(o=[]),t!==n.placement&&-1===o.indexOf(n.placement)&&(o.push(n.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,a,l){if(a.length<2||null===e)return t
|
|||
|
if(2===a.length&&l>=0&&a[0].left>a[1].right)return a[l]||t
|
|||
|
switch(e){case"top":case"bottom":var i=a[0],o=a[a.length-1],n="top"===e,r=i.top,c=o.bottom,h=n?i.left:o.left,s=n?i.right:o.right
|
|||
|
return{top:r,bottom:c,left:h,right:s,width:s-h,height:c-r}
|
|||
|
case"left":case"right":var d=Math.min.apply(Math,a.map((function(e){return e.left}))),u=Math.max.apply(Math,a.map((function(e){return e.right}))),f=a.filter((function(t){return"left"===e?t.left===d:t.right===u})),v=f[0].top,p=f[f.length-1].bottom
|
|||
|
return{top:v,bottom:p,left:d,right:u,width:u-d,height:p-v}
|
|||
|
default:return t}}(Be(e),a.getBoundingClientRect(),Le(a.getClientRects()),l)}(n.placement)}})),t=n.placement)}}
|
|||
|
function r(){var t
|
|||
|
i||(t=function(e,t){var a
|
|||
|
return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(a=e.popperOptions)?void 0:a.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,n),i=!0,e.setProps(t),i=!1)}return{onCreate:r,onAfterUpdate:r,onTrigger:function(t,a){if(De(a)){var i=Le(e.reference.getClientRects()),o=i.find((function(e){return e.left-2<=a.clientX&&e.right+2>=a.clientX&&e.top-2<=a.clientY&&e.bottom+2>=a.clientY})),n=i.indexOf(o)
|
|||
|
l=n>-1?n:l}},onHidden:function(){l=-1}}}},yt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,a=e.popper
|
|||
|
function l(t){return!0===e.props.sticky||e.props.sticky===t}var i=null,o=null
|
|||
|
function n(){var r=l("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=l("popper")?a.getBoundingClientRect():null;(r&>(i,r)||c&>(o,c))&&e.popperInstance&&e.popperInstance.update(),i=r,o=c,e.state.isMounted&&requestAnimationFrame(n)}return{onMount:function(){e.props.sticky&&n()}}}}
|
|||
|
function gt(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}ot.setDefaultProps({render:tt})
|
|||
|
const bt=ot},2985:(e,t,a)=>{"use strict"
|
|||
|
a.d(t,{ZT:()=>i,ev:()=>n,pi:()=>o})
|
|||
|
var l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},l(e,t)}
|
|||
|
function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
|
|||
|
function a(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}var o=function(){return o=Object.assign||function(e){for(var t,a=1,l=arguments.length;a<l;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
|
|||
|
return e},o.apply(this,arguments)}
|
|||
|
function n(e,t,a){if(a||2===arguments.length)for(var l,i=0,o=t.length;i<o;i++)!l&&i in t||(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i])
|
|||
|
return e.concat(l||Array.prototype.slice.call(t))}Object.create,Object.create},6885:(e,t,a)=>{"use strict"
|
|||
|
function l(e){return null!==e&&"object"==typeof e&&!(e instanceof Date||e instanceof RegExp)&&!Array.isArray(e)}a.r(t),a.d(t,{BufferedChangeset:()=>Ee,CHANGESET:()=>D,Change:()=>o,Changeset:()=>Se,Err:()=>c,ValidatedChangeset:()=>De,buildOldValues:()=>W,changeset:()=>ke,getChangeValue:()=>r,getDeep:()=>y,getKeyValues:()=>d,isChange:()=>n,isChangeset:()=>S,isObject:()=>l,isPromise:()=>f,keyInObject:()=>O,lookupValidator:()=>g,mergeDeep:()=>ie,mergeNested:()=>Y,normalizeObject:()=>H,objectWithout:()=>he,propertyIsUnsafe:()=>te,pureAssign:()=>_,setDeep:()=>q,take:()=>se})
|
|||
|
var i=Symbol("__value__"),o=function(e){this[i]=e},n=function(e){return l(e)&&i in e}
|
|||
|
function r(e){if(n(e))return e[i]}var c=function(e,t){this.value=e,this.validation=t},h=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},s=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]))
|
|||
|
return e}
|
|||
|
function d(e,t){void 0===t&&(t=[])
|
|||
|
var a=[]
|
|||
|
for(var i in e)e[i]&&l(e[i])&&(n(e[i])?a.push({key:s(t,[i]).join("."),value:r(e[i])}):a.push.apply(a,s(d(e[i],s(t,[i])))))
|
|||
|
return a}function u(e,t){void 0===t&&(t=[])
|
|||
|
var a=[]
|
|||
|
for(var i in e)e[i]&&l(e[i])&&(Object.prototype.hasOwnProperty.call(e[i],"value")&&e[i]instanceof c?a.push({key:s(t,[i]).join("."),validation:e[i].validation,value:e[i].value}):"value"!==i&&a.push.apply(a,s(u(e[i],s(t,[i])))))
|
|||
|
return a}function f(e){return l(e)&&function(e){return!!(e&&e.then&&e.catch&&e.finally&&"function"==typeof e.then&&"function"==typeof e.catch&&"function"==typeof e.finally)}(e)}var v=function(e,t,a,l){return new(a||(a=Promise))((function(i,o){function n(e){try{c(l.next(e))}catch(e){o(e)}}function r(e){try{c(l.throw(e))}catch(e){o(e)}}function c(e){var t
|
|||
|
e.done?i(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,r)}c((l=l.apply(e,t||[])).next())}))},p=function(e,t){var a,l,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1]
|
|||
|
return i[1]},trys:[],ops:[]}
|
|||
|
return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o
|
|||
|
function r(o){return function(r){return function(o){if(a)throw new TypeError("Generator is already executing.")
|
|||
|
for(;n;)try{if(a=1,l&&(i=2&o[0]?l.return:o[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,o[1])).done)return i
|
|||
|
switch(l=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o
|
|||
|
break
|
|||
|
case 4:return n.label++,{value:o[1],done:!1}
|
|||
|
case 5:n.label++,l=o[1],o=[0]
|
|||
|
continue
|
|||
|
case 7:o=n.ops.pop(),n.trys.pop()
|
|||
|
continue
|
|||
|
default:if(!((i=(i=n.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0
|
|||
|
continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1]
|
|||
|
break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o
|
|||
|
break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o)
|
|||
|
break}i[2]&&n.ops.pop(),n.trys.pop()
|
|||
|
continue}o=t.call(e,n)}catch(e){o=[6,e],l=0}finally{a=i=0}if(5&o[0])throw o[1]
|
|||
|
return{value:o[0]?o[1]:void 0,done:!0}}([o,r])}}}
|
|||
|
function m(e){return v(this,void 0,void 0,(function(){var t,a
|
|||
|
return p(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,Promise.all(e)]
|
|||
|
case 1:return t=l.sent(),[2,0===(a=t.filter((function(e){return"boolean"!=typeof e&&e}))).length||a]
|
|||
|
case 2:return[2,l.sent()]
|
|||
|
case 3:return[2]}}))}))}function y(e,t){var a=e
|
|||
|
if(-1===t.indexOf("."))return a[t]
|
|||
|
for(var l="string"==typeof t?t.split("."):t,i=0;i<l.length;i++){if(null==a)return
|
|||
|
a=a[l[i]]}return a}function g(e){return function(t){var a,i=t.key,o=t.newValue,n=t.oldValue,r=t.changes,c=t.content,h=y(e||{},i)
|
|||
|
return h&&h.validate&&(h=h.validate.bind(h)),!(h&&!l(h))||(a=Array.isArray(h)?function(e,t){var a=t.key,l=t.newValue,i=t.oldValue,o=t.changes,n=t.content,r=Array.from(e.map((function(e){return e&&e.validate&&(e=e.validate.bind(e)),e(a,l,i,o,n)})))
|
|||
|
return r.some(f)?Promise.all(r).then(m):function(e){var t=e.filter((function(e){return"boolean"!=typeof e&&e}))
|
|||
|
return 0===t.length||t}(r)}(h,{key:i,newValue:o,oldValue:n,changes:r,content:c}):h(i,o,n,r,c),f(a)?a.then((function(e){return e})):a)}}var b=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},z=function(){function e(){this.listeners=[]}return e.prototype.addListener=function(e){var t=this
|
|||
|
return this.listeners.push(e),function(){return t.removeListener(e)}},e.prototype.removeListener=function(e){for(var t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)},e.prototype.trigger=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
|
|||
|
this.listeners.forEach((function(t){return t.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]))
|
|||
|
return e}(e))}))},e}()
|
|||
|
function M(e,t){void 0===e._eventedNotifiers&&(e._eventedNotifiers={})
|
|||
|
var a=e._eventedNotifiers[t]
|
|||
|
return a||(a=e._eventedNotifiers[t]=new z),a}var A,w=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],l=0
|
|||
|
if(a)return a.call(e)
|
|||
|
if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}}
|
|||
|
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(){return x=Object.assign||function(e){for(var t,a=1,l=arguments.length;a<l;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
|
|||
|
return e},x.apply(this,arguments)}
|
|||
|
function H(e,t){if(void 0===t&&(t=l),!e||!t(e))return e
|
|||
|
if(n(e))return r(e)
|
|||
|
var a=x({},e)
|
|||
|
for(var i in a){var o=a[i]
|
|||
|
if(o&&t(o))if(n(o))a[i]=r(o)
|
|||
|
else{try{JSON.stringify(o)}catch(e){break}a[i]=H(o)}}return a}function V(e){for(var t in e){if(n(e[t]))return!0
|
|||
|
if(l(e[t])){var a=V(e[t])
|
|||
|
if(a)return a}}return!1}function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
|
|||
|
return e.reduce((function(e,t){return Object.defineProperties(e,A(t))}),{})}A=void 0!==Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:function(e){var t={}
|
|||
|
return Object.keys(e).forEach((function(a){t[a]=Object.getOwnPropertyDescriptor(e,a)})),t}
|
|||
|
var B=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],l=0
|
|||
|
if(a)return a.call(e)
|
|||
|
if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}}
|
|||
|
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},L=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},C=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(L(arguments[t]))
|
|||
|
return e}
|
|||
|
function E(e,t,a,i){var o,n
|
|||
|
void 0===i&&(i=[])
|
|||
|
try{for(var r=B(a),c=r.next();!c.done;c=r.next()){var h=c.value,s=e[h]
|
|||
|
"function"==typeof s.validate?t[h]=s:l(s)?E(s,t,Object.keys(s),C(i,[h])):("function"==typeof s||Array.isArray(s)&&s.every((function(e){return"function"==typeof e||"function"==typeof e.validate})))&&(t[C(i,[h]).join(".")]=s)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return t}function k(e){return e?E(e,{},Object.keys(e)):{}}var D="__CHANGESET__"
|
|||
|
function S(e){return e&&e.__changeset__===D}var F=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n}
|
|||
|
function O(e,t){var a=F(t.split(".")),l=a[0],i=a.slice(1)
|
|||
|
if(!l||!(l in e))return!1
|
|||
|
if(!i.length)return l in e
|
|||
|
var o=e[l]
|
|||
|
return null!==o&&"object"==typeof o&&O(e[l],i.join("."))}var T=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],l=0
|
|||
|
if(a)return a.call(e)
|
|||
|
if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}}
|
|||
|
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},P=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n}
|
|||
|
function N(e){return!!e&&Object.keys(e).every((function(e){return Number.isInteger(parseInt(e,10))}))}function U(e){return e.reduce((function(e,t,a){return e[a]=t,e}),{})}function R(e){var t,a,l=[]
|
|||
|
try{for(var i=T(Object.entries(e)),o=i.next();!o.done;o=i.next()){var n=P(o.value,2),r=n[0],c=n[1]
|
|||
|
l[parseInt(r,10)]=c}}catch(e){t={error:e}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}return l}var j=function(){return j=Object.assign||function(e){for(var t,a=1,l=arguments.length;a<l;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
|
|||
|
return e},j.apply(this,arguments)},I=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n}
|
|||
|
function G(e,t){var a=I(t.slice(-1),1)[0],l=Object.keys(e).filter((function(e){return e!==a})).reduce((function(t,a){return t[a]=e[a],t}),Object.create(null))
|
|||
|
return j({},l)}function $(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function q(e,t,a,i){void 0===i&&(i={safeSet:void 0,safeGet:void 0})
|
|||
|
var c=function(e){return e.split(".")}(t).filter($),h=e
|
|||
|
if(i.safeSet=i.safeSet||function(e,t,a){return e[t]=a},i.safeGet=i.safeGet||function(e,t){return e?e[t]:e},1===c.length)return i.safeSet(e,t,a),e
|
|||
|
for(var s=0;s<c.length;s++){var d=c[s]
|
|||
|
if(Array.isArray(e)&&parseInt(d,10)<0)throw new Error("Negative indices are not allowed as arrays do not serialize values at negative indices")
|
|||
|
var u=l(i.safeGet(e,d)),f=Array.isArray(i.safeGet(e,d)),v=u||f
|
|||
|
if(v){if(v&&n(i.safeGet(e,d))){var p=r(i.safeGet(e,d))
|
|||
|
if(l(p)){var m,y=G(p,c),g=n(a)?r(a):a,b=Array.isArray(e)||N(e),z=b?c.slice(s+1,c.length).join("."):c.slice(1,c.length).join(".")
|
|||
|
m=b&&void 0===g||s===c.length-1?g:q(y,z,g,i),i.safeSet(e,d,new o(m))
|
|||
|
break}i.safeSet(e,d,{})}}else i.safeSet(e,d,{})
|
|||
|
if(s===c.length-1){i.safeSet(e,d,a)
|
|||
|
break}e=i.safeGet(e,d)}return h}var Z=Object.keys
|
|||
|
function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
|
|||
|
var a={}
|
|||
|
return e.forEach((function(e){return Z(e).forEach((function(t){return q(a,t,e[t])}))})),a}var K=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],l=0
|
|||
|
if(a)return a.call(e)
|
|||
|
if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}}
|
|||
|
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
|
|||
|
function W(e,t,a){var l,i,o=Object.create(null)
|
|||
|
try{for(var n=K(t),r=n.next();!r.done;r=n.next()){var c=r.value
|
|||
|
o[c.key]=a(e,c.key)}}catch(e){l={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(l)throw l.error}}return o}var X=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},J=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(X(arguments[t]))
|
|||
|
return e}
|
|||
|
function Q(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function ee(e,t){try{return t in e}catch(e){return!1}}function te(e,t){return ee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ae(e,t,a,l){return Object.keys(e).forEach((function(i){var o=e[i]
|
|||
|
o&&n(o)?a[J(l,[i]).join(".")]=r(o):o&&"object"==typeof o&&ae(o,t,a,J(l,[i]))})),a}function le(e,t,a){return a.getKeys(t).forEach((function(l){if(a.propertyIsUnsafe(e,l)){if(a.safeSet){var i=ae(t,a,{},[])
|
|||
|
if(Object.keys(i).length>0)for(l in i){var o=i[l]
|
|||
|
a.safeSet(e,l,o)}}}else{if(!ee(e,l)||!function(e){return!!e&&"object"==typeof e}(h=t[l])||function(e){var t=Object.prototype.toString.call(e)
|
|||
|
return"[object RegExp]"===t||"[object Date]"===t}(h)||n(t[l])){var c=t[l]
|
|||
|
return c&&n(c)?a.safeSet(e,l,r(c)):a.safeSet(e,l,H(c))}a.safeSet(e,l,ie(a.safeGet(e,l),a.safeGet(t,l),a))}var h})),e}function ie(e,t,a){void 0===a&&(a={safeGet:void 0,safeSet:void 0,propertyIsUnsafe:void 0,getKeys:void 0}),a.getKeys=a.getKeys||Q,a.propertyIsUnsafe=a.propertyIsUnsafe||te,a.safeGet=a.safeGet||function(e,t){return e[t]},a.safeSet=a.safeSet||function(e,t,a){return e[t]=a}
|
|||
|
var l=Array.isArray(t),i=Array.isArray(e)
|
|||
|
if(l===i)return l||null==e?t:le(e,t,a)
|
|||
|
var o=N(t)
|
|||
|
return i&&o?R(le(U(e),t,a)):t}var oe=function(){return oe=Object.assign||function(e){for(var t,a=1,l=arguments.length;a<l;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
|
|||
|
return e},oe.apply(this,arguments)},ne={get:function(e,t){if("symbol"!=typeof t){var a=e.safeGet(e.changes,t)
|
|||
|
if(n(a))return r(a)
|
|||
|
if(l(a)){var i=e.children[t]
|
|||
|
if(void 0===i&&e.content){var o=e.safeGet(e.content,t)
|
|||
|
i=e.children[t]=new ce(a,o,e.safeGet)}if(i)return i.proxy}if(void 0!==a)return a
|
|||
|
if(e.content){var c=e.content
|
|||
|
if(e.safeGet(c,t))return e.safeGet(c,t)}return"function"==typeof e[t]||e.hasOwnProperty(t)?e[t]:void 0}},ownKeys:function(e){return Reflect.ownKeys(e.changes)},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e.changes,t)},has:function(e,t){return Reflect.has(e.changes,t)},set:function(e,t,a){return t.startsWith("_")?Reflect.set(e,t,a):Reflect.set(e.changes,t,new o(a))}}
|
|||
|
function re(e,t){return e[t]}var ce=function(){function e(e,t,a,l){void 0===e&&(e={}),void 0===t&&(t={}),void 0===a&&(a=re),this.safeGet=a,this.isObject=l,this.changes=e,this.content=t,this.proxy=new Proxy(this,ne),this.children=Object.create(null)}return e.prototype.get=function(e){return this.safeGet(this.changes,e)},e.prototype.set=function(e,t){return q(this.changes,e,t)},e.prototype.unwrap=function(){var e=this.changes
|
|||
|
if(l(e)){e=H(e,this.isObject)
|
|||
|
var t=this.content
|
|||
|
if(l(t))return e=H(e,this.isObject),oe(oe({},t),e)
|
|||
|
if(Array.isArray(t))return e=H(e,this.isObject),R(ie(U(t),e))}return e},e}()
|
|||
|
function he(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a]
|
|||
|
return t.reduce((function(t,a){return Object.keys(a).filter((function(t){return-1===e.indexOf(t)||!a.hasOwnProperty(t)})).forEach((function(e){return t[e]=a[e]})),t}),{})}function se(e,t){void 0===e&&(e={}),void 0===t&&(t=[])
|
|||
|
var a={}
|
|||
|
for(var l in e)-1!==t.indexOf(l)&&(a[l]=e[l])
|
|||
|
return a}var de=function(){return de=Object.assign||function(e){for(var t,a=1,l=arguments.length;a<l;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
|
|||
|
return e},de.apply(this,arguments)},ue=function(e,t,a,l){return new(a||(a=Promise))((function(i,o){function n(e){try{c(l.next(e))}catch(e){o(e)}}function r(e){try{c(l.throw(e))}catch(e){o(e)}}function c(e){var t
|
|||
|
e.done?i(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,r)}c((l=l.apply(e,t||[])).next())}))},fe=function(e,t){var a,l,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1]
|
|||
|
return i[1]},trys:[],ops:[]}
|
|||
|
return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o
|
|||
|
function r(o){return function(r){return function(o){if(a)throw new TypeError("Generator is already executing.")
|
|||
|
for(;n;)try{if(a=1,l&&(i=2&o[0]?l.return:o[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,o[1])).done)return i
|
|||
|
switch(l=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o
|
|||
|
break
|
|||
|
case 4:return n.label++,{value:o[1],done:!1}
|
|||
|
case 5:n.label++,l=o[1],o=[0]
|
|||
|
continue
|
|||
|
case 7:o=n.ops.pop(),n.trys.pop()
|
|||
|
continue
|
|||
|
default:if(!((i=(i=n.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0
|
|||
|
continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1]
|
|||
|
break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o
|
|||
|
break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o)
|
|||
|
break}i[2]&&n.ops.pop(),n.trys.pop()
|
|||
|
continue}o=t.call(e,n)}catch(e){o=[6,e],l=0}finally{a=i=0}if(5&o[0])throw o[1]
|
|||
|
return{value:o[0]?o[1]:void 0,done:!0}}([o,r])}}},ve=function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator]
|
|||
|
if(!a)return e
|
|||
|
var l,i,o=a.call(e),n=[]
|
|||
|
try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)n.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},pe=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ve(arguments[t]))
|
|||
|
return e},me=Object.keys,ye="_content",ge="_previousContent",be="_changes",ze="_errors",Me="_errorsCache",Ae="_validator",we="_options",xe="_runningValidations",He="afterValidation",Ve=function(){return!0},_e={skipValidate:!1},Be=!1
|
|||
|
function Le(e,t){if(Be&&!t)throw new Error(e)}function Ce(e){return e}var Ee=function(){function e(e,t,a,i){void 0===t&&(t=Ve),void 0===a&&(a={}),void 0===i&&(i={}),this.validateFn=t,this.validationMap=a,this.__changeset__=D,this._eventedNotifiers={},this.isObject=l,this.maybeUnwrapProxy=Ce,this.setDeep=q,this.getDeep=y,this.mergeDeep=ie,this[ye]=e,this[ge]=void 0,this[be]={},this[ze]={},this[Me]={},this[Ae]=t,this[we]=_(_e,JSON.parse(JSON.stringify(i))),this[xe]={}}return e.prototype.on=function(e,t){return M(this,e).addListener(t)},e.prototype.off=function(e,t){return M(this,e).removeListener(t)},e.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a]
|
|||
|
var l=M(this,e)
|
|||
|
l&&l.trigger.apply(l,pe(t))},e.prototype.safeGet=function(e,t){return e[t]},e.prototype.safeSet=function(e,t,a){return e[t]=a},Object.defineProperty(e.prototype,"_bareChanges",{get:function(){return d(this[be]).reduce((function(e,t){var a=t.key,l=t.value
|
|||
|
return e[a]=l,e}),Object.create(null))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changes",{get:function(){return d(this[be])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return u(this[ze])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"change",{get:function(){var e=this[be]
|
|||
|
return V(this[be])?H(e):{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this[ze]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this[ye]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){return 0===u(this[ze]).length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPristine",{get:function(){var e=Object.keys(this[be]),t=this[we].changesetKeys
|
|||
|
return Array.isArray(t)&&t.length&&(e=e.filter((function(e){return t.includes(e)}))),0===e.length||!V(this[be])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInvalid",{get:function(){return!this.isValid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDirty",{get:function(){return!this.isPristine},enumerable:!1,configurable:!0}),e.prototype.setUnknownProperty=function(e,t){var a=this[we],l=a.changesetKeys
|
|||
|
if(!(Array.isArray(l)&&l.length>0)||l.find((function(t){return e.match(t)}))){var i=this[ye],o=this.safeGet(i,e)
|
|||
|
if(a.skipValidate)return this._setProperty({key:e,value:t,oldValue:o}),void this._handleValidation(!0,{key:e,value:t})
|
|||
|
this._setProperty({key:e,value:t,oldValue:o}),this._validateKey(e,t)}},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"changeset:"+_(this[ye],{}).toString()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"changeset:"+_(this[ye],{}).toString()},e.prototype.prepare=function(e){var t=e(this._bareChanges)
|
|||
|
if(Le("Callback to `changeset.prepare` must return an object",this.isObject(t)),this.isObject(t)){var a=me(t).reduce((function(e,a){return e[a]=new o(t[a]),e}),{})
|
|||
|
this[be]=a}return this},e.prototype.execute=function(){var e
|
|||
|
if(this.isValid&&this.isDirty){var t=this[ye],a=this[be]
|
|||
|
e=W(t,this.changes,this.getDeep),this[ye]=this.mergeDeep(t,a)}return this.trigger("execute"),this[be]={},this[ge]=e,this},e.prototype.unexecute=function(){return this[ge]&&(this[ye]=this.mergeDeep(this[ye],this[ge],{safeGet:this.safeGet,safeSet:this.safeSet})),this},e.prototype.save=function(e){return ue(this,void 0,void 0,(function(){var t,a,l,i
|
|||
|
return fe(this,(function(o){switch(o.label){case 0:t=this[ye],a=Promise.resolve(this),this.execute(),"function"==typeof t.save?a=t.save(e):"function"==typeof this.safeGet(t,"save")&&(l=this.maybeUnwrapProxy(t).save())&&(a=l),o.label=1
|
|||
|
case 1:return o.trys.push([1,3,,4]),[4,a]
|
|||
|
case 2:return i=o.sent(),this.rollback(),[2,i]
|
|||
|
case 3:throw o.sent()
|
|||
|
case 4:return[2]}}))}))},e.prototype.merge=function(e){var t=this[ye]
|
|||
|
if(Le("Cannot merge with a non-changeset",S(e)),Le("Cannot merge with a changeset of different content",e[ye]===t),this.isPristine&&e.isPristine)return this
|
|||
|
var a=this[be],l=e[be],i=this[ze],o=e[ze],n=new De(t,this[Ae]),r=he(me(l),i),c=he(me(o),a),h=Y(r,o),s=Y(c,l)
|
|||
|
return n[ze]=h,n[be]=s,n._notifyVirtualProperties(),n},e.prototype.rollback=function(){var e=this._rollbackKeys()
|
|||
|
return this[be]={},this[ze]={},this[Me]={},this._notifyVirtualProperties(e),this.trigger("afterRollback"),this},e.prototype.rollbackInvalid=function(e){var t=this,a=me(this[ze])
|
|||
|
return e?(this._notifyVirtualProperties([e]),this[ze]=this._deleteKey(ze,e),this[Me]=this[ze],a.indexOf(e)>-1&&(this[be]=this._deleteKey(be,e))):(this._notifyVirtualProperties(),this[ze]={},this[Me]=this[ze],a.forEach((function(e){t[be]=t._deleteKey(be,e)}))),this},e.prototype.rollbackProperty=function(e){return this[be]=this._deleteKey(be,e),this[ze]=this._deleteKey(ze,e),this[Me]=this[ze],this},e.prototype.validate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
|
|||
|
return ue(this,void 0,void 0,(function(){var t,a=this
|
|||
|
return fe(this,(function(l){return 0!==me(this.validationMap).length||e.length?(e=e.length>0?e:me(k(this.validationMap)),t=e.map((function(e){var t=a[e],l=t instanceof ce?t.unwrap():t
|
|||
|
return a._validateKey(e,l)})),[2,Promise.all(t)]):[2,Promise.resolve(null)]}))}))},e.prototype.addError=function(e,t){var a,l=this
|
|||
|
if(function(e){return l.isObject(e)&&!Array.isArray(e)}(t))Le("Error must have value.",t.hasOwnProperty("value")||void 0!==t.value),Le("Error must have validation.",t.hasOwnProperty("validation")),a=new c(t.value,t.validation)
|
|||
|
else{var i=this[e]
|
|||
|
a=new c(i,t)}var o=this[ze]
|
|||
|
return this[ze]=this.setDeep(o,e,a,{safeSet:this.safeSet}),this[Me]=this[ze],t},e.prototype.pushErrors=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a]
|
|||
|
var l=this[ze],i=this.getDeep(l,e)||new c(null,[]),o=i.validation,n=this[e]
|
|||
|
!Array.isArray(o)&&Boolean(o)&&(i.validation=[o])
|
|||
|
var r=i.validation
|
|||
|
o=pe(r,t)
|
|||
|
var h=new c(n,o)
|
|||
|
return this[ze]=this.setDeep(l,e,h,{safeSet:this.safeSet}),this[Me]=this[ze],{value:n,validation:o}},e.prototype.snapshot=function(){var e=this[be],t=this[ze]
|
|||
|
return{changes:me(e).reduce((function(t,a){return t[a]=r(e[a]),t}),{}),errors:me(t).reduce((function(e,a){var l=t[a]
|
|||
|
return e[a]={value:l.value,validation:l.validation},e}),{})}},e.prototype.restore=function(e){var t=e.changes,a=e.errors,l=me(t).reduce((function(e,a){return e[a]=new o(t[a]),e}),{}),i=me(a).reduce((function(e,t){var l=a[t]
|
|||
|
return e[t]=new c(l.value,l.validation),e}),{})
|
|||
|
return this[be]=l,this[ze]=i,this[Me]=this[ze],this._notifyVirtualProperties(),this},e.prototype.cast=function(e){void 0===e&&(e=[])
|
|||
|
var t=this[be]
|
|||
|
if(Array.isArray(e)&&0===e.length)return this
|
|||
|
var a=se(t,me(t).filter((function(t){return e.includes(t)})))
|
|||
|
return this[be]=a,this},e.prototype.isValidating=function(e){var t=this[xe],a=me(t)
|
|||
|
return e?a.includes(e):a.length>0},e.prototype._validateKey=function(e,t){var a=this,l=this[ye],i=this.getDeep(l,e),o=this._validate(e,t,i)
|
|||
|
if(this.trigger("beforeValidation",e),f(o)){this._setIsValidating(e,o)
|
|||
|
var n=this[xe],r=Object.entries(n)
|
|||
|
return Promise.all(r).then((function(){return o.then((function(l){return delete n[e],a._handleValidation(l,{key:e,value:t})})).then((function(t){return a.trigger(He,e),t}))}))}var c=this._handleValidation(o,{key:e,value:t})
|
|||
|
return this.trigger(He,e),c},e.prototype._handleValidation=function(e,t){var a=t.key,l=t.value,i=!0===e||Array.isArray(e)&&1===e.length&&!0===e[0]
|
|||
|
return this[ze]=this._deleteKey(Me,a),i?l:this.addError(a,{value:l,validation:e})},e.prototype._validate=function(e,t,a){var l=this[Ae],i=this[ye]
|
|||
|
if("function"==typeof l){var o=l({key:e,newValue:t,oldValue:a,changes:this.change,content:i})
|
|||
|
return void 0===o||o}return!0},e.prototype._setProperty=function(e){var t,a,l=e.key,i=e.value,n=e.oldValue,r=this[be]
|
|||
|
if(a=n,((t=i)instanceof Date&&a instanceof Date?t.getTime()===a.getTime():t===a)&&void 0!==n)O(r,l)&&(this[be]=this._deleteKey(be,l))
|
|||
|
else{var c=this.setDeep(r,l,new o(i),{safeSet:this.safeSet})
|
|||
|
this[be]=c}},e.prototype._setIsValidating=function(e,t){var a=this[xe]
|
|||
|
this.setDeep(a,e,t)},e.prototype._notifyVirtualProperties=function(e){return e||(e=this._rollbackKeys()),e},e.prototype._rollbackKeys=function(){var e=this[be],t=this[ze]
|
|||
|
return pe(new Set(pe(me(e),me(t))))},e.prototype._deleteKey=function(e,t){void 0===t&&(t="")
|
|||
|
var a=this[e],l=t.split(".")
|
|||
|
if(1===l.length&&a.hasOwnProperty(t))delete a[t]
|
|||
|
else if(a[l[0]])for(var i=ve(l),o=i[0],r=i.slice(1),c=a,h=a[o],s=o;this.isObject(h)&&s;){var d=h;(n(d)||void 0!==d.value||d.validation)&&delete c[s],c=h,(s=r.shift())&&(h=h[s])}return a},e.prototype.get=function(e){var t=ve(e.split(".")),a=t[0],i=t.slice(1),o=this[be],c=this[ye]
|
|||
|
if(Object.prototype.hasOwnProperty.call(o,a)){var h=this.getDeep(o,e)
|
|||
|
if(!this.isObject(h)&&void 0!==h)return h}if(Object.prototype.hasOwnProperty.call(o,a)&&V(o)){var s=o[a],d=H(s)
|
|||
|
if(this.isObject(d)){var u=this.maybeUnwrapProxy(this.getDeep(d,i.join(".")))
|
|||
|
if(void 0===u&&function(e,t,a){var l,i
|
|||
|
if(n(e))return!1
|
|||
|
var o=t.split("."),r=e
|
|||
|
try{for(var c=w(o),h=c.next();!h.done;h=c.next()){var s=h.value
|
|||
|
if(!r)return!1
|
|||
|
if(o[o.length-1]!==s&&n(a(r,s)))return!0
|
|||
|
r=a(r,s)}}catch(e){l={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(l)throw l.error}}return!1}(o,e,this.safeGet)&&!function(e,t,a){var l,i,o=t.split("."),c=e
|
|||
|
try{for(var h=w(o),s=h.next();!s.done;s=h.next()){var d=s.value
|
|||
|
if(!c||!Object.prototype.hasOwnProperty.call(c,d))return!1
|
|||
|
c=a(c,d),n(c)&&(c=r(c))}}catch(e){l={error:e}}finally{try{s&&!s.done&&(i=h.return)&&i.call(h)}finally{if(l)throw l.error}}return!0}(o,e,this.safeGet)&&this.getDeep(c,e))return
|
|||
|
if(this.isObject(u)){if(n(u))return r(u)
|
|||
|
var f=this.safeGet(c,a)||{},v=this.getDeep(f,i.join(".")),p=function(e,t){var a=e
|
|||
|
if(-1===t.indexOf("."))return a[t]
|
|||
|
for(var l="string"==typeof t?t.split("."):t,i=0;i<l.length;i++){if(null==a)return
|
|||
|
a=n(a[l[i]])?r(a[l[i]]):a[l[i]]}return a}(o,e)
|
|||
|
return new ce(p,v,this.getDeep,this.isObject).proxy}if(void 0!==u)return u}if(n(s)&&0===i.length)return r(s)}if(a in this||e in this)return this.getDeep(this,e)
|
|||
|
var m=this.maybeUnwrapProxy(this.getDeep(c,e))
|
|||
|
if(this.isObject(m))return(p=this.getDeep(o,e))||(p=this.getDeep(this.setDeep(o,e,{}),e)),new ce(p,m,this.getDeep,this.isObject).proxy
|
|||
|
if(Array.isArray(m)){if(!(p=this.getDeep(o,e)))return m
|
|||
|
if(l(p)){if(l(m))return p=H(p,this.isObject),de(de({},m),p)
|
|||
|
if(Array.isArray(m))return p=H(p,this.isObject),R(ie(U(m),p))}return p}return m},e.prototype.set=function(e,t){this.hasOwnProperty(e)||O(this,e)?this[e]=t:this.setUnknownProperty(e,t)},e}()
|
|||
|
function ke(e,t,a,l){return new Ee(e,t,a,l)}var De=function(e,t,a,l){var i=ke(e,t,a,l)
|
|||
|
return new Proxy(i,{get:function(e,t){return e.get(t.toString())},set:function(e,t,a){return e.set(t.toString(),a),!0}})}
|
|||
|
function Se(e,t,a,l){var i=ke(e,t,a,l)
|
|||
|
return new Proxy(i,{get:function(e,t){return e.get(t.toString())},set:function(e,t,a){return e.set(t.toString(),a),!0}})}},7116:(e,t,a)=>{var l=a(4977),i=a(5689)
|
|||
|
e.exports=function e(t){if(!(this instanceof e))return new e(t)
|
|||
|
var a=(t||"").replace(/^\//,""),o=i()
|
|||
|
return n._trie=o,n.on=function(e,t){if(l.equal(typeof e,"string"),l.equal(typeof t,"function"),e=e||"/",t._wayfarer&&t._trie)o.mount(e,t._trie.trie)
|
|||
|
else{var a=o.create(e)
|
|||
|
a.cb=t,a.route=e}return n},n.emit=n,n.match=r,n._wayfarer=!0,n
|
|||
|
function n(e){var t=r(e),a=new Array(arguments.length)
|
|||
|
a[0]=t.params
|
|||
|
for(var l=1;l<a.length;l++)a[l]=arguments[l]
|
|||
|
return t.cb.apply(t.cb,a)}function r(e){l.notEqual(e,void 0,"'route' must be defined")
|
|||
|
var t=o.match(e)
|
|||
|
if(t&&t.cb)return new c(t)
|
|||
|
var i=o.match(a)
|
|||
|
if(i&&i.cb)return new c(i)
|
|||
|
throw new Error("route '"+e+"' did not match")}function c(e){this.cb=e.cb,this.route=e.route,this.params=e.params}}},5689:(e,t,a)=>{var l=a(4977)
|
|||
|
function i(){if(!(this instanceof i))return new i
|
|||
|
this.trie={nodes:{}}}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=i,i.prototype.create=function(e){l.equal(typeof e,"string","route should be a string")
|
|||
|
var t=e.replace(/^\//,"").split("/")
|
|||
|
return function e(a,l){var i=o(t,a)&&t[a]
|
|||
|
if(!1===i)return l
|
|||
|
var n=null
|
|||
|
return/^:|^\*/.test(i)?(o(l.nodes,"$$")?n=l.nodes.$$:(n={nodes:{}},l.nodes.$$=n),"*"===i[0]&&(l.wildcard=!0),l.name=i.replace(/^:|^\*/,"")):o(l.nodes,i)?n=l.nodes[i]:(n={nodes:{}},l.nodes[i]=n),e(a+1,n)}(0,this.trie)},i.prototype.match=function(e){l.equal(typeof e,"string","route should be a string")
|
|||
|
var t=e.replace(/^\//,"").split("/"),a={},i=function e(l,i){if(void 0!==i){var n=t[l]
|
|||
|
if(void 0===n)return i
|
|||
|
if(o(i.nodes,n))return e(l+1,i.nodes[n])
|
|||
|
if(i.name){try{a[i.name]=decodeURIComponent(n)}catch(t){return e(l,void 0)}return e(l+1,i.nodes.$$)}if(i.wildcard){try{a.wildcard=decodeURIComponent(t.slice(l).join("/"))}catch(t){return e(l,void 0)}return i.nodes.$$}return e(l+1)}}(0,this.trie)
|
|||
|
if(i)return(i=Object.assign({},i)).params=a,i},i.prototype.mount=function(e,t){l.equal(typeof e,"string","route should be a string"),l.equal(typeof t,"object","trie should be a object")
|
|||
|
var a=e.replace(/^\//,"").split("/"),i=null,o=null
|
|||
|
if(1===a.length)o=a[0],i=this.create(o)
|
|||
|
else{var n=a.join("/")
|
|||
|
o=a[0],i=this.create(n)}Object.assign(i.nodes,t.nodes),t.name&&(i.name=t.name),i.nodes[""]&&(Object.keys(i.nodes[""]).forEach((function(e){"nodes"!==e&&(i[e]=i.nodes[""][e])})),Object.assign(i.nodes,i.nodes[""].nodes),delete i.nodes[""].nodes)}},2959:(e,t,a)=>{"use strict"
|
|||
|
a.r(t)},8531:(e,t,a)=>{"use strict"
|
|||
|
a.r(t),a.d(t,{CSSResult:()=>r,ReactiveElement:()=>z,adoptStyles:()=>s,css:()=>h,defaultConverter:()=>y,getCompatibleStyle:()=>d,notEqual:()=>g,supportsAdoptingStyleSheets:()=>i,unsafeCSS:()=>c})
|
|||
|
const l=window,i=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap
|
|||
|
class r{constructor(e,t,a){if(this._$cssResult$=!0,a!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.")
|
|||
|
this.cssText=e,this.t=t}get styleSheet(){let e=this.o
|
|||
|
const t=this.t
|
|||
|
if(i&&void 0===e){const a=void 0!==t&&1===t.length
|
|||
|
a&&(e=n.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&n.set(t,e))}return e}toString(){return this.cssText}}const c=e=>new r("string"==typeof e?e:e+"",void 0,o),h=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l]
|
|||
|
const i=1===e.length?e[0]:a.reduce(((t,a,l)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText
|
|||
|
if("number"==typeof e)return e
|
|||
|
throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+e[l+1]),e[0])
|
|||
|
return new r(i,e,o)},s=(e,t)=>{i?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const a=document.createElement("style"),i=l.litNonce
|
|||
|
void 0!==i&&a.setAttribute("nonce",i),a.textContent=t.cssText,e.appendChild(a)}))},d=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=""
|
|||
|
for(const a of e.cssRules)t+=a.cssText
|
|||
|
return c(t)})(e):e
|
|||
|
var u
|
|||
|
const f=window,v=f.trustedTypes,p=v?v.emptyScript:"",m=f.reactiveElementPolyfillSupport,y={toAttribute(e,t){switch(t){case Boolean:e=e?p:null
|
|||
|
break
|
|||
|
case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let a=e
|
|||
|
switch(t){case Boolean:a=null!==e
|
|||
|
break
|
|||
|
case Number:a=null===e?null:Number(e)
|
|||
|
break
|
|||
|
case Object:case Array:try{a=JSON.parse(e)}catch(e){a=null}}return a}},g=(e,t)=>t!==e&&(t==t||e==e),b={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:g}
|
|||
|
class z extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t
|
|||
|
this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize()
|
|||
|
const e=[]
|
|||
|
return this.elementProperties.forEach(((t,a)=>{const l=this._$Ep(a,t)
|
|||
|
void 0!==l&&(this._$Ev.set(l,a),e.push(l))})),e}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b
|
|||
|
if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const a="symbol"==typeof e?Symbol():"__"+e,l=this.getPropertyDescriptor(e,a,t)
|
|||
|
void 0!==l&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,t,a){return{get(){return this[t]},set(l){const i=this[e]
|
|||
|
this[t]=l,this.requestUpdate(e,i,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||b}static finalize(){if(this.hasOwnProperty("finalized"))return!1
|
|||
|
this.finalized=!0
|
|||
|
const e=Object.getPrototypeOf(this)
|
|||
|
if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]
|
|||
|
for(const a of t)this.createProperty(a,e[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[]
|
|||
|
if(Array.isArray(e)){const a=new Set(e.flat(1/0).reverse())
|
|||
|
for(const e of a)t.unshift(d(e))}else void 0!==e&&t.push(d(e))
|
|||
|
return t}static _$Ep(e,t){const a=t.attribute
|
|||
|
return!1===a?void 0:"string"==typeof a?a:"string"==typeof e?e.toLowerCase():void 0}u(){var e
|
|||
|
this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,a;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(a=e.hostConnected)||void 0===a||a.call(e))}removeController(e){var t
|
|||
|
null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e
|
|||
|
const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions)
|
|||
|
return s(t,this.constructor.elementStyles),t}connectedCallback(){var e
|
|||
|
void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t
|
|||
|
return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e
|
|||
|
null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t
|
|||
|
return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,a){this._$AK(e,a)}_$EO(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b
|
|||
|
var l
|
|||
|
const i=this.constructor._$Ep(e,a)
|
|||
|
if(void 0!==i&&!0===a.reflect){const o=(void 0!==(null===(l=a.converter)||void 0===l?void 0:l.toAttribute)?a.converter:y).toAttribute(t,a.type)
|
|||
|
this._$El=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(e,t){var a
|
|||
|
const l=this.constructor,i=l._$Ev.get(e)
|
|||
|
if(void 0!==i&&this._$El!==i){const e=l.getPropertyOptions(i),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(a=e.converter)||void 0===a?void 0:a.fromAttribute)?e.converter:y
|
|||
|
this._$El=i,this[i]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,a){let l=!0
|
|||
|
void 0!==e&&(((a=a||this.constructor.getPropertyOptions(e)).hasChanged||g)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===a.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,a))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0
|
|||
|
try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate()
|
|||
|
return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e
|
|||
|
if(!this.isUpdatePending)return
|
|||
|
this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0)
|
|||
|
let t=!1
|
|||
|
const a=this._$AL
|
|||
|
try{t=this.shouldUpdate(a),t?(this.willUpdate(a),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t
|
|||
|
return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(a)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(a)}willUpdate(e){}_$AE(e){var t
|
|||
|
null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t
|
|||
|
return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:z}),(null!==(u=f.reactiveElementVersions)&&void 0!==u?u:f.reactiveElementVersions=[]).push("1.6.1")}}])
|