@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
10 lines (7 loc) • 113 kB
JavaScript
(function(X,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue"),require("@vueuse/core"),require("lodash-es"),require("echarts"),require("../progress/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","@vueuse/core","lodash-es","echarts","../progress/index.umd.js"],y):(X=typeof globalThis<"u"?globalThis:X||self,y(X.weather={},X.Vue,X.VueUseCore,X.LodashES,X.echarts,X.FProgress$1))})(this,function(X,y,wr,E0,kr,Sr){"use strict";function Nr(i){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const o in i)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(p,o,r.get?r:{enumerable:!0,get:()=>i[o]})}}return p.default=i,Object.freeze(p)}const i0=Nr(kr),ye={},me={};function S0(i){const{properties:p,title:o,ignore:r}=i,x=r&&Array.isArray(r),g=Object.keys(p).reduce((A,B)=>((!x||!r.find(C=>C===B))&&(A[B]=p[B].type==="object"&&p[B].properties?S0(p[B]):E0.cloneDeep(p[B].default)),A),{});if(o&&(!x||!r.find(A=>A==="id"))){const A=o.toLowerCase().replace(/-/g,"_");g.id=`${A}_${Math.random().toString().slice(2,6)}`}return g}function Pr(i){const{properties:p,title:o,required:r}=i;if(r&&Array.isArray(r)){const x=r.reduce((g,A)=>(g[A]=p[A].type==="object"&&p[A].properties?S0(p[A]):E0.cloneDeep(p[A].default),g),{});if(o&&r.find(g=>g==="id")){const g=o.toLowerCase().replace(/-/g,"_");x.id=`${g}_${Math.random().toString().slice(2,6)}`}return x}return{type:o}}function Ee(i,p={},o){const r=ye[i];if(r){let x=Pr(r);const g=me[i];return x=g?g({getSchemaByType:Ee},x,p,o):x,x}return null}function Hr(i,p){const o=S0(p);return Object.keys(o).reduce((r,x)=>(Object.prototype.hasOwnProperty.call(i,x)&&(r[x]&&E0.isPlainObject(r[x])&&E0.isPlainObject(i[x]||!i[x])?Object.assign(r[x],i[x]||{}):r[x]=i[x]),r),o),o}function Ae(i,p){return Object.keys(i).filter(r=>i[r]!=null).reduce((r,x)=>{if(p.has(x)){const g=p.get(x);if(typeof g=="string")r[g]=i[x];else{const A=g(x,i[x],i);Object.assign(r,A)}}else r[x]=i[x];return r},{})}function Rr(i,p,o=new Map){const r=Hr(i,p);return Ae(r,o)}function Tr(i={}){function p(e,t,u,n){if(typeof u=="number")return n[e].length===u;if(typeof u=="object"){const c=Object.keys(u)[0],f=u[c];if(c==="not")return Number(n[e].length)!==Number(f);if(c==="moreThan")return Number(n[e].length)>=Number(f);if(c==="lessThan")return Number(n[e].length)<=Number(f)}return!1}function o(e,t,u,n){return n[e]&&n[e].propertyValue&&String(n[e].propertyValue.value)===String(u)}const r=new Map([["length",p],["getProperty",o]]);Object.keys(i).reduce((e,t)=>(e.set(t,i[t]),e),r);function x(e,t){const u=e;return typeof t=="number"?[{target:u,operator:"length",param:null,value:Number(t)}]:typeof t=="boolean"?[{target:u,operator:"getProperty",param:e,value:!!t}]:typeof t=="object"?Object.keys(t).map(n=>{if(n==="length")return{target:u,operator:"length",param:null,value:t[n]};const c=n,f=t[n];return{target:u,operator:"getProperty",param:c,value:f}}):[]}function g(e){return Object.keys(e).reduce((u,n)=>{const c=x(n,e[n]);return u.push(...c),u},[])}function A(e,t){if(r.has(e.operator)){const u=r.get(e.operator);return u&&u(e.target,e.param,e.value,t)||!1}return!1}function B(e,t){return g(e).reduce((c,f)=>c&&A(f,t),!0)}function C(e,t){const u=Object.keys(e),n=u.includes("allOf"),c=u.includes("anyOf"),f=n||c,d=(f?e[f?n?"allOf":"anyOf":"allOf"]:[e]).map(s=>B(s,t));return n?!d.includes(!1):d.includes(!0)}return{parseValueSchema:C}}const Vr={},Wr={};Tr();function Fe(i,p,o=new Map,r=(A,B,C,e)=>B,x={},g=A=>A){return ye[p.title]=p,me[p.title]=r,Vr[p.title]=x,Wr[p.title]=g,(A={},B=!0)=>{if(!B)return Ae(A,o);const C=Rr(A,p,o),e=Object.keys(i).reduce((t,u)=>(t[u]=i[u].default,t),{});return Object.assign(e,C)}}function De(i,p){return{customClass:p.class,customStyle:p.style}}const zr=new Map([["appearance",De]]);function qr(i,p,o){return p}const $r={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/weather.schema.json",title:"weather",description:"A Farris Input Component",type:"object",properties:{id:{description:"The unique identifier for a weather",type:"string"},type:{description:"The type string of weather component",type:"string",default:"weather"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}}},required:["id","type"]},Or={title:"weather",description:"A Farris Component",type:"object",categories:{basic:{description:"Basic Infomation",title:"基本信息",properties:{id:{description:"组件标识",title:"标识",type:"string",readonly:!0},type:{description:"组件类型",title:"控件类型",type:"select",editor:{type:"waiting for modification",enum:[]}}}}}},jr={cityItems:{type:Array,default:[{province:"北京",city:["北京"]},{province:"山东",city:["济南","青岛"]},{province:"黑龙江",city:["牡丹江","齐齐哈尔"]}]},themeItems:{type:Array,default:[{title:"school",adviceItems:["clothes","sports","sunscreen"]},{title:"office",adviceItems:["clothes","traffic","umbrella"]},{title:"construction",adviceItems:["clothes","chill","heatstroke"]},{title:"tourism",adviceItems:["clothes","sunscreen","tourism"]}]},data:{type:Object,default:{sunriseTime:y.ref(new Date),sunsetTime:y.ref(new Date),temperature:y.ref(0),max:y.ref(0),min:y.ref(0),weather:y.ref("阴"),air:y.ref(0),adviceItems:[{key:"clothes",value:{name:"穿衣",info:"毛衣",detail:"建议穿长袖毛衣等服装。"}},{key:"sports",value:{name:"运动",info:"适宜",detail:"各项气象条件都很好,很适合户外运动。"}},{key:"sunscreen",value:{name:"防晒",info:"强",detail:"建议涂抹SPF在15-20之间,PA++的防晒护肤品。"}},{key:"traffic",value:{name:"交通",info:"良好",detail:"天气较好,路面干燥,交通气象条件良好,车辆可以正常行驶。"}},{key:"umbrella",value:{name:"雨伞",info:"不带伞",detail:"天气较好,您在出门的时候无须带雨伞。"}},{key:"chill",value:{name:"风寒",info:"无",detail:"温度未达到风寒所需的低温,稍作防寒准备即可。"}},{key:"heatstroke",value:{name:"中暑",info:"无中暑风险",detail:"天气不热,在炎炎夏日中十分难得,可以告别暑气漫漫啦~"}},{key:"tourism",value:{name:"旅游",info:"适宜",detail:"天气较好,温度适宜,是个好天气哦。这样的天气适宜旅游,您可以尽情地享受大自然的风光。"}}],proindexItemsSet:[[{title:"紫外线",icon:"UV",value:"中等",info:"16:00前注意防晒",explain:"紫外线指数(UVI)测量紫外线辐射。UVI越高,潜在伤害就越大,造成伤害的速度也越快。"},{title:"降水量",icon:"rainfall",value:"0mm",info:"过去24小时",explain:"降水量,是指12或24小时内降雨(雪)量的总和。"}],[{title:"湿度",icon:"humidity",value:"31%",info:"露点温度为4°",explain:"空气中含水量与空气可容纳水量的比值。气温越高,空气可容纳的水量就越多。湿度高意味着可能结露或起雾。"},{title:"体感温度",icon:"apparentTemp",value:"14°",info:"风较大,体感更凉",explain:"体感温度传达身体感觉有多暖或多冷,可能与实际温度不同。体感温度受湿度和风影响。"}],[{title:"气压",icon:"pressure",value:"1010mpa",info:"当前气压较稳定",explain:"气压的显著急剧变化用于预测天气变化。例如,气压降低表示雨雪即将来临,升高则表示天气将好转。"},{title:"能见度",icon:"visibility",value:"19km",info:"目前非常好",explain:"能见度会告诉你可以清晰地看到多远以外的物体。能见度测量大气透明度,不考虑光照强度或障碍物。"}]],dayItemsSet:[[{icon:"sunny",temp:15},{icon:"sunny",temp:16},{icon:"sunny",temp:20},{icon:"sunny",temp:22},{icon:"sunny",temp:24},{icon:"cloudy",temp:23},{icon:"cloudy",temp:20},{icon:"cloudy",temp:19},{icon:"cloudy",temp:19},{icon:"cloudy",temp:18},{icon:"rainy1",temp:18},{icon:"rainy1",temp:17},{icon:"rainy1",temp:15},{icon:"rainy1",temp:15},{icon:"rainy2",temp:15},{icon:"rainy2",temp:15},{icon:"rainy2",temp:15},{icon:"sunny",temp:15},{icon:"sunny",temp:15},{icon:"sunny",temp:18},{icon:"sunny",temp:19},{icon:"sunny",temp:19},{icon:"sunny",temp:20},{icon:"sunny",temp:20}],[{icon:"rainy2",temp:15},{icon:"rainy2",temp:15},{icon:"rainy2",temp:15},{icon:"sunny",temp:15},{icon:"sunny",temp:15},{icon:"sunny",temp:18},{icon:"sunny",temp:19},{icon:"sunny",temp:19},{icon:"sunny",temp:20},{icon:"sunny",temp:20},{icon:"rainy2",temp:21},{icon:"rainy2",temp:21},{icon:"rainy2",temp:21},{icon:"sunny",temp:21},{icon:"sunny",temp:22},{icon:"sunny",temp:24},{icon:"sunny",temp:24},{icon:"sunny",temp:23},{icon:"sunny",temp:20},{icon:"sunny",temp:20},{icon:"sunny",temp:19},{icon:"sunny",temp:19},{icon:"sunny",temp:15},{icon:"sunny",temp:15}]],weekItems:[{icon:"rainy1",max:24,min:15},{icon:"rainy2",max:24,min:15},{icon:"foggy",max:26,min:11},{icon:"cloudy",max:22,min:7},{icon:"snowy1",max:10,min:3},{icon:"sunny",max:19,min:5},{icon:"snowy2",max:10,min:4}]}}},A0={data:{type:Object,default:jr},theme:{type:Number,default:1}},N0=Fe(A0,$r,zr,qr,Or);function be(i,p){function o(r){return r<10?"0"+r:r}return{addZero:o}}function F0(i,p){const o=y.ref(i.data.data);return{colorTheme:y.computed(()=>new Date().getTime()-o.value.default.sunriseTime.getTime()<0||o.value.default.sunsetTime.getTime()-new Date().getTime()<0?["#151276","#7939e0","#332396","#814ca7"]:new Date().getTime()-o.value.default.sunriseTime.getTime()<36e5?["#49417b","#f1b655","#b1785b","#d99877"]:o.value.default.sunsetTime.getTime()-new Date().getTime()<36e5?["#9e2e2e","#f59b0b","#c15334","#ff7361"]:["#0273D7","#76BAFF","#388FFF","#75C6FE"])}}function P0(i,p){const o=y.ref(i.data.data),r=F0(i);function x(){let e=i0.getInstanceByDom(document.getElementById("sunset"));e||(e=i0.init(document.getElementById("sunset"),null,{height:170,width:380})),e.setOption({series:[{data:[{value:new Date().getTime()-o.value.default.sunriseTime.getTime(),itemStyle:{borderRadius:10,color:{type:"linear",x:1,y:0,x2:0,y2:0,colorStops:[{offset:1,color:r.colorTheme.value?r.colorTheme.value[3]:"white"},{offset:0,color:"white"}]}}},{value:o.value.default.sunsetTime.getTime()-new Date().getTime(),itemStyle:{opacity:0}}],type:"pie",center:["50%","100%"],radius:["200%","190%"],startAngle:180,endAngle:360,label:{show:!1},emphasis:{scale:!1},emptyCircleStyle:{borderType:"dashed"}},{type:"gauge",center:["50%","100%"],radius:"220%",startAngle:180,endAngle:360,axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitNumber:20,splitLine:{length:3,lineStyle:{width:10,color:"white"}}}]})}function g(e){let t=i0.getInstanceByDom(document.getElementById("chart24h"));t||(t=i0.init(document.getElementById("chart24h"),null,{width:1885,height:75})),t.setOption({xAxis:{type:"category",show:!1},yAxis:{type:"value",show:!1},series:[{data:o.value.default.dayItemsSet[e].map(u=>u.temp),type:"line",itemStyle:{color:"white"}}]})}function A(){const e=document.getElementById("background");if(e){const t=e.getBoundingClientRect().width,u=Math.max(t,400)*1.11;let n=i0.getInstanceByDom(document.getElementById("chart7d"));n?n.resize({width:u,height:90}):n=i0.init(document.getElementById("chart7d"),null,{width:u,height:90}),n.setOption({grid:{left:0},xAxis:{type:"category",show:!1},yAxis:{type:"value",show:!1},series:[{data:o.value.default.weekItems.map(c=>c.min),type:"line",itemStyle:{color:"#5C90F9"}},{data:o.value.default.weekItems.map(c=>c.max),type:"line",itemStyle:{color:"#FC9657"}}]})}}function B(){const e=document.getElementById("airPoint"),t=document.getElementById("background");e&&t&&(e.style.marginLeft=o.value.default.air/500*(t.getBoundingClientRect().width-50)-5+"px")}function C(e){x(),g(e),A(),B()}return{renderChart24h:g,renderChart7d:A,renderCharts:C}}function Ir(i,p){const o=y.ref(),r=y.ref(i.data.data),x=y.ref(0),g=be(),A=P0(i);function B(l){x.value=l}function C(l){switch(l){case 0:return"今天";case 1:return"明天";default:const d=new Date(new Date().getTime()+24*60*60*1e3*l).getDay(),a="周";switch(d){case 0:return a+"日";case 1:return a+"一";case 2:return a+"二";case 3:return a+"三";case 4:return a+"四";case 5:return a+"五";case 6:return a+"六"}break}}function e(l){const d=new Date(new Date().getTime()+864e5*l);return g.addZero(d.getMonth()+1)+"/"+g.addZero(d.getDate())}function t(){const d=o.value.getBoundingClientRect().width-120,a=document.getElementById("f-weather-24h-content");a&&(a.offsetLeft+d>-32?a.style.marginLeft="-32px":a.style.marginLeft=a.offsetLeft+d+"px")}function u(){const l=o.value.getBoundingClientRect().width,d=l-120,a=document.getElementById("f-weather-24h-content");if(a){const s=a.scrollWidth-l-130;a.offsetLeft-d<-s?a.style.marginLeft="-"+s+"px":a.style.marginLeft=a.offsetLeft-d+"px"}}function n(l,d){if(l===0){const a=new Date;return d===0?"现在":g.addZero((a.getHours()+d)%24)}else return g.addZero(d)}y.watch(x,()=>{const l=document.getElementById("f-weather-24h-content");l.style.marginLeft="-32px",A.renderChart24h(x.value)});function c(){return y.createVNode("div",{class:"f-weather-24h-container"},[y.createVNode("div",{class:"f-weather-24h-title"},[y.createTextVNode("24小时天气预报")]),y.createVNode("div",{class:"f-weather-lrbutton-container"},[y.createVNode("img",{src:"/components/weather/src/image/arrow-left.png",class:"f-weather-lrbutton-l",onClick:t},null),y.createVNode("img",{src:"/components/weather/src/image/arrow-right.png",class:"f-weather-lrbutton-r",onClick:u},null)]),y.createVNode("div",{class:"f-weather-24h-content-scroll"},[y.createVNode("div",{id:"f-weather-24h-content"},[r.value.default.dayItemsSet.map((l,d)=>d===x.value?y.createVNode("div",null,[y.createVNode("tr",{id:"report"+d,class:"f-weather-24h-tr"},[l.map((a,s)=>y.createVNode("td",{class:"f-weather-24h-td"},[y.createVNode("div",null,[n(d,s)]),y.createVNode("img",{src:"http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/"+a.icon+".png",class:"f-weather-24h-img"},null),y.createVNode("div",null,[a.temp+"°"])]))])]):""),y.createVNode("div",{id:"chart24h",class:"f-weather-chart24h"},null)])])])}function f(){return y.createVNode("div",{class:"f-weather-7d-container"},[y.createVNode("div",{class:"f-weather-7d-title"},[y.createTextVNode("七日天气预报")]),y.createVNode("tr",{class:"f-weather-7d-tr"},[r.value.default.weekItems.map((l,d)=>y.createVNode("td",{id:"day"+d,class:"f-weather-7d-td",style:"background-color: "+(d===x.value?"rgba(0, 0, 0, 0.05)":"none"),onClick:()=>B(d)},[y.createVNode("div",{class:"f-weather-7d-td-title"},[C(d)]),y.createVNode("div",{class:"f-weather-7d-td-date"},[e(d)]),y.createVNode("img",{src:"http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/"+l.icon+".png",class:"f-weather-7d-td-img"},null),y.createVNode("div",{class:"f-weather-7d-td-margin"},[l.max+"°"]),y.createVNode("div",null,[l.min+"°"])]))]),y.createVNode("div",{id:"chart7d",class:"f-weather-chart7d"},null)])}function h(){return y.createVNode("div",{ref:o},[c(),f()])}return{renderWeatherReport:h}}function Lr(i,p){const o=y.ref(i.data.data);function r(){return y.createVNode("div",null,[o.value.default.proindexItemsSet.map(x=>y.createVNode("tr",{class:"f-weather-proindex-tr"},[x.map(g=>y.createVNode("td",{class:"f-weather-proindex-td"},[y.createVNode("div",{class:"f-weather-proindex-content-scroll"},[y.createVNode("div",{class:"f-weather-proindex-content"},[y.createVNode("img",{src:"/components/weather/src/image/proindexImage/"+g.icon+".png",class:"f-weather-proindex-icon"},null),y.createVNode("div",{class:"f-weather-proindex-text"},[y.createVNode("div",{class:"f-weather-proindex-title"},[g.title]),y.createVNode("div",{class:"f-weather-proindex-value"},[g.value])]),y.createVNode("div",{class:"f-weather-proindex-line"},null),y.createVNode("br",null,null),y.createVNode("div",{class:"f-weather-proindex-info"},[g.info]),y.createVNode("br",null,null),y.createVNode("div",null,[g.explain])])])]))]))])}return{renderWeatherProindex:r}}function Mr(i,p){const o=y.ref(!0),r=F0(i),{renderWeatherReport:x}=Ir(i),{renderWeatherProindex:g}=Lr(i),A=y.computed(()=>({"background-color":o.value?r.colorTheme.value[2]:"",color:o.value?"white":""})),B=y.computed(()=>({"background-color":o.value?"":r.colorTheme.value[2],color:o.value?"":"white"})),C=y.computed(()=>({display:o.value?"block":"none"})),e=y.computed(()=>({display:o.value?"none":"block"}));function t(){o.value=!0}function u(){o.value=!1}function n(){return y.createVNode("div",{class:"f-weather-container f-weather-detail"},[y.createVNode("div",{style:"display:flex"},[y.createVNode("button",{class:"f-weather-button f-weather-button-report",style:A.value,onClick:t},[y.createTextVNode("天气预报")]),y.createVNode("button",{class:"f-weather-button f-weather-button-proindex",style:B.value,onClick:u},[y.createTextVNode("其它参数")])]),y.createVNode("div",{style:C.value},[x()]),y.createVNode("div",{style:e.value},[g()])])}return{renderWeatherDetail:n}}var W=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Ur(i){if(i.__esModule)return i;var p=i.default;if(typeof p=="function"){var o=function r(){return this instanceof r?Reflect.construct(p,arguments,this.constructor):p.apply(this,arguments)};o.prototype=p.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var x=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(o,r,x.get?x:{enumerable:!0,get:function(){return i[r]}})}),o}var H0={exports:{}},R0={exports:{}},f0=1e3,l0=f0*60,u0=l0*60,d0=u0*24,Gr=d0*365.25,Xr=function(i,p){p=p||{};var o=typeof i;if(o==="string"&&i.length>0)return Zr(i);if(o==="number"&&isNaN(i)===!1)return p.long?Kr(i):Yr(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function Zr(i){if(i=String(i),!(i.length>100)){var p=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(i);if(p){var o=parseFloat(p[1]),r=(p[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return o*Gr;case"days":case"day":case"d":return o*d0;case"hours":case"hour":case"hrs":case"hr":case"h":return o*u0;case"minutes":case"minute":case"mins":case"min":case"m":return o*l0;case"seconds":case"second":case"secs":case"sec":case"s":return o*f0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function Yr(i){return i>=d0?Math.round(i/d0)+"d":i>=u0?Math.round(i/u0)+"h":i>=l0?Math.round(i/l0)+"m":i>=f0?Math.round(i/f0)+"s":i+"ms"}function Kr(i){return D0(i,d0,"day")||D0(i,u0,"hour")||D0(i,l0,"minute")||D0(i,f0,"second")||i+" ms"}function D0(i,p,o){if(!(i<p))return i<p*1.5?Math.floor(i/p)+" "+o:Math.ceil(i/p)+" "+o+"s"}(function(i,p){p=i.exports=x.debug=x.default=x,p.coerce=C,p.disable=A,p.enable=g,p.enabled=B,p.humanize=Xr,p.names=[],p.skips=[],p.formatters={};var o;function r(e){var t=0,u;for(u in e)t=(t<<5)-t+e.charCodeAt(u),t|=0;return p.colors[Math.abs(t)%p.colors.length]}function x(e){function t(){if(t.enabled){var u=t,n=+new Date,c=n-(o||n);u.diff=c,u.prev=o,u.curr=n,o=n;for(var f=new Array(arguments.length),h=0;h<f.length;h++)f[h]=arguments[h];f[0]=p.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var l=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(a,s){if(a==="%%")return a;l++;var v=p.formatters[s];if(typeof v=="function"){var D=f[l];a=v.call(u,D),f.splice(l,1),l--}return a}),p.formatArgs.call(u,f);var d=t.log||p.log||console.log.bind(console);d.apply(u,f)}}return t.namespace=e,t.enabled=p.enabled(e),t.useColors=p.useColors(),t.color=r(e),typeof p.init=="function"&&p.init(t),t}function g(e){p.save(e),p.names=[],p.skips=[];for(var t=(typeof e=="string"?e:"").split(/[\s,]+/),u=t.length,n=0;n<u;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),e[0]==="-"?p.skips.push(new RegExp("^"+e.substr(1)+"$")):p.names.push(new RegExp("^"+e+"$")))}function A(){p.enable("")}function B(e){var t,u;for(t=0,u=p.skips.length;t<u;t++)if(p.skips[t].test(e))return!1;for(t=0,u=p.names.length;t<u;t++)if(p.names[t].test(e))return!0;return!1}function C(e){return e instanceof Error?e.stack||e.message:e}})(R0,R0.exports);var Qr=R0.exports;(function(i,p){p=i.exports=Qr,p.log=x,p.formatArgs=r,p.save=g,p.load=A,p.useColors=o,p.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:B(),p.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function o(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}p.formatters.j=function(C){try{return JSON.stringify(C)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function r(C){var e=this.useColors;if(C[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+C[0]+(e?"%c ":" ")+"+"+p.humanize(this.diff),!!e){var t="color: "+this.color;C.splice(1,0,t,"color: inherit");var u=0,n=0;C[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(u++,c==="%c"&&(n=u))}),C.splice(n,0,t)}}function x(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function g(C){try{C==null?p.storage.removeItem("debug"):p.storage.debug=C}catch{}}function A(){var C;try{C=p.storage.debug}catch{}return!C&&typeof process<"u"&&"env"in process&&(C=process.env.DEBUG),C}p.enable(A());function B(){try{return window.localStorage}catch{}}})(H0,H0.exports);var Jr=H0.exports,we=Jr("jsonp"),et=nt,rt=0;function tt(){}function nt(i,p,o){typeof p=="function"&&(o=p,p={}),p||(p={});var r=p.prefix||"__jp",x=p.name||r+rt++,g=p.param||"callback",A=p.timeout!=null?p.timeout:6e4,B=encodeURIComponent,C=document.getElementsByTagName("script")[0]||document.head,e,t;A&&(t=setTimeout(function(){u(),o&&o(new Error("Timeout"))},A));function u(){e.parentNode&&e.parentNode.removeChild(e),window[x]=tt,t&&clearTimeout(t)}function n(){window[x]&&u()}return window[x]=function(c){we("jsonp got",c),u(),o&&o(null,c)},i+=(~i.indexOf("?")?"&":"?")+g+"="+B(x),i=i.replace("?&","?"),we('jsonp req "%s"',i),e=document.createElement("script"),e.src=i,C.parentNode.insertBefore(e,C),n}const at=_e(et);var ke={exports:{}};function ot(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var T0={exports:{}};const it=Ur(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Se;function $(){return Se||(Se=1,function(i,p){(function(o,r){i.exports=r()})(W,function(){var o=o||function(r,x){var g;if(typeof window<"u"&&window.crypto&&(g=window.crypto),typeof self<"u"&&self.crypto&&(g=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(g=globalThis.crypto),!g&&typeof window<"u"&&window.msCrypto&&(g=window.msCrypto),!g&&typeof W<"u"&&W.crypto&&(g=W.crypto),!g&&typeof ot=="function")try{g=it}catch{}var A=function(){if(g){if(typeof g.getRandomValues=="function")try{return g.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof g.randomBytes=="function")try{return g.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},B=Object.create||function(){function a(){}return function(s){var v;return a.prototype=s,v=new a,a.prototype=null,v}}(),C={},e=C.lib={},t=e.Base=function(){return{extend:function(a){var s=B(this);return a&&s.mixIn(a),(!s.hasOwnProperty("init")||this.init===s.init)&&(s.init=function(){s.$super.init.apply(this,arguments)}),s.init.prototype=s,s.$super=this,s},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=e.WordArray=t.extend({init:function(a,s){a=this.words=a||[],s!=x?this.sigBytes=s:this.sigBytes=a.length*4},toString:function(a){return(a||c).stringify(this)},concat:function(a){var s=this.words,v=a.words,D=this.sigBytes,F=a.sigBytes;if(this.clamp(),D%4)for(var E=0;E<F;E++){var _=v[E>>>2]>>>24-E%4*8&255;s[D+E>>>2]|=_<<24-(D+E)%4*8}else for(var N=0;N<F;N+=4)s[D+N>>>2]=v[N>>>2];return this.sigBytes+=F,this},clamp:function(){var a=this.words,s=this.sigBytes;a[s>>>2]&=4294967295<<32-s%4*8,a.length=r.ceil(s/4)},clone:function(){var a=t.clone.call(this);return a.words=this.words.slice(0),a},random:function(a){for(var s=[],v=0;v<a;v+=4)s.push(A());return new u.init(s,a)}}),n=C.enc={},c=n.Hex={stringify:function(a){for(var s=a.words,v=a.sigBytes,D=[],F=0;F<v;F++){var E=s[F>>>2]>>>24-F%4*8&255;D.push((E>>>4).toString(16)),D.push((E&15).toString(16))}return D.join("")},parse:function(a){for(var s=a.length,v=[],D=0;D<s;D+=2)v[D>>>3]|=parseInt(a.substr(D,2),16)<<24-D%8*4;return new u.init(v,s/2)}},f=n.Latin1={stringify:function(a){for(var s=a.words,v=a.sigBytes,D=[],F=0;F<v;F++){var E=s[F>>>2]>>>24-F%4*8&255;D.push(String.fromCharCode(E))}return D.join("")},parse:function(a){for(var s=a.length,v=[],D=0;D<s;D++)v[D>>>2]|=(a.charCodeAt(D)&255)<<24-D%4*8;return new u.init(v,s)}},h=n.Utf8={stringify:function(a){try{return decodeURIComponent(escape(f.stringify(a)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(a){return f.parse(unescape(encodeURIComponent(a)))}},l=e.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(a){typeof a=="string"&&(a=h.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var s,v=this._data,D=v.words,F=v.sigBytes,E=this.blockSize,_=E*4,N=F/_;a?N=r.ceil(N):N=r.max((N|0)-this._minBufferSize,0);var m=N*E,b=r.min(m*4,F);if(m){for(var S=0;S<m;S+=E)this._doProcessBlock(D,S);s=D.splice(0,m),v.sigBytes-=b}return new u.init(s,b)},clone:function(){var a=t.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0});e.Hasher=l.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){a&&this._append(a);var s=this._doFinalize();return s},blockSize:16,_createHelper:function(a){return function(s,v){return new a.init(v).finalize(s)}},_createHmacHelper:function(a){return function(s,v){return new d.HMAC.init(a,v).finalize(s)}}});var d=C.algo={};return C}(Math);return o})}(T0)),T0.exports}var V0={exports:{}},Ne;function b0(){return Ne||(Ne=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,A=g.Base,B=g.WordArray,C=x.x64={};C.Word=A.extend({init:function(e,t){this.high=e,this.low=t}}),C.WordArray=A.extend({init:function(e,t){e=this.words=e||[],t!=r?this.sigBytes=t:this.sigBytes=e.length*8},toX32:function(){for(var e=this.words,t=e.length,u=[],n=0;n<t;n++){var c=e[n];u.push(c.high),u.push(c.low)}return B.create(u,this.sigBytes)},clone:function(){for(var e=A.clone.call(this),t=e.words=this.words.slice(0),u=t.length,n=0;n<u;n++)t[n]=t[n].clone();return e}})}(),o})}(V0)),V0.exports}var W0={exports:{}},Pe;function st(){return Pe||(Pe=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(){if(typeof ArrayBuffer=="function"){var r=o,x=r.lib,g=x.WordArray,A=g.init,B=g.init=function(C){if(C instanceof ArrayBuffer&&(C=new Uint8Array(C)),(C instanceof Int8Array||typeof Uint8ClampedArray<"u"&&C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array)&&(C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),C instanceof Uint8Array){for(var e=C.byteLength,t=[],u=0;u<e;u++)t[u>>>2]|=C[u]<<24-u%4*8;A.call(this,t,e)}else A.apply(this,arguments)};B.prototype=g}}(),o.lib.WordArray})}(W0)),W0.exports}var z0={exports:{}},He;function xt(){return He||(He=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,A=r.enc;A.Utf16=A.Utf16BE={stringify:function(C){for(var e=C.words,t=C.sigBytes,u=[],n=0;n<t;n+=2){var c=e[n>>>2]>>>16-n%4*8&65535;u.push(String.fromCharCode(c))}return u.join("")},parse:function(C){for(var e=C.length,t=[],u=0;u<e;u++)t[u>>>1]|=C.charCodeAt(u)<<16-u%2*16;return g.create(t,e*2)}},A.Utf16LE={stringify:function(C){for(var e=C.words,t=C.sigBytes,u=[],n=0;n<t;n+=2){var c=B(e[n>>>2]>>>16-n%4*8&65535);u.push(String.fromCharCode(c))}return u.join("")},parse:function(C){for(var e=C.length,t=[],u=0;u<e;u++)t[u>>>1]|=B(C.charCodeAt(u)<<16-u%2*16);return g.create(t,e*2)}};function B(C){return C<<8&4278255360|C>>>8&16711935}}(),o.enc.Utf16})}(z0)),z0.exports}var q0={exports:{}},Re;function a0(){return Re||(Re=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,A=r.enc;A.Base64={stringify:function(C){var e=C.words,t=C.sigBytes,u=this._map;C.clamp();for(var n=[],c=0;c<t;c+=3)for(var f=e[c>>>2]>>>24-c%4*8&255,h=e[c+1>>>2]>>>24-(c+1)%4*8&255,l=e[c+2>>>2]>>>24-(c+2)%4*8&255,d=f<<16|h<<8|l,a=0;a<4&&c+a*.75<t;a++)n.push(u.charAt(d>>>6*(3-a)&63));var s=u.charAt(64);if(s)for(;n.length%4;)n.push(s);return n.join("")},parse:function(C){var e=C.length,t=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var n=0;n<t.length;n++)u[t.charCodeAt(n)]=n}var c=t.charAt(64);if(c){var f=C.indexOf(c);f!==-1&&(e=f)}return B(C,e,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function B(C,e,t){for(var u=[],n=0,c=0;c<e;c++)if(c%4){var f=t[C.charCodeAt(c-1)]<<c%4*2,h=t[C.charCodeAt(c)]>>>6-c%4*2,l=f|h;u[n>>>2]|=l<<24-n%4*8,n++}return g.create(u,n)}}(),o.enc.Base64})}(q0)),q0.exports}var $0={exports:{}},Te;function ct(){return Te||(Te=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,A=r.enc;A.Base64url={stringify:function(C,e){e===void 0&&(e=!0);var t=C.words,u=C.sigBytes,n=e?this._safe_map:this._map;C.clamp();for(var c=[],f=0;f<u;f+=3)for(var h=t[f>>>2]>>>24-f%4*8&255,l=t[f+1>>>2]>>>24-(f+1)%4*8&255,d=t[f+2>>>2]>>>24-(f+2)%4*8&255,a=h<<16|l<<8|d,s=0;s<4&&f+s*.75<u;s++)c.push(n.charAt(a>>>6*(3-s)&63));var v=n.charAt(64);if(v)for(;c.length%4;)c.push(v);return c.join("")},parse:function(C,e){e===void 0&&(e=!0);var t=C.length,u=e?this._safe_map:this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var c=0;c<u.length;c++)n[u.charCodeAt(c)]=c}var f=u.charAt(64);if(f){var h=C.indexOf(f);h!==-1&&(t=h)}return B(C,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function B(C,e,t){for(var u=[],n=0,c=0;c<e;c++)if(c%4){var f=t[C.charCodeAt(c-1)]<<c%4*2,h=t[C.charCodeAt(c)]>>>6-c%4*2,l=f|h;u[n>>>2]|=l<<24-n%4*8,n++}return g.create(u,n)}}(),o.enc.Base64url})}($0)),$0.exports}var O0={exports:{}},Ve;function o0(){return Ve||(Ve=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,A=g.WordArray,B=g.Hasher,C=x.algo,e=[];(function(){for(var h=0;h<64;h++)e[h]=r.abs(r.sin(h+1))*4294967296|0})();var t=C.MD5=B.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,l){for(var d=0;d<16;d++){var a=l+d,s=h[a];h[a]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}var v=this._hash.words,D=h[l+0],F=h[l+1],E=h[l+2],_=h[l+3],N=h[l+4],m=h[l+5],b=h[l+6],S=h[l+7],w=h[l+8],T=h[l+9],V=h[l+10],z=h[l+11],M=h[l+12],O=h[l+13],I=h[l+14],j=h[l+15],k=v[0],H=v[1],R=v[2],P=v[3];k=u(k,H,R,P,D,7,e[0]),P=u(P,k,H,R,F,12,e[1]),R=u(R,P,k,H,E,17,e[2]),H=u(H,R,P,k,_,22,e[3]),k=u(k,H,R,P,N,7,e[4]),P=u(P,k,H,R,m,12,e[5]),R=u(R,P,k,H,b,17,e[6]),H=u(H,R,P,k,S,22,e[7]),k=u(k,H,R,P,w,7,e[8]),P=u(P,k,H,R,T,12,e[9]),R=u(R,P,k,H,V,17,e[10]),H=u(H,R,P,k,z,22,e[11]),k=u(k,H,R,P,M,7,e[12]),P=u(P,k,H,R,O,12,e[13]),R=u(R,P,k,H,I,17,e[14]),H=u(H,R,P,k,j,22,e[15]),k=n(k,H,R,P,F,5,e[16]),P=n(P,k,H,R,b,9,e[17]),R=n(R,P,k,H,z,14,e[18]),H=n(H,R,P,k,D,20,e[19]),k=n(k,H,R,P,m,5,e[20]),P=n(P,k,H,R,V,9,e[21]),R=n(R,P,k,H,j,14,e[22]),H=n(H,R,P,k,N,20,e[23]),k=n(k,H,R,P,T,5,e[24]),P=n(P,k,H,R,I,9,e[25]),R=n(R,P,k,H,_,14,e[26]),H=n(H,R,P,k,w,20,e[27]),k=n(k,H,R,P,O,5,e[28]),P=n(P,k,H,R,E,9,e[29]),R=n(R,P,k,H,S,14,e[30]),H=n(H,R,P,k,M,20,e[31]),k=c(k,H,R,P,m,4,e[32]),P=c(P,k,H,R,w,11,e[33]),R=c(R,P,k,H,z,16,e[34]),H=c(H,R,P,k,I,23,e[35]),k=c(k,H,R,P,F,4,e[36]),P=c(P,k,H,R,N,11,e[37]),R=c(R,P,k,H,S,16,e[38]),H=c(H,R,P,k,V,23,e[39]),k=c(k,H,R,P,O,4,e[40]),P=c(P,k,H,R,D,11,e[41]),R=c(R,P,k,H,_,16,e[42]),H=c(H,R,P,k,b,23,e[43]),k=c(k,H,R,P,T,4,e[44]),P=c(P,k,H,R,M,11,e[45]),R=c(R,P,k,H,j,16,e[46]),H=c(H,R,P,k,E,23,e[47]),k=f(k,H,R,P,D,6,e[48]),P=f(P,k,H,R,S,10,e[49]),R=f(R,P,k,H,I,15,e[50]),H=f(H,R,P,k,m,21,e[51]),k=f(k,H,R,P,M,6,e[52]),P=f(P,k,H,R,_,10,e[53]),R=f(R,P,k,H,V,15,e[54]),H=f(H,R,P,k,F,21,e[55]),k=f(k,H,R,P,w,6,e[56]),P=f(P,k,H,R,j,10,e[57]),R=f(R,P,k,H,b,15,e[58]),H=f(H,R,P,k,O,21,e[59]),k=f(k,H,R,P,N,6,e[60]),P=f(P,k,H,R,z,10,e[61]),R=f(R,P,k,H,E,15,e[62]),H=f(H,R,P,k,T,21,e[63]),v[0]=v[0]+k|0,v[1]=v[1]+H|0,v[2]=v[2]+R|0,v[3]=v[3]+P|0},_doFinalize:function(){var h=this._data,l=h.words,d=this._nDataBytes*8,a=h.sigBytes*8;l[a>>>5]|=128<<24-a%32;var s=r.floor(d/4294967296),v=d;l[(a+64>>>9<<4)+15]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,l[(a+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,h.sigBytes=(l.length+1)*4,this._process();for(var D=this._hash,F=D.words,E=0;E<4;E++){var _=F[E];F[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return D},clone:function(){var h=B.clone.call(this);return h._hash=this._hash.clone(),h}});function u(h,l,d,a,s,v,D){var F=h+(l&d|~l&a)+s+D;return(F<<v|F>>>32-v)+l}function n(h,l,d,a,s,v,D){var F=h+(l&a|d&~a)+s+D;return(F<<v|F>>>32-v)+l}function c(h,l,d,a,s,v,D){var F=h+(l^d^a)+s+D;return(F<<v|F>>>32-v)+l}function f(h,l,d,a,s,v,D){var F=h+(d^(l|~a))+s+D;return(F<<v|F>>>32-v)+l}x.MD5=B._createHelper(t),x.HmacMD5=B._createHmacHelper(t)}(Math),o.MD5})}(O0)),O0.exports}var j0={exports:{}},We;function ze(){return We||(We=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,A=x.Hasher,B=r.algo,C=[],e=B.SHA1=A.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,u){for(var n=this._hash.words,c=n[0],f=n[1],h=n[2],l=n[3],d=n[4],a=0;a<80;a++){if(a<16)C[a]=t[u+a]|0;else{var s=C[a-3]^C[a-8]^C[a-14]^C[a-16];C[a]=s<<1|s>>>31}var v=(c<<5|c>>>27)+d+C[a];a<20?v+=(f&h|~f&l)+1518500249:a<40?v+=(f^h^l)+1859775393:a<60?v+=(f&h|f&l|h&l)-1894007588:v+=(f^h^l)-899497514,d=l,l=h,h=f<<30|f>>>2,f=c,c=v}n[0]=n[0]+c|0,n[1]=n[1]+f|0,n[2]=n[2]+h|0,n[3]=n[3]+l|0,n[4]=n[4]+d|0},_doFinalize:function(){var t=this._data,u=t.words,n=this._nDataBytes*8,c=t.sigBytes*8;return u[c>>>5]|=128<<24-c%32,u[(c+64>>>9<<4)+14]=Math.floor(n/4294967296),u[(c+64>>>9<<4)+15]=n,t.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var t=A.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA1=A._createHelper(e),r.HmacSHA1=A._createHmacHelper(e)}(),o.SHA1})}(j0)),j0.exports}var I0={exports:{}},qe;function L0(){return qe||(qe=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,A=g.WordArray,B=g.Hasher,C=x.algo,e=[],t=[];(function(){function c(d){for(var a=r.sqrt(d),s=2;s<=a;s++)if(!(d%s))return!1;return!0}function f(d){return(d-(d|0))*4294967296|0}for(var h=2,l=0;l<64;)c(h)&&(l<8&&(e[l]=f(r.pow(h,1/2))),t[l]=f(r.pow(h,1/3)),l++),h++})();var u=[],n=C.SHA256=B.extend({_doReset:function(){this._hash=new A.init(e.slice(0))},_doProcessBlock:function(c,f){for(var h=this._hash.words,l=h[0],d=h[1],a=h[2],s=h[3],v=h[4],D=h[5],F=h[6],E=h[7],_=0;_<64;_++){if(_<16)u[_]=c[f+_]|0;else{var N=u[_-15],m=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,b=u[_-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[_]=m+u[_-7]+S+u[_-16]}var w=v&D^~v&F,T=l&d^l&a^d&a,V=(l<<30|l>>>2)^(l<<19|l>>>13)^(l<<10|l>>>22),z=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),M=E+z+w+t[_]+u[_],O=V+T;E=F,F=D,D=v,v=s+M|0,s=a,a=d,d=l,l=M+O|0}h[0]=h[0]+l|0,h[1]=h[1]+d|0,h[2]=h[2]+a|0,h[3]=h[3]+s|0,h[4]=h[4]+v|0,h[5]=h[5]+D|0,h[6]=h[6]+F|0,h[7]=h[7]+E|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,l=c.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=r.floor(h/4294967296),f[(l+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=B.clone.call(this);return c._hash=this._hash.clone(),c}});x.SHA256=B._createHelper(n),x.HmacSHA256=B._createHmacHelper(n)}(Math),o.SHA256})}(I0)),I0.exports}var M0={exports:{}},$e;function ft(){return $e||($e=1,function(i,p){(function(o,r,x){i.exports=r($(),L0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,A=r.algo,B=A.SHA256,C=A.SHA224=B.extend({_doReset:function(){this._hash=new g.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=B._doFinalize.call(this);return e.sigBytes-=4,e}});r.SHA224=B._createHelper(C),r.HmacSHA224=B._createHmacHelper(C)}(),o.SHA224})}(M0)),M0.exports}var U0={exports:{}},Oe;function je(){return Oe||(Oe=1,function(i,p){(function(o,r,x){i.exports=r($(),b0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.Hasher,A=r.x64,B=A.Word,C=A.WordArray,e=r.algo;function t(){return B.create.apply(B,arguments)}var u=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],n=[];(function(){for(var f=0;f<80;f++)n[f]=t()})();var c=e.SHA512=g.extend({_doReset:function(){this._hash=new C.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(f,h){for(var l=this._hash.words,d=l[0],a=l[1],s=l[2],v=l[3],D=l[4],F=l[5],E=l[6],_=l[7],N=d.high,m=d.low,b=a.high,S=a.low,w=s.high,T=s.low,V=v.high,z=v.low,M=D.high,O=D.low,I=F.high,j=F.low,k=E.high,H=E.low,R=_.high,P=_.low,U=N,L=m,Z=b,q=S,v0=w,s0=T,Ce=V,p0=z,J=M,Y=O,_0=I,B0=j,w0=k,C0=H,ge=R,g0=P,e0=0;e0<80;e0++){var Q,t0,k0=n[e0];if(e0<16)t0=k0.high=f[h+e0*2]|0,Q=k0.low=f[h+e0*2+1]|0;else{var pr=n[e0-15],x0=pr.high,y0=pr.low,Qt=(x0>>>1|y0<<31)^(x0>>>8|y0<<24)^x0>>>7,Br=(y0>>>1|x0<<31)^(y0>>>8|x0<<24)^(y0>>>7|x0<<25),Cr=n[e0-2],c0=Cr.high,m0=Cr.low,Jt=(c0>>>19|m0<<13)^(c0<<3|m0>>>29)^c0>>>6,gr=(m0>>>19|c0<<13)^(m0<<3|c0>>>29)^(m0>>>6|c0<<26),yr=n[e0-7],en=yr.high,rn=yr.low,mr=n[e0-16],tn=mr.high,Er=mr.low;Q=Br+rn,t0=Qt+en+(Q>>>0<Br>>>0?1:0),Q=Q+gr,t0=t0+Jt+(Q>>>0<gr>>>0?1:0),Q=Q+Er,t0=t0+tn+(Q>>>0<Er>>>0?1:0),k0.high=t0,k0.low=Q}var nn=J&_0^~J&w0,Ar=Y&B0^~Y&C0,an=U&Z^U&v0^Z&v0,on=L&q^L&s0^q&s0,sn=(U>>>28|L<<4)^(U<<30|L>>>2)^(U<<25|L>>>7),Fr=(L>>>28|U<<4)^(L<<30|U>>>2)^(L<<25|U>>>7),xn=(J>>>14|Y<<18)^(J>>>18|Y<<14)^(J<<23|Y>>>9),cn=(Y>>>14|J<<18)^(Y>>>18|J<<14)^(Y<<23|J>>>9),Dr=u[e0],fn=Dr.high,br=Dr.low,K=g0+cn,n0=ge+xn+(K>>>0<g0>>>0?1:0),K=K+Ar,n0=n0+nn+(K>>>0<Ar>>>0?1:0),K=K+br,n0=n0+fn+(K>>>0<br>>>0?1:0),K=K+Q,n0=n0+t0+(K>>>0<Q>>>0?1:0),_r=Fr+on,ln=sn+an+(_r>>>0<Fr>>>0?1:0);ge=w0,g0=C0,w0=_0,C0=B0,_0=J,B0=Y,Y=p0+K|0,J=Ce+n0+(Y>>>0<p0>>>0?1:0)|0,Ce=v0,p0=s0,v0=Z,s0=q,Z=U,q=L,L=K+_r|0,U=n0+ln+(L>>>0<K>>>0?1:0)|0}m=d.low=m+L,d.high=N+U+(m>>>0<L>>>0?1:0),S=a.low=S+q,a.high=b+Z+(S>>>0<q>>>0?1:0),T=s.low=T+s0,s.high=w+v0+(T>>>0<s0>>>0?1:0),z=v.low=z+p0,v.high=V+Ce+(z>>>0<p0>>>0?1:0),O=D.low=O+Y,D.high=M+J+(O>>>0<Y>>>0?1:0),j=F.low=j+B0,F.high=I+_0+(j>>>0<B0>>>0?1:0),H=E.low=H+C0,E.high=k+w0+(H>>>0<C0>>>0?1:0),P=_.low=P+g0,_.high=R+ge+(P>>>0<g0>>>0?1:0)},_doFinalize:function(){var f=this._data,h=f.words,l=this._nDataBytes*8,d=f.sigBytes*8;h[d>>>5]|=128<<24-d%32,h[(d+128>>>10<<5)+30]=Math.floor(l/4294967296),h[(d+128>>>10<<5)+31]=l,f.sigBytes=h.length*4,this._process();var a=this._hash.toX32();return a},clone:function(){var f=g.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});r.SHA512=g._createHelper(c),r.HmacSHA512=g._createHmacHelper(c)}(),o.SHA512})}(U0)),U0.exports}var G0={exports:{}},Ie;function lt(){return Ie||(Ie=1,function(i,p){(function(o,r,x){i.exports=r($(),b0(),je())})(W,function(o){return function(){var r=o,x=r.x64,g=x.Word,A=x.WordArray,B=r.algo,C=B.SHA512,e=B.SHA384=C.extend({_doReset:function(){this._hash=new A.init([new g.init(3418070365,3238371032),new g.init(1654270250,914150663),new g.init(2438529370,812702999),new g.init(355462360,4144912697),new g.init(1731405415,4290775857),new g.init(2394180231,1750603025),new g.init(3675008525,1694076839),new g.init(1203062813,3204075428)])},_doFinalize:function(){var t=C._doFinalize.call(this);return t.sigBytes-=16,t}});r.SHA384=C._createHelper(e),r.HmacSHA384=C._createHmacHelper(e)}(),o.SHA384})}(G0)),G0.exports}var X0={exports:{}},Le;function ut(){return Le||(Le=1,function(i,p){(function(o,r,x){i.exports=r($(),b0())})(W,function(o){return function(r){var x=o,g=x.lib,A=g.WordArray,B=g.Hasher,C=x.x64,e=C.Word,t=x.algo,u=[],n=[],c=[];(function(){for(var l=1,d=0,a=0;a<24;a++){u[l+5*d]=(a+1)*(a+2)/2%64;var s=d%5,v=(2*l+3*d)%5;l=s,d=v}for(var l=0;l<5;l++)for(var d=0;d<5;d++)n[l+5*d]=d+(2*l+3*d)%5*5;for(var D=1,F=0;F<24;F++){for(var E=0,_=0,N=0;N<7;N++){if(D&1){var m=(1<<N)-1;m<32?_^=1<<m:E^=1<<m-32}D&128?D=D<<1^113:D<<=1}c[F]=e.create(E,_)}})();var f=[];(function(){for(var l=0;l<25;l++)f[l]=e.create()})();var h=t.SHA3=B.extend({cfg:B.cfg.extend({outputLength:512}),_doReset:function(){for(var l=this._state=[],d=0;d<25;d++)l[d]=new e.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(l,d){for(var a=this._state,s=this.blockSize/2,v=0;v<s;v++){var D=l[d+2*v],F=l[d+2*v+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360;var E=a[v];E.high^=F,E.low^=D}for(var _=0;_<24;_++){for(var N=0;N<5;N++){for(var m=0,b=0,S=0;S<5;S++){var E=a[N+5*S];m^=E.high,b^=E.low}var w=f[N];w.high=m,w.low=b}for(var N=0;N<5;N++)for(var T=f[(N+4)%5],V=f[(N+1)%5],z=V.high,M=V.low,m=T.high^(z<<1|M>>>31),b=T.low^(M<<1|z>>>31),S=0;S<5;S++){var E=a[N+5*S];E.high^=m,E.low^=b}for(var O=1;O<25;O++){var m,b,E=a[O],I=E.high,j=E.low,k=u[O];k<32?(m=I<<k|j>>>32-k,b=j<<k|I>>>32-k):(m=j<<k-32|I>>>64-k,b=I<<k-32|j>>>64-k);var H=f[n[O]];H.high=m,H.low=b}var R=f[0],P=a[0];R.high=P.high,R.low=P.low;for(var N=0;N<5;N++)for(var S=0;S<5;S++){var O=N+5*S,E=a[O],U=f[O],L=f[(N+1)%5+5*S],Z=f[(N+2)%5+5*S];E.high=U.high^~L.high&Z.high,E.low=U.low^~L.low&Z.low}var E=a[0],q=c[_];E.high^=q.high,E.low^=q.low}},_doFinalize:function(){var l=this._data,d=l.words;this._nDataBytes*8;var a=l.sigBytes*8,s=this.blockSize*32;d[a>>>5]|=1<<24-a%32,d[(r.ceil((a+1)/s)*s>>>5)-1]|=128,l.sigBytes=d.length*4,this._process();for(var v=this._state,D=this.cfg.outputLength/8,F=D/8,E=[],_=0;_<F;_++){var N=v[_],m=N.high,b=N.low;m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,E.push(b),E.push(m)}return new A.init(E,D)},clone:function(){for(var l=B.clone.call(this),d=l._state=this._state.slice(0),a=0;a<25;a++)d[a]=d[a].clone();return l}});x.SHA3=B._createHelper(h),x.HmacSHA3=B._createHmacHelper(h)}(Math),o.SHA3})}(X0)),X0.exports}var Z0={exports:{}},Me;function dt(){return Me||(Me=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(r){var x=o,g=x.lib,A=g.WordArray,B=g.Hasher,C=x.algo,e=A.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),t=A.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=A.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),n=A.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=A.create([0,1518500249,1859775393,2400959708,2840853838]),f=A.create([1352829926,1548603684,1836072691,2053994217,0]),h=C.RIPEMD160=B.extend({_doReset:function(){this._hash=A.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(F,E){for(var _=0;_<16;_++){var N=E+_,m=F[N];F[N]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var b=this._hash.words,S=c.words,w=f.words,T=e.words,V=t.words,z=u.words,M=n.words,O,I,j,k,H,R,P,U,L,Z;R=O=b[0],P=I=b[1],U=j=b[2],L=k=b[3],Z=H=b[4];for(var q,_=0;_<80;_+=1)q=O+F[E+T[_]]|0,_<16?q+=l(I,j,k)+S[0]:_<32?q+=d(I,j,k)+S[1]:_<48?q+=a(I,j,k)+S[2]:_<64?q+=s(I,j,k)+S[3]:q+=v(I,j,k)+S[4],q=q|0,q=D(q,z[_]),q=q+H|0,O=H,H=k,k=D(j,10),j=I,I=q,q=R+F[E+V[_]]|0,_<16?q+=v(P,U,L)+w[0]:_<32?q+=s(P,U,L)+w[1]:_<48?q+=a(P,U,L)+w[2]:_<64?q+=d(P,U,L)+w[3]:q+=l(P,U,L)+w[4],q=q|0,q=D(q,M[_]),q=q+Z|0,R=Z,Z=L,L=D(U,10),U=P,P=q;q=b[1]+j+L|0,b[1]=b[2]+k+Z|0,b[2]=b[3]+H+R|0,b[3]=b[4]+O+P|0,b[4]=b[0]+I+U|0,b[0]=q},_doFinalize:function(){var F=this._data,E=F.words,_=this._nDataBytes*8,N=F.sigBytes*8;E[N>>>5]|=128<<24-N%32,E[(N+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,F.sigBytes=(E.length+1)*4,this._process();for(var m=this._hash,b=m.words,S=0;S<5;S++){var w=b[S];b[S]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return m},clone:function(){var F=B.clone.call(this);return F._hash=this._hash.clone(),F}});function l(F,E,_){return F^E^_}function d(F,E,_){return F&E|~F&_}function a(F,E,_){return(F|~E)^_}function s(F,E,_){return F&_|E&~_}function v(F,E,_){return F^(E|~_)}function D(F,E){return F<<E|F>>>32-E}x.RIPEMD160=B._createHelper(h),x.HmacRIPEMD160=B._createHmacHelper(h)}(),o.RIPEMD160})}(Z0)),Z0.exports}var Y0={exports:{}},Ue;function K0(){return Ue||(Ue=1,function(i,p){(function(o,r){i.exports=r($())})(W,function(o){(function(){var r=o,x=r.lib,g=x.Base,A=r.enc,B=A.Utf8,C=r.algo;C.HMAC=g.extend({init:function(e,t){e=this._hasher=new e.init,typeof t=="string"&&(t=B.parse(t));var u=e.blockSize,n=u*4;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var c=this._oKey=t.clone(),f=this._iKey=t.clone(),h=c.words,l=f.words,d=0;d<u;d++)h[d]^=1549556828,l[d]^=909522486;c.sigBytes=f.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,u=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(u));return n}})})()})}(Y0)),Y0.exports}var Q0={exports:{}},Ge;function ht(){return Ge||(Ge=1,function(i,p){(function(o,r,x){i.exports=r($(),L0(),K0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.Base,A=x.WordArray,B=r.algo,C=B.SHA256,e=B.HMAC,t=B.PBKDF2=g.extend({cfg:g.extend({keySize:128/32,hasher:C,iterations:25e4}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,n){for(var c=this.cfg,f=e.create(c.hasher,u),h=A.create(),l=A.create([1]),d=h.words,a=l.words,s=c.keySize,v=c.iterations;d.length<s;){var D=f.update(n).finalize(l);f.reset();for(var F=D.words,E=F.length,_=D,N=1;N<v;N++){_=f.final