@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 h=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(h,o,r.get?r:{enumerable:!0,get:()=>i[o]})}}return h.default=i,Object.freeze(h)}const i0=Nr(kr),ye={},me={};function S0(i){const{properties:h,title:o,ignore:r}=i,x=r&&Array.isArray(r),g=Object.keys(h).reduce((E,B)=>((!x||!r.find(C=>C===B))&&(E[B]=h[B].type==="object"&&h[B].properties?S0(h[B]):E0.cloneDeep(h[B].default)),E),{});if(o&&(!x||!r.find(E=>E==="id"))){const E=o.toLowerCase().replace(/-/g,"_");g.id=`${E}_${Math.random().toString().slice(2,6)}`}return g}function Pr(i){const{properties:h,title:o,required:r}=i;if(r&&Array.isArray(r)){const x=r.reduce((g,E)=>(g[E]=h[E].type==="object"&&h[E].properties?S0(h[E]):E0.cloneDeep(h[E].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,h={},o){const r=ye[i];if(r){let x=Pr(r);const g=me[i];return x=g?g({getSchemaByType:Ee},x,h,o):x,x}return null}function Hr(i,h){const o=S0(h);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,h){return Object.keys(i).filter(r=>i[r]!=null).reduce((r,x)=>{if(h.has(x)){const g=h.get(x);if(typeof g=="string")r[g]=i[x];else{const E=g(x,i[x],i);Object.assign(r,E)}}else r[x]=i[x];return r},{})}function Rr(i,h,o=new Map){const r=Hr(i,h);return Ae(r,o)}function Tr(i={}){function h(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",h],["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 E(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&&E(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,h,o=new Map,r=(E,B,C,e)=>B,x={},g=E=>E){return ye[h.title]=h,me[h.title]=r,Vr[h.title]=x,Wr[h.title]=g,(E={},B=!0)=>{if(!B)return Ae(E,o);const C=Rr(E,h,o),e=Object.keys(i).reduce((t,u)=>(t[u]=i[u].default,t),{});return Object.assign(e,C)}}function De(i,h){return{customClass:h.class,customStyle:h.style}}const zr=new Map([["appearance",De]]);function qr(i,h,o){return h}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,h){function o(r){return r<10?"0"+r:r}return{addZero:o}}function F0(i,h){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,h){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 E(){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),E(),B()}return{renderChart24h:g,renderChart7d:E,renderCharts:C}}function Lr(i,h){const o=y.ref(),r=y.ref(i.data.data),x=y.ref(0),g=be(),E=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",E.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 v(){return y.createVNode("div",{ref:o},[c(),f()])}return{renderWeatherReport:v}}function Ir(i,h){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,h){const o=y.ref(!0),r=F0(i),{renderWeatherReport:x}=Lr(i),{renderWeatherProindex:g}=Ir(i),E=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:E.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 h=i.default;if(typeof h=="function"){var o=function r(){return this instanceof r?Reflect.construct(h,arguments,this.constructor):h.apply(this,arguments)};o.prototype=h.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,h){h=h||{};var o=typeof i;if(o==="string"&&i.length>0)return Zr(i);if(o==="number"&&isNaN(i)===!1)return h.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 h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(i);if(h){var o=parseFloat(h[1]),r=(h[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,h,o){if(!(i<h))return i<h*1.5?Math.floor(i/h)+" "+o:Math.ceil(i/h)+" "+o+"s"}(function(i,h){h=i.exports=x.debug=x.default=x,h.coerce=C,h.disable=E,h.enable=g,h.enabled=B,h.humanize=Xr,h.names=[],h.skips=[],h.formatters={};var o;function r(e){var t=0,u;for(u in e)t=(t<<5)-t+e.charCodeAt(u),t|=0;return h.colors[Math.abs(t)%h.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),v=0;v<f.length;v++)f[v]=arguments[v];f[0]=h.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 p=h.formatters[s];if(typeof p=="function"){var F=f[l];a=p.call(u,F),f.splice(l,1),l--}return a}),h.formatArgs.call(u,f);var d=t.log||h.log||console.log.bind(console);d.apply(u,f)}}return t.namespace=e,t.enabled=h.enabled(e),t.useColors=h.useColors(),t.color=r(e),typeof h.init=="function"&&h.init(t),t}function g(e){h.save(e),h.names=[],h.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]==="-"?h.skips.push(new RegExp("^"+e.substr(1)+"$")):h.names.push(new RegExp("^"+e+"$")))}function E(){h.enable("")}function B(e){var t,u;for(t=0,u=h.skips.length;t<u;t++)if(h.skips[t].test(e))return!1;for(t=0,u=h.names.length;t<u;t++)if(h.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,h){h=i.exports=Qr,h.log=x,h.formatArgs=r,h.save=g,h.load=E,h.useColors=o,h.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:B(),h.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+)/)}h.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 ":" ")+"+"+h.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?h.storage.removeItem("debug"):h.storage.debug=C}catch{}}function E(){var C;try{C=h.storage.debug}catch{}return!C&&typeof process<"u"&&"env"in process&&(C=process.env.DEBUG),C}h.enable(E());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,h,o){typeof h=="function"&&(o=h,h={}),h||(h={});var r=h.prefix||"__jp",x=h.name||r+rt++,g=h.param||"callback",E=h.timeout!=null?h.timeout:6e4,B=encodeURIComponent,C=document.getElementsByTagName("script")[0]||document.head,e,t;E&&(t=setTimeout(function(){u(),o&&o(new Error("Timeout"))},E));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,h){(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 E=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 p;return a.prototype=s,p=new a,a.prototype=null,p}}(),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,p=a.words,F=this.sigBytes,A=a.sigBytes;if(this.clamp(),F%4)for(var _=0;_<A;_++){var b=p[_>>>2]>>>24-_%4*8&255;s[F+_>>>2]|=b<<24-(F+_)%4*8}else for(var N=0;N<A;N+=4)s[F+N>>>2]=p[N>>>2];return this.sigBytes+=A,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=[],p=0;p<a;p+=4)s.push(E());return new u.init(s,a)}}),n=C.enc={},c=n.Hex={stringify:function(a){for(var s=a.words,p=a.sigBytes,F=[],A=0;A<p;A++){var _=s[A>>>2]>>>24-A%4*8&255;F.push((_>>>4).toString(16)),F.push((_&15).toString(16))}return F.join("")},parse:function(a){for(var s=a.length,p=[],F=0;F<s;F+=2)p[F>>>3]|=parseInt(a.substr(F,2),16)<<24-F%8*4;return new u.init(p,s/2)}},f=n.Latin1={stringify:function(a){for(var s=a.words,p=a.sigBytes,F=[],A=0;A<p;A++){var _=s[A>>>2]>>>24-A%4*8&255;F.push(String.fromCharCode(_))}return F.join("")},parse:function(a){for(var s=a.length,p=[],F=0;F<s;F++)p[F>>>2]|=(a.charCodeAt(F)&255)<<24-F%4*8;return new u.init(p,s)}},v=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=v.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var s,p=this._data,F=p.words,A=p.sigBytes,_=this.blockSize,b=_*4,N=A/b;a?N=r.ceil(N):N=r.max((N|0)-this._minBufferSize,0);var m=N*_,D=r.min(m*4,A);if(m){for(var w=0;w<m;w+=_)this._doProcessBlock(F,w);s=F.splice(0,m),p.sigBytes-=D}return new u.init(s,D)},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,p){return new a.init(p).finalize(s)}},_createHmacHelper:function(a){return function(s,p){return new d.HMAC.init(a,p).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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,E=g.Base,B=g.WordArray,C=x.x64={};C.Word=E.extend({init:function(e,t){this.high=e,this.low=t}}),C.WordArray=E.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=E.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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(){if(typeof ArrayBuffer=="function"){var r=o,x=r.lib,g=x.WordArray,E=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;E.call(this,t,e)}else E.apply(this,arguments)};B.prototype=g}}(),o.lib.WordArray})}(W0)),W0.exports}var z0={exports:{}},He;function xt(){return He||(He=1,function(i,h){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,E=r.enc;E.Utf16=E.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)}},E.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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,E=r.enc;E.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,v=e[c+1>>>2]>>>24-(c+1)%4*8&255,l=e[c+2>>>2]>>>24-(c+2)%4*8&255,d=f<<16|v<<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,v=t[C.charCodeAt(c)]>>>6-c%4*2,l=f|v;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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,E=r.enc;E.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 v=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=v<<16|l<<8|d,s=0;s<4&&f+s*.75<u;s++)c.push(n.charAt(a>>>6*(3-s)&63));var p=n.charAt(64);if(p)for(;c.length%4;)c.push(p);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 v=C.indexOf(f);v!==-1&&(t=v)}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,v=t[C.charCodeAt(c)]>>>6-c%4*2,l=f|v;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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,E=g.WordArray,B=g.Hasher,C=x.algo,e=[];(function(){for(var v=0;v<64;v++)e[v]=r.abs(r.sin(v+1))*4294967296|0})();var t=C.MD5=B.extend({_doReset:function(){this._hash=new E.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,l){for(var d=0;d<16;d++){var a=l+d,s=v[a];v[a]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}var p=this._hash.words,F=v[l+0],A=v[l+1],_=v[l+2],b=v[l+3],N=v[l+4],m=v[l+5],D=v[l+6],w=v[l+7],k=v[l+8],T=v[l+9],V=v[l+10],z=v[l+11],M=v[l+12],O=v[l+13],L=v[l+14],j=v[l+15],S=p[0],H=p[1],R=p[2],P=p[3];S=u(S,H,R,P,F,7,e[0]),P=u(P,S,H,R,A,12,e[1]),R=u(R,P,S,H,_,17,e[2]),H=u(H,R,P,S,b,22,e[3]),S=u(S,H,R,P,N,7,e[4]),P=u(P,S,H,R,m,12,e[5]),R=u(R,P,S,H,D,17,e[6]),H=u(H,R,P,S,w,22,e[7]),S=u(S,H,R,P,k,7,e[8]),P=u(P,S,H,R,T,12,e[9]),R=u(R,P,S,H,V,17,e[10]),H=u(H,R,P,S,z,22,e[11]),S=u(S,H,R,P,M,7,e[12]),P=u(P,S,H,R,O,12,e[13]),R=u(R,P,S,H,L,17,e[14]),H=u(H,R,P,S,j,22,e[15]),S=n(S,H,R,P,A,5,e[16]),P=n(P,S,H,R,D,9,e[17]),R=n(R,P,S,H,z,14,e[18]),H=n(H,R,P,S,F,20,e[19]),S=n(S,H,R,P,m,5,e[20]),P=n(P,S,H,R,V,9,e[21]),R=n(R,P,S,H,j,14,e[22]),H=n(H,R,P,S,N,20,e[23]),S=n(S,H,R,P,T,5,e[24]),P=n(P,S,H,R,L,9,e[25]),R=n(R,P,S,H,b,14,e[26]),H=n(H,R,P,S,k,20,e[27]),S=n(S,H,R,P,O,5,e[28]),P=n(P,S,H,R,_,9,e[29]),R=n(R,P,S,H,w,14,e[30]),H=n(H,R,P,S,M,20,e[31]),S=c(S,H,R,P,m,4,e[32]),P=c(P,S,H,R,k,11,e[33]),R=c(R,P,S,H,z,16,e[34]),H=c(H,R,P,S,L,23,e[35]),S=c(S,H,R,P,A,4,e[36]),P=c(P,S,H,R,N,11,e[37]),R=c(R,P,S,H,w,16,e[38]),H=c(H,R,P,S,V,23,e[39]),S=c(S,H,R,P,O,4,e[40]),P=c(P,S,H,R,F,11,e[41]),R=c(R,P,S,H,b,16,e[42]),H=c(H,R,P,S,D,23,e[43]),S=c(S,H,R,P,T,4,e[44]),P=c(P,S,H,R,M,11,e[45]),R=c(R,P,S,H,j,16,e[46]),H=c(H,R,P,S,_,23,e[47]),S=f(S,H,R,P,F,6,e[48]),P=f(P,S,H,R,w,10,e[49]),R=f(R,P,S,H,L,15,e[50]),H=f(H,R,P,S,m,21,e[51]),S=f(S,H,R,P,M,6,e[52]),P=f(P,S,H,R,b,10,e[53]),R=f(R,P,S,H,V,15,e[54]),H=f(H,R,P,S,A,21,e[55]),S=f(S,H,R,P,k,6,e[56]),P=f(P,S,H,R,j,10,e[57]),R=f(R,P,S,H,D,15,e[58]),H=f(H,R,P,S,O,21,e[59]),S=f(S,H,R,P,N,6,e[60]),P=f(P,S,H,R,z,10,e[61]),R=f(R,P,S,H,_,15,e[62]),H=f(H,R,P,S,T,21,e[63]),p[0]=p[0]+S|0,p[1]=p[1]+H|0,p[2]=p[2]+R|0,p[3]=p[3]+P|0},_doFinalize:function(){var v=this._data,l=v.words,d=this._nDataBytes*8,a=v.sigBytes*8;l[a>>>5]|=128<<24-a%32;var s=r.floor(d/4294967296),p=d;l[(a+64>>>9<<4)+15]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,l[(a+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v.sigBytes=(l.length+1)*4,this._process();for(var F=this._hash,A=F.words,_=0;_<4;_++){var b=A[_];A[_]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return F},clone:function(){var v=B.clone.call(this);return v._hash=this._hash.clone(),v}});function u(v,l,d,a,s,p,F){var A=v+(l&d|~l&a)+s+F;return(A<<p|A>>>32-p)+l}function n(v,l,d,a,s,p,F){var A=v+(l&a|d&~a)+s+F;return(A<<p|A>>>32-p)+l}function c(v,l,d,a,s,p,F){var A=v+(l^d^a)+s+F;return(A<<p|A>>>32-p)+l}function f(v,l,d,a,s,p,F){var A=v+(d^(l|~a))+s+F;return(A<<p|A>>>32-p)+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,h){(function(o,r){i.exports=r($())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,E=x.Hasher,B=r.algo,C=[],e=B.SHA1=E.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],v=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 p=(c<<5|c>>>27)+d+C[a];a<20?p+=(f&v|~f&l)+1518500249:a<40?p+=(f^v^l)+1859775393:a<60?p+=(f&v|f&l|v&l)-1894007588:p+=(f^v^l)-899497514,d=l,l=v,v=f<<30|f>>>2,f=c,c=p}n[0]=n[0]+c|0,n[1]=n[1]+f|0,n[2]=n[2]+v|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=E.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA1=E._createHelper(e),r.HmacSHA1=E._createHmacHelper(e)}(),o.SHA1})}(j0)),j0.exports}var L0={exports:{}},qe;function I0(){return qe||(qe=1,function(i,h){(function(o,r){i.exports=r($())})(W,function(o){return function(r){var x=o,g=x.lib,E=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 v=2,l=0;l<64;)c(v)&&(l<8&&(e[l]=f(r.pow(v,1/2))),t[l]=f(r.pow(v,1/3)),l++),v++})();var u=[],n=C.SHA256=B.extend({_doReset:function(){this._hash=new E.init(e.slice(0))},_doProcessBlock:function(c,f){for(var v=this._hash.words,l=v[0],d=v[1],a=v[2],s=v[3],p=v[4],F=v[5],A=v[6],_=v[7],b=0;b<64;b++){if(b<16)u[b]=c[f+b]|0;else{var N=u[b-15],m=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,D=u[b-2],w=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;u[b]=m+u[b-7]+w+u[b-16]}var k=p&F^~p&A,T=l&d^l&a^d&a,V=(l<<30|l>>>2)^(l<<19|l>>>13)^(l<<10|l>>>22),z=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),M=_+z+k+t[b]+u[b],O=V+T;_=A,A=F,F=p,p=s+M|0,s=a,a=d,d=l,l=M+O|0}v[0]=v[0]+l|0,v[1]=v[1]+d|0,v[2]=v[2]+a|0,v[3]=v[3]+s|0,v[4]=v[4]+p|0,v[5]=v[5]+F|0,v[6]=v[6]+A|0,v[7]=v[7]+_|0},_doFinalize:function(){var c=this._data,f=c.words,v=this._nDataBytes*8,l=c.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=r.floor(v/4294967296),f[(l+64>>>9<<4)+15]=v,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})}(L0)),L0.exports}var M0={exports:{}},$e;function ft(){return $e||($e=1,function(i,h){(function(o,r,x){i.exports=r($(),I0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.WordArray,E=r.algo,B=E.SHA256,C=E.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,h){(function(o,r,x){i.exports=r($(),b0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.Hasher,E=r.x64,B=E.Word,C=E.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,v){for(var l=this._hash.words,d=l[0],a=l[1],s=l[2],p=l[3],F=l[4],A=l[5],_=l[6],b=l[7],N=d.high,m=d.low,D=a.high,w=a.low,k=s.high,T=s.low,V=p.high,z=p.low,M=F.high,O=F.low,L=A.high,j=A.low,S=_.high,H=_.low,R=b.high,P=b.low,U=N,I=m,Z=D,q=w,v0=k,s0=T,Ce=V,p0=z,J=M,Y=O,_0=L,B0=j,w0=S,C0=H,ge=R,g0=P,e0=0;e0<80;e0++){var Q,t0,k0=n[e0];if(e0<16)t0=k0.high=f[v+e0*2]|0,Q=k0.low=f[v+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=I&q^I&s0^q&s0,sn=(U>>>28|I<<4)^(U<<30|I>>>2)^(U<<25|I>>>7),Fr=(I>>>28|U<<4)^(I<<30|U>>>2)^(I<<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=I,I=K+_r|0,U=n0+ln+(I>>>0<K>>>0?1:0)|0}m=d.low=m+I,d.high=N+U+(m>>>0<I>>>0?1:0),w=a.low=w+q,a.high=D+Z+(w>>>0<q>>>0?1:0),T=s.low=T+s0,s.high=k+v0+(T>>>0<s0>>>0?1:0),z=p.low=z+p0,p.high=V+Ce+(z>>>0<p0>>>0?1:0),O=F.low=O+Y,F.high=M+J+(O>>>0<Y>>>0?1:0),j=A.low=j+B0,A.high=L+_0+(j>>>0<B0>>>0?1:0),H=_.low=H+C0,_.high=S+w0+(H>>>0<C0>>>0?1:0),P=b.low=P+g0,b.high=R+ge+(P>>>0<g0>>>0?1:0)},_doFinalize:function(){var f=this._data,v=f.words,l=this._nDataBytes*8,d=f.sigBytes*8;v[d>>>5]|=128<<24-d%32,v[(d+128>>>10<<5)+30]=Math.floor(l/4294967296),v[(d+128>>>10<<5)+31]=l,f.sigBytes=v.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:{}},Le;function lt(){return Le||(Le=1,function(i,h){(function(o,r,x){i.exports=r($(),b0(),je())})(W,function(o){return function(){var r=o,x=r.x64,g=x.Word,E=x.WordArray,B=r.algo,C=B.SHA512,e=B.SHA384=C.extend({_doReset:function(){this._hash=new E.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:{}},Ie;function ut(){return Ie||(Ie=1,function(i,h){(function(o,r,x){i.exports=r($(),b0())})(W,function(o){return function(r){var x=o,g=x.lib,E=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,p=(2*l+3*d)%5;l=s,d=p}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 F=1,A=0;A<24;A++){for(var _=0,b=0,N=0;N<7;N++){if(F&1){var m=(1<<N)-1;m<32?b^=1<<m:_^=1<<m-32}F&128?F=F<<1^113:F<<=1}c[A]=e.create(_,b)}})();var f=[];(function(){for(var l=0;l<25;l++)f[l]=e.create()})();var v=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,p=0;p<s;p++){var F=l[d+2*p],A=l[d+2*p+1];F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=a[p];_.high^=A,_.low^=F}for(var b=0;b<24;b++){for(var N=0;N<5;N++){for(var m=0,D=0,w=0;w<5;w++){var _=a[N+5*w];m^=_.high,D^=_.low}var k=f[N];k.high=m,k.low=D}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),D=T.low^(M<<1|z>>>31),w=0;w<5;w++){var _=a[N+5*w];_.high^=m,_.low^=D}for(var O=1;O<25;O++){var m,D,_=a[O],L=_.high,j=_.low,S=u[O];S<32?(m=L<<S|j>>>32-S,D=j<<S|L>>>32-S):(m=j<<S-32|L>>>64-S,D=L<<S-32|j>>>64-S);var H=f[n[O]];H.high=m,H.low=D}var R=f[0],P=a[0];R.high=P.high,R.low=P.low;for(var N=0;N<5;N++)for(var w=0;w<5;w++){var O=N+5*w,_=a[O],U=f[O],I=f[(N+1)%5+5*w],Z=f[(N+2)%5+5*w];_.high=U.high^~I.high&Z.high,_.low=U.low^~I.low&Z.low}var _=a[0],q=c[b];_.high^=q.high,_.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 p=this._state,F=this.cfg.outputLength/8,A=F/8,_=[],b=0;b<A;b++){var N=p[b],m=N.high,D=N.low;m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,_.push(D),_.push(m)}return new E.init(_,F)},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(v),x.HmacSHA3=B._createHmacHelper(v)}(Math),o.SHA3})}(X0)),X0.exports}var Z0={exports:{}},Me;function dt(){return Me||(Me=1,function(i,h){(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,E=g.WordArray,B=g.Hasher,C=x.algo,e=E.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=E.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=E.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=E.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=E.create([0,1518500249,1859775393,2400959708,2840853838]),f=E.create([1352829926,1548603684,1836072691,2053994217,0]),v=C.RIPEMD160=B.extend({_doReset:function(){this._hash=E.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,_){for(var b=0;b<16;b++){var N=_+b,m=A[N];A[N]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var D=this._hash.words,w=c.words,k=f.words,T=e.words,V=t.words,z=u.words,M=n.words,O,L,j,S,H,R,P,U,I,Z;R=O=D[0],P=L=D[1],U=j=D[2],I=S=D[3],Z=H=D[4];for(var q,b=0;b<80;b+=1)q=O+A[_+T[b]]|0,b<16?q+=l(L,j,S)+w[0]:b<32?q+=d(L,j,S)+w[1]:b<48?q+=a(L,j,S)+w[2]:b<64?q+=s(L,j,S)+w[3]:q+=p(L,j,S)+w[4],q=q|0,q=F(q,z[b]),q=q+H|0,O=H,H=S,S=F(j,10),j=L,L=q,q=R+A[_+V[b]]|0,b<16?q+=p(P,U,I)+k[0]:b<32?q+=s(P,U,I)+k[1]:b<48?q+=a(P,U,I)+k[2]:b<64?q+=d(P,U,I)+k[3]:q+=l(P,U,I)+k[4],q=q|0,q=F(q,M[b]),q=q+Z|0,R=Z,Z=I,I=F(U,10),U=P,P=q;q=D[1]+j+I|0,D[1]=D[2]+S+Z|0,D[2]=D[3]+H+R|0,D[3]=D[4]+O+P|0,D[4]=D[0]+L+U|0,D[0]=q},_doFinalize:function(){var A=this._data,_=A.words,b=this._nDataBytes*8,N=A.sigBytes*8;_[N>>>5]|=128<<24-N%32,_[(N+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A.sigBytes=(_.length+1)*4,this._process();for(var m=this._hash,D=m.words,w=0;w<5;w++){var k=D[w];D[w]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return m},clone:function(){var A=B.clone.call(this);return A._hash=this._hash.clone(),A}});function l(A,_,b){return A^_^b}function d(A,_,b){return A&_|~A&b}function a(A,_,b){return(A|~_)^b}function s(A,_,b){return A&b|_&~b}function p(A,_,b){return A^(_|~b)}function F(A,_){return A<<_|A>>>32-_}x.RIPEMD160=B._createHelper(v),x.HmacRIPEMD160=B._createHmacHelper(v)}(),o.RIPEMD160})}(Z0)),Z0.exports}var Y0={exports:{}},Ue;function K0(){return Ue||(Ue=1,function(i,h){(function(o,r){i.exports=r($())})(W,function(o){(function(){var r=o,x=r.lib,g=x.Base,E=r.enc,B=E.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(),v=c.words,l=f.words,d=0;d<u;d++)v[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,h){(function(o,r,x){i.exports=r($(),I0(),K0())})(W,function(o){return function(){var r=o,x=r.lib,g=x.Base,E=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),v=E.create(),l=E.create([1]),d=v.words,a=l.words,s=c.keySize,p=c.iterations;d.length<s;){var F=f.update(n).finalize(l);f.reset();for(var A=F.words,_=A.length,b=F,N=1;N<p;N++){b=f.final