homebridge-config-ui-x 5.0.0-beta.2 → 5.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -4
- package/README.md +6 -8
- package/package.json +3 -4
- package/public/3rdpartylicenses.txt +551 -551
- package/public/assets/plugin-ui-utils/ui.js +38 -19
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/chunk-2FJGS2P4.js +1 -0
- package/public/chunk-2PVYUZMG.js +1 -0
- package/public/chunk-2VTFU3NZ.js +6 -0
- package/public/chunk-3FUV2YFB.js +1 -0
- package/public/chunk-3IX3CLER.js +1 -0
- package/public/chunk-43QJK3CH.js +1 -0
- package/public/chunk-4AYTHKYE.js +1 -0
- package/public/chunk-4JQFZGIU.js +1 -0
- package/public/chunk-5L7KCDO7.js +1 -0
- package/public/chunk-5SGGTYVP.js +1 -0
- package/public/chunk-64I555F6.js +1 -0
- package/public/chunk-6F552PS2.js +14 -0
- package/public/chunk-6GDRRHLT.js +1 -0
- package/public/chunk-6TCHCTXZ.js +1 -0
- package/public/chunk-76SU4XMO.js +1 -0
- package/public/chunk-7C3EOONK.js +1 -0
- package/public/chunk-7EUQWCP5.js +2 -0
- package/public/chunk-7I2U653A.js +1 -0
- package/public/chunk-A6RDT6EE.js +32 -0
- package/public/chunk-ACHJ26XR.js +1 -0
- package/public/chunk-AMGSXBKP.js +1 -0
- package/public/chunk-AX2NKG76.js +1 -0
- package/public/{chunk-THFLPY67.js → chunk-BKUGARB4.js} +1 -1
- package/public/chunk-BPMSJ2VF.js +1 -0
- package/public/{chunk-GNQUXZMN.js → chunk-CCUID66K.js} +1 -1
- package/public/chunk-CDC5JJGR.js +5 -0
- package/public/chunk-CGQI6VDR.js +1 -0
- package/public/chunk-CNIFYHFS.js +1 -0
- package/public/chunk-DPHWZNEL.js +1 -0
- package/public/chunk-DXCU4YH5.js +1 -0
- package/public/chunk-EA5J2VEJ.js +1 -0
- package/public/chunk-ENTRCZRC.js +1 -0
- package/public/chunk-F3LCRXOB.js +1 -0
- package/public/chunk-FUOZMXIE.js +1 -0
- package/public/chunk-GNMMNSKZ.js +1 -0
- package/public/chunk-GONTC5RL.js +1 -0
- package/public/chunk-HC4ULUF5.js +1 -0
- package/public/chunk-HSJSWZHD.js +1 -0
- package/public/chunk-JAM2DL6O.js +1 -0
- package/public/chunk-JLUPHWBK.js +1 -0
- package/public/chunk-JZZQRLNW.js +1 -0
- package/public/chunk-KQJ7ONUG.js +1 -0
- package/public/chunk-LAAC3HKW.js +1 -0
- package/public/chunk-MK5BZOUV.js +4 -0
- package/public/chunk-MOTRKWPN.js +1 -0
- package/public/chunk-N3JMUDBI.js +1 -0
- package/public/chunk-NW6AFAD7.js +1 -0
- package/public/chunk-NZNNTHFQ.js +1 -0
- package/public/chunk-ODPNK7TG.js +1 -0
- package/public/chunk-OE6MK722.js +1 -0
- package/public/chunk-ORPWYWCL.js +5 -0
- package/public/chunk-OURFK6JB.js +1 -0
- package/public/chunk-PEPJOU6R.js +1 -0
- package/public/chunk-PWJLSQWP.js +8 -0
- package/public/chunk-QE7DO6J3.js +8 -0
- package/public/chunk-QHPDGSZ6.js +1 -0
- package/public/chunk-RFBKWUOP.js +20 -0
- package/public/chunk-S22XAG5G.js +1 -0
- package/public/chunk-S23B67SO.js +1 -0
- package/public/chunk-S3ABXPGO.js +1 -0
- package/public/chunk-SUCUQYZ3.js +1 -0
- package/public/chunk-TCSXGQNF.js +1 -0
- package/public/chunk-TXOB7R5K.js +7 -0
- package/public/chunk-U4TY4QYN.js +1 -0
- package/public/chunk-UG5DK2RQ.js +2 -0
- package/public/chunk-UNXETFMR.js +1 -0
- package/public/chunk-VAW3X7MD.js +23 -0
- package/public/chunk-VF4E7Q42.js +1 -0
- package/public/chunk-VOPS522V.js +1 -0
- package/public/chunk-VVFRD7PI.js +1 -0
- package/public/chunk-WHJOLAED.js +1 -0
- package/public/chunk-WHJSVGC7.js +1 -0
- package/public/{chunk-6QEO3BTW.js → chunk-WNWWUCCZ.js} +14 -14
- package/public/chunk-WWTMEHKF.js +1 -0
- package/public/chunk-X6HR3FKR.js +1 -0
- package/public/chunk-Y6NAMXTD.js +1 -0
- package/public/chunk-YAOIYDRH.js +1 -0
- package/public/chunk-ZOOTYXXF.js +1 -0
- package/public/chunk-ZT23DWNL.js +1 -0
- package/public/chunk-ZTCVXHR7.js +1 -0
- package/public/chunk-ZUBSOVIF.js +1 -0
- package/public/index.html +2 -2
- package/public/main-XXZ7MAPQ.js +1 -0
- package/public/media/fa-brands-400-6PJPV6JM.woff2 +0 -0
- package/public/media/{fa-brands-400-CNBICIQT.ttf → fa-brands-400-KOKGDU7E.ttf} +0 -0
- package/public/media/{fa-regular-400-2FI4ICQD.ttf → fa-regular-400-IPMAEX5Y.ttf} +0 -0
- package/public/media/fa-regular-400-OHB6J4OK.woff2 +0 -0
- package/public/media/fa-solid-900-ABTK6BNK.woff2 +0 -0
- package/public/media/{fa-solid-900-XVWCCN5V.ttf → fa-solid-900-SRFFQLRM.ttf} +0 -0
- package/public/{polyfills-CE2SNIQF.js → polyfills-C6JHVXJJ.js} +2 -2
- package/public/prerendered-routes.json +3 -0
- package/public/styles-EG5MFQEM.css +1 -0
- package/public/chunk-2ZL77L5V.js +0 -5
- package/public/chunk-36QI2JZZ.js +0 -1
- package/public/chunk-4R6MSI5I.js +0 -14
- package/public/chunk-54RIF7BL.js +0 -1
- package/public/chunk-6PFEOQAC.js +0 -1
- package/public/chunk-AA4ALV5Q.js +0 -23
- package/public/chunk-B6C32ZRK.js +0 -1
- package/public/chunk-BROUJ7PT.js +0 -1
- package/public/chunk-C4DMFK2F.js +0 -1
- package/public/chunk-CMASH2I6.js +0 -20
- package/public/chunk-D63P2BMG.js +0 -4
- package/public/chunk-E6TKCZQK.js +0 -1
- package/public/chunk-EEAGROCO.js +0 -8
- package/public/chunk-EXLYVJ3I.js +0 -1
- package/public/chunk-F22FMU37.js +0 -1
- package/public/chunk-H7H7YVXE.js +0 -1
- package/public/chunk-IGUSDGD6.js +0 -8
- package/public/chunk-JM7QCDMZ.js +0 -1
- package/public/chunk-LL4U2S7T.js +0 -20
- package/public/chunk-MMU5EB5I.js +0 -1
- package/public/chunk-MQHO5ODL.js +0 -1
- package/public/chunk-MQOC5AAT.js +0 -1
- package/public/chunk-NJRXPLIM.js +0 -1
- package/public/chunk-NLHSKWUN.js +0 -1
- package/public/chunk-PCHM6ESV.js +0 -1
- package/public/chunk-PREOLVG7.js +0 -1
- package/public/chunk-RYWTZYEC.js +0 -1
- package/public/chunk-SJTXTMYT.js +0 -2
- package/public/chunk-TBJQ2Y3M.js +0 -1
- package/public/chunk-TCMARCBB.js +0 -1
- package/public/chunk-UBGLUD5C.js +0 -20
- package/public/chunk-V7NUKNPP.js +0 -1
- package/public/chunk-W5QNZH4U.js +0 -1
- package/public/chunk-WCDFKYP6.js +0 -5
- package/public/chunk-YXVNS6GA.js +0 -1
- package/public/main-EIMWK4RL.js +0 -6
- package/public/media/fa-brands-400-MDS4TU4L.woff2 +0 -0
- package/public/media/fa-regular-400-N56QV3DR.woff2 +0 -0
- package/public/media/fa-solid-900-Z3HFQTXF.woff2 +0 -0
- package/public/styles-7ETWN6DQ.css +0 -1
package/public/chunk-2ZL77L5V.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-GNQUXZMN.js";import{a as b,b as z}from"./chunk-THFLPY67.js";import{a}from"./chunk-NJRXPLIM.js";import{H as o,W as c,Z as d,g as m,h as t,l as h}from"./chunk-IGUSDGD6.js";var l=m(b(),1),f=m(z(),1),p=m(u(),1);var v=(()=>{let e=class e{constructor(s){t(this,"$ws");t(this,"term");t(this,"io");t(this,"fitAddon");t(this,"webLinksAddon");t(this,"resize");t(this,"elementResize");this.$ws=s}destroyTerminal(){this.io.end(),this.term.dispose(),this.resize.complete(),this.elementResize&&this.elementResize.complete()}startTerminal(s,n={},w){this.elementResize=w,this.io=this.$ws.connectToNamespace("platform-tools/terminal"),this.term=new l.Terminal(n),setTimeout(()=>{this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon)}),this.fitAddon=new f.FitAddon,this.webLinksAddon=new p.WebLinksAddon,this.resize=new h,this.term.open(s.nativeElement),setTimeout(()=>{this.fitAddon.activate(this.term),this.fitAddon.fit()}),this.io.connected.pipe(o(200)).subscribe(()=>{this.startSession()}),this.io.socket.on("disconnect",()=>{this.term.write(`
|
|
2
|
-
\r
|
|
3
|
-
\rTerminal disconnected. Is the server running?
|
|
4
|
-
\r
|
|
5
|
-
\r`)}),this.io.socket.on("process-exit",()=>{this.io.socket.emit("end"),this.startSession()}),this.resize.pipe(o(500)).subscribe(i=>{this.io.socket.emit("resize",i)}),this.io.socket.on("stdout",i=>{this.term.write(i)}),this.term.onData(i=>{this.io.socket.emit("stdin",i)}),this.term.onResize(i=>{this.resize.next(i)}),this.elementResize&&this.elementResize.pipe(o(100)).subscribe({next:()=>{this.fitAddon.fit()}})}startSession(){this.term.reset(),this.io.socket.emit("start-session",{cols:this.term.cols,rows:this.term.rows}),this.resize.next({cols:this.term.cols,rows:this.term.rows})}};t(e,"\u0275fac",function(n){return new(n||e)(d(a))}),t(e,"\u0275prov",c({token:e,factory:e.\u0275fac,providedIn:"root"}));let r=e;return r})();export{v as a};
|
package/public/chunk-36QI2JZZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as J,f as T}from"./chunk-AA4ALV5Q.js";import{c as V,d as q}from"./chunk-LL4U2S7T.js";import{c as G}from"./chunk-SJTXTMYT.js";import{b as F}from"./chunk-6QEO3BTW.js";import{G as L,M as B,Q as C,y as E,z as N}from"./chunk-WCDFKYP6.js";import{b as w,c as P}from"./chunk-F22FMU37.js";import{$ as x,$b as k,Ab as D,Ga as I,Ka as b,La as u,Pb as H,Qb as R,Rb as U,Ua as n,Va as a,Wa as c,X as _,aa as h,ab as g,bb as A,h as o,jb as m,kb as f,lb as v,mb as z,ua as O,ub as S,wa as i,xa as M,yb as l,zb as s}from"./chunk-IGUSDGD6.js";var K=(()=>{let e=class e{};o(e,"\u0275fac",function(d){return new(d||e)}),o(e,"\u0275mod",h({type:e})),o(e,"\u0275inj",_({providers:[V],imports:[k,C,E,N,P.forChild(),J,F,T]}));let t=e;return t})();var Y=t=>({pluginName:t});function Z(t,e){t&1&&(n(0,"ul",16)(1,"li"),m(2),l(3,"translate"),a(),n(4,"li",17),m(5),l(6,"translate"),a()()),t&2&&(i(2),f(s(3,2,"plugins.manage.confirm_disable_accessory_1")),i(3),f(s(6,4,"plugins.manage.confirm_disable_accessory_2")))}function ee(t,e){t&1&&(n(0,"ul",16)(1,"li"),m(2),l(3,"translate"),a(),n(4,"li",17),m(5),l(6,"translate"),a()()),t&2&&(i(2),f(s(3,2,"plugins.manage.confirm_disable_platform_1")),i(3),f(s(6,4,"plugins.manage.confirm_disable_platform_2")))}var xe=(()=>{let e=class e{constructor(r){o(this,"$activeModal");o(this,"pluginName");o(this,"isConfigured",!1);o(this,"isConfiguredDynamicPlatform",!1);this.$activeModal=r}};o(e,"\u0275fac",function(d){return new(d||e)(M(B))}),o(e,"\u0275cmp",x({type:e,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform"},decls:28,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body","w-100","text-center"],[1,"fas","fa-fw","fa-circle-pause","primary-text","mb-4",2,"font-size","75px"],["type","warning",3,"dismissible"],[1,"w-100","text-center","mb-0"],["class","mb-0 text-left",4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-danger",3,"click"],[1,"mb-0","text-left"],[1,"mb-0"]],template:function(d,p){d&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),m(3),l(4,"translate"),a(),n(5,"button",3),l(6,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),n(7,"span",4),m(8,"\xD7"),a()()(),n(9,"div",5),c(10,"i",6),n(11,"ngb-alert",7)(12,"p",8),m(13),l(14,"translate"),a()(),I(15,Z,7,6,"ul",9)(16,ee,7,6,"ul",9),a(),n(17,"div",10)(18,"div",11)(19,"button",12),l(20,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),m(21),l(22,"translate"),a()(),c(23,"div",13),n(24,"div",14)(25,"button",15),g("click",function(){return p.$activeModal.close()}),m(26),l(27,"translate"),a()()()()),d&2&&(i(3),z("",s(4,10,"plugins.manage.disable"),": ",p.pluginName,""),i(2),b("aria-label",s(6,12,"form.button_close")),i(6),u("dismissible",!1),i(2),f(D(14,14,"plugins.manage.confirm_disable",S(23,Y,p.pluginName))),i(2),u("ngIf",p.isConfigured&&!p.isConfiguredDynamicPlatform),i(),u("ngIf",p.isConfigured&&p.isConfiguredDynamicPlatform),i(3),b("aria-label",s(20,17,"form.button_close")),i(2),v(" ",s(22,19,"form.button_close")," "),i(5),v(" ",s(27,21,"plugins.manage.disable")," "))},dependencies:[U,L,w],encapsulation:2}));let t=e;return t})();var te=t=>({author:t});function ie(t,e){if(t&1&&(n(0,"li",16),c(1,"i",17),n(2,"a",18),m(3),a()()),t&2){let $=e.$implicit,r=A();i(),u("ngClass",r.getIconClass($.type)),i(),u("href",$.url,O),i(),f($.url)}}var Ie=(()=>{let e=class e{constructor(r){o(this,"$activeModal");o(this,"plugin");o(this,"fundingOptions");this.$activeModal=r}ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(r=>{if(typeof r=="string")return{type:"other",url:r};if(typeof r=="object")return{type:r.type||"other",url:r.url}}):typeof this.plugin.funding=="string"?this.fundingOptions=[{type:"other",url:this.plugin.funding}]:typeof this.plugin.funding=="object"&&(this.fundingOptions=[{type:this.plugin.funding.type||"other",url:this.plugin.funding.url}])}getIconClass(r){switch(r.toLowerCase()){case"paypal":return"fab fa-fw fa-paypal";case"github":return"fab fa-fw fa-github";case"patreon":return"fab fa-fw fa-patreon";case"kofi":case"ko-fi":return"fas fa-fw fa-coffee";default:return"fas fa-fw fa-link"}}};o(e,"\u0275fac",function(d){return new(d||e)(M(B))}),o(e,"\u0275cmp",x({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:22,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"w-100","text-center","pink-text","mb-4"],[1,"fas","fa-fw","fa-heart",2,"font-size","75px"],[1,"w-100","text-center"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-right"],[1,"list-group-item"],[1,"mr-2","primary-text","fa-fw",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all","grey-text",3,"href"]],template:function(d,p){d&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),m(3),l(4,"translate"),a(),n(5,"button",3),l(6,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),n(7,"span",4),m(8,"\xD7"),a()()(),n(9,"div",5)(10,"div",6),c(11,"i",7),a(),n(12,"p",8),m(13),l(14,"translate"),a(),n(15,"p",8),m(16),l(17,"translate"),a(),n(18,"ul",9),I(19,ie,4,3,"li",10),a()(),n(20,"div",11),c(21,"div",12),n(22,"div",13)(23,"button",14),l(24,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),m(25),l(26,"translate"),a()(),c(27,"div",15),a()()),d&2&&(i(3),v(" ",D(4,7,"plugins.donate.tile_donate_to",S(20,te,p.plugin.author?"@"+p.plugin.author:p.plugin.name))," "),i(2),b("aria-label",s(6,10,"form.button_close")),i(8),f(s(14,12,"plugins.donate.message_1")),i(3),f(s(17,14,"plugins.donate.message_2")),i(3),u("ngForOf",p.fundingOptions),i(4),b("aria-label",s(24,16,"form.button_close")),i(2),v(" ",s(26,18,"form.button_close")," "))},dependencies:[H,R,w],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]}));let t=e;return t})();var st=(()=>{let e=class e{};o(e,"\u0275fac",function(d){return new(d||e)}),o(e,"\u0275mod",h({type:e})),o(e,"\u0275inj",_({providers:[q],imports:[k,E,N,P.forChild(),C,F,G,C,T,K]}));let t=e;return t})();export{xe as a,Ie as b,st as c};
|
package/public/chunk-4R6MSI5I.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{e as a0}from"./chunk-IGUSDGD6.js";var E0=a0((Eu,ou)=>{(function(R,b){typeof Eu=="object"&&typeof ou<"u"?ou.exports=b():typeof define=="function"&&define.amd?define(b):R.JSON5=b()})(Eu,function(){"use strict";function R(u,D){return D={exports:{}},u(D,D.exports),D.exports}var b=R(function(u){var D=u.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=D)}),_=R(function(u){var D=u.exports={version:"2.6.5"};typeof __e=="number"&&(__e=D)}),o0=_.version,J=function(u){return typeof u=="object"?u!==null:typeof u=="function"},fu=function(u){if(!J(u))throw TypeError(u+" is not an object!");return u},cu=function(u){try{return!!u()}catch{return!0}},Du=!cu(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),eu=b.document,gu=J(eu)&&J(eu.createElement),yu=function(u){return gu?eu.createElement(u):{}},bu=!Du&&!cu(function(){return Object.defineProperty(yu("div"),"a",{get:function(){return 7}}).a!=7}),wu=function(u,D){if(!J(u))return u;var t,r;if(D&&typeof(t=u.toString)=="function"&&!J(r=t.call(u))||typeof(t=u.valueOf)=="function"&&!J(r=t.call(u))||!D&&typeof(t=u.toString)=="function"&&!J(r=t.call(u)))return r;throw TypeError("Can't convert object to primitive value")},Su=Object.defineProperty,xu=Du?Object.defineProperty:function(D,t,r){if(fu(D),t=wu(t,!0),fu(r),bu)try{return Su(D,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(D[t]=r.value),D},Pu={f:xu},_u=function(u,D){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:D}},U=Du?function(u,D,t){return Pu.f(u,D,_u(1,t))}:function(u,D,t){return u[D]=t,u},Nu={}.hasOwnProperty,Bu=function(u,D){return Nu.call(u,D)},Iu=0,ju=Math.random(),Ou=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++Iu+ju).toString(36))},Vu=!1,Lu=R(function(u){var D="__core-js_shared__",t=b[D]||(b[D]={});(u.exports=function(r,n){return t[r]||(t[r]=n!==void 0?n:{})})("versions",[]).push({version:_.version,mode:Vu?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),ru=Lu("native-function-to-string",Function.toString),Ju=R(function(u){var D=Ou("src"),t="toString",r=(""+ru).split(t);_.inspectSource=function(n){return ru.call(n)},(u.exports=function(n,A,E,g){var s=typeof E=="function";s&&(Bu(E,"name")||U(E,"name",A)),n[A]!==E&&(s&&(Bu(E,D)||U(E,D,n[A]?""+n[A]:r.join(String(A)))),n===b?n[A]=E:g?n[A]?n[A]=E:U(n,A,E):(delete n[A],U(n,A,E)))})(Function.prototype,t,function(){return typeof this=="function"&&this[D]||ru.call(this)})}),Mu=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u},su=function(u,D,t){if(Mu(u),D===void 0)return u;switch(t){case 1:return function(r){return u.call(D,r)};case 2:return function(r,n){return u.call(D,r,n)};case 3:return function(r,n,A){return u.call(D,r,n,A)}}return function(){return u.apply(D,arguments)}},tu="prototype",h=function(u,D,t){var r=u&h.F,n=u&h.G,A=u&h.S,E=u&h.P,g=u&h.B,s=n?b:A?b[D]||(b[D]={}):(b[D]||{})[tu],z=n?_:_[D]||(_[D]={}),q=z[tu]||(z[tu]={}),S,P,y,G;n&&(t=D);for(S in t)P=!r&&s&&s[S]!==void 0,y=(P?s:t)[S],G=g&&P?su(y,b):E&&typeof y=="function"?su(Function.call,y):y,s&&Ju(s,S,y,u&h.U),z[S]!=y&&U(z,S,G),E&&q[S]!=y&&(q[S]=y)};b.core=_,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128;var Z=h,Tu=Math.ceil,zu=Math.floor,lu=function(u){return isNaN(u=+u)?0:(u>0?zu:Tu)(u)},$u=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u},Hu=function(u){return function(D,t){var r=String($u(D)),n=lu(t),A=r.length,E,g;return n<0||n>=A?u?"":void 0:(E=r.charCodeAt(n),E<55296||E>56319||n+1===A||(g=r.charCodeAt(n+1))<56320||g>57343?u?r.charAt(n):E:u?r.slice(n,n+2):(E-55296<<10)+(g-56320)+65536)}},Ru=Hu(!1);Z(Z.P,"String",{codePointAt:function(D){return Ru(this,D)}});var f0=_.String.codePointAt,qu=Math.max,Gu=Math.min,Uu=function(u,D){return u=lu(u),u<0?qu(u+D,0):Gu(u,D)},du=String.fromCharCode,vu=String.fromCodePoint;Z(Z.S+Z.F*(!!vu&&vu.length!=1),"String",{fromCodePoint:function(D){for(var t=arguments,r=[],n=arguments.length,A=0,E;n>A;){if(E=+t[A++],Uu(E,1114111)!==E)throw RangeError(E+" is not a valid code point");r.push(E<65536?du(E):du(((E-=65536)>>10)+55296,E%1024+56320))}return r.join("")}});var c0=_.String.fromCodePoint,Zu=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ku=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Qu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,nu={Space_Separator:Zu,ID_Start:Ku,ID_Continue:Qu},B={isSpaceSeparator:function(D){return typeof D=="string"&&nu.Space_Separator.test(D)},isIdStartChar:function(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||nu.ID_Start.test(D))},isIdContinueChar:function(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="\u200C"||D==="\u200D"||nu.ID_Continue.test(D))},isDigit:function(D){return typeof D=="string"&&/[0-9]/.test(D)},isHexDigit:function(D){return typeof D=="string"&&/[0-9A-Fa-f]/.test(D)}},Fu,m,N,W,V,w,l,Cu,K,Wu=function(D,t){Fu=String(D),m="start",N=[],W=0,V=1,w=0,l=void 0,Cu=void 0,K=void 0;do l=Xu(),u0[m]();while(l.type!=="eof");return typeof t=="function"?iu({"":K},"",t):K};function iu(u,D,t){var r=u[D];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(var n=0;n<r.length;n++){var A=String(n),E=iu(r,A,t);E===void 0?delete r[A]:Object.defineProperty(r,A,{value:E,writable:!0,enumerable:!0,configurable:!0})}else for(var g in r){var s=iu(r,g,t);s===void 0?delete r[g]:Object.defineProperty(r,g,{value:s,writable:!0,enumerable:!0,configurable:!0})}return t.call(u,D,r)}var i,F,Q,I,a;function Xu(){for(i="default",F="",Q=!1,I=1;;){a=j();var u=pu[i]();if(u)return u}}function j(){if(Fu[W])return String.fromCodePoint(Fu.codePointAt(W))}function e(){var u=j();return u===`
|
|
2
|
-
`?(V++,w=0):u?w+=u.length:w++,u&&(W+=u.length),u}var pu={default:function(){switch(a){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
3
|
-
`:case"\r":case"\u2028":case"\u2029":e();return;case"/":e(),i="comment";return;case void 0:return e(),f("eof")}if(B.isSpaceSeparator(a)){e();return}return pu[m]()},comment:function(){switch(a){case"*":e(),i="multiLineComment";return;case"/":e(),i="singleLineComment";return}throw c(e())},multiLineComment:function(){switch(a){case"*":e(),i="multiLineCommentAsterisk";return;case void 0:throw c(e())}e()},multiLineCommentAsterisk:function(){switch(a){case"*":e();return;case"/":e(),i="default";return;case void 0:throw c(e())}e(),i="multiLineComment"},singleLineComment:function(){switch(a){case`
|
|
4
|
-
`:case"\r":case"\u2028":case"\u2029":e(),i="default";return;case void 0:return e(),f("eof")}e()},value:function(){switch(a){case"{":case"[":return f("punctuator",e());case"n":return e(),M("ull"),f("null",null);case"t":return e(),M("rue"),f("boolean",!0);case"f":return e(),M("alse"),f("boolean",!1);case"-":case"+":e()==="-"&&(I=-1),i="sign";return;case".":F=e(),i="decimalPointLeading";return;case"0":F=e(),i="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":F=e(),i="decimalInteger";return;case"I":return e(),M("nfinity"),f("numeric",1/0);case"N":return e(),M("aN"),f("numeric",NaN);case'"':case"'":Q=e()==='"',F="",i="string";return}throw c(e())},identifierNameStartEscape:function(){if(a!=="u")throw c(e());e();var D=Au();switch(D){case"$":case"_":break;default:if(!B.isIdStartChar(D))throw hu();break}F+=D,i="identifierName"},identifierName:function(){switch(a){case"$":case"_":case"\u200C":case"\u200D":F+=e();return;case"\\":e(),i="identifierNameEscape";return}if(B.isIdContinueChar(a)){F+=e();return}return f("identifier",F)},identifierNameEscape:function(){if(a!=="u")throw c(e());e();var D=Au();switch(D){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!B.isIdContinueChar(D))throw hu();break}F+=D,i="identifierName"},sign:function(){switch(a){case".":F=e(),i="decimalPointLeading";return;case"0":F=e(),i="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":F=e(),i="decimalInteger";return;case"I":return e(),M("nfinity"),f("numeric",I*(1/0));case"N":return e(),M("aN"),f("numeric",NaN)}throw c(e())},zero:function(){switch(a){case".":F+=e(),i="decimalPoint";return;case"e":case"E":F+=e(),i="decimalExponent";return;case"x":case"X":F+=e(),i="hexadecimal";return}return f("numeric",I*0)},decimalInteger:function(){switch(a){case".":F+=e(),i="decimalPoint";return;case"e":case"E":F+=e(),i="decimalExponent";return}if(B.isDigit(a)){F+=e();return}return f("numeric",I*Number(F))},decimalPointLeading:function(){if(B.isDigit(a)){F+=e(),i="decimalFraction";return}throw c(e())},decimalPoint:function(){switch(a){case"e":case"E":F+=e(),i="decimalExponent";return}if(B.isDigit(a)){F+=e(),i="decimalFraction";return}return f("numeric",I*Number(F))},decimalFraction:function(){switch(a){case"e":case"E":F+=e(),i="decimalExponent";return}if(B.isDigit(a)){F+=e();return}return f("numeric",I*Number(F))},decimalExponent:function(){switch(a){case"+":case"-":F+=e(),i="decimalExponentSign";return}if(B.isDigit(a)){F+=e(),i="decimalExponentInteger";return}throw c(e())},decimalExponentSign:function(){if(B.isDigit(a)){F+=e(),i="decimalExponentInteger";return}throw c(e())},decimalExponentInteger:function(){if(B.isDigit(a)){F+=e();return}return f("numeric",I*Number(F))},hexadecimal:function(){if(B.isHexDigit(a)){F+=e(),i="hexadecimalInteger";return}throw c(e())},hexadecimalInteger:function(){if(B.isHexDigit(a)){F+=e();return}return f("numeric",I*Number(F))},string:function(){switch(a){case"\\":e(),F+=Yu();return;case'"':if(Q)return e(),f("string",F);F+=e();return;case"'":if(!Q)return e(),f("string",F);F+=e();return;case`
|
|
5
|
-
`:case"\r":throw c(e());case"\u2028":case"\u2029":D0(a);break;case void 0:throw c(e())}F+=e()},start:function(){switch(a){case"{":case"[":return f("punctuator",e())}i="value"},beforePropertyName:function(){switch(a){case"$":case"_":F=e(),i="identifierName";return;case"\\":e(),i="identifierNameStartEscape";return;case"}":return f("punctuator",e());case'"':case"'":Q=e()==='"',i="string";return}if(B.isIdStartChar(a)){F+=e(),i="identifierName";return}throw c(e())},afterPropertyName:function(){if(a===":")return f("punctuator",e());throw c(e())},beforePropertyValue:function(){i="value"},afterPropertyValue:function(){switch(a){case",":case"}":return f("punctuator",e())}throw c(e())},beforeArrayValue:function(){if(a==="]")return f("punctuator",e());i="value"},afterArrayValue:function(){switch(a){case",":case"]":return f("punctuator",e())}throw c(e())},end:function(){throw c(e())}};function f(u,D){return{type:u,value:D,line:V,column:w}}function M(u){for(var D=0,t=u;D<t.length;D+=1){var r=t[D],n=j();if(n!==r)throw c(e());e()}}function Yu(){var u=j();switch(u){case"b":return e(),"\b";case"f":return e(),"\f";case"n":return e(),`
|
|
6
|
-
`;case"r":return e(),"\r";case"t":return e()," ";case"v":return e(),"\v";case"0":if(e(),B.isDigit(j()))throw c(e());return"\0";case"x":return e(),ku();case"u":return e(),Au();case`
|
|
7
|
-
`:case"\u2028":case"\u2029":return e(),"";case"\r":return e(),j()===`
|
|
8
|
-
`&&e(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw c(e());case void 0:throw c(e())}return e()}function ku(){var u="",D=j();if(!B.isHexDigit(D)||(u+=e(),D=j(),!B.isHexDigit(D)))throw c(e());return u+=e(),String.fromCodePoint(parseInt(u,16))}function Au(){for(var u="",D=4;D-- >0;){var t=j();if(!B.isHexDigit(t))throw c(e());u+=e()}return String.fromCodePoint(parseInt(u,16))}var u0={start:function(){if(l.type==="eof")throw T();au()},beforePropertyName:function(){switch(l.type){case"identifier":case"string":Cu=l.value,m="afterPropertyName";return;case"punctuator":X();return;case"eof":throw T()}},afterPropertyName:function(){if(l.type==="eof")throw T();m="beforePropertyValue"},beforePropertyValue:function(){if(l.type==="eof")throw T();au()},beforeArrayValue:function(){if(l.type==="eof")throw T();if(l.type==="punctuator"&&l.value==="]"){X();return}au()},afterPropertyValue:function(){if(l.type==="eof")throw T();switch(l.value){case",":m="beforePropertyName";return;case"}":X()}},afterArrayValue:function(){if(l.type==="eof")throw T();switch(l.value){case",":m="beforeArrayValue";return;case"]":X()}},end:function(){}};function au(){var u;switch(l.type){case"punctuator":switch(l.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=l.value;break}if(K===void 0)K=u;else{var D=N[N.length-1];Array.isArray(D)?D.push(u):Object.defineProperty(D,Cu,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")N.push(u),Array.isArray(u)?m="beforeArrayValue":m="beforePropertyName";else{var t=N[N.length-1];t==null?m="end":Array.isArray(t)?m="afterArrayValue":m="afterPropertyValue"}}function X(){N.pop();var u=N[N.length-1];u==null?m="end":Array.isArray(u)?m="afterArrayValue":m="afterPropertyValue"}function c(u){return Y(u===void 0?"JSON5: invalid end of input at "+V+":"+w:"JSON5: invalid character '"+mu(u)+"' at "+V+":"+w)}function T(){return Y("JSON5: invalid end of input at "+V+":"+w)}function hu(){return w-=5,Y("JSON5: invalid identifier character at "+V+":"+w)}function D0(u){console.warn("JSON5: '"+mu(u)+"' in strings is not valid ECMAScript; consider escaping")}function mu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){var t=u.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return u}function Y(u){var D=new SyntaxError(u);return D.lineNumber=V,D.columnNumber=w,D}var e0=function(D,t,r){var n=[],A="",E,g,s="",z;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(r=t.space,z=t.quote,t=t.replacer),typeof t=="function")g=t;else if(Array.isArray(t)){E=[];for(var q=0,S=t;q<S.length;q+=1){var P=S[q],y=void 0;typeof P=="string"?y=P:(typeof P=="number"||P instanceof String||P instanceof Number)&&(y=String(P)),y!==void 0&&E.indexOf(y)<0&&E.push(y)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),s=" ".substr(0,r)):typeof r=="string"&&(s=r.substr(0,10)),G("",{"":D});function G(o,v){var C=v[o];switch(C!=null&&(typeof C.toJSON5=="function"?C=C.toJSON5(o):typeof C.toJSON=="function"&&(C=C.toJSON(o))),g&&(C=g.call(v,o,C)),C instanceof Number?C=Number(C):C instanceof String?C=String(C):C instanceof Boolean&&(C=C.valueOf()),C){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof C=="string")return k(C,!1);if(typeof C=="number")return String(C);if(typeof C=="object")return Array.isArray(C)?i0(C):F0(C)}function k(o){for(var v={"'":.1,'"':.2},C={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},d="",x=0;x<o.length;x++){var p=o[x];switch(p){case"'":case'"':v[p]++,d+=p;continue;case"\0":if(B.isDigit(o[x+1])){d+="\\x00";continue}}if(C[p]){d+=C[p];continue}if(p<" "){var $=p.charCodeAt(0).toString(16);d+="\\x"+("00"+$).substring($.length);continue}d+=p}var O=z||Object.keys(v).reduce(function(L,H){return v[L]<v[H]?L:H});return d=d.replace(new RegExp(O,"g"),C[O]),O+d+O}function F0(o){if(n.indexOf(o)>=0)throw TypeError("Converting circular structure to JSON5");n.push(o);var v=A;A=A+s;for(var C=E||Object.keys(o),d=[],x=0,p=C;x<p.length;x+=1){var $=p[x],O=G($,o);if(O!==void 0){var L=C0($)+":";s!==""&&(L+=" "),L+=O,d.push(L)}}var H;if(d.length===0)H="{}";else{var uu;if(s==="")uu=d.join(","),H="{"+uu+"}";else{var A0=`,
|
|
9
|
-
`+A;uu=d.join(A0),H=`{
|
|
10
|
-
`+A+uu+`,
|
|
11
|
-
`+v+"}"}}return n.pop(),A=v,H}function C0(o){if(o.length===0)return k(o,!0);var v=String.fromCodePoint(o.codePointAt(0));if(!B.isIdStartChar(v))return k(o,!0);for(var C=v.length;C<o.length;C++)if(!B.isIdContinueChar(String.fromCodePoint(o.codePointAt(C))))return k(o,!0);return o}function i0(o){if(n.indexOf(o)>=0)throw TypeError("Converting circular structure to JSON5");n.push(o);var v=A;A=A+s;for(var C=[],d=0;d<o.length;d++){var x=G(String(d),o);C.push(x!==void 0?x:"null")}var p;if(C.length===0)p="[]";else if(s===""){var $=C.join(",");p="["+$+"]"}else{var O=`,
|
|
12
|
-
`+A,L=C.join(O);p=`[
|
|
13
|
-
`+A+L+`,
|
|
14
|
-
`+v+"]"}return n.pop(),A=v,p}},r0={parse:Wu,stringify:e0},t0=r0,n0=t0;return n0})});export{E0 as a};
|
package/public/chunk-54RIF7BL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-F22FMU37.js";import{$ as Tt,$a as te,Da as it,Db as ft,Ga as st,Ka as nt,La as C,Lb as Mt,M as Ut,Ma as ot,Oa as A,Rb as jt,Ua as F,Va as H,W as N,Wa as rt,X as Wt,Xa as xt,Y as Gt,Ya as It,Z as I,Za as St,_ as G,a as j,aa as Jt,ab as at,b as W,bb as S,da as Kt,e as Zt,g as ge,h as n,ha as wt,hc as ee,i as Yt,ia as Dt,jb as R,l as k,la as pt,lb as Y,nc as ie,oa as Ct,oc as se,sa as Qt,sb as Ot,t as qt,ta as $t,wa as _,xa as Z,za as Xt}from"./chunk-IGUSDGD6.js";var oe=Zt((Ne,ve)=>{ve.exports={name:"homebridge-config-ui-x",displayName:"Homebridge UI",version:"5.0.0-beta.2",description:"A web based management, configuration and control platform for Homebridge.",author:"oznu <dev@oz.nu>",license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/oznu"},{type:"paypal",url:"https://paypal.me/oznu"}],repository:{type:"git",url:"git+https://github.com/homebridge/homebridge-config-ui-x.git"},bugs:{url:"https://github.com/homebridge/homebridge-config-ui-x/issues"},keywords:["homebridge-plugin","ui","gui","web","homebridge","homebridge-config-ui-x","ui-x","config-ui-x","homebridge-x","homebridge server","homebridge ui","homebridge-ui","homebridge gui","homebridge-gui","web interface","config ui","management","config editor","linux","macOS","osx","windows","raspberry pi","accessory control","smart home","hb-service"],main:"./dist/index.js",bin:{"homebridge-config-ui-x":"dist/bin/standalone.js","hb-service":"dist/bin/hb-service.js"},engines:{node:"^18 || ^20 || ^22",homebridge:"^1.8.0 || ^2.0.0-beta.0"},scripts:{build:"npm run build:server && npm run build:ui","build:server":"rimraf dist && tsc -p tsconfig.build.json","build:ui":"npm run build --prefix ui",check:"npm run check:server && npm run check:ui","check:server":"npm install && npm outdated","check:ui":"npm install --prefix ui && npm outdated --prefix ui","lang-sync":"ts-node scripts/lang-sync.ts",lint:"eslint . --max-warnings=0","lint:fix":"npm run lint -- --fix",prepublishOnly:"npm i --package-lock-only && npm run lint && npm run build",start:"ts-node -r tsconfig-paths/register src/main.ts",test:"vitest run","test-coverage":"npm run test -- --coverage","upgrade-install":"./scripts/upgrade-install.sh",watch:'concurrently "npm run watch:ui" "npm run watch:server"',"watch:server":"nodemon","watch:ui":"npm run start --prefix ui"},dependencies:{"@fastify/helmet":"11.1.1","@fastify/multipart":"8.3.0","@fastify/static":"7.0.4","@homebridge/hap-client":"2.0.4","@homebridge/node-pty-prebuilt-multiarch":"0.12.0-beta.2","@nestjs/axios":"3.1.2","@nestjs/common":"10.4.8","@nestjs/core":"10.4.8","@nestjs/jwt":"10.2.0","@nestjs/passport":"10.0.3","@nestjs/platform-fastify":"10.4.8","@nestjs/platform-socket.io":"10.4.8","@nestjs/swagger":"8.0.7","@nestjs/websockets":"10.4.8",axios:"1.7.7","bash-color":"0.0.4","buffer-shims":"1.0.0","class-transformer":"0.5.1","class-validator":"0.14.1",commander:"12.1.0",dayjs:"1.11.13",fastify:"4.28.1","fs-extra":"11.2.0",jsonwebtoken:"9.0.2",lodash:"4.17.21","node-cache":"5.1.2","node-schedule":"2.1.1",ora:"5.4.1",otplib:"12.0.1","p-limit":"3.1.0",passport:"0.7.0","passport-jwt":"4.0.1","reflect-metadata":"0.2.2",rxjs:"7.8.1",semver:"7.6.3",systeminformation:"5.23.5",tail:"2.2.6",tar:"6.2.1","tcp-port-used":"1.0.2",unzipper:"0.12.3"},devDependencies:{"@antfu/eslint-config":"^3.9.1","@nestjs/testing":"^10.4.8","@types/fs-extra":"^11.0.4","@types/lodash":"^4.17.13","@types/node":"^22.9.0","@types/node-schedule":"^2.1.7","@types/passport-jwt":"^4.0.1","@types/semver":"^7.5.8","@types/tail":"^2.2.3","@types/tar":"^6.1.13","@types/tcp-port-used":"^1.0.4","@types/unzipper":"^0.10.10","@vitest/coverage-v8":"^2.1.5",concurrently:"^9.1.0",eslint:"^9.15.0","eslint-plugin-format":"^0.1.2","form-data":"^4.0.1",nodemon:"^3.1.7",rimraf:"^6.0.1","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0",typescript:"^5.6.3","unplugin-swc":"^1.5.1",vitest:"^2.1.5"},maintainers:[{email:"bwp91@icloud.com",name:"bwp91"},{email:"dev@oz.nu",name:"oznu"},{email:"northern.man1@gmail.com",name:"northernman"},{email:"mail@anderl-bauer.de",name:"supereg"},{email:"khaos.tian@gmail.com",name:"khaost"},{email:"erik.baauw@xs4all.nl",name:"ebaauw"},{email:"donavan.becker@icloud.com",name:"donavanbecker"},{email:"dustin.greif@gmail.com",name:"dustin.greif"},{email:"nfarina@gmail.com",name:"nfarina"}]}});var re=Zt((Ft,Et)=>{(function(s,t){typeof Ft=="object"&&typeof Et<"u"?Et.exports=t():typeof define=="function"&&define.amd?define(t):(s=typeof globalThis<"u"?globalThis:s||self).dayjs=t()})(Ft,function(){"use strict";var s=1e3,t=6e4,r=36e5,i="millisecond",e="second",o="minute",h="hour",y="day",O="week",w="month",Q="quarter",$="year",E="date",ct="Invalid Date",_t=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ut={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(d){var u=["th","st","nd","rd"],a=d%100;return"["+d+(u[(a-20)%10]||u[a]||u[0])+"]"}},P=function(d,u,a){var l=String(d);return!l||l.length>=u?d:""+Array(u+1-l.length).join(a)+d},me={s:P,z:function(d){var u=-d.utcOffset(),a=Math.abs(u),l=Math.floor(a/60),c=a%60;return(u<=0?"+":"-")+P(l,2,"0")+":"+P(c,2,"0")},m:function d(u,a){if(u.date()<a.date())return-d(a,u);var l=12*(a.year()-u.year())+(a.month()-u.month()),c=u.clone().add(l,w),p=a-c<0,f=u.clone().add(l+(p?-1:1),w);return+(-(l+(a-c)/(p?c-f:f-c))||0)},a:function(d){return d<0?Math.ceil(d)||0:Math.floor(d)},p:function(d){return{M:w,y:$,w:O,d:y,D:E,h,m:o,s:e,ms:i,Q}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(d){return d===void 0}},X="en",B={};B[X]=ut;var Vt="$isDayjsObject",bt=function(d){return d instanceof lt||!(!d||!d[Vt])},ht=function d(u,a,l){var c;if(!u)return X;if(typeof u=="string"){var p=u.toLowerCase();B[p]&&(c=p),a&&(B[p]=a,c=p);var f=u.split("-");if(!c&&f.length>1)return d(f[0])}else{var g=u.name;B[g]=u,c=g}return!l&&c&&(X=c),c||!l&&X},b=function(d,u){if(bt(d))return d.clone();var a=typeof u=="object"?u:{};return a.date=d,a.args=arguments,new lt(a)},m=me;m.l=ht,m.i=bt,m.w=function(d,u){return b(d,{locale:u.$L,utc:u.$u,x:u.$x,$offset:u.$offset})};var lt=function(){function d(a){this.$L=ht(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[Vt]=!0}var u=d.prototype;return u.parse=function(a){this.$d=function(l){var c=l.date,p=l.utc;if(c===null)return new Date(NaN);if(m.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(_t);if(f){var g=f[2]-1||0,v=(f[7]||"0").substring(0,3);return p?new Date(Date.UTC(f[1],g,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)):new Date(f[1],g,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)}}return new Date(c)}(a),this.init()},u.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},u.$utils=function(){return m},u.isValid=function(){return this.$d.toString()!==ct},u.isSame=function(a,l){var c=b(a);return this.startOf(l)<=c&&c<=this.endOf(l)},u.isAfter=function(a,l){return b(a)<this.startOf(l)},u.isBefore=function(a,l){return this.endOf(l)<b(a)},u.$g=function(a,l,c){return m.u(a)?this[l]:this.set(c,a)},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this.$d.getTime()},u.startOf=function(a,l){var c=this,p=!!m.u(l)||l,f=m.p(a),g=function(z,x){var L=m.w(c.$u?Date.UTC(c.$y,x,z):new Date(c.$y,x,z),c);return p?L:L.endOf(y)},v=function(z,x){return m.w(c.toDate()[z].apply(c.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(x)),c)},T=this.$W,D=this.$M,M=this.$D,U="set"+(this.$u?"UTC":"");switch(f){case $:return p?g(1,0):g(31,11);case w:return p?g(1,D):g(0,D+1);case O:var V=this.$locale().weekStart||0,tt=(T<V?T+7:T)-V;return g(p?M-tt:M+(6-tt),D);case y:case E:return v(U+"Hours",0);case h:return v(U+"Minutes",1);case o:return v(U+"Seconds",2);case e:return v(U+"Milliseconds",3);default:return this.clone()}},u.endOf=function(a){return this.startOf(a,!1)},u.$set=function(a,l){var c,p=m.p(a),f="set"+(this.$u?"UTC":""),g=(c={},c[y]=f+"Date",c[E]=f+"Date",c[w]=f+"Month",c[$]=f+"FullYear",c[h]=f+"Hours",c[o]=f+"Minutes",c[e]=f+"Seconds",c[i]=f+"Milliseconds",c)[p],v=p===y?this.$D+(l-this.$W):l;if(p===w||p===$){var T=this.clone().set(E,1);T.$d[g](v),T.init(),this.$d=T.set(E,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](v);return this.init(),this},u.set=function(a,l){return this.clone().$set(a,l)},u.get=function(a){return this[m.p(a)]()},u.add=function(a,l){var c,p=this;a=Number(a);var f=m.p(l),g=function(D){var M=b(p);return m.w(M.date(M.date()+Math.round(D*a)),p)};if(f===w)return this.set(w,this.$M+a);if(f===$)return this.set($,this.$y+a);if(f===y)return g(1);if(f===O)return g(7);var v=(c={},c[o]=t,c[h]=r,c[e]=s,c)[f]||1,T=this.$d.getTime()+a*v;return m.w(T,this)},u.subtract=function(a,l){return this.add(-1*a,l)},u.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ct;var p=a||"YYYY-MM-DDTHH:mm:ssZ",f=m.z(this),g=this.$H,v=this.$m,T=this.$M,D=c.weekdays,M=c.months,U=c.meridiem,V=function(x,L,et,dt){return x&&(x[L]||x(l,p))||et[L].slice(0,dt)},tt=function(x){return m.s(g%12||12,x,"0")},z=U||function(x,L,et){var dt=x<12?"AM":"PM";return et?dt.toLowerCase():dt};return p.replace(yt,function(x,L){return L||function(et){switch(et){case"YY":return String(l.$y).slice(-2);case"YYYY":return m.s(l.$y,4,"0");case"M":return T+1;case"MM":return m.s(T+1,2,"0");case"MMM":return V(c.monthsShort,T,M,3);case"MMMM":return V(M,T);case"D":return l.$D;case"DD":return m.s(l.$D,2,"0");case"d":return String(l.$W);case"dd":return V(c.weekdaysMin,l.$W,D,2);case"ddd":return V(c.weekdaysShort,l.$W,D,3);case"dddd":return D[l.$W];case"H":return String(g);case"HH":return m.s(g,2,"0");case"h":return tt(1);case"hh":return tt(2);case"a":return z(g,v,!0);case"A":return z(g,v,!1);case"m":return String(v);case"mm":return m.s(v,2,"0");case"s":return String(l.$s);case"ss":return m.s(l.$s,2,"0");case"SSS":return m.s(l.$ms,3,"0");case"Z":return f}return null}(x)||f.replace(":","")})},u.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},u.diff=function(a,l,c){var p,f=this,g=m.p(l),v=b(a),T=(v.utcOffset()-this.utcOffset())*t,D=this-v,M=function(){return m.m(f,v)};switch(g){case $:p=M()/12;break;case w:p=M();break;case Q:p=M()/3;break;case O:p=(D-T)/6048e5;break;case y:p=(D-T)/864e5;break;case h:p=D/r;break;case o:p=D/t;break;case e:p=D/s;break;default:p=D}return c?p:m.a(p)},u.daysInMonth=function(){return this.endOf(w).$D},u.$locale=function(){return B[this.$L]},u.locale=function(a,l){if(!a)return this.$L;var c=this.clone(),p=ht(a,l,!0);return p&&(c.$L=p),c},u.clone=function(){return m.w(this.$d,this)},u.toDate=function(){return new Date(this.valueOf())},u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toISOString=function(){return this.$d.toISOString()},u.toString=function(){return this.$d.toUTCString()},d}(),zt=lt.prototype;return b.prototype=zt,[["$ms",i],["$s",e],["$m",o],["$H",h],["$W",y],["$M",w],["$y",$],["$D",E]].forEach(function(d){zt[d[1]]=function(u){return this.$g(u,d[0],d[1])}}),b.extend=function(d,u){return d.$i||(d(u,lt,b),d.$i=!0),b},b.locale=ht,b.isDayjs=bt,b.unix=function(d){return b(1e3*d)},b.en=B[X],b.Ls=B,b.p={},b})});var J={serverTarget:oe().version,production:!0,socket:"",api:{base:"/api",socket:`${window.location.protocol==="http:"?"ws://":"wss://"}${window.location.host}`,origin:window.location.origin},jwt:{tokenKey:"access_token",allowedDomains:[document.location.host],disallowedRoutes:[`${window.location.protocol}//${document.location.host}/api/auth/login`]},apiHttpOptions:{},owm:{appid:"fec67b55f7f74deaa28df89ba6a60821"}};var ce=(()=>{let t=class t{constructor(i){n(this,"$http");this.$http=i}get(i,e){return this.$http.get(`${J.api.base}${i}`,e)}post(i,e,o){return this.$http.post(`${J.api.base}${i}`,e,o)}put(i,e,o){return this.$http.put(`${J.api.base}${i}`,e,o)}patch(i,e,o){return this.$http.patch(`${J.api.base}${i}`,e,o)}delete(i,e){return this.$http.delete(`${J.api.base}${i}`,e)}};n(t,"\u0275fac",function(e){return new(e||t)(I(ee))}),n(t,"\u0275prov",N({token:t,factory:t.\u0275fac,providedIn:"root"}));let s=t;return s})();var q=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(q||{}),Ze="*";function le(s,t){return{type:q.Trigger,name:s,definitions:t,options:{}}}function kt(s,t=null){return{type:q.Animate,styles:t,timings:s}}function Ye(s,t=null){return{type:q.Sequence,steps:s,options:t}}function mt(s){return{type:q.Style,styles:s,offset:null}}function gt(s,t,r){return{type:q.State,name:s,styles:t,options:r}}function At(s,t,r=null){return{type:q.Transition,expr:s,animation:t,options:r}}var ue=class{constructor(t=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},he=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let r=0,i=0,e=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++r==o&&this._onFinish()}),h.onDestroy(()=>{++i==o&&this._onDestroy()}),h.onStart(()=>{++e==o&&this._onStart()})}),this.totalTime=this.players.reduce((h,y)=>Math.max(h,y.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let r=t*this.totalTime;this.players.forEach(i=>{let e=i.totalTime?Math.min(1,r/i.totalTime):1;i.setPosition(e)})}getPosition(){let t=this.players.reduce((r,i)=>r===null||i.totalTime>r.totalTime?i:r,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},qe="!";var de=["toast-component",""];function be(s,t){if(s&1){let r=St();F(0,"button",5),at("click",function(){wt(r);let e=S();return Dt(e.remove())}),F(1,"span",6),R(2,"\xD7"),H()()}}function Te(s,t){if(s&1&&(xt(0),R(1),It()),s&2){let r=S(2);_(),Y("[",r.duplicatesCount+1,"]")}}function we(s,t){if(s&1&&(F(0,"div"),R(1),st(2,Te,2,1,"ng-container",4),H()),s&2){let r=S();A(r.options.titleClass),nt("aria-label",r.title),_(),Y(" ",r.title," "),_(),C("ngIf",r.duplicatesCount)}}function De(s,t){if(s&1&&rt(0,"div",7),s&2){let r=S();A(r.options.messageClass),C("innerHTML",r.message,$t)}}function Ce(s,t){if(s&1&&(F(0,"div",8),R(1),H()),s&2){let r=S();A(r.options.messageClass),nt("aria-label",r.message),_(),Y(" ",r.message," ")}}function $e(s,t){if(s&1&&(F(0,"div"),rt(1,"div",9),H()),s&2){let r=S();_(),ot("width",r.width()+"%")}}function xe(s,t){if(s&1){let r=St();F(0,"button",5),at("click",function(){wt(r);let e=S();return Dt(e.remove())}),F(1,"span",6),R(2,"\xD7"),H()()}}function Ie(s,t){if(s&1&&(xt(0),R(1),It()),s&2){let r=S(2);_(),Y("[",r.duplicatesCount+1,"]")}}function Se(s,t){if(s&1&&(F(0,"div"),R(1),st(2,Ie,2,1,"ng-container",4),H()),s&2){let r=S();A(r.options.titleClass),nt("aria-label",r.title),_(),Y(" ",r.title," "),_(),C("ngIf",r.duplicatesCount)}}function Oe(s,t){if(s&1&&rt(0,"div",7),s&2){let r=S();A(r.options.messageClass),C("innerHTML",r.message,$t)}}function Me(s,t){if(s&1&&(F(0,"div",8),R(1),H()),s&2){let r=S();A(r.options.messageClass),nt("aria-label",r.message),_(),Y(" ",r.message," ")}}function je(s,t){if(s&1&&(F(0,"div"),rt(1,"div",9),H()),s&2){let r=S();_(),ot("width",r.width()+"%")}}var Ht=class{constructor(t,r){n(this,"_attachedHost");n(this,"component");n(this,"viewContainerRef");n(this,"injector");this.component=t,this.injector=r}attach(t,r){return this._attachedHost=t,t.attach(this,r)}detach(){let t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Rt=class{constructor(){n(this,"_attachedPortal");n(this,"_disposeFn")}attach(t,r){return this._attachedPortal=t,this.attachComponentPortal(t,r)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}},Lt=class{constructor(t){n(this,"_overlayRef");n(this,"componentInstance");n(this,"duplicatesCount",0);n(this,"_afterClosed",new k);n(this,"_activate",new k);n(this,"_manualClose",new k);n(this,"_resetTimeout",new k);n(this,"_countDuplicate",new k);this._overlayRef=t}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,r){t&&this._resetTimeout.next(),r&&this._countDuplicate.next(++this.duplicatesCount)}},K=class{constructor(t,r,i,e,o,h){n(this,"toastId");n(this,"config");n(this,"message");n(this,"title");n(this,"toastType");n(this,"toastRef");n(this,"_onTap",new k);n(this,"_onAction",new k);this.toastId=t,this.config=r,this.message=i,this.title=e,this.toastType=o,this.toastRef=h,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}},pe={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},fe=new Gt("ToastConfig"),Nt=class extends Rt{constructor(r,i,e){super();n(this,"_hostDomElement");n(this,"_componentFactoryResolver");n(this,"_appRef");this._hostDomElement=r,this._componentFactoryResolver=i,this._appRef=e}attachComponentPortal(r,i){let e=this._componentFactoryResolver.resolveComponentFactory(r.component),o;return o=e.create(r.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),i?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(r){return r.hostView.rootNodes[0]}},Fe=(()=>{let t=class t{constructor(){n(this,"_document",G(Mt));n(this,"_containerElement")}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i=this._document.createElement("div");i.classList.add("overlay-container"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),this._containerElement=i}};n(t,"\u0275fac",function(e){return new(e||t)}),n(t,"\u0275prov",N({token:t,factory:t.\u0275fac,providedIn:"root"}));let s=t;return s})(),Pt=class{constructor(t){n(this,"_portalHost");this._portalHost=t}attach(t,r=!0){return this._portalHost.attach(t,r)}detach(){return this._portalHost.detach()}},Ee=(()=>{let t=class t{constructor(){n(this,"_overlayContainer",G(Fe));n(this,"_componentFactoryResolver",G(Xt));n(this,"_appRef",G(ft));n(this,"_document",G(Mt));n(this,"_paneElements",new Map)}create(i,e){return this._createOverlayRef(this.getPaneElement(i,e))}getPaneElement(i="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[i]||(this._paneElements.get(e)[i]=this._createPaneElement(i,e)),this._paneElements.get(e)[i]}_createPaneElement(i,e){let o=this._document.createElement("div");return o.id="toast-container",o.classList.add(i),o.classList.add("toast-container"),e?e.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(i){return new Nt(i,this._componentFactoryResolver,this._appRef)}_createOverlayRef(i){return new Pt(this._createPortalHost(i))}};n(t,"\u0275fac",function(e){return new(e||t)}),n(t,"\u0275prov",N({token:t,factory:t.\u0275fac,providedIn:"root"}));let s=t;return s})(),vt=(()=>{let t=class t{constructor(i,e,o,h,y){n(this,"overlay");n(this,"_injector");n(this,"sanitizer");n(this,"ngZone");n(this,"toastrConfig");n(this,"currentlyActive",0);n(this,"toasts",[]);n(this,"overlayContainer");n(this,"previousToastMessage");n(this,"index",0);this.overlay=e,this._injector=o,this.sanitizer=h,this.ngZone=y,this.toastrConfig=j(j({},i.default),i.config),i.config.iconClasses&&(this.toastrConfig.iconClasses=j(j({},i.default.iconClasses),i.config.iconClasses))}show(i,e,o={},h=""){return this._preBuildNotification(h,i,e,this.applyConfig(o))}success(i,e,o={}){let h=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(h,i,e,this.applyConfig(o))}error(i,e,o={}){let h=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(h,i,e,this.applyConfig(o))}info(i,e,o={}){let h=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(h,i,e,this.applyConfig(o))}warning(i,e,o={}){let h=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(h,i,e,this.applyConfig(o))}clear(i){for(let e of this.toasts)if(i!==void 0){if(e.toastId===i){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(i){let e=this._findToast(i);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let o=this.toasts[this.currentlyActive].toastRef;o.isInactive()||(this.currentlyActive=this.currentlyActive+1,o.activate())}return!0}findDuplicate(i="",e="",o,h){let{includeTitleDuplicates:y}=this.toastrConfig;for(let O of this.toasts){let w=y&&O.title===i;if((!y||w)&&O.message===e)return O.toastRef.onDuplicate(o,h),O}return null}applyConfig(i={}){return j(j({},this.toastrConfig),i)}_findToast(i){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===i)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(i,e,o,h){return h.onActivateTick?this.ngZone.run(()=>this._buildNotification(i,e,o,h)):this._buildNotification(i,e,o,h)}_buildNotification(i,e,o,h){if(!h.toastComponent)throw new Error("toastComponent required");let y=this.findDuplicate(o,e,this.toastrConfig.resetTimeoutOnDuplicate&&h.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||e)&&this.toastrConfig.preventDuplicates&&y!==null)return y;this.previousToastMessage=e;let O=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(O=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let w=this.overlay.create(h.positionClass,this.overlayContainer);this.index=this.index+1;let Q=e;e&&h.enableHtml&&(Q=this.sanitizer.sanitize(Qt.HTML,e));let $=new Lt(w),E=new K(this.index,h,Q,o,i,$),ct=[{provide:K,useValue:E}],_t=pt.create({providers:ct,parent:this._injector}),yt=new Ht(h.toastComponent,_t),ut=w.attach(yt,h.newestOnTop);$.componentInstance=ut.instance;let P={toastId:this.index,title:o||"",message:e||"",toastRef:$,onShown:$.afterActivate(),onHidden:$.afterClosed(),onTap:E.onTap(),onAction:E.onAction(),portal:ut};return O||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{P.toastRef.activate()})),this.toasts.push(P),P}};n(t,"\u0275fac",function(e){return new(e||t)(I(fe),I(Ee),I(pt),I(se),I(Ct))}),n(t,"\u0275prov",N({token:t,factory:t.\u0275fac,providedIn:"root"}));let s=t;return s})(),ke=(()=>{let t=class t{constructor(i,e,o){n(this,"toastrService");n(this,"toastPackage");n(this,"ngZone");n(this,"message");n(this,"title");n(this,"options");n(this,"duplicatesCount");n(this,"originalTimeout");n(this,"width",it(-1));n(this,"toastClasses","");n(this,"state");n(this,"timeout");n(this,"intervalId");n(this,"hideTime");n(this,"sub");n(this,"sub1");n(this,"sub2");n(this,"sub3");this.toastrService=i,this.toastPackage=e,this.ngZone=o,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(h=>{this.duplicatesCount=h}),this.state=it({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(i=>W(j({},i),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),e=this.hideTime-i;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(i=>W(j({},i),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(i=>W(j({},i),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(i,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(i),e)):this.timeout=setTimeout(()=>i(),e)}outsideInterval(i,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(i),e)):this.intervalId=setInterval(()=>i(),e)}runInsideAngular(i){this.ngZone?this.ngZone.run(()=>i()):i()}};n(t,"\u0275fac",function(e){return new(e||t)(Z(vt),Z(K),Z(Ct))}),n(t,"\u0275cmp",Tt({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,o){e&1&&at("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),e&2&&(te("@flyInOut",o._state),A(o.toastClasses),ot("display",o.displayStyle))},standalone:!0,features:[Ot],attrs:de,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,o){e&1&&st(0,be,3,0,"button",0)(1,we,3,5,"div",1)(2,De,1,3,"div",2)(3,Ce,2,4,"div",3)(4,$e,2,2,"div",4),e&2&&(C("ngIf",o.options.closeButton),_(),C("ngIf",o.title),_(),C("ngIf",o.message&&o.options.enableHtml),_(),C("ngIf",o.message&&!o.options.enableHtml),_(),C("ngIf",o.options.progressBar))},dependencies:[jt],encapsulation:2,data:{animation:[le("flyInOut",[gt("inactive",mt({opacity:0})),gt("active",mt({opacity:1})),gt("removed",mt({opacity:0})),At("inactive => active",kt("{{ easeTime }}ms {{ easing }}")),At("active => removed",kt("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0}));let s=t;return s})(),Ae=W(j({},pe),{toastComponent:ke}),He=(s={})=>Kt([{provide:fe,useValue:{default:Ae,config:s}}]),ci=(()=>{let t=class t{static forRoot(i={}){return{ngModule:t,providers:[He(i)]}}};n(t,"\u0275fac",function(e){return new(e||t)}),n(t,"\u0275mod",Jt({type:t})),n(t,"\u0275inj",Wt({}));let s=t;return s})();var Re=(()=>{let t=class t{constructor(i,e,o){n(this,"toastrService");n(this,"toastPackage");n(this,"appRef");n(this,"message");n(this,"title");n(this,"options");n(this,"duplicatesCount");n(this,"originalTimeout");n(this,"width",it(-1));n(this,"toastClasses","");n(this,"state",it("inactive"));n(this,"timeout");n(this,"intervalId");n(this,"hideTime");n(this,"sub");n(this,"sub1");n(this,"sub2");n(this,"sub3");this.toastrService=i,this.toastPackage=e,this.appRef=o,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(h=>{this.duplicatesCount=h})}get displayStyle(){return this.state()==="inactive"?"none":null}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),e=this.hideTime-i;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}};n(t,"\u0275fac",function(e){return new(e||t)(Z(vt),Z(K),Z(ft))}),n(t,"\u0275cmp",Tt({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,o){e&1&&at("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),e&2&&(A(o.toastClasses),ot("display",o.displayStyle))},standalone:!0,features:[Ot],attrs:de,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,o){e&1&&st(0,xe,3,0,"button",0)(1,Se,3,5,"div",1)(2,Oe,1,3,"div",2)(3,Me,2,4,"div",3)(4,je,2,2,"div",4),e&2&&(C("ngIf",o.options.closeButton),_(),C("ngIf",o.title),_(),C("ngIf",o.message&&o.options.enableHtml),_(),C("ngIf",o.message&&!o.options.enableHtml),_(),C("ngIf",o.options.progressBar))},dependencies:[jt],encapsulation:2,changeDetection:0}));let s=t;return s})(),ui=W(j({},pe),{toastComponent:Re});var Bt=ge(re(),1);var fi=(()=>{let t=class t{constructor(i,e,o,h){n(this,"$api");n(this,"$title");n(this,"$toastr");n(this,"$translate");n(this,"env",{});n(this,"formAuth",!0);n(this,"uiVersion");n(this,"theme");n(this,"lightingMode");n(this,"currentLightingMode");n(this,"actualLightingMode");n(this,"browserLightingMode");n(this,"loginWallpaper");n(this,"serverTimeOffset",0);n(this,"themeList",["orange","red","pink","purple","deep-purple","indigo","blue","blue-grey","cyan","green","teal","grey","brown"]);n(this,"rtl",!1);n(this,"settingsLoadedSubject",new k);n(this,"onSettingsLoaded",this.settingsLoadedSubject.pipe(Ut()));n(this,"settingsLoaded",!1);this.$api=i,this.$title=e,this.$toastr=o,this.$translate=h,this.getAppSettings()}getAppSettings(){return Yt(this,null,function*(){let i=yield qt(this.$api.get("/auth/settings"));this.formAuth=i.formAuth,this.env=i.env,this.lightingMode=i.lightingMode,this.loginWallpaper=i.loginWallpaper,this.setLightingMode(this.lightingMode,"user"),this.setTheme(i.theme),this.setTitle(this.env.homebridgeInstanceName),this.checkServerTime(i.serverTimestamp),this.setUiVersion(i.env.packageVersion),this.setLang(this.env.lang),this.settingsLoaded=!0,this.settingsLoadedSubject.next(void 0)})}setBrowserLightingMode(i){this.browserLightingMode=i,this.lightingMode==="auto"&&this.setLightingMode(i,"browser")}setLightingMode(i,e){e==="user"&&(this.lightingMode=i),this.currentLightingMode=i,this.actualLightingMode=this.currentLightingMode==="auto"?this.browserLightingMode:this.currentLightingMode,this.theme&&this.setTheme(this.theme)}setTheme(i){(!i||!this.themeList.includes(i))&&(i="orange");let e=window.document.querySelector("body");e.classList.remove(`config-ui-x-${this.theme}`),e.classList.remove(`config-ui-x-dark-mode-${this.theme}`),this.theme=i,this.actualLightingMode==="dark"?(e.classList.add(`config-ui-x-dark-mode-${this.theme}`),e.classList.contains("dark-mode")||e.classList.add("dark-mode")):(e.classList.add(`config-ui-x-${this.theme}`),e.classList.contains("dark-mode")&&e.classList.remove("dark-mode"))}setTitle(i){this.$title.setTitle(i||"Homebridge")}setUiVersion(i){this.uiVersion||(this.uiVersion=i)}setLang(i){i?this.$translate.use(i):i="auto",this.env.lang=i}setEnvItem(i,e){this.env[i]=e}checkServerTime(i){let o=(0,Bt.default)(i).diff((0,Bt.default)(),"hour");this.serverTimeOffset=o*60*60,(o>=8||o<=-8)&&this.$toastr.warning(this.$translate.instant("settings.datetime.incorrect"),this.$translate.instant("toast.title_warning"),{timeOut:2e4,tapToDismiss:!1}).onTap.subscribe(()=>{window.open("https://homebridge.io/w/JqTFs","_blank")})}};n(t,"\u0275fac",function(e){return new(e||t)(I(ce),I(ie),I(vt),I(ne))}),n(t,"\u0275prov",N({token:t,factory:t.\u0275fac,providedIn:"root"}));let s=t;return s})();export{re as a,J as b,ce as c,q as d,Ze as e,Ye as f,mt as g,ue as h,he as i,qe as j,vt as k,ci as l,fi as m};
|
package/public/chunk-6PFEOQAC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as O,b as G}from"./chunk-THFLPY67.js";import{a as j}from"./chunk-NJRXPLIM.js";import{M as H}from"./chunk-WCDFKYP6.js";import{c as D,k as M}from"./chunk-54RIF7BL.js";import{a as z,b as V}from"./chunk-F22FMU37.js";import{$ as C,Ab as w,Ga as b,Ka as S,La as p,Rb as F,Ua as o,Va as a,Wa as h,Za as $,ab as x,bb as f,fc as E,g as R,gc as P,h as n,ha as I,i as g,ia as y,jb as d,kb as v,lb as k,sc as A,ub as B,wa as r,xa as _,yb as m,zb as u}from"./chunk-IGUSDGD6.js";var W=R(O(),1),N=R(G(),1);var J=e=>({maxBackupSizeText:e});function K(e,c){if(e&1&&(o(0,"div"),h(1,"input",13),a()),e&2){let t=f(2);r(),p("value",t.selectedBackup.fileName)}}function L(e,c){if(e&1){let t=$();o(0,"div",14)(1,"input",15),x("change",function(i){I(t);let l=f(2);return y(l.handleRestoreFileInput(i.target.files))}),a(),o(2,"label",16),d(3),m(4,"translate"),a()()}if(e&2){let t=f(2);r(3),k(" ",u(4,1,(t.selectedFile==null?null:t.selectedFile.name)||"backup.label_choose_backup_file_to_restore")," ")}}function Q(e,c){if(e&1&&(o(0,"div",8)(1,"div",9),h(2,"i",10),a(),o(3,"p"),d(4),m(5,"translate"),a(),o(6,"ul")(7,"li"),d(8),m(9,"translate"),a(),o(10,"li"),d(11),m(12,"translate"),a(),o(13,"li"),d(14),m(15,"translate"),a()(),b(16,K,2,1,"div",11)(17,L,5,3,"div",12),a()),e&2){let t=f();r(4),v(u(5,6,"backup.restore_help_one")),r(4),v(u(9,8,"backup.restore_help_two")),r(3),v(w(12,10,"backup.restore_max_size",B(15,J,t.maxFileSizeText))),r(3),v(u(15,13,"backup.restore_warning")),r(2),p("ngIf",t.selectedBackup),r(),p("ngIf",!t.selectedBackup)}}function X(e,c){e&1&&h(0,"i",24)}function Y(e,c){if(e&1&&(o(0,"span"),d(1),a()),e&2){let t=f(3);r(),k("",t.uploadPercent,"% - ")}}function Z(e,c){e&1&&(o(0,"span"),d(1," Extracting Archive"),a())}function ee(e,c){e&1&&(o(0,"span"),d(1),m(2,"translate"),a()),e&2&&(r(),k(" ",u(2,1,"backup.label_uploading"),""))}function te(e,c){if(e&1&&(o(0,"span"),b(1,X,1,0,"i",23)(2,Y,2,1,"span",11)(3,Z,2,0,"span",11)(4,ee,3,3,"span",11),a()),e&2){let t=f(2);r(),p("ngIf",!t.uploadPercent||t.uploadPercent===100),r(),p("ngIf",t.uploadPercent&&t.uploadPercent!==100),r(),p("ngIf",t.uploadPercent===100),r(),p("ngIf",t.uploadPercent!==100)}}function ie(e,c){e&1&&(o(0,"span"),d(1),m(2,"translate"),a()),e&2&&(r(),v(u(2,1,"form.button_restore")))}function re(e,c){if(e&1){let t=$();o(0,"div",17)(1,"div",18)(2,"button",19),m(3,"translate"),x("click",function(){I(t);let i=f();return y(i.$activeModal.dismiss("Dismiss"))}),d(4),m(5,"translate"),a()(),h(6,"div",20),o(7,"div",21)(8,"button",22),x("click",function(){I(t);let i=f();return y(i.onRestoreBackupClick())}),b(9,te,5,4,"span",11)(10,ie,3,3,"span",11),a()()()}if(e&2){let t=f();r(2),p("disabled",t.clicked),S("aria-label",u(3,6,"form.button_close")),r(2),k(" ",u(5,8,"form.button_close")," "),r(4),p("disabled",!t.selectedBackup&&!t.selectedFile||t.clicked),r(),p("ngIf",t.clicked),r(),p("ngIf",!t.clicked)}}function se(e,c){if(e&1){let t=$();o(0,"div",17),h(1,"div",18),o(2,"div",20)(3,"button",25),x("click",function(){I(t);let i=f();return y(i.postBackupRestart())}),d(4),m(5,"translate"),a()(),h(6,"div",21),a()}e&2&&(r(4),k(" ",u(5,1,"menu.hbrestart.title")," "))}var fe=(()=>{let c=class c{constructor(s,i,l,T,U,q){n(this,"$activeModal");n(this,"$api");n(this,"$route");n(this,"$toastr");n(this,"$translate");n(this,"$ws");n(this,"setupWizardRestore",!1);n(this,"selectedBackup",null);n(this,"clicked",!1);n(this,"maxFileSizeText",globalThis.backup.maxBackupSizeText);n(this,"selectedFile");n(this,"restoreInProgress",!1);n(this,"restoreStarted",!1);n(this,"restoreFailed",!1);n(this,"restoreArchiveType","homebridge");n(this,"uploadPercent",0);n(this,"term",new W.Terminal);n(this,"termTarget");n(this,"fitAddon",new N.FitAddon);n(this,"io");this.$activeModal=s,this.$api=i,this.$route=l,this.$toastr=T,this.$translate=U,this.$ws=q}ngOnInit(){return g(this,null,function*(){this.io=this.$ws.connectToNamespace("backup"),this.termTarget=document.getElementById("plugin-log-output"),this.term.open(this.termTarget),this.fitAddon.fit(),this.io.socket.on("stdout",s=>{this.term.write(s)}),this.setupWizardRestore&&(this.restoreStarted=!0,this.restoreInProgress=!0,this.startRestore())})}onRestoreBackupClick(){this.selectedBackup?this.restoreScheduledBackup():this.restoreArchiveType==="homebridge"?this.uploadHomebridgeArchive():this.restoreArchiveType==="hbfx"&&this.uploadHbfxArchive()}uploadHomebridgeArchive(){this.term.reset(),this.clicked=!0;let s=new FormData;s.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore",s).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:i=>{var l;console.error(i),this.$toastr.error(((l=i.error)==null?void 0:l.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})}restoreScheduledBackup(){return g(this,null,function*(){this.term.reset(),this.clicked=!0,this.$api.post(`/backup/scheduled-backups/${this.selectedBackup.id}/restore`,{}).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:s=>{var i;console.error(s),this.$toastr.error(((i=s.error)==null?void 0:i.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})})}startRestore(){return g(this,null,function*(){this.io.request("do-restore").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success")),this.setupWizardRestore&&this.postBackupRestart()},error:s=>{this.restoreFailed=!0,console.error(s),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}uploadHbfxArchive(){this.term.reset(),this.clicked=!0;let s=new FormData;s.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore/hbfx",s,{reportProgress:!0,observe:"events"}).subscribe({next:i=>{i.type===E.UploadProgress?this.uploadPercent=Math.round(100*i.loaded/i.total):i instanceof P&&(this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startHbfxRestore()},500),this.clicked=!1)},error:i=>{var l;this.clicked=!1,console.error(i),this.$toastr.error(((l=i.error)==null?void 0:l.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})}startHbfxRestore(){return g(this,null,function*(){this.io.request("do-restore-hbfx").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success"))},error:s=>{this.restoreFailed=!0,console.error(s),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}handleRestoreFileInput(s){s.length?(this.selectedFile=s[0],this.selectedFile.name.endsWith(".hbfx")?this.restoreArchiveType="hbfx":this.restoreArchiveType="homebridge"):delete this.selectedFile}postBackupRestart(){this.$api.put("/backup/restart",{}).subscribe({next:()=>{this.$activeModal.close(!0),this.$route.navigate(["/"])},error:()=>{}})}ngOnDestroy(){this.io.end()}};n(c,"\u0275fac",function(i){return new(i||c)(_(H),_(D),_(A),_(M),_(z),_(j))}),n(c,"\u0275cmp",C({type:c,selectors:[["ng-component"]],inputs:{setupWizardRestore:"setupWizardRestore",selectedBackup:"selectedBackup"},decls:13,vars:11,consts:[[1,"modal-content","hb-backup-modal"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],["class","modal-body",4,"ngIf"],["id","plugin-log-output",1,"modal-body",3,"hidden"],["class","modal-footer justify-content-between",4,"ngIf"],[1,"modal-body"],[1,"text-center","mt-2","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[4,"ngIf"],["class","custom-file",4,"ngIf"],["type","text","disabled","",1,"form-control","custom-input",3,"value"],[1,"custom-file"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz, .hbfx",1,"custom-file-input",3,"change"],["for","restoreFileUpload",1,"custom-file-label"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],["class","fa fa-fw fa-circle-notch fa-spin",4,"ngIf"],[1,"fa","fa-fw","fa-circle-notch","fa-spin"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click"]],template:function(i,l){i&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),d(3),m(4,"translate"),a(),o(5,"button",3),m(6,"translate"),x("click",function(){return l.$activeModal.dismiss("Dismiss")}),o(7,"span",4),d(8,"\xD7"),a()()(),b(9,Q,18,17,"div",5),h(10,"div",6),b(11,re,11,10,"div",7)(12,se,7,3,"div",7),a()),i&2&&(r(3),v(u(4,7,"form.button_restore")),r(2),p("disabled",l.restoreInProgress),S("aria-label",u(6,9,"form.button_close")),r(4),p("ngIf",!l.restoreStarted&&!l.setupWizardRestore),r(),p("hidden",!l.restoreStarted),r(),p("ngIf",!l.restoreStarted||l.restoreFailed===!0),r(),p("ngIf",!l.restoreInProgress&&l.restoreStarted))},dependencies:[F,V],encapsulation:2}));let e=c;return e})();export{fe as a};
|
package/public/chunk-AA4ALV5Q.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{e as ll,f as fn,g as In,h as fl,i as Ur,j as qr,k as se,l as $r,m as Pe}from"./chunk-CMASH2I6.js";import{M as sl,z as ul}from"./chunk-WCDFKYP6.js";import{m as po}from"./chunk-54RIF7BL.js";import{b as il,c as ol}from"./chunk-F22FMU37.js";import{$ as bn,$b as ue,Fb as Pr,Ga as St,Ka as kn,La as z,Na as We,Oa as Jt,Pa as rl,Rb as Hr,Ua as q,Va as Y,W as Fe,Wa as at,X as te,Y as Vs,Z as De,Za as Ne,a as Js,aa as ne,ab as Cn,b as Xs,ba as js,bb as it,ca as tl,e as c0,g as h0,ga as Wr,h as N,ha as Be,ia as ke,ja as nl,jb as dt,kb as re,l as Qs,lb as Nr,na as ho,ta as ee,ua as el,wa as P,xa as Bt,yb as ie,zb as oe}from"./chunk-IGUSDGD6.js";var al=c0((fe,He)=>{(function(){var u,m="4.17.21",C=200,y="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",_="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",M=500,j="__lodash_placeholder__",Z=1,qe=2,Xt=4,an=1,$e=2,At=1,Sn=2,_o=4,$t=8,Wn=16,Gt=32,Nn=64,Qt=128,ae=256,Gr=512,gl=30,_l="...",ml=800,vl=16,mo=1,wl=2,yl=3,An=1/0,cn=9007199254740991,xl=17976931348623157e292,Ge=NaN,zt=4294967295,bl=zt-1,Cl=zt>>>1,Il=[["ary",Qt],["bind",At],["bindKey",Sn],["curry",$t],["curryRight",Wn],["flip",Gr],["partial",Gt],["partialRight",Nn],["rearg",ae]],Pn="[object Arguments]",ze="[object Array]",Sl="[object AsyncFunction]",ce="[object Boolean]",he="[object Date]",Al="[object DOMException]",Ke="[object Error]",Ye="[object Function]",vo="[object GeneratorFunction]",kt="[object Map]",pe="[object Number]",Tl="[object Null]",Vt="[object Object]",wo="[object Promise]",Ll="[object Proxy]",de="[object RegExp]",Wt="[object Set]",ge="[object String]",Ze="[object Symbol]",El="[object Undefined]",_e="[object WeakMap]",Rl="[object WeakSet]",me="[object ArrayBuffer]",Hn="[object DataView]",zr="[object Float32Array]",Kr="[object Float64Array]",Yr="[object Int8Array]",Zr="[object Int16Array]",Jr="[object Int32Array]",Xr="[object Uint8Array]",Qr="[object Uint8ClampedArray]",Vr="[object Uint16Array]",jr="[object Uint32Array]",Ol=/\b__p \+= '';/g,Ml=/\b(__p \+=) '' \+/g,Fl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yo=/&(?:amp|lt|gt|quot|#39);/g,xo=/[&<>"']/g,Dl=RegExp(yo.source),Bl=RegExp(xo.source),kl=/<%-([\s\S]+?)%>/g,Wl=/<%([\s\S]+?)%>/g,bo=/<%=([\s\S]+?)%>/g,Nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pl=/^\w*$/,Hl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ti=/[\\^$.*+?()[\]{}|]/g,Ul=RegExp(ti.source),ni=/^\s+/,ql=/\s/,$l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gl=/\{\n\/\* \[wrapped with (.+)\] \*/,zl=/,? & /,Kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yl=/[()=,{}\[\]\/\s]/,Zl=/\\(\\)?/g,Jl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Co=/\w*$/,Xl=/^[-+]0x[0-9a-f]+$/i,Ql=/^0b[01]+$/i,Vl=/^\[object .+?Constructor\]$/,jl=/^0o[0-7]+$/i,tf=/^(?:0|[1-9]\d*)$/,nf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,ef=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",rf="\\u0300-\\u036f",of="\\ufe20-\\ufe2f",uf="\\u20d0-\\u20ff",Io=rf+of+uf,So="\\u2700-\\u27bf",Ao="a-z\\xdf-\\xf6\\xf8-\\xff",sf="\\xac\\xb1\\xd7\\xf7",lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ff="\\u2000-\\u206f",af=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",To="A-Z\\xc0-\\xd6\\xd8-\\xde",Lo="\\ufe0e\\ufe0f",Eo=sf+lf+ff+af,ei="['\u2019]",cf="["+Xe+"]",Ro="["+Eo+"]",Qe="["+Io+"]",Oo="\\d+",hf="["+So+"]",Mo="["+Ao+"]",Fo="[^"+Xe+Eo+Oo+So+Ao+To+"]",ri="\\ud83c[\\udffb-\\udfff]",pf="(?:"+Qe+"|"+ri+")",Do="[^"+Xe+"]",ii="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",Un="["+To+"]",Bo="\\u200d",ko="(?:"+Mo+"|"+Fo+")",df="(?:"+Un+"|"+Fo+")",Wo="(?:"+ei+"(?:d|ll|m|re|s|t|ve))?",No="(?:"+ei+"(?:D|LL|M|RE|S|T|VE))?",Po=pf+"?",Ho="["+Lo+"]?",gf="(?:"+Bo+"(?:"+[Do,ii,oi].join("|")+")"+Ho+Po+")*",_f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uo=Ho+Po+gf,vf="(?:"+[hf,ii,oi].join("|")+")"+Uo,wf="(?:"+[Do+Qe+"?",Qe,ii,oi,cf].join("|")+")",yf=RegExp(ei,"g"),xf=RegExp(Qe,"g"),ui=RegExp(ri+"(?="+ri+")|"+wf+Uo,"g"),bf=RegExp([Un+"?"+Mo+"+"+Wo+"(?="+[Ro,Un,"$"].join("|")+")",df+"+"+No+"(?="+[Ro,Un+ko,"$"].join("|")+")",Un+"?"+ko+"+"+Wo,Un+"+"+No,mf,_f,Oo,vf].join("|"),"g"),Cf=RegExp("["+Bo+Xe+Io+Lo+"]"),If=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Af=-1,J={};J[zr]=J[Kr]=J[Yr]=J[Zr]=J[Jr]=J[Xr]=J[Qr]=J[Vr]=J[jr]=!0,J[Pn]=J[ze]=J[me]=J[ce]=J[Hn]=J[he]=J[Ke]=J[Ye]=J[kt]=J[pe]=J[Vt]=J[de]=J[Wt]=J[ge]=J[_e]=!1;var K={};K[Pn]=K[ze]=K[me]=K[Hn]=K[ce]=K[he]=K[zr]=K[Kr]=K[Yr]=K[Zr]=K[Jr]=K[kt]=K[pe]=K[Vt]=K[de]=K[Wt]=K[ge]=K[Ze]=K[Xr]=K[Qr]=K[Vr]=K[jr]=!0,K[Ke]=K[Ye]=K[_e]=!1;var Tf={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Lf={"&":"&","<":"<",">":">",'"':""","'":"'"},Ef={"&":"&","<":"<",">":">",""":'"',"'":"'"},Rf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Of=parseFloat,Mf=parseInt,qo=typeof global=="object"&&global&&global.Object===Object&&global,Ff=typeof self=="object"&&self&&self.Object===Object&&self,ot=qo||Ff||Function("return this")(),si=typeof fe=="object"&&fe&&!fe.nodeType&&fe,Tn=si&&typeof He=="object"&&He&&!He.nodeType&&He,$o=Tn&&Tn.exports===si,li=$o&&qo.process,Tt=function(){try{var a=Tn&&Tn.require&&Tn.require("util").types;return a||li&&li.binding&&li.binding("util")}catch{}}(),Go=Tt&&Tt.isArrayBuffer,zo=Tt&&Tt.isDate,Ko=Tt&&Tt.isMap,Yo=Tt&&Tt.isRegExp,Zo=Tt&&Tt.isSet,Jo=Tt&&Tt.isTypedArray;function wt(a,p,h){switch(h.length){case 0:return a.call(p);case 1:return a.call(p,h[0]);case 2:return a.call(p,h[0],h[1]);case 3:return a.call(p,h[0],h[1],h[2])}return a.apply(p,h)}function Df(a,p,h,b){for(var L=-1,H=a==null?0:a.length;++L<H;){var et=a[L];p(b,et,h(et),a)}return b}function Lt(a,p){for(var h=-1,b=a==null?0:a.length;++h<b&&p(a[h],h,a)!==!1;);return a}function Bf(a,p){for(var h=a==null?0:a.length;h--&&p(a[h],h,a)!==!1;);return a}function Xo(a,p){for(var h=-1,b=a==null?0:a.length;++h<b;)if(!p(a[h],h,a))return!1;return!0}function hn(a,p){for(var h=-1,b=a==null?0:a.length,L=0,H=[];++h<b;){var et=a[h];p(et,h,a)&&(H[L++]=et)}return H}function Ve(a,p){var h=a==null?0:a.length;return!!h&&qn(a,p,0)>-1}function fi(a,p,h){for(var b=-1,L=a==null?0:a.length;++b<L;)if(h(p,a[b]))return!0;return!1}function X(a,p){for(var h=-1,b=a==null?0:a.length,L=Array(b);++h<b;)L[h]=p(a[h],h,a);return L}function pn(a,p){for(var h=-1,b=p.length,L=a.length;++h<b;)a[L+h]=p[h];return a}function ai(a,p,h,b){var L=-1,H=a==null?0:a.length;for(b&&H&&(h=a[++L]);++L<H;)h=p(h,a[L],L,a);return h}function kf(a,p,h,b){var L=a==null?0:a.length;for(b&&L&&(h=a[--L]);L--;)h=p(h,a[L],L,a);return h}function ci(a,p){for(var h=-1,b=a==null?0:a.length;++h<b;)if(p(a[h],h,a))return!0;return!1}var Wf=hi("length");function Nf(a){return a.split("")}function Pf(a){return a.match(Kl)||[]}function Qo(a,p,h){var b;return h(a,function(L,H,et){if(p(L,H,et))return b=H,!1}),b}function je(a,p,h,b){for(var L=a.length,H=h+(b?1:-1);b?H--:++H<L;)if(p(a[H],H,a))return H;return-1}function qn(a,p,h){return p===p?Qf(a,p,h):je(a,Vo,h)}function Hf(a,p,h,b){for(var L=h-1,H=a.length;++L<H;)if(b(a[L],p))return L;return-1}function Vo(a){return a!==a}function jo(a,p){var h=a==null?0:a.length;return h?di(a,p)/h:Ge}function hi(a){return function(p){return p==null?u:p[a]}}function pi(a){return function(p){return a==null?u:a[p]}}function tu(a,p,h,b,L){return L(a,function(H,et,G){h=b?(b=!1,H):p(h,H,et,G)}),h}function Uf(a,p){var h=a.length;for(a.sort(p);h--;)a[h]=a[h].value;return a}function di(a,p){for(var h,b=-1,L=a.length;++b<L;){var H=p(a[b]);H!==u&&(h=h===u?H:h+H)}return h}function gi(a,p){for(var h=-1,b=Array(a);++h<a;)b[h]=p(h);return b}function qf(a,p){return X(p,function(h){return[h,a[h]]})}function nu(a){return a&&a.slice(0,ou(a)+1).replace(ni,"")}function yt(a){return function(p){return a(p)}}function _i(a,p){return X(p,function(h){return a[h]})}function ve(a,p){return a.has(p)}function eu(a,p){for(var h=-1,b=a.length;++h<b&&qn(p,a[h],0)>-1;);return h}function ru(a,p){for(var h=a.length;h--&&qn(p,a[h],0)>-1;);return h}function $f(a,p){for(var h=a.length,b=0;h--;)a[h]===p&&++b;return b}var Gf=pi(Tf),zf=pi(Lf);function Kf(a){return"\\"+Rf[a]}function Yf(a,p){return a==null?u:a[p]}function $n(a){return Cf.test(a)}function Zf(a){return If.test(a)}function Jf(a){for(var p,h=[];!(p=a.next()).done;)h.push(p.value);return h}function mi(a){var p=-1,h=Array(a.size);return a.forEach(function(b,L){h[++p]=[L,b]}),h}function iu(a,p){return function(h){return a(p(h))}}function dn(a,p){for(var h=-1,b=a.length,L=0,H=[];++h<b;){var et=a[h];(et===p||et===j)&&(a[h]=j,H[L++]=h)}return H}function tr(a){var p=-1,h=Array(a.size);return a.forEach(function(b){h[++p]=b}),h}function Xf(a){var p=-1,h=Array(a.size);return a.forEach(function(b){h[++p]=[b,b]}),h}function Qf(a,p,h){for(var b=h-1,L=a.length;++b<L;)if(a[b]===p)return b;return-1}function Vf(a,p,h){for(var b=h+1;b--;)if(a[b]===p)return b;return b}function Gn(a){return $n(a)?ta(a):Wf(a)}function Nt(a){return $n(a)?na(a):Nf(a)}function ou(a){for(var p=a.length;p--&&ql.test(a.charAt(p)););return p}var jf=pi(Ef);function ta(a){for(var p=ui.lastIndex=0;ui.test(a);)++p;return p}function na(a){return a.match(ui)||[]}function ea(a){return a.match(bf)||[]}var ra=function a(p){p=p==null?ot:gn.defaults(ot.Object(),p,gn.pick(ot,Sf));var h=p.Array,b=p.Date,L=p.Error,H=p.Function,et=p.Math,G=p.Object,vi=p.RegExp,ia=p.String,Et=p.TypeError,nr=h.prototype,oa=H.prototype,zn=G.prototype,er=p["__core-js_shared__"],rr=oa.toString,$=zn.hasOwnProperty,ua=0,uu=function(){var t=/[^.]+$/.exec(er&&er.keys&&er.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ir=zn.toString,sa=rr.call(G),la=ot._,fa=vi("^"+rr.call($).replace(ti,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),or=$o?p.Buffer:u,_n=p.Symbol,ur=p.Uint8Array,su=or?or.allocUnsafe:u,sr=iu(G.getPrototypeOf,G),lu=G.create,fu=zn.propertyIsEnumerable,lr=nr.splice,au=_n?_n.isConcatSpreadable:u,we=_n?_n.iterator:u,Ln=_n?_n.toStringTag:u,fr=function(){try{var t=Fn(G,"defineProperty");return t({},"",{}),t}catch{}}(),aa=p.clearTimeout!==ot.clearTimeout&&p.clearTimeout,ca=b&&b.now!==ot.Date.now&&b.now,ha=p.setTimeout!==ot.setTimeout&&p.setTimeout,ar=et.ceil,cr=et.floor,wi=G.getOwnPropertySymbols,pa=or?or.isBuffer:u,cu=p.isFinite,da=nr.join,ga=iu(G.keys,G),rt=et.max,lt=et.min,_a=b.now,ma=p.parseInt,hu=et.random,va=nr.reverse,yi=Fn(p,"DataView"),ye=Fn(p,"Map"),xi=Fn(p,"Promise"),Kn=Fn(p,"Set"),xe=Fn(p,"WeakMap"),be=Fn(G,"create"),hr=xe&&new xe,Yn={},wa=Dn(yi),ya=Dn(ye),xa=Dn(xi),ba=Dn(Kn),Ca=Dn(xe),pr=_n?_n.prototype:u,Ce=pr?pr.valueOf:u,pu=pr?pr.toString:u;function o(t){if(V(t)&&!R(t)&&!(t instanceof k)){if(t instanceof Rt)return t;if($.call(t,"__wrapped__"))return ds(t)}return new Rt(t)}var Zn=function(){function t(){}return function(n){if(!Q(n))return{};if(lu)return lu(n);t.prototype=n;var e=new t;return t.prototype=u,e}}();function dr(){}function Rt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}o.templateSettings={escape:kl,evaluate:Wl,interpolate:bo,variable:"",imports:{_:o}},o.prototype=dr.prototype,o.prototype.constructor=o,Rt.prototype=Zn(dr.prototype),Rt.prototype.constructor=Rt;function k(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=zt,this.__views__=[]}function Ia(){var t=new k(this.__wrapped__);return t.__actions__=gt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gt(this.__views__),t}function Sa(){if(this.__filtered__){var t=new k(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Aa(){var t=this.__wrapped__.value(),n=this.__dir__,e=R(t),r=n<0,i=e?t.length:0,s=Nc(0,i,this.__views__),l=s.start,f=s.end,c=f-l,d=r?f:l-1,g=this.__iteratees__,v=g.length,x=0,I=lt(c,this.__takeCount__);if(!e||!r&&i==c&&I==c)return Wu(t,this.__actions__);var A=[];t:for(;c--&&x<I;){d+=n;for(var F=-1,T=t[d];++F<v;){var B=g[F],W=B.iteratee,Ct=B.type,pt=W(T);if(Ct==wl)T=pt;else if(!pt){if(Ct==mo)continue t;break t}}A[x++]=T}return A}k.prototype=Zn(dr.prototype),k.prototype.constructor=k;function En(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ta(){this.__data__=be?be(null):{},this.size=0}function La(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function Ea(t){var n=this.__data__;if(be){var e=n[t];return e===E?u:e}return $.call(n,t)?n[t]:u}function Ra(t){var n=this.__data__;return be?n[t]!==u:$.call(n,t)}function Oa(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=be&&n===u?E:n,this}En.prototype.clear=Ta,En.prototype.delete=La,En.prototype.get=Ea,En.prototype.has=Ra,En.prototype.set=Oa;function jt(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ma(){this.__data__=[],this.size=0}function Fa(t){var n=this.__data__,e=gr(n,t);if(e<0)return!1;var r=n.length-1;return e==r?n.pop():lr.call(n,e,1),--this.size,!0}function Da(t){var n=this.__data__,e=gr(n,t);return e<0?u:n[e][1]}function Ba(t){return gr(this.__data__,t)>-1}function ka(t,n){var e=this.__data__,r=gr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this}jt.prototype.clear=Ma,jt.prototype.delete=Fa,jt.prototype.get=Da,jt.prototype.has=Ba,jt.prototype.set=ka;function tn(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Wa(){this.size=0,this.__data__={hash:new En,map:new(ye||jt),string:new En}}function Na(t){var n=Tr(this,t).delete(t);return this.size-=n?1:0,n}function Pa(t){return Tr(this,t).get(t)}function Ha(t){return Tr(this,t).has(t)}function Ua(t,n){var e=Tr(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this}tn.prototype.clear=Wa,tn.prototype.delete=Na,tn.prototype.get=Pa,tn.prototype.has=Ha,tn.prototype.set=Ua;function Rn(t){var n=-1,e=t==null?0:t.length;for(this.__data__=new tn;++n<e;)this.add(t[n])}function qa(t){return this.__data__.set(t,E),this}function $a(t){return this.__data__.has(t)}Rn.prototype.add=Rn.prototype.push=qa,Rn.prototype.has=$a;function Pt(t){var n=this.__data__=new jt(t);this.size=n.size}function Ga(){this.__data__=new jt,this.size=0}function za(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}function Ka(t){return this.__data__.get(t)}function Ya(t){return this.__data__.has(t)}function Za(t,n){var e=this.__data__;if(e instanceof jt){var r=e.__data__;if(!ye||r.length<C-1)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new tn(r)}return e.set(t,n),this.size=e.size,this}Pt.prototype.clear=Ga,Pt.prototype.delete=za,Pt.prototype.get=Ka,Pt.prototype.has=Ya,Pt.prototype.set=Za;function du(t,n){var e=R(t),r=!e&&Bn(t),i=!e&&!r&&xn(t),s=!e&&!r&&!i&&Vn(t),l=e||r||i||s,f=l?gi(t.length,ia):[],c=f.length;for(var d in t)(n||$.call(t,d))&&!(l&&(d=="length"||i&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||on(d,c)))&&f.push(d);return f}function gu(t){var n=t.length;return n?t[Mi(0,n-1)]:u}function Ja(t,n){return Lr(gt(t),On(n,0,t.length))}function Xa(t){return Lr(gt(t))}function bi(t,n,e){(e!==u&&!Ht(t[n],e)||e===u&&!(n in t))&&nn(t,n,e)}function Ie(t,n,e){var r=t[n];(!($.call(t,n)&&Ht(r,e))||e===u&&!(n in t))&&nn(t,n,e)}function gr(t,n){for(var e=t.length;e--;)if(Ht(t[e][0],n))return e;return-1}function Qa(t,n,e,r){return mn(t,function(i,s,l){n(r,i,e(i),l)}),r}function _u(t,n){return t&&Yt(n,ut(n),t)}function Va(t,n){return t&&Yt(n,mt(n),t)}function nn(t,n,e){n=="__proto__"&&fr?fr(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function Ci(t,n){for(var e=-1,r=n.length,i=h(r),s=t==null;++e<r;)i[e]=s?u:ro(t,n[e]);return i}function On(t,n,e){return t===t&&(e!==u&&(t=t<=e?t:e),n!==u&&(t=t>=n?t:n)),t}function Ot(t,n,e,r,i,s){var l,f=n&Z,c=n&qe,d=n&Xt;if(e&&(l=i?e(t,r,i,s):e(t)),l!==u)return l;if(!Q(t))return t;var g=R(t);if(g){if(l=Hc(t),!f)return gt(t,l)}else{var v=ft(t),x=v==Ye||v==vo;if(xn(t))return Hu(t,f);if(v==Vt||v==Pn||x&&!i){if(l=c||x?{}:os(t),!f)return c?Ec(t,Va(l,t)):Lc(t,_u(l,t))}else{if(!K[v])return i?t:{};l=Uc(t,v,f)}}s||(s=new Pt);var I=s.get(t);if(I)return I;s.set(t,l),Ds(t)?t.forEach(function(T){l.add(Ot(T,n,e,T,t,s))}):Ms(t)&&t.forEach(function(T,B){l.set(B,Ot(T,n,e,B,t,s))});var A=d?c?$i:qi:c?mt:ut,F=g?u:A(t);return Lt(F||t,function(T,B){F&&(B=T,T=t[B]),Ie(l,B,Ot(T,n,e,B,t,s))}),l}function ja(t){var n=ut(t);return function(e){return mu(e,t,n)}}function mu(t,n,e){var r=e.length;if(t==null)return!r;for(t=G(t);r--;){var i=e[r],s=n[i],l=t[i];if(l===u&&!(i in t)||!s(l))return!1}return!0}function vu(t,n,e){if(typeof t!="function")throw new Et(w);return Oe(function(){t.apply(u,e)},n)}function Se(t,n,e,r){var i=-1,s=Ve,l=!0,f=t.length,c=[],d=n.length;if(!f)return c;e&&(n=X(n,yt(e))),r?(s=fi,l=!1):n.length>=C&&(s=ve,l=!1,n=new Rn(n));t:for(;++i<f;){var g=t[i],v=e==null?g:e(g);if(g=r||g!==0?g:0,l&&v===v){for(var x=d;x--;)if(n[x]===v)continue t;c.push(g)}else s(n,v,r)||c.push(g)}return c}var mn=zu(Kt),wu=zu(Si,!0);function tc(t,n){var e=!0;return mn(t,function(r,i,s){return e=!!n(r,i,s),e}),e}function _r(t,n,e){for(var r=-1,i=t.length;++r<i;){var s=t[r],l=n(s);if(l!=null&&(f===u?l===l&&!bt(l):e(l,f)))var f=l,c=s}return c}function nc(t,n,e,r){var i=t.length;for(e=O(e),e<0&&(e=-e>i?0:i+e),r=r===u||r>i?i:O(r),r<0&&(r+=i),r=e>r?0:ks(r);e<r;)t[e++]=n;return t}function yu(t,n){var e=[];return mn(t,function(r,i,s){n(r,i,s)&&e.push(r)}),e}function st(t,n,e,r,i){var s=-1,l=t.length;for(e||(e=$c),i||(i=[]);++s<l;){var f=t[s];n>0&&e(f)?n>1?st(f,n-1,e,r,i):pn(i,f):r||(i[i.length]=f)}return i}var Ii=Ku(),xu=Ku(!0);function Kt(t,n){return t&&Ii(t,n,ut)}function Si(t,n){return t&&xu(t,n,ut)}function mr(t,n){return hn(n,function(e){return un(t[e])})}function Mn(t,n){n=wn(n,t);for(var e=0,r=n.length;t!=null&&e<r;)t=t[Zt(n[e++])];return e&&e==r?t:u}function bu(t,n,e){var r=n(t);return R(t)?r:pn(r,e(t))}function ct(t){return t==null?t===u?El:Tl:Ln&&Ln in G(t)?Wc(t):Xc(t)}function Ai(t,n){return t>n}function ec(t,n){return t!=null&&$.call(t,n)}function rc(t,n){return t!=null&&n in G(t)}function ic(t,n,e){return t>=lt(n,e)&&t<rt(n,e)}function Ti(t,n,e){for(var r=e?fi:Ve,i=t[0].length,s=t.length,l=s,f=h(s),c=1/0,d=[];l--;){var g=t[l];l&&n&&(g=X(g,yt(n))),c=lt(g.length,c),f[l]=!e&&(n||i>=120&&g.length>=120)?new Rn(l&&g):u}g=t[0];var v=-1,x=f[0];t:for(;++v<i&&d.length<c;){var I=g[v],A=n?n(I):I;if(I=e||I!==0?I:0,!(x?ve(x,A):r(d,A,e))){for(l=s;--l;){var F=f[l];if(!(F?ve(F,A):r(t[l],A,e)))continue t}x&&x.push(A),d.push(I)}}return d}function oc(t,n,e,r){return Kt(t,function(i,s,l){n(r,e(i),s,l)}),r}function Ae(t,n,e){n=wn(n,t),t=fs(t,n);var r=t==null?t:t[Zt(Ft(n))];return r==null?u:wt(r,t,e)}function Cu(t){return V(t)&&ct(t)==Pn}function uc(t){return V(t)&&ct(t)==me}function sc(t){return V(t)&&ct(t)==he}function Te(t,n,e,r,i){return t===n?!0:t==null||n==null||!V(t)&&!V(n)?t!==t&&n!==n:lc(t,n,e,r,Te,i)}function lc(t,n,e,r,i,s){var l=R(t),f=R(n),c=l?ze:ft(t),d=f?ze:ft(n);c=c==Pn?Vt:c,d=d==Pn?Vt:d;var g=c==Vt,v=d==Vt,x=c==d;if(x&&xn(t)){if(!xn(n))return!1;l=!0,g=!1}if(x&&!g)return s||(s=new Pt),l||Vn(t)?es(t,n,e,r,i,s):Bc(t,n,c,e,r,i,s);if(!(e&an)){var I=g&&$.call(t,"__wrapped__"),A=v&&$.call(n,"__wrapped__");if(I||A){var F=I?t.value():t,T=A?n.value():n;return s||(s=new Pt),i(F,T,e,r,s)}}return x?(s||(s=new Pt),kc(t,n,e,r,i,s)):!1}function fc(t){return V(t)&&ft(t)==kt}function Li(t,n,e,r){var i=e.length,s=i,l=!r;if(t==null)return!s;for(t=G(t);i--;){var f=e[i];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++i<s;){f=e[i];var c=f[0],d=t[c],g=f[1];if(l&&f[2]){if(d===u&&!(c in t))return!1}else{var v=new Pt;if(r)var x=r(d,g,c,t,n,v);if(!(x===u?Te(g,d,an|$e,r,v):x))return!1}}return!0}function Iu(t){if(!Q(t)||zc(t))return!1;var n=un(t)?fa:Vl;return n.test(Dn(t))}function ac(t){return V(t)&&ct(t)==de}function cc(t){return V(t)&&ft(t)==Wt}function hc(t){return V(t)&&Dr(t.length)&&!!J[ct(t)]}function Su(t){return typeof t=="function"?t:t==null?vt:typeof t=="object"?R(t)?Lu(t[0],t[1]):Tu(t):Ys(t)}function Ei(t){if(!Re(t))return ga(t);var n=[];for(var e in G(t))$.call(t,e)&&e!="constructor"&&n.push(e);return n}function pc(t){if(!Q(t))return Jc(t);var n=Re(t),e=[];for(var r in t)r=="constructor"&&(n||!$.call(t,r))||e.push(r);return e}function Ri(t,n){return t<n}function Au(t,n){var e=-1,r=_t(t)?h(t.length):[];return mn(t,function(i,s,l){r[++e]=n(i,s,l)}),r}function Tu(t){var n=zi(t);return n.length==1&&n[0][2]?ss(n[0][0],n[0][1]):function(e){return e===t||Li(e,t,n)}}function Lu(t,n){return Yi(t)&&us(n)?ss(Zt(t),n):function(e){var r=ro(e,t);return r===u&&r===n?io(e,t):Te(n,r,an|$e)}}function vr(t,n,e,r,i){t!==n&&Ii(n,function(s,l){if(i||(i=new Pt),Q(s))dc(t,n,l,e,vr,r,i);else{var f=r?r(Ji(t,l),s,l+"",t,n,i):u;f===u&&(f=s),bi(t,l,f)}},mt)}function dc(t,n,e,r,i,s,l){var f=Ji(t,e),c=Ji(n,e),d=l.get(c);if(d){bi(t,e,d);return}var g=s?s(f,c,e+"",t,n,l):u,v=g===u;if(v){var x=R(c),I=!x&&xn(c),A=!x&&!I&&Vn(c);g=c,x||I||A?R(f)?g=f:tt(f)?g=gt(f):I?(v=!1,g=Hu(c,!0)):A?(v=!1,g=Uu(c,!0)):g=[]:Me(c)||Bn(c)?(g=f,Bn(f)?g=Ws(f):(!Q(f)||un(f))&&(g=os(c))):v=!1}v&&(l.set(c,g),i(g,c,r,s,l),l.delete(c)),bi(t,e,g)}function Eu(t,n){var e=t.length;if(e)return n+=n<0?e:0,on(n,e)?t[n]:u}function Ru(t,n,e){n.length?n=X(n,function(s){return R(s)?function(l){return Mn(l,s.length===1?s[0]:s)}:s}):n=[vt];var r=-1;n=X(n,yt(S()));var i=Au(t,function(s,l,f){var c=X(n,function(d){return d(s)});return{criteria:c,index:++r,value:s}});return Uf(i,function(s,l){return Tc(s,l,e)})}function gc(t,n){return Ou(t,n,function(e,r){return io(t,r)})}function Ou(t,n,e){for(var r=-1,i=n.length,s={};++r<i;){var l=n[r],f=Mn(t,l);e(f,l)&&Le(s,wn(l,t),f)}return s}function _c(t){return function(n){return Mn(n,t)}}function Oi(t,n,e,r){var i=r?Hf:qn,s=-1,l=n.length,f=t;for(t===n&&(n=gt(n)),e&&(f=X(t,yt(e)));++s<l;)for(var c=0,d=n[s],g=e?e(d):d;(c=i(f,g,c,r))>-1;)f!==t&&lr.call(f,c,1),lr.call(t,c,1);return t}function Mu(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==s){var s=i;on(i)?lr.call(t,i,1):Bi(t,i)}}return t}function Mi(t,n){return t+cr(hu()*(n-t+1))}function mc(t,n,e,r){for(var i=-1,s=rt(ar((n-t)/(e||1)),0),l=h(s);s--;)l[r?s:++i]=t,t+=e;return l}function Fi(t,n){var e="";if(!t||n<1||n>cn)return e;do n%2&&(e+=t),n=cr(n/2),n&&(t+=t);while(n);return e}function D(t,n){return Xi(ls(t,n,vt),t+"")}function vc(t){return gu(jn(t))}function wc(t,n){var e=jn(t);return Lr(e,On(n,0,e.length))}function Le(t,n,e,r){if(!Q(t))return t;n=wn(n,t);for(var i=-1,s=n.length,l=s-1,f=t;f!=null&&++i<s;){var c=Zt(n[i]),d=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(i!=l){var g=f[c];d=r?r(g,c,f):u,d===u&&(d=Q(g)?g:on(n[i+1])?[]:{})}Ie(f,c,d),f=f[c]}return t}var Fu=hr?function(t,n){return hr.set(t,n),t}:vt,yc=fr?function(t,n){return fr(t,"toString",{configurable:!0,enumerable:!1,value:uo(n),writable:!0})}:vt;function xc(t){return Lr(jn(t))}function Mt(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),e=e>i?i:e,e<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var s=h(i);++r<i;)s[r]=t[r+n];return s}function bc(t,n){var e;return mn(t,function(r,i,s){return e=n(r,i,s),!e}),!!e}function wr(t,n,e){var r=0,i=t==null?r:t.length;if(typeof n=="number"&&n===n&&i<=Cl){for(;r<i;){var s=r+i>>>1,l=t[s];l!==null&&!bt(l)&&(e?l<=n:l<n)?r=s+1:i=s}return i}return Di(t,n,vt,e)}function Di(t,n,e,r){var i=0,s=t==null?0:t.length;if(s===0)return 0;n=e(n);for(var l=n!==n,f=n===null,c=bt(n),d=n===u;i<s;){var g=cr((i+s)/2),v=e(t[g]),x=v!==u,I=v===null,A=v===v,F=bt(v);if(l)var T=r||A;else d?T=A&&(r||x):f?T=A&&x&&(r||!I):c?T=A&&x&&!I&&(r||!F):I||F?T=!1:T=r?v<=n:v<n;T?i=g+1:s=g}return lt(s,bl)}function Du(t,n){for(var e=-1,r=t.length,i=0,s=[];++e<r;){var l=t[e],f=n?n(l):l;if(!e||!Ht(f,c)){var c=f;s[i++]=l===0?0:l}}return s}function Bu(t){return typeof t=="number"?t:bt(t)?Ge:+t}function xt(t){if(typeof t=="string")return t;if(R(t))return X(t,xt)+"";if(bt(t))return pu?pu.call(t):"";var n=t+"";return n=="0"&&1/t==-An?"-0":n}function vn(t,n,e){var r=-1,i=Ve,s=t.length,l=!0,f=[],c=f;if(e)l=!1,i=fi;else if(s>=C){var d=n?null:Fc(t);if(d)return tr(d);l=!1,i=ve,c=new Rn}else c=n?[]:f;t:for(;++r<s;){var g=t[r],v=n?n(g):g;if(g=e||g!==0?g:0,l&&v===v){for(var x=c.length;x--;)if(c[x]===v)continue t;n&&c.push(v),f.push(g)}else i(c,v,e)||(c!==f&&c.push(v),f.push(g))}return f}function Bi(t,n){return n=wn(n,t),t=fs(t,n),t==null||delete t[Zt(Ft(n))]}function ku(t,n,e,r){return Le(t,n,e(Mn(t,n)),r)}function yr(t,n,e,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&n(t[s],s,t););return e?Mt(t,r?0:s,r?s+1:i):Mt(t,r?s+1:0,r?i:s)}function Wu(t,n){var e=t;return e instanceof k&&(e=e.value()),ai(n,function(r,i){return i.func.apply(i.thisArg,pn([r],i.args))},e)}function ki(t,n,e){var r=t.length;if(r<2)return r?vn(t[0]):[];for(var i=-1,s=h(r);++i<r;)for(var l=t[i],f=-1;++f<r;)f!=i&&(s[i]=Se(s[i]||l,t[f],n,e));return vn(st(s,1),n,e)}function Nu(t,n,e){for(var r=-1,i=t.length,s=n.length,l={};++r<i;){var f=r<s?n[r]:u;e(l,t[r],f)}return l}function Wi(t){return tt(t)?t:[]}function Ni(t){return typeof t=="function"?t:vt}function wn(t,n){return R(t)?t:Yi(t,n)?[t]:ps(U(t))}var Cc=D;function yn(t,n,e){var r=t.length;return e=e===u?r:e,!n&&e>=r?t:Mt(t,n,e)}var Pu=aa||function(t){return ot.clearTimeout(t)};function Hu(t,n){if(n)return t.slice();var e=t.length,r=su?su(e):new t.constructor(e);return t.copy(r),r}function Pi(t){var n=new t.constructor(t.byteLength);return new ur(n).set(new ur(t)),n}function Ic(t,n){var e=n?Pi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Sc(t){var n=new t.constructor(t.source,Co.exec(t));return n.lastIndex=t.lastIndex,n}function Ac(t){return Ce?G(Ce.call(t)):{}}function Uu(t,n){var e=n?Pi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function qu(t,n){if(t!==n){var e=t!==u,r=t===null,i=t===t,s=bt(t),l=n!==u,f=n===null,c=n===n,d=bt(n);if(!f&&!d&&!s&&t>n||s&&l&&c&&!f&&!d||r&&l&&c||!e&&c||!i)return 1;if(!r&&!s&&!d&&t<n||d&&e&&i&&!r&&!s||f&&e&&i||!l&&i||!c)return-1}return 0}function Tc(t,n,e){for(var r=-1,i=t.criteria,s=n.criteria,l=i.length,f=e.length;++r<l;){var c=qu(i[r],s[r]);if(c){if(r>=f)return c;var d=e[r];return c*(d=="desc"?-1:1)}}return t.index-n.index}function $u(t,n,e,r){for(var i=-1,s=t.length,l=e.length,f=-1,c=n.length,d=rt(s-l,0),g=h(c+d),v=!r;++f<c;)g[f]=n[f];for(;++i<l;)(v||i<s)&&(g[e[i]]=t[i]);for(;d--;)g[f++]=t[i++];return g}function Gu(t,n,e,r){for(var i=-1,s=t.length,l=-1,f=e.length,c=-1,d=n.length,g=rt(s-f,0),v=h(g+d),x=!r;++i<g;)v[i]=t[i];for(var I=i;++c<d;)v[I+c]=n[c];for(;++l<f;)(x||i<s)&&(v[I+e[l]]=t[i++]);return v}function gt(t,n){var e=-1,r=t.length;for(n||(n=h(r));++e<r;)n[e]=t[e];return n}function Yt(t,n,e,r){var i=!e;e||(e={});for(var s=-1,l=n.length;++s<l;){var f=n[s],c=r?r(e[f],t[f],f,e,t):u;c===u&&(c=t[f]),i?nn(e,f,c):Ie(e,f,c)}return e}function Lc(t,n){return Yt(t,Ki(t),n)}function Ec(t,n){return Yt(t,rs(t),n)}function xr(t,n){return function(e,r){var i=R(e)?Df:Qa,s=n?n():{};return i(e,t,S(r,2),s)}}function Jn(t){return D(function(n,e){var r=-1,i=e.length,s=i>1?e[i-1]:u,l=i>2?e[2]:u;for(s=t.length>3&&typeof s=="function"?(i--,s):u,l&&ht(e[0],e[1],l)&&(s=i<3?u:s,i=1),n=G(n);++r<i;){var f=e[r];f&&t(n,f,r,s)}return n})}function zu(t,n){return function(e,r){if(e==null)return e;if(!_t(e))return t(e,r);for(var i=e.length,s=n?i:-1,l=G(e);(n?s--:++s<i)&&r(l[s],s,l)!==!1;);return e}}function Ku(t){return function(n,e,r){for(var i=-1,s=G(n),l=r(n),f=l.length;f--;){var c=l[t?f:++i];if(e(s[c],c,s)===!1)break}return n}}function Rc(t,n,e){var r=n&At,i=Ee(t);function s(){var l=this&&this!==ot&&this instanceof s?i:t;return l.apply(r?e:this,arguments)}return s}function Yu(t){return function(n){n=U(n);var e=$n(n)?Nt(n):u,r=e?e[0]:n.charAt(0),i=e?yn(e,1).join(""):n.slice(1);return r[t]()+i}}function Xn(t){return function(n){return ai(zs(Gs(n).replace(yf,"")),t,"")}}function Ee(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Zn(t.prototype),r=t.apply(e,n);return Q(r)?r:e}}function Oc(t,n,e){var r=Ee(t);function i(){for(var s=arguments.length,l=h(s),f=s,c=Qn(i);f--;)l[f]=arguments[f];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:dn(l,c);if(s-=d.length,s<e)return Vu(t,n,br,i.placeholder,u,l,d,u,u,e-s);var g=this&&this!==ot&&this instanceof i?r:t;return wt(g,this,l)}return i}function Zu(t){return function(n,e,r){var i=G(n);if(!_t(n)){var s=S(e,3);n=ut(n),e=function(f){return s(i[f],f,i)}}var l=t(n,e,r);return l>-1?i[s?n[l]:l]:u}}function Ju(t){return rn(function(n){var e=n.length,r=e,i=Rt.prototype.thru;for(t&&n.reverse();r--;){var s=n[r];if(typeof s!="function")throw new Et(w);if(i&&!l&&Ar(s)=="wrapper")var l=new Rt([],!0)}for(r=l?r:e;++r<e;){s=n[r];var f=Ar(s),c=f=="wrapper"?Gi(s):u;c&&Zi(c[0])&&c[1]==(Qt|$t|Gt|ae)&&!c[4].length&&c[9]==1?l=l[Ar(c[0])].apply(l,c[3]):l=s.length==1&&Zi(s)?l[f]():l.thru(s)}return function(){var d=arguments,g=d[0];if(l&&d.length==1&&R(g))return l.plant(g).value();for(var v=0,x=e?n[v].apply(this,d):g;++v<e;)x=n[v].call(this,x);return x}})}function br(t,n,e,r,i,s,l,f,c,d){var g=n&Qt,v=n&At,x=n&Sn,I=n&($t|Wn),A=n&Gr,F=x?u:Ee(t);function T(){for(var B=arguments.length,W=h(B),Ct=B;Ct--;)W[Ct]=arguments[Ct];if(I)var pt=Qn(T),It=$f(W,pt);if(r&&(W=$u(W,r,i,I)),s&&(W=Gu(W,s,l,I)),B-=It,I&&B<d){var nt=dn(W,pt);return Vu(t,n,br,T.placeholder,e,W,nt,f,c,d-B)}var Ut=v?e:this,ln=x?Ut[t]:t;return B=W.length,f?W=Qc(W,f):A&&B>1&&W.reverse(),g&&c<B&&(W.length=c),this&&this!==ot&&this instanceof T&&(ln=F||Ee(ln)),ln.apply(Ut,W)}return T}function Xu(t,n){return function(e,r){return oc(e,t,n(r),{})}}function Cr(t,n){return function(e,r){var i;if(e===u&&r===u)return n;if(e!==u&&(i=e),r!==u){if(i===u)return r;typeof e=="string"||typeof r=="string"?(e=xt(e),r=xt(r)):(e=Bu(e),r=Bu(r)),i=t(e,r)}return i}}function Hi(t){return rn(function(n){return n=X(n,yt(S())),D(function(e){var r=this;return t(n,function(i){return wt(i,r,e)})})})}function Ir(t,n){n=n===u?" ":xt(n);var e=n.length;if(e<2)return e?Fi(n,t):n;var r=Fi(n,ar(t/Gn(n)));return $n(n)?yn(Nt(r),0,t).join(""):r.slice(0,t)}function Mc(t,n,e,r){var i=n&At,s=Ee(t);function l(){for(var f=-1,c=arguments.length,d=-1,g=r.length,v=h(g+c),x=this&&this!==ot&&this instanceof l?s:t;++d<g;)v[d]=r[d];for(;c--;)v[d++]=arguments[++f];return wt(x,i?e:this,v)}return l}function Qu(t){return function(n,e,r){return r&&typeof r!="number"&&ht(n,e,r)&&(e=r=u),n=sn(n),e===u?(e=n,n=0):e=sn(e),r=r===u?n<e?1:-1:sn(r),mc(n,e,r,t)}}function Sr(t){return function(n,e){return typeof n=="string"&&typeof e=="string"||(n=Dt(n),e=Dt(e)),t(n,e)}}function Vu(t,n,e,r,i,s,l,f,c,d){var g=n&$t,v=g?l:u,x=g?u:l,I=g?s:u,A=g?u:s;n|=g?Gt:Nn,n&=~(g?Nn:Gt),n&_o||(n&=~(At|Sn));var F=[t,n,i,I,v,A,x,f,c,d],T=e.apply(u,F);return Zi(t)&&as(T,F),T.placeholder=r,cs(T,t,n)}function Ui(t){var n=et[t];return function(e,r){if(e=Dt(e),r=r==null?0:lt(O(r),292),r&&cu(e)){var i=(U(e)+"e").split("e"),s=n(i[0]+"e"+(+i[1]+r));return i=(U(s)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return n(e)}}var Fc=Kn&&1/tr(new Kn([,-0]))[1]==An?function(t){return new Kn(t)}:fo;function ju(t){return function(n){var e=ft(n);return e==kt?mi(n):e==Wt?Xf(n):qf(n,t(n))}}function en(t,n,e,r,i,s,l,f){var c=n&Sn;if(!c&&typeof t!="function")throw new Et(w);var d=r?r.length:0;if(d||(n&=~(Gt|Nn),r=i=u),l=l===u?l:rt(O(l),0),f=f===u?f:O(f),d-=i?i.length:0,n&Nn){var g=r,v=i;r=i=u}var x=c?u:Gi(t),I=[t,n,e,r,i,g,v,s,l,f];if(x&&Zc(I,x),t=I[0],n=I[1],e=I[2],r=I[3],i=I[4],f=I[9]=I[9]===u?c?0:t.length:rt(I[9]-d,0),!f&&n&($t|Wn)&&(n&=~($t|Wn)),!n||n==At)var A=Rc(t,n,e);else n==$t||n==Wn?A=Oc(t,n,f):(n==Gt||n==(At|Gt))&&!i.length?A=Mc(t,n,e,r):A=br.apply(u,I);var F=x?Fu:as;return cs(F(A,I),t,n)}function ts(t,n,e,r){return t===u||Ht(t,zn[e])&&!$.call(r,e)?n:t}function ns(t,n,e,r,i,s){return Q(t)&&Q(n)&&(s.set(n,t),vr(t,n,u,ns,s),s.delete(n)),t}function Dc(t){return Me(t)?u:t}function es(t,n,e,r,i,s){var l=e&an,f=t.length,c=n.length;if(f!=c&&!(l&&c>f))return!1;var d=s.get(t),g=s.get(n);if(d&&g)return d==n&&g==t;var v=-1,x=!0,I=e&$e?new Rn:u;for(s.set(t,n),s.set(n,t);++v<f;){var A=t[v],F=n[v];if(r)var T=l?r(F,A,v,n,t,s):r(A,F,v,t,n,s);if(T!==u){if(T)continue;x=!1;break}if(I){if(!ci(n,function(B,W){if(!ve(I,W)&&(A===B||i(A,B,e,r,s)))return I.push(W)})){x=!1;break}}else if(!(A===F||i(A,F,e,r,s))){x=!1;break}}return s.delete(t),s.delete(n),x}function Bc(t,n,e,r,i,s,l){switch(e){case Hn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case me:return!(t.byteLength!=n.byteLength||!s(new ur(t),new ur(n)));case ce:case he:case pe:return Ht(+t,+n);case Ke:return t.name==n.name&&t.message==n.message;case de:case ge:return t==n+"";case kt:var f=mi;case Wt:var c=r&an;if(f||(f=tr),t.size!=n.size&&!c)return!1;var d=l.get(t);if(d)return d==n;r|=$e,l.set(t,n);var g=es(f(t),f(n),r,i,s,l);return l.delete(t),g;case Ze:if(Ce)return Ce.call(t)==Ce.call(n)}return!1}function kc(t,n,e,r,i,s){var l=e&an,f=qi(t),c=f.length,d=qi(n),g=d.length;if(c!=g&&!l)return!1;for(var v=c;v--;){var x=f[v];if(!(l?x in n:$.call(n,x)))return!1}var I=s.get(t),A=s.get(n);if(I&&A)return I==n&&A==t;var F=!0;s.set(t,n),s.set(n,t);for(var T=l;++v<c;){x=f[v];var B=t[x],W=n[x];if(r)var Ct=l?r(W,B,x,n,t,s):r(B,W,x,t,n,s);if(!(Ct===u?B===W||i(B,W,e,r,s):Ct)){F=!1;break}T||(T=x=="constructor")}if(F&&!T){var pt=t.constructor,It=n.constructor;pt!=It&&"constructor"in t&&"constructor"in n&&!(typeof pt=="function"&&pt instanceof pt&&typeof It=="function"&&It instanceof It)&&(F=!1)}return s.delete(t),s.delete(n),F}function rn(t){return Xi(ls(t,u,ms),t+"")}function qi(t){return bu(t,ut,Ki)}function $i(t){return bu(t,mt,rs)}var Gi=hr?function(t){return hr.get(t)}:fo;function Ar(t){for(var n=t.name+"",e=Yn[n],r=$.call(Yn,n)?e.length:0;r--;){var i=e[r],s=i.func;if(s==null||s==t)return i.name}return n}function Qn(t){var n=$.call(o,"placeholder")?o:t;return n.placeholder}function S(){var t=o.iteratee||so;return t=t===so?Su:t,arguments.length?t(arguments[0],arguments[1]):t}function Tr(t,n){var e=t.__data__;return Gc(n)?e[typeof n=="string"?"string":"hash"]:e.map}function zi(t){for(var n=ut(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,us(i)]}return n}function Fn(t,n){var e=Yf(t,n);return Iu(e)?e:u}function Wc(t){var n=$.call(t,Ln),e=t[Ln];try{t[Ln]=u;var r=!0}catch{}var i=ir.call(t);return r&&(n?t[Ln]=e:delete t[Ln]),i}var Ki=wi?function(t){return t==null?[]:(t=G(t),hn(wi(t),function(n){return fu.call(t,n)}))}:ao,rs=wi?function(t){for(var n=[];t;)pn(n,Ki(t)),t=sr(t);return n}:ao,ft=ct;(yi&&ft(new yi(new ArrayBuffer(1)))!=Hn||ye&&ft(new ye)!=kt||xi&&ft(xi.resolve())!=wo||Kn&&ft(new Kn)!=Wt||xe&&ft(new xe)!=_e)&&(ft=function(t){var n=ct(t),e=n==Vt?t.constructor:u,r=e?Dn(e):"";if(r)switch(r){case wa:return Hn;case ya:return kt;case xa:return wo;case ba:return Wt;case Ca:return _e}return n});function Nc(t,n,e){for(var r=-1,i=e.length;++r<i;){var s=e[r],l=s.size;switch(s.type){case"drop":t+=l;break;case"dropRight":n-=l;break;case"take":n=lt(n,t+l);break;case"takeRight":t=rt(t,n-l);break}}return{start:t,end:n}}function Pc(t){var n=t.match(Gl);return n?n[1].split(zl):[]}function is(t,n,e){n=wn(n,t);for(var r=-1,i=n.length,s=!1;++r<i;){var l=Zt(n[r]);if(!(s=t!=null&&e(t,l)))break;t=t[l]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&Dr(i)&&on(l,i)&&(R(t)||Bn(t)))}function Hc(t){var n=t.length,e=new t.constructor(n);return n&&typeof t[0]=="string"&&$.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function os(t){return typeof t.constructor=="function"&&!Re(t)?Zn(sr(t)):{}}function Uc(t,n,e){var r=t.constructor;switch(n){case me:return Pi(t);case ce:case he:return new r(+t);case Hn:return Ic(t,e);case zr:case Kr:case Yr:case Zr:case Jr:case Xr:case Qr:case Vr:case jr:return Uu(t,e);case kt:return new r;case pe:case ge:return new r(t);case de:return Sc(t);case Wt:return new r;case Ze:return Ac(t)}}function qc(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace($l,`{
|
|
2
|
-
/* [wrapped with `+n+`] */
|
|
3
|
-
`)}function $c(t){return R(t)||Bn(t)||!!(au&&t&&t[au])}function on(t,n){var e=typeof t;return n=n==null?cn:n,!!n&&(e=="number"||e!="symbol"&&tf.test(t))&&t>-1&&t%1==0&&t<n}function ht(t,n,e){if(!Q(e))return!1;var r=typeof n;return(r=="number"?_t(e)&&on(n,e.length):r=="string"&&n in e)?Ht(e[n],t):!1}function Yi(t,n){if(R(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||bt(t)?!0:Pl.test(t)||!Nl.test(t)||n!=null&&t in G(n)}function Gc(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Zi(t){var n=Ar(t),e=o[n];if(typeof e!="function"||!(n in k.prototype))return!1;if(t===e)return!0;var r=Gi(e);return!!r&&t===r[0]}function zc(t){return!!uu&&uu in t}var Kc=er?un:co;function Re(t){var n=t&&t.constructor,e=typeof n=="function"&&n.prototype||zn;return t===e}function us(t){return t===t&&!Q(t)}function ss(t,n){return function(e){return e==null?!1:e[t]===n&&(n!==u||t in G(e))}}function Yc(t){var n=Mr(t,function(r){return e.size===M&&e.clear(),r}),e=n.cache;return n}function Zc(t,n){var e=t[1],r=n[1],i=e|r,s=i<(At|Sn|Qt),l=r==Qt&&e==$t||r==Qt&&e==ae&&t[7].length<=n[8]||r==(Qt|ae)&&n[7].length<=n[8]&&e==$t;if(!(s||l))return t;r&At&&(t[2]=n[2],i|=e&At?0:_o);var f=n[3];if(f){var c=t[3];t[3]=c?$u(c,f,n[4]):f,t[4]=c?dn(t[3],j):n[4]}return f=n[5],f&&(c=t[5],t[5]=c?Gu(c,f,n[6]):f,t[6]=c?dn(t[5],j):n[6]),f=n[7],f&&(t[7]=f),r&Qt&&(t[8]=t[8]==null?n[8]:lt(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function Jc(t){var n=[];if(t!=null)for(var e in G(t))n.push(e);return n}function Xc(t){return ir.call(t)}function ls(t,n,e){return n=rt(n===u?t.length-1:n,0),function(){for(var r=arguments,i=-1,s=rt(r.length-n,0),l=h(s);++i<s;)l[i]=r[n+i];i=-1;for(var f=h(n+1);++i<n;)f[i]=r[i];return f[n]=e(l),wt(t,this,f)}}function fs(t,n){return n.length<2?t:Mn(t,Mt(n,0,-1))}function Qc(t,n){for(var e=t.length,r=lt(n.length,e),i=gt(t);r--;){var s=n[r];t[r]=on(s,e)?i[s]:u}return t}function Ji(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var as=hs(Fu),Oe=ha||function(t,n){return ot.setTimeout(t,n)},Xi=hs(yc);function cs(t,n,e){var r=n+"";return Xi(t,qc(r,Vc(Pc(r),e)))}function hs(t){var n=0,e=0;return function(){var r=_a(),i=vl-(r-e);if(e=r,i>0){if(++n>=ml)return arguments[0]}else n=0;return t.apply(u,arguments)}}function Lr(t,n){var e=-1,r=t.length,i=r-1;for(n=n===u?r:n;++e<n;){var s=Mi(e,i),l=t[s];t[s]=t[e],t[e]=l}return t.length=n,t}var ps=Yc(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Hl,function(e,r,i,s){n.push(i?s.replace(Zl,"$1"):r||e)}),n});function Zt(t){if(typeof t=="string"||bt(t))return t;var n=t+"";return n=="0"&&1/t==-An?"-0":n}function Dn(t){if(t!=null){try{return rr.call(t)}catch{}try{return t+""}catch{}}return""}function Vc(t,n){return Lt(Il,function(e){var r="_."+e[0];n&e[1]&&!Ve(t,r)&&t.push(r)}),t.sort()}function ds(t){if(t instanceof k)return t.clone();var n=new Rt(t.__wrapped__,t.__chain__);return n.__actions__=gt(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function jc(t,n,e){(e?ht(t,n,e):n===u)?n=1:n=rt(O(n),0);var r=t==null?0:t.length;if(!r||n<1)return[];for(var i=0,s=0,l=h(ar(r/n));i<r;)l[s++]=Mt(t,i,i+=n);return l}function th(t){for(var n=-1,e=t==null?0:t.length,r=0,i=[];++n<e;){var s=t[n];s&&(i[r++]=s)}return i}function nh(){var t=arguments.length;if(!t)return[];for(var n=h(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return pn(R(e)?gt(e):[e],st(n,1))}var eh=D(function(t,n){return tt(t)?Se(t,st(n,1,tt,!0)):[]}),rh=D(function(t,n){var e=Ft(n);return tt(e)&&(e=u),tt(t)?Se(t,st(n,1,tt,!0),S(e,2)):[]}),ih=D(function(t,n){var e=Ft(n);return tt(e)&&(e=u),tt(t)?Se(t,st(n,1,tt,!0),u,e):[]});function oh(t,n,e){var r=t==null?0:t.length;return r?(n=e||n===u?1:O(n),Mt(t,n<0?0:n,r)):[]}function uh(t,n,e){var r=t==null?0:t.length;return r?(n=e||n===u?1:O(n),n=r-n,Mt(t,0,n<0?0:n)):[]}function sh(t,n){return t&&t.length?yr(t,S(n,3),!0,!0):[]}function lh(t,n){return t&&t.length?yr(t,S(n,3),!0):[]}function fh(t,n,e,r){var i=t==null?0:t.length;return i?(e&&typeof e!="number"&&ht(t,n,e)&&(e=0,r=i),nc(t,n,e,r)):[]}function gs(t,n,e){var r=t==null?0:t.length;if(!r)return-1;var i=e==null?0:O(e);return i<0&&(i=rt(r+i,0)),je(t,S(n,3),i)}function _s(t,n,e){var r=t==null?0:t.length;if(!r)return-1;var i=r-1;return e!==u&&(i=O(e),i=e<0?rt(r+i,0):lt(i,r-1)),je(t,S(n,3),i,!0)}function ms(t){var n=t==null?0:t.length;return n?st(t,1):[]}function ah(t){var n=t==null?0:t.length;return n?st(t,An):[]}function ch(t,n){var e=t==null?0:t.length;return e?(n=n===u?1:O(n),st(t,n)):[]}function hh(t){for(var n=-1,e=t==null?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}function vs(t){return t&&t.length?t[0]:u}function ph(t,n,e){var r=t==null?0:t.length;if(!r)return-1;var i=e==null?0:O(e);return i<0&&(i=rt(r+i,0)),qn(t,n,i)}function dh(t){var n=t==null?0:t.length;return n?Mt(t,0,-1):[]}var gh=D(function(t){var n=X(t,Wi);return n.length&&n[0]===t[0]?Ti(n):[]}),_h=D(function(t){var n=Ft(t),e=X(t,Wi);return n===Ft(e)?n=u:e.pop(),e.length&&e[0]===t[0]?Ti(e,S(n,2)):[]}),mh=D(function(t){var n=Ft(t),e=X(t,Wi);return n=typeof n=="function"?n:u,n&&e.pop(),e.length&&e[0]===t[0]?Ti(e,u,n):[]});function vh(t,n){return t==null?"":da.call(t,n)}function Ft(t){var n=t==null?0:t.length;return n?t[n-1]:u}function wh(t,n,e){var r=t==null?0:t.length;if(!r)return-1;var i=r;return e!==u&&(i=O(e),i=i<0?rt(r+i,0):lt(i,r-1)),n===n?Vf(t,n,i):je(t,Vo,i,!0)}function yh(t,n){return t&&t.length?Eu(t,O(n)):u}var xh=D(ws);function ws(t,n){return t&&t.length&&n&&n.length?Oi(t,n):t}function bh(t,n,e){return t&&t.length&&n&&n.length?Oi(t,n,S(e,2)):t}function Ch(t,n,e){return t&&t.length&&n&&n.length?Oi(t,n,u,e):t}var Ih=rn(function(t,n){var e=t==null?0:t.length,r=Ci(t,n);return Mu(t,X(n,function(i){return on(i,e)?+i:i}).sort(qu)),r});function Sh(t,n){var e=[];if(!(t&&t.length))return e;var r=-1,i=[],s=t.length;for(n=S(n,3);++r<s;){var l=t[r];n(l,r,t)&&(e.push(l),i.push(r))}return Mu(t,i),e}function Qi(t){return t==null?t:va.call(t)}function Ah(t,n,e){var r=t==null?0:t.length;return r?(e&&typeof e!="number"&&ht(t,n,e)?(n=0,e=r):(n=n==null?0:O(n),e=e===u?r:O(e)),Mt(t,n,e)):[]}function Th(t,n){return wr(t,n)}function Lh(t,n,e){return Di(t,n,S(e,2))}function Eh(t,n){var e=t==null?0:t.length;if(e){var r=wr(t,n);if(r<e&&Ht(t[r],n))return r}return-1}function Rh(t,n){return wr(t,n,!0)}function Oh(t,n,e){return Di(t,n,S(e,2),!0)}function Mh(t,n){var e=t==null?0:t.length;if(e){var r=wr(t,n,!0)-1;if(Ht(t[r],n))return r}return-1}function Fh(t){return t&&t.length?Du(t):[]}function Dh(t,n){return t&&t.length?Du(t,S(n,2)):[]}function Bh(t){var n=t==null?0:t.length;return n?Mt(t,1,n):[]}function kh(t,n,e){return t&&t.length?(n=e||n===u?1:O(n),Mt(t,0,n<0?0:n)):[]}function Wh(t,n,e){var r=t==null?0:t.length;return r?(n=e||n===u?1:O(n),n=r-n,Mt(t,n<0?0:n,r)):[]}function Nh(t,n){return t&&t.length?yr(t,S(n,3),!1,!0):[]}function Ph(t,n){return t&&t.length?yr(t,S(n,3)):[]}var Hh=D(function(t){return vn(st(t,1,tt,!0))}),Uh=D(function(t){var n=Ft(t);return tt(n)&&(n=u),vn(st(t,1,tt,!0),S(n,2))}),qh=D(function(t){var n=Ft(t);return n=typeof n=="function"?n:u,vn(st(t,1,tt,!0),u,n)});function $h(t){return t&&t.length?vn(t):[]}function Gh(t,n){return t&&t.length?vn(t,S(n,2)):[]}function zh(t,n){return n=typeof n=="function"?n:u,t&&t.length?vn(t,u,n):[]}function Vi(t){if(!(t&&t.length))return[];var n=0;return t=hn(t,function(e){if(tt(e))return n=rt(e.length,n),!0}),gi(n,function(e){return X(t,hi(e))})}function ys(t,n){if(!(t&&t.length))return[];var e=Vi(t);return n==null?e:X(e,function(r){return wt(n,u,r)})}var Kh=D(function(t,n){return tt(t)?Se(t,n):[]}),Yh=D(function(t){return ki(hn(t,tt))}),Zh=D(function(t){var n=Ft(t);return tt(n)&&(n=u),ki(hn(t,tt),S(n,2))}),Jh=D(function(t){var n=Ft(t);return n=typeof n=="function"?n:u,ki(hn(t,tt),u,n)}),Xh=D(Vi);function Qh(t,n){return Nu(t||[],n||[],Ie)}function Vh(t,n){return Nu(t||[],n||[],Le)}var jh=D(function(t){var n=t.length,e=n>1?t[n-1]:u;return e=typeof e=="function"?(t.pop(),e):u,ys(t,e)});function xs(t){var n=o(t);return n.__chain__=!0,n}function tp(t,n){return n(t),t}function Er(t,n){return n(t)}var np=rn(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(s){return Ci(s,t)};return n>1||this.__actions__.length||!(r instanceof k)||!on(e)?this.thru(i):(r=r.slice(e,+e+(n?1:0)),r.__actions__.push({func:Er,args:[i],thisArg:u}),new Rt(r,this.__chain__).thru(function(s){return n&&!s.length&&s.push(u),s}))});function ep(){return xs(this)}function rp(){return new Rt(this.value(),this.__chain__)}function ip(){this.__values__===u&&(this.__values__=Bs(this.value()));var t=this.__index__>=this.__values__.length,n=t?u:this.__values__[this.__index__++];return{done:t,value:n}}function op(){return this}function up(t){for(var n,e=this;e instanceof dr;){var r=ds(e);r.__index__=0,r.__values__=u,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n}function sp(){var t=this.__wrapped__;if(t instanceof k){var n=t;return this.__actions__.length&&(n=new k(this)),n=n.reverse(),n.__actions__.push({func:Er,args:[Qi],thisArg:u}),new Rt(n,this.__chain__)}return this.thru(Qi)}function lp(){return Wu(this.__wrapped__,this.__actions__)}var fp=xr(function(t,n,e){$.call(t,e)?++t[e]:nn(t,e,1)});function ap(t,n,e){var r=R(t)?Xo:tc;return e&&ht(t,n,e)&&(n=u),r(t,S(n,3))}function cp(t,n){var e=R(t)?hn:yu;return e(t,S(n,3))}var hp=Zu(gs),pp=Zu(_s);function dp(t,n){return st(Rr(t,n),1)}function gp(t,n){return st(Rr(t,n),An)}function _p(t,n,e){return e=e===u?1:O(e),st(Rr(t,n),e)}function bs(t,n){var e=R(t)?Lt:mn;return e(t,S(n,3))}function Cs(t,n){var e=R(t)?Bf:wu;return e(t,S(n,3))}var mp=xr(function(t,n,e){$.call(t,e)?t[e].push(n):nn(t,e,[n])});function vp(t,n,e,r){t=_t(t)?t:jn(t),e=e&&!r?O(e):0;var i=t.length;return e<0&&(e=rt(i+e,0)),Br(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&qn(t,n,e)>-1}var wp=D(function(t,n,e){var r=-1,i=typeof n=="function",s=_t(t)?h(t.length):[];return mn(t,function(l){s[++r]=i?wt(n,l,e):Ae(l,n,e)}),s}),yp=xr(function(t,n,e){nn(t,e,n)});function Rr(t,n){var e=R(t)?X:Au;return e(t,S(n,3))}function xp(t,n,e,r){return t==null?[]:(R(n)||(n=n==null?[]:[n]),e=r?u:e,R(e)||(e=e==null?[]:[e]),Ru(t,n,e))}var bp=xr(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]});function Cp(t,n,e){var r=R(t)?ai:tu,i=arguments.length<3;return r(t,S(n,4),e,i,mn)}function Ip(t,n,e){var r=R(t)?kf:tu,i=arguments.length<3;return r(t,S(n,4),e,i,wu)}function Sp(t,n){var e=R(t)?hn:yu;return e(t,Fr(S(n,3)))}function Ap(t){var n=R(t)?gu:vc;return n(t)}function Tp(t,n,e){(e?ht(t,n,e):n===u)?n=1:n=O(n);var r=R(t)?Ja:wc;return r(t,n)}function Lp(t){var n=R(t)?Xa:xc;return n(t)}function Ep(t){if(t==null)return 0;if(_t(t))return Br(t)?Gn(t):t.length;var n=ft(t);return n==kt||n==Wt?t.size:Ei(t).length}function Rp(t,n,e){var r=R(t)?ci:bc;return e&&ht(t,n,e)&&(n=u),r(t,S(n,3))}var Op=D(function(t,n){if(t==null)return[];var e=n.length;return e>1&&ht(t,n[0],n[1])?n=[]:e>2&&ht(n[0],n[1],n[2])&&(n=[n[0]]),Ru(t,st(n,1),[])}),Or=ca||function(){return ot.Date.now()};function Mp(t,n){if(typeof n!="function")throw new Et(w);return t=O(t),function(){if(--t<1)return n.apply(this,arguments)}}function Is(t,n,e){return n=e?u:n,n=t&&n==null?t.length:n,en(t,Qt,u,u,u,u,n)}function Ss(t,n){var e;if(typeof n!="function")throw new Et(w);return t=O(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=u),e}}var ji=D(function(t,n,e){var r=At;if(e.length){var i=dn(e,Qn(ji));r|=Gt}return en(t,r,n,e,i)}),As=D(function(t,n,e){var r=At|Sn;if(e.length){var i=dn(e,Qn(As));r|=Gt}return en(n,r,t,e,i)});function Ts(t,n,e){n=e?u:n;var r=en(t,$t,u,u,u,u,u,n);return r.placeholder=Ts.placeholder,r}function Ls(t,n,e){n=e?u:n;var r=en(t,Wn,u,u,u,u,u,n);return r.placeholder=Ls.placeholder,r}function Es(t,n,e){var r,i,s,l,f,c,d=0,g=!1,v=!1,x=!0;if(typeof t!="function")throw new Et(w);n=Dt(n)||0,Q(e)&&(g=!!e.leading,v="maxWait"in e,s=v?rt(Dt(e.maxWait)||0,n):s,x="trailing"in e?!!e.trailing:x);function I(nt){var Ut=r,ln=i;return r=i=u,d=nt,l=t.apply(ln,Ut),l}function A(nt){return d=nt,f=Oe(B,n),g?I(nt):l}function F(nt){var Ut=nt-c,ln=nt-d,Zs=n-Ut;return v?lt(Zs,s-ln):Zs}function T(nt){var Ut=nt-c,ln=nt-d;return c===u||Ut>=n||Ut<0||v&&ln>=s}function B(){var nt=Or();if(T(nt))return W(nt);f=Oe(B,F(nt))}function W(nt){return f=u,x&&r?I(nt):(r=i=u,l)}function Ct(){f!==u&&Pu(f),d=0,r=c=i=f=u}function pt(){return f===u?l:W(Or())}function It(){var nt=Or(),Ut=T(nt);if(r=arguments,i=this,c=nt,Ut){if(f===u)return A(c);if(v)return Pu(f),f=Oe(B,n),I(c)}return f===u&&(f=Oe(B,n)),l}return It.cancel=Ct,It.flush=pt,It}var Fp=D(function(t,n){return vu(t,1,n)}),Dp=D(function(t,n,e){return vu(t,Dt(n)||0,e)});function Bp(t){return en(t,Gr)}function Mr(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new Et(w);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],s=e.cache;if(s.has(i))return s.get(i);var l=t.apply(this,r);return e.cache=s.set(i,l)||s,l};return e.cache=new(Mr.Cache||tn),e}Mr.Cache=tn;function Fr(t){if(typeof t!="function")throw new Et(w);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function kp(t){return Ss(2,t)}var Wp=Cc(function(t,n){n=n.length==1&&R(n[0])?X(n[0],yt(S())):X(st(n,1),yt(S()));var e=n.length;return D(function(r){for(var i=-1,s=lt(r.length,e);++i<s;)r[i]=n[i].call(this,r[i]);return wt(t,this,r)})}),to=D(function(t,n){var e=dn(n,Qn(to));return en(t,Gt,u,n,e)}),Rs=D(function(t,n){var e=dn(n,Qn(Rs));return en(t,Nn,u,n,e)}),Np=rn(function(t,n){return en(t,ae,u,u,u,n)});function Pp(t,n){if(typeof t!="function")throw new Et(w);return n=n===u?n:O(n),D(t,n)}function Hp(t,n){if(typeof t!="function")throw new Et(w);return n=n==null?0:rt(O(n),0),D(function(e){var r=e[n],i=yn(e,0,n);return r&&pn(i,r),wt(t,this,i)})}function Up(t,n,e){var r=!0,i=!0;if(typeof t!="function")throw new Et(w);return Q(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Es(t,n,{leading:r,maxWait:n,trailing:i})}function qp(t){return Is(t,1)}function $p(t,n){return to(Ni(n),t)}function Gp(){if(!arguments.length)return[];var t=arguments[0];return R(t)?t:[t]}function zp(t){return Ot(t,Xt)}function Kp(t,n){return n=typeof n=="function"?n:u,Ot(t,Xt,n)}function Yp(t){return Ot(t,Z|Xt)}function Zp(t,n){return n=typeof n=="function"?n:u,Ot(t,Z|Xt,n)}function Jp(t,n){return n==null||mu(t,n,ut(n))}function Ht(t,n){return t===n||t!==t&&n!==n}var Xp=Sr(Ai),Qp=Sr(function(t,n){return t>=n}),Bn=Cu(function(){return arguments}())?Cu:function(t){return V(t)&&$.call(t,"callee")&&!fu.call(t,"callee")},R=h.isArray,Vp=Go?yt(Go):uc;function _t(t){return t!=null&&Dr(t.length)&&!un(t)}function tt(t){return V(t)&&_t(t)}function jp(t){return t===!0||t===!1||V(t)&&ct(t)==ce}var xn=pa||co,td=zo?yt(zo):sc;function nd(t){return V(t)&&t.nodeType===1&&!Me(t)}function ed(t){if(t==null)return!0;if(_t(t)&&(R(t)||typeof t=="string"||typeof t.splice=="function"||xn(t)||Vn(t)||Bn(t)))return!t.length;var n=ft(t);if(n==kt||n==Wt)return!t.size;if(Re(t))return!Ei(t).length;for(var e in t)if($.call(t,e))return!1;return!0}function rd(t,n){return Te(t,n)}function id(t,n,e){e=typeof e=="function"?e:u;var r=e?e(t,n):u;return r===u?Te(t,n,u,e):!!r}function no(t){if(!V(t))return!1;var n=ct(t);return n==Ke||n==Al||typeof t.message=="string"&&typeof t.name=="string"&&!Me(t)}function od(t){return typeof t=="number"&&cu(t)}function un(t){if(!Q(t))return!1;var n=ct(t);return n==Ye||n==vo||n==Sl||n==Ll}function Os(t){return typeof t=="number"&&t==O(t)}function Dr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=cn}function Q(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function V(t){return t!=null&&typeof t=="object"}var Ms=Ko?yt(Ko):fc;function ud(t,n){return t===n||Li(t,n,zi(n))}function sd(t,n,e){return e=typeof e=="function"?e:u,Li(t,n,zi(n),e)}function ld(t){return Fs(t)&&t!=+t}function fd(t){if(Kc(t))throw new L(y);return Iu(t)}function ad(t){return t===null}function cd(t){return t==null}function Fs(t){return typeof t=="number"||V(t)&&ct(t)==pe}function Me(t){if(!V(t)||ct(t)!=Vt)return!1;var n=sr(t);if(n===null)return!0;var e=$.call(n,"constructor")&&n.constructor;return typeof e=="function"&&e instanceof e&&rr.call(e)==sa}var eo=Yo?yt(Yo):ac;function hd(t){return Os(t)&&t>=-cn&&t<=cn}var Ds=Zo?yt(Zo):cc;function Br(t){return typeof t=="string"||!R(t)&&V(t)&&ct(t)==ge}function bt(t){return typeof t=="symbol"||V(t)&&ct(t)==Ze}var Vn=Jo?yt(Jo):hc;function pd(t){return t===u}function dd(t){return V(t)&&ft(t)==_e}function gd(t){return V(t)&&ct(t)==Rl}var _d=Sr(Ri),md=Sr(function(t,n){return t<=n});function Bs(t){if(!t)return[];if(_t(t))return Br(t)?Nt(t):gt(t);if(we&&t[we])return Jf(t[we]());var n=ft(t),e=n==kt?mi:n==Wt?tr:jn;return e(t)}function sn(t){if(!t)return t===0?t:0;if(t=Dt(t),t===An||t===-An){var n=t<0?-1:1;return n*xl}return t===t?t:0}function O(t){var n=sn(t),e=n%1;return n===n?e?n-e:n:0}function ks(t){return t?On(O(t),0,zt):0}function Dt(t){if(typeof t=="number")return t;if(bt(t))return Ge;if(Q(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Q(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=nu(t);var e=Ql.test(t);return e||jl.test(t)?Mf(t.slice(2),e?2:8):Xl.test(t)?Ge:+t}function Ws(t){return Yt(t,mt(t))}function vd(t){return t?On(O(t),-cn,cn):t===0?t:0}function U(t){return t==null?"":xt(t)}var wd=Jn(function(t,n){if(Re(n)||_t(n)){Yt(n,ut(n),t);return}for(var e in n)$.call(n,e)&&Ie(t,e,n[e])}),Ns=Jn(function(t,n){Yt(n,mt(n),t)}),kr=Jn(function(t,n,e,r){Yt(n,mt(n),t,r)}),yd=Jn(function(t,n,e,r){Yt(n,ut(n),t,r)}),xd=rn(Ci);function bd(t,n){var e=Zn(t);return n==null?e:_u(e,n)}var Cd=D(function(t,n){t=G(t);var e=-1,r=n.length,i=r>2?n[2]:u;for(i&&ht(n[0],n[1],i)&&(r=1);++e<r;)for(var s=n[e],l=mt(s),f=-1,c=l.length;++f<c;){var d=l[f],g=t[d];(g===u||Ht(g,zn[d])&&!$.call(t,d))&&(t[d]=s[d])}return t}),Id=D(function(t){return t.push(u,ns),wt(Ps,u,t)});function Sd(t,n){return Qo(t,S(n,3),Kt)}function Ad(t,n){return Qo(t,S(n,3),Si)}function Td(t,n){return t==null?t:Ii(t,S(n,3),mt)}function Ld(t,n){return t==null?t:xu(t,S(n,3),mt)}function Ed(t,n){return t&&Kt(t,S(n,3))}function Rd(t,n){return t&&Si(t,S(n,3))}function Od(t){return t==null?[]:mr(t,ut(t))}function Md(t){return t==null?[]:mr(t,mt(t))}function ro(t,n,e){var r=t==null?u:Mn(t,n);return r===u?e:r}function Fd(t,n){return t!=null&&is(t,n,ec)}function io(t,n){return t!=null&&is(t,n,rc)}var Dd=Xu(function(t,n,e){n!=null&&typeof n.toString!="function"&&(n=ir.call(n)),t[n]=e},uo(vt)),Bd=Xu(function(t,n,e){n!=null&&typeof n.toString!="function"&&(n=ir.call(n)),$.call(t,n)?t[n].push(e):t[n]=[e]},S),kd=D(Ae);function ut(t){return _t(t)?du(t):Ei(t)}function mt(t){return _t(t)?du(t,!0):pc(t)}function Wd(t,n){var e={};return n=S(n,3),Kt(t,function(r,i,s){nn(e,n(r,i,s),r)}),e}function Nd(t,n){var e={};return n=S(n,3),Kt(t,function(r,i,s){nn(e,i,n(r,i,s))}),e}var Pd=Jn(function(t,n,e){vr(t,n,e)}),Ps=Jn(function(t,n,e,r){vr(t,n,e,r)}),Hd=rn(function(t,n){var e={};if(t==null)return e;var r=!1;n=X(n,function(s){return s=wn(s,t),r||(r=s.length>1),s}),Yt(t,$i(t),e),r&&(e=Ot(e,Z|qe|Xt,Dc));for(var i=n.length;i--;)Bi(e,n[i]);return e});function Ud(t,n){return Hs(t,Fr(S(n)))}var qd=rn(function(t,n){return t==null?{}:gc(t,n)});function Hs(t,n){if(t==null)return{};var e=X($i(t),function(r){return[r]});return n=S(n),Ou(t,e,function(r,i){return n(r,i[0])})}function $d(t,n,e){n=wn(n,t);var r=-1,i=n.length;for(i||(i=1,t=u);++r<i;){var s=t==null?u:t[Zt(n[r])];s===u&&(r=i,s=e),t=un(s)?s.call(t):s}return t}function Gd(t,n,e){return t==null?t:Le(t,n,e)}function zd(t,n,e,r){return r=typeof r=="function"?r:u,t==null?t:Le(t,n,e,r)}var Us=ju(ut),qs=ju(mt);function Kd(t,n,e){var r=R(t),i=r||xn(t)||Vn(t);if(n=S(n,4),e==null){var s=t&&t.constructor;i?e=r?new s:[]:Q(t)?e=un(s)?Zn(sr(t)):{}:e={}}return(i?Lt:Kt)(t,function(l,f,c){return n(e,l,f,c)}),e}function Yd(t,n){return t==null?!0:Bi(t,n)}function Zd(t,n,e){return t==null?t:ku(t,n,Ni(e))}function Jd(t,n,e,r){return r=typeof r=="function"?r:u,t==null?t:ku(t,n,Ni(e),r)}function jn(t){return t==null?[]:_i(t,ut(t))}function Xd(t){return t==null?[]:_i(t,mt(t))}function Qd(t,n,e){return e===u&&(e=n,n=u),e!==u&&(e=Dt(e),e=e===e?e:0),n!==u&&(n=Dt(n),n=n===n?n:0),On(Dt(t),n,e)}function Vd(t,n,e){return n=sn(n),e===u?(e=n,n=0):e=sn(e),t=Dt(t),ic(t,n,e)}function jd(t,n,e){if(e&&typeof e!="boolean"&&ht(t,n,e)&&(n=e=u),e===u&&(typeof n=="boolean"?(e=n,n=u):typeof t=="boolean"&&(e=t,t=u)),t===u&&n===u?(t=0,n=1):(t=sn(t),n===u?(n=t,t=0):n=sn(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=hu();return lt(t+i*(n-t+Of("1e-"+((i+"").length-1))),n)}return Mi(t,n)}var tg=Xn(function(t,n,e){return n=n.toLowerCase(),t+(e?$s(n):n)});function $s(t){return oo(U(t).toLowerCase())}function Gs(t){return t=U(t),t&&t.replace(nf,Gf).replace(xf,"")}function ng(t,n,e){t=U(t),n=xt(n);var r=t.length;e=e===u?r:On(O(e),0,r);var i=e;return e-=n.length,e>=0&&t.slice(e,i)==n}function eg(t){return t=U(t),t&&Bl.test(t)?t.replace(xo,zf):t}function rg(t){return t=U(t),t&&Ul.test(t)?t.replace(ti,"\\$&"):t}var ig=Xn(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),og=Xn(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),ug=Yu("toLowerCase");function sg(t,n,e){t=U(t),n=O(n);var r=n?Gn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Ir(cr(i),e)+t+Ir(ar(i),e)}function lg(t,n,e){t=U(t),n=O(n);var r=n?Gn(t):0;return n&&r<n?t+Ir(n-r,e):t}function fg(t,n,e){t=U(t),n=O(n);var r=n?Gn(t):0;return n&&r<n?Ir(n-r,e)+t:t}function ag(t,n,e){return e||n==null?n=0:n&&(n=+n),ma(U(t).replace(ni,""),n||0)}function cg(t,n,e){return(e?ht(t,n,e):n===u)?n=1:n=O(n),Fi(U(t),n)}function hg(){var t=arguments,n=U(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var pg=Xn(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()});function dg(t,n,e){return e&&typeof e!="number"&&ht(t,n,e)&&(n=e=u),e=e===u?zt:e>>>0,e?(t=U(t),t&&(typeof n=="string"||n!=null&&!eo(n))&&(n=xt(n),!n&&$n(t))?yn(Nt(t),0,e):t.split(n,e)):[]}var gg=Xn(function(t,n,e){return t+(e?" ":"")+oo(n)});function _g(t,n,e){return t=U(t),e=e==null?0:On(O(e),0,t.length),n=xt(n),t.slice(e,e+n.length)==n}function mg(t,n,e){var r=o.templateSettings;e&&ht(t,n,e)&&(n=u),t=U(t),n=kr({},n,r,ts);var i=kr({},n.imports,r.imports,ts),s=ut(i),l=_i(i,s),f,c,d=0,g=n.interpolate||Je,v="__p += '",x=vi((n.escape||Je).source+"|"+g.source+"|"+(g===bo?Jl:Je).source+"|"+(n.evaluate||Je).source+"|$","g"),I="//# sourceURL="+($.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Af+"]")+`
|
|
4
|
-
`;t.replace(x,function(T,B,W,Ct,pt,It){return W||(W=Ct),v+=t.slice(d,It).replace(ef,Kf),B&&(f=!0,v+=`' +
|
|
5
|
-
__e(`+B+`) +
|
|
6
|
-
'`),pt&&(c=!0,v+=`';
|
|
7
|
-
`+pt+`;
|
|
8
|
-
__p += '`),W&&(v+=`' +
|
|
9
|
-
((__t = (`+W+`)) == null ? '' : __t) +
|
|
10
|
-
'`),d=It+T.length,T}),v+=`';
|
|
11
|
-
`;var A=$.call(n,"variable")&&n.variable;if(!A)v=`with (obj) {
|
|
12
|
-
`+v+`
|
|
13
|
-
}
|
|
14
|
-
`;else if(Yl.test(A))throw new L(_);v=(c?v.replace(Ol,""):v).replace(Ml,"$1").replace(Fl,"$1;"),v="function("+(A||"obj")+`) {
|
|
15
|
-
`+(A?"":`obj || (obj = {});
|
|
16
|
-
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
|
|
17
|
-
function print() { __p += __j.call(arguments, '') }
|
|
18
|
-
`:`;
|
|
19
|
-
`)+v+`return __p
|
|
20
|
-
}`;var F=Ks(function(){return H(s,I+"return "+v).apply(u,l)});if(F.source=v,no(F))throw F;return F}function vg(t){return U(t).toLowerCase()}function wg(t){return U(t).toUpperCase()}function yg(t,n,e){if(t=U(t),t&&(e||n===u))return nu(t);if(!t||!(n=xt(n)))return t;var r=Nt(t),i=Nt(n),s=eu(r,i),l=ru(r,i)+1;return yn(r,s,l).join("")}function xg(t,n,e){if(t=U(t),t&&(e||n===u))return t.slice(0,ou(t)+1);if(!t||!(n=xt(n)))return t;var r=Nt(t),i=ru(r,Nt(n))+1;return yn(r,0,i).join("")}function bg(t,n,e){if(t=U(t),t&&(e||n===u))return t.replace(ni,"");if(!t||!(n=xt(n)))return t;var r=Nt(t),i=eu(r,Nt(n));return yn(r,i).join("")}function Cg(t,n){var e=gl,r=_l;if(Q(n)){var i="separator"in n?n.separator:i;e="length"in n?O(n.length):e,r="omission"in n?xt(n.omission):r}t=U(t);var s=t.length;if($n(t)){var l=Nt(t);s=l.length}if(e>=s)return t;var f=e-Gn(r);if(f<1)return r;var c=l?yn(l,0,f).join(""):t.slice(0,f);if(i===u)return c+r;if(l&&(f+=c.length-f),eo(i)){if(t.slice(f).search(i)){var d,g=c;for(i.global||(i=vi(i.source,U(Co.exec(i))+"g")),i.lastIndex=0;d=i.exec(g);)var v=d.index;c=c.slice(0,v===u?f:v)}}else if(t.indexOf(xt(i),f)!=f){var x=c.lastIndexOf(i);x>-1&&(c=c.slice(0,x))}return c+r}function Ig(t){return t=U(t),t&&Dl.test(t)?t.replace(yo,jf):t}var Sg=Xn(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),oo=Yu("toUpperCase");function zs(t,n,e){return t=U(t),n=e?u:n,n===u?Zf(t)?ea(t):Pf(t):t.match(n)||[]}var Ks=D(function(t,n){try{return wt(t,u,n)}catch(e){return no(e)?e:new L(e)}}),Ag=rn(function(t,n){return Lt(n,function(e){e=Zt(e),nn(t,e,ji(t[e],t))}),t});function Tg(t){var n=t==null?0:t.length,e=S();return t=n?X(t,function(r){if(typeof r[1]!="function")throw new Et(w);return[e(r[0]),r[1]]}):[],D(function(r){for(var i=-1;++i<n;){var s=t[i];if(wt(s[0],this,r))return wt(s[1],this,r)}})}function Lg(t){return ja(Ot(t,Z))}function uo(t){return function(){return t}}function Eg(t,n){return t==null||t!==t?n:t}var Rg=Ju(),Og=Ju(!0);function vt(t){return t}function so(t){return Su(typeof t=="function"?t:Ot(t,Z))}function Mg(t){return Tu(Ot(t,Z))}function Fg(t,n){return Lu(t,Ot(n,Z))}var Dg=D(function(t,n){return function(e){return Ae(e,t,n)}}),Bg=D(function(t,n){return function(e){return Ae(t,e,n)}});function lo(t,n,e){var r=ut(n),i=mr(n,r);e==null&&!(Q(n)&&(i.length||!r.length))&&(e=n,n=t,t=this,i=mr(n,ut(n)));var s=!(Q(e)&&"chain"in e)||!!e.chain,l=un(t);return Lt(i,function(f){var c=n[f];t[f]=c,l&&(t.prototype[f]=function(){var d=this.__chain__;if(s||d){var g=t(this.__wrapped__),v=g.__actions__=gt(this.__actions__);return v.push({func:c,args:arguments,thisArg:t}),g.__chain__=d,g}return c.apply(t,pn([this.value()],arguments))})}),t}function kg(){return ot._===this&&(ot._=la),this}function fo(){}function Wg(t){return t=O(t),D(function(n){return Eu(n,t)})}var Ng=Hi(X),Pg=Hi(Xo),Hg=Hi(ci);function Ys(t){return Yi(t)?hi(Zt(t)):_c(t)}function Ug(t){return function(n){return t==null?u:Mn(t,n)}}var qg=Qu(),$g=Qu(!0);function ao(){return[]}function co(){return!1}function Gg(){return{}}function zg(){return""}function Kg(){return!0}function Yg(t,n){if(t=O(t),t<1||t>cn)return[];var e=zt,r=lt(t,zt);n=S(n),t-=zt;for(var i=gi(r,n);++e<t;)n(e);return i}function Zg(t){return R(t)?X(t,Zt):bt(t)?[t]:gt(ps(U(t)))}function Jg(t){var n=++ua;return U(t)+n}var Xg=Cr(function(t,n){return t+n},0),Qg=Ui("ceil"),Vg=Cr(function(t,n){return t/n},1),jg=Ui("floor");function t0(t){return t&&t.length?_r(t,vt,Ai):u}function n0(t,n){return t&&t.length?_r(t,S(n,2),Ai):u}function e0(t){return jo(t,vt)}function r0(t,n){return jo(t,S(n,2))}function i0(t){return t&&t.length?_r(t,vt,Ri):u}function o0(t,n){return t&&t.length?_r(t,S(n,2),Ri):u}var u0=Cr(function(t,n){return t*n},1),s0=Ui("round"),l0=Cr(function(t,n){return t-n},0);function f0(t){return t&&t.length?di(t,vt):0}function a0(t,n){return t&&t.length?di(t,S(n,2)):0}return o.after=Mp,o.ary=Is,o.assign=wd,o.assignIn=Ns,o.assignInWith=kr,o.assignWith=yd,o.at=xd,o.before=Ss,o.bind=ji,o.bindAll=Ag,o.bindKey=As,o.castArray=Gp,o.chain=xs,o.chunk=jc,o.compact=th,o.concat=nh,o.cond=Tg,o.conforms=Lg,o.constant=uo,o.countBy=fp,o.create=bd,o.curry=Ts,o.curryRight=Ls,o.debounce=Es,o.defaults=Cd,o.defaultsDeep=Id,o.defer=Fp,o.delay=Dp,o.difference=eh,o.differenceBy=rh,o.differenceWith=ih,o.drop=oh,o.dropRight=uh,o.dropRightWhile=sh,o.dropWhile=lh,o.fill=fh,o.filter=cp,o.flatMap=dp,o.flatMapDeep=gp,o.flatMapDepth=_p,o.flatten=ms,o.flattenDeep=ah,o.flattenDepth=ch,o.flip=Bp,o.flow=Rg,o.flowRight=Og,o.fromPairs=hh,o.functions=Od,o.functionsIn=Md,o.groupBy=mp,o.initial=dh,o.intersection=gh,o.intersectionBy=_h,o.intersectionWith=mh,o.invert=Dd,o.invertBy=Bd,o.invokeMap=wp,o.iteratee=so,o.keyBy=yp,o.keys=ut,o.keysIn=mt,o.map=Rr,o.mapKeys=Wd,o.mapValues=Nd,o.matches=Mg,o.matchesProperty=Fg,o.memoize=Mr,o.merge=Pd,o.mergeWith=Ps,o.method=Dg,o.methodOf=Bg,o.mixin=lo,o.negate=Fr,o.nthArg=Wg,o.omit=Hd,o.omitBy=Ud,o.once=kp,o.orderBy=xp,o.over=Ng,o.overArgs=Wp,o.overEvery=Pg,o.overSome=Hg,o.partial=to,o.partialRight=Rs,o.partition=bp,o.pick=qd,o.pickBy=Hs,o.property=Ys,o.propertyOf=Ug,o.pull=xh,o.pullAll=ws,o.pullAllBy=bh,o.pullAllWith=Ch,o.pullAt=Ih,o.range=qg,o.rangeRight=$g,o.rearg=Np,o.reject=Sp,o.remove=Sh,o.rest=Pp,o.reverse=Qi,o.sampleSize=Tp,o.set=Gd,o.setWith=zd,o.shuffle=Lp,o.slice=Ah,o.sortBy=Op,o.sortedUniq=Fh,o.sortedUniqBy=Dh,o.split=dg,o.spread=Hp,o.tail=Bh,o.take=kh,o.takeRight=Wh,o.takeRightWhile=Nh,o.takeWhile=Ph,o.tap=tp,o.throttle=Up,o.thru=Er,o.toArray=Bs,o.toPairs=Us,o.toPairsIn=qs,o.toPath=Zg,o.toPlainObject=Ws,o.transform=Kd,o.unary=qp,o.union=Hh,o.unionBy=Uh,o.unionWith=qh,o.uniq=$h,o.uniqBy=Gh,o.uniqWith=zh,o.unset=Yd,o.unzip=Vi,o.unzipWith=ys,o.update=Zd,o.updateWith=Jd,o.values=jn,o.valuesIn=Xd,o.without=Kh,o.words=zs,o.wrap=$p,o.xor=Yh,o.xorBy=Zh,o.xorWith=Jh,o.zip=Xh,o.zipObject=Qh,o.zipObjectDeep=Vh,o.zipWith=jh,o.entries=Us,o.entriesIn=qs,o.extend=Ns,o.extendWith=kr,lo(o,o),o.add=Xg,o.attempt=Ks,o.camelCase=tg,o.capitalize=$s,o.ceil=Qg,o.clamp=Qd,o.clone=zp,o.cloneDeep=Yp,o.cloneDeepWith=Zp,o.cloneWith=Kp,o.conformsTo=Jp,o.deburr=Gs,o.defaultTo=Eg,o.divide=Vg,o.endsWith=ng,o.eq=Ht,o.escape=eg,o.escapeRegExp=rg,o.every=ap,o.find=hp,o.findIndex=gs,o.findKey=Sd,o.findLast=pp,o.findLastIndex=_s,o.findLastKey=Ad,o.floor=jg,o.forEach=bs,o.forEachRight=Cs,o.forIn=Td,o.forInRight=Ld,o.forOwn=Ed,o.forOwnRight=Rd,o.get=ro,o.gt=Xp,o.gte=Qp,o.has=Fd,o.hasIn=io,o.head=vs,o.identity=vt,o.includes=vp,o.indexOf=ph,o.inRange=Vd,o.invoke=kd,o.isArguments=Bn,o.isArray=R,o.isArrayBuffer=Vp,o.isArrayLike=_t,o.isArrayLikeObject=tt,o.isBoolean=jp,o.isBuffer=xn,o.isDate=td,o.isElement=nd,o.isEmpty=ed,o.isEqual=rd,o.isEqualWith=id,o.isError=no,o.isFinite=od,o.isFunction=un,o.isInteger=Os,o.isLength=Dr,o.isMap=Ms,o.isMatch=ud,o.isMatchWith=sd,o.isNaN=ld,o.isNative=fd,o.isNil=cd,o.isNull=ad,o.isNumber=Fs,o.isObject=Q,o.isObjectLike=V,o.isPlainObject=Me,o.isRegExp=eo,o.isSafeInteger=hd,o.isSet=Ds,o.isString=Br,o.isSymbol=bt,o.isTypedArray=Vn,o.isUndefined=pd,o.isWeakMap=dd,o.isWeakSet=gd,o.join=vh,o.kebabCase=ig,o.last=Ft,o.lastIndexOf=wh,o.lowerCase=og,o.lowerFirst=ug,o.lt=_d,o.lte=md,o.max=t0,o.maxBy=n0,o.mean=e0,o.meanBy=r0,o.min=i0,o.minBy=o0,o.stubArray=ao,o.stubFalse=co,o.stubObject=Gg,o.stubString=zg,o.stubTrue=Kg,o.multiply=u0,o.nth=yh,o.noConflict=kg,o.noop=fo,o.now=Or,o.pad=sg,o.padEnd=lg,o.padStart=fg,o.parseInt=ag,o.random=jd,o.reduce=Cp,o.reduceRight=Ip,o.repeat=cg,o.replace=hg,o.result=$d,o.round=s0,o.runInContext=a,o.sample=Ap,o.size=Ep,o.snakeCase=pg,o.some=Rp,o.sortedIndex=Th,o.sortedIndexBy=Lh,o.sortedIndexOf=Eh,o.sortedLastIndex=Rh,o.sortedLastIndexBy=Oh,o.sortedLastIndexOf=Mh,o.startCase=gg,o.startsWith=_g,o.subtract=l0,o.sum=f0,o.sumBy=a0,o.template=mg,o.times=Yg,o.toFinite=sn,o.toInteger=O,o.toLength=ks,o.toLower=vg,o.toNumber=Dt,o.toSafeInteger=vd,o.toString=U,o.toUpper=wg,o.trim=yg,o.trimEnd=xg,o.trimStart=bg,o.truncate=Cg,o.unescape=Ig,o.uniqueId=Jg,o.upperCase=Sg,o.upperFirst=oo,o.each=bs,o.eachRight=Cs,o.first=vs,lo(o,function(){var t={};return Kt(o,function(n,e){$.call(o.prototype,e)||(t[e]=n)}),t}(),{chain:!1}),o.VERSION=m,Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){o[t].placeholder=o}),Lt(["drop","take"],function(t,n){k.prototype[t]=function(e){e=e===u?1:rt(O(e),0);var r=this.__filtered__&&!n?new k(this):this.clone();return r.__filtered__?r.__takeCount__=lt(e,r.__takeCount__):r.__views__.push({size:lt(e,zt),type:t+(r.__dir__<0?"Right":"")}),r},k.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Lt(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==mo||e==yl;k.prototype[t]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:S(i,3),type:e}),s.__filtered__=s.__filtered__||r,s}}),Lt(["head","last"],function(t,n){var e="take"+(n?"Right":"");k.prototype[t]=function(){return this[e](1).value()[0]}}),Lt(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");k.prototype[t]=function(){return this.__filtered__?new k(this):this[e](1)}}),k.prototype.compact=function(){return this.filter(vt)},k.prototype.find=function(t){return this.filter(t).head()},k.prototype.findLast=function(t){return this.reverse().find(t)},k.prototype.invokeMap=D(function(t,n){return typeof t=="function"?new k(this):this.map(function(e){return Ae(e,t,n)})}),k.prototype.reject=function(t){return this.filter(Fr(S(t)))},k.prototype.slice=function(t,n){t=O(t);var e=this;return e.__filtered__&&(t>0||n<0)?new k(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==u&&(n=O(n),e=n<0?e.dropRight(-n):e.take(n-t)),e)},k.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},k.prototype.toArray=function(){return this.take(zt)},Kt(k.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=o[r?"take"+(n=="last"?"Right":""):n],s=r||/^find/.test(n);i&&(o.prototype[n]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof k,d=f[0],g=c||R(l),v=function(B){var W=i.apply(o,pn([B],f));return r&&x?W[0]:W};g&&e&&typeof d=="function"&&d.length!=1&&(c=g=!1);var x=this.__chain__,I=!!this.__actions__.length,A=s&&!x,F=c&&!I;if(!s&&g){l=F?l:new k(this);var T=t.apply(l,f);return T.__actions__.push({func:Er,args:[v],thisArg:u}),new Rt(T,x)}return A&&F?t.apply(this,f):(T=this.thru(v),A?r?T.value()[0]:T.value():T)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(t){var n=nr[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);o.prototype[t]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return n.apply(R(s)?s:[],i)}return this[e](function(l){return n.apply(R(l)?l:[],i)})}}),Kt(k.prototype,function(t,n){var e=o[n];if(e){var r=e.name+"";$.call(Yn,r)||(Yn[r]=[]),Yn[r].push({name:n,func:e})}}),Yn[br(u,Sn).name]=[{name:"wrapper",func:u}],k.prototype.clone=Ia,k.prototype.reverse=Sa,k.prototype.value=Aa,o.prototype.at=np,o.prototype.chain=ep,o.prototype.commit=rp,o.prototype.next=ip,o.prototype.plant=up,o.prototype.reverse=sp,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=lp,o.prototype.first=o.prototype.head,we&&(o.prototype[we]=op),o},gn=ra();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ot._=gn,define(function(){return gn})):Tn?((Tn.exports=gn)._=gn,si._=gn):ot._=gn}).call(fe)});function d0(u,m){if(u&1&&at(0,"i",15),u&2){let C=it();rl("fas fa-fw ",C.faIconClass," mb-4")}}function g0(u,m){if(u&1&&(q(0,"div",16)(1,"h5",17),dt(2),Y()()),u&2){let C=it();P(2),re(C.subtitle)}}function _0(u,m){if(u&1){let C=Ne();q(0,"button",18),ie(1,"translate"),Cn("click",function(){Be(C);let w=it();return ke(w.$activeModal.dismiss("Dismiss"))}),dt(2),ie(3,"translate"),Y()}u&2&&(kn("aria-label",oe(1,2,"form.button_close")),P(2),Nr(" ",oe(3,4,"form.button_close")," "))}function m0(u,m){if(u&1){let C=Ne();q(0,"button",18),ie(1,"translate"),Cn("click",function(){Be(C);let w=it();return ke(w.$activeModal.dismiss("Dismiss"))}),dt(2),ie(3,"translate"),Y()}u&2&&(kn("aria-label",oe(1,2,"form.button_close")),P(2),Nr(" ",oe(3,4,"form.button_close")," "))}function v0(u,m){if(u&1&&(q(0,"a",19),dt(1),at(2,"i",20),Y()),u&2){let C=it();z("href",C.ctaButtonLink,el),P(),Nr(" ",C.ctaButtonLabel," ")}}var P0=(()=>{let m=class m{constructor(y){N(this,"$activeModal");N(this,"title");N(this,"subtitle");N(this,"message");N(this,"ctaButtonLabel");N(this,"ctaButtonLink");N(this,"faIconClass");this.$activeModal=y}};N(m,"\u0275fac",function(w){return new(w||m)(Bt(sl))}),N(m,"\u0275cmp",bn({type:m,selectors:[["ng-component"]],inputs:{title:"title",subtitle:"subtitle",message:"message",ctaButtonLabel:"ctaButtonLabel",ctaButtonLink:"ctaButtonLink",faIconClass:"faIconClass"},decls:20,vars:10,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body","w-100","text-center"],["style","font-size: 75px",3,"class",4,"ngIf"],["class","alert","role","alert",4,"ngIf"],[1,"w-100","text-center"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","class","btn btn-elegant","data-dismiss","modal",3,"click",4,"ngIf"],[1,"text-center"],[1,"text-right"],["class","btn btn-primary text-decoration-none","target","_blank","rel","noopener noreferrer",3,"href",4,"ngIf"],[2,"font-size","75px"],["role","alert",1,"alert"],[1,"mb-0"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"fas","fa-fw","fa-external-link-alt"]],template:function(w,_){w&1&&(q(0,"div",0)(1,"div",1)(2,"h5",2),dt(3),Y(),q(4,"button",3),ie(5,"translate"),Cn("click",function(){return _.$activeModal.dismiss("Dismiss")}),q(6,"span",4),dt(7,"\xD7"),Y()()(),q(8,"div",5),St(9,d0,1,3,"i",6)(10,g0,3,1,"div",7),q(11,"p",8),dt(12),Y()(),q(13,"div",9)(14,"div",10),St(15,_0,4,6,"button",11),Y(),q(16,"div",12),St(17,m0,4,6,"button",11),Y(),q(18,"div",13),St(19,v0,3,2,"a",14),Y()()()),w&2&&(P(3),re(_.title),P(),kn("aria-label",oe(5,8,"form.button_close")),P(5),z("ngIf",_.faIconClass),P(),z("ngIf",_.subtitle),P(2),re(_.message),P(3),z("ngIf",_.ctaButtonLink),P(2),z("ngIf",!_.ctaButtonLink),P(2),z("ngIf",_.ctaButtonLink))},dependencies:[Hr,il],encapsulation:2}));let u=m;return u})();var q0=(()=>{let m=class m{constructor(){}};N(m,"\u0275fac",function(w){return new(w||m)}),N(m,"\u0275cmp",bn({type:m,selectors:[["app-spinner"]],decls:7,vars:0,consts:[[1,"app-spinner-container"],[1,"animate_loader"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","200px","height","200px","viewBox","0 0 100 100","preserveAspectRatio","xMidYMid",2,"margin","auto","display","block"],["cx","50","cy","50","r","32","stroke-width","8","stroke-dasharray","50.26548245743669 50.26548245743669","fill","none","stroke-linecap","round","transform","rotate(327.259 50 50)",1,"spinner_outer"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;360 50 50"],["cx","50","cy","50","r","23","stroke-width","8","stroke","#f8b26a","stroke-dasharray","36.12831551628262 36.12831551628262","stroke-dashoffset","36.12831551628262","fill","none","stroke-linecap","round","transform","rotate(-327.259 50 50)",1,"spinner_inner"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;-360 50 50"]],template:function(w,_){w&1&&(q(0,"div",0)(1,"div",1),nl(),q(2,"svg",2)(3,"circle",3),at(4,"animateTransform",4),Y(),q(5,"circle",5),at(6,"animateTransform",6),Y()()()())},styles:[".app-spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:1000}.animate_loader[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:200px;overflow:visible}"]}));let u=m;return u})();var X0=(()=>{let m=class m{constructor(){N(this,"duration",350);N(this,"longclick",new ho);N(this,"shortclick",new ho);N(this,"downTimeout");N(this,"done",!1)}onEnter(y){this.shortclick.emit(y)}onMouseUp(y){clearInterval(this.downTimeout),this.done||(this.done=!0,this.shortclick.emit(y))}onTouchEnd(y){clearInterval(this.downTimeout),y.preventDefault(),y.stopPropagation(),this.done||(this.done=!0,this.shortclick.emit(y))}onMouseDown(y){y.button===0&&(this.done=!1,this.downTimeout=setTimeout(()=>{this.done=!0,this.longclick.emit(y)},this.duration))}onMouseMove(){this.done=!0,clearInterval(this.downTimeout)}ngOnDestroy(){clearInterval(this.downTimeout)}};N(m,"\u0275fac",function(w){return new(w||m)}),N(m,"\u0275dir",js({type:m,selectors:[["","appLongclick",""]],hostBindings:function(w,_){w&1&&Cn("keyup.enter",function(M){return _.onEnter(M)})("mouseup",function(M){return _.onMouseUp(M)})("touchend",function(M){return _.onTouchEnd(M)})("touchstart",function(M){return _.onMouseDown(M)})("mousedown",function(M){return _.onMouseDown(M)})("mousemove",function(M){return _.onMouseMove(M)})("touchmove",function(M){return _.onMouseMove(M)})},inputs:{duration:"duration"},outputs:{longclick:"longclick",shortclick:"shortclick"}}));let u=m;return u})();var n_=(()=>{let m=class m{constructor(y){N(this,"$settings");this.$settings=y}transform(y,w=this.$settings.env.temperatureUnits){return w==="f"?y*1.8+32:y}};N(m,"\u0275fac",function(w){return new(w||m)(Bt(po,16))}),N(m,"\u0275pipe",tl({name:"convertTemp",type:m,pure:!0}));let u=m;return u})();var qt=h0(al(),1);function x0(u,m){if(u&1){let C=Ne();q(0,"button",6),Cn("click",function(){Be(C);let w=it();return ke(w.removeItem())}),q(1,"span",7),dt(2,"\xD7"),Y(),q(3,"span"),dt(4,"Close"),Y()()}if(u&2){let C=it();Jt(C.widgetStyles.__remove_item__),P(3),Jt(C.widgetStyles.__screen_reader__)}}function b0(u,m){if(u&1&&at(0,"p",8),u&2){let C=it(2);Jt(C.widgetStyles.__help_block__),z("innerHTML",C.options==null?null:C.options.helpBlock,ee)}}function C0(u,m){if(u&1&&(q(0,"div"),St(1,b0,1,3,"p",3),Y()),u&2){let C=it();P(),z("ngIf",C.options==null?null:C.options.helpBlock)}}function I0(u,m){if(u&1&&at(0,"label",8),u&2){let C=it();Jt((C.options==null?null:C.options.labelHtmlClass)||""),We("sr-only",C.options==null?null:C.options.notitle),z("innerHTML",C.options==null?null:C.options.title,ee),kn("for","control"+(C.layoutNode==null?null:C.layoutNode._id))}}function S0(u,m){if(u&1&&(q(0,"p")(1,"strong"),dt(2,"*"),Y(),dt(3," = required fields "),Y()),u&2){let C=it();P(),Jt(C.widgetStyles.__required_asterisk__)}}function A0(u,m){if(u&1&&at(0,"span",8),u&2){let C=it();Jt(C.widgetStyles.__field_addon_left__),z("innerHTML",C.options==null?null:C.options.fieldAddonLeft,ee)}}function T0(u,m){if(u&1&&at(0,"span",8),u&2){let C=it();Jt(C.widgetStyles.__field_addon_right__),z("innerHTML",C.options==null?null:C.options.fieldAddonRight,ee)}}function L0(u,m){if(u&1&&at(0,"span",9),u&2){let C=it();We("glyphicon-ok",(C.options==null?null:C.options.enableSuccessState)&&!(C.formControl!=null&&C.formControl.errors))("glyphicon-remove",(C.options==null?null:C.options.enableErrorState)&&(C.formControl==null?null:C.formControl.errors))}}function E0(u,m){if(u&1&&at(0,"p",8),u&2){let C=it(2);Jt(C.widgetStyles.__help_block__),z("innerHTML",C.options==null?null:C.options.helpBlock,ee)}}function R0(u,m){if(u&1&&(q(0,"div"),St(1,E0,1,3,"p",3),Y()),u&2){let C=it();P(),z("ngIf",C.options==null?null:C.options.helpBlock)}}function O0(u,m){if(u&1&&(q(0,"div"),dt(1,"debug: "),q(2,"pre"),dt(3),Y()()),u&2){let C=it();P(3),re(C.debugOutput)}}var Ue=(()=>{let m=class m{constructor(){this.frameworkThemeSubject=new Qs,this.frameworkTheme$=this.frameworkThemeSubject.asObservable()}requestThemeChange(y){this.frameworkThemeSubject.next(y),this.activeRequestedTheme=y}getActiveRequestedTheme(){return this.activeRequestedTheme}};m.\u0275fac=function(w){return new(w||m)},m.\u0275prov=Fe({token:m,factory:m.\u0275fac,providedIn:"root"});let u=m;return u})(),go=(()=>{let m=class m{applyCssClasses(y,w,_){let E=this.widgetStyles[y];(!E||qt.default.isEmpty(E))&&(E=this.widgetStyles.default),Object.keys(E).forEach(M=>{let j=E[M];j.length&&(w[M]=fn(w[M],j)),_&&(w[M]=fn(w[M],_))})}flattenWidgetStyles(y){var w={};let _=["__themes__"];return Object.keys(y).forEach(E=>{let M=y[E];if(_.indexOf(E)>=0){w[E]=M;return}qt.default.isArray(M)&&(w[E]=M.join(" ")),qt.default.isObject(M)&&(w[E]=w[E]||{},Object.keys(M).forEach(j=>{let Z=M[j];qt.default.isArray(Z)?w[E][j]=Z.join(" "):w[E][j]=Z})),qt.default.isString(M)&&(w[E]=M)}),w}constructor(y,w,_,E){var Xt;this.changeDetector=y,this.jsf=w,this.jsfFLService=_,this.cssFWService=E,this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1,this.defaultStyling={array:{},default:{fieldHtmlClass:"cssfw-form-control"},__themes__:[{name:"notheme",text:"None"}],__remove_item__:"cssfw-remove-item",__array_item_nonref__:{htmlClass:"cssfw-array-item-nonref"},__active__:{activeClass:"cssfw-active"},__array__:{htmlClass:"cssfw-array"},__control_label__:{labelHtmlClass:"cssfw-control-label"},__form_group__:{htmlClass:"cssfw-form-group"},__field_addon_left__:"cssfw-addon-left",__field_addon_right__:"cssfw-addon-right",__help_block__:"cssfw-help-block",__required_asterisk__:"cssfw-required-astersisk",__screen_reader__:"cssfw-screen-reader"};let j=this.jsfFLService.activeFramework.config||{};this.widgetStyles=Object.assign(this.defaultStyling,j.widgetstyles);let Z=this.widgetStyles.__themes__[0],qe=E.activeRequestedTheme||Z.name;this.theme=((Xt=this.options)==null?void 0:Xt.theme)||qe,this.frameworkThemeSubs=E.frameworkTheme$.subscribe(an=>{this.theme=an})}ngOnDestroy(){this.frameworkThemeSubs.unsubscribe(),this.frameworkThemeSubs=null}get showRemoveButton(){return!this.options.removable||this.options.readonly||this.layoutNode.type==="$ref"?!1:this.layoutNode.recursiveReference?!0:!this.layoutNode.arrayItem||!this.parentArray||this.parentArray.items.length-1<=this.parentArray.options.minItems?!1:this.layoutNode.arrayItemType==="list"?!0:this.layoutIndex[this.layoutIndex.length-1]===this.parentArray.items.length-2}ngOnInit(){this.initializeFramework(),this.layoutNode.arrayItem&&this.layoutNode.type!=="$ref"&&(this.parentArray=this.jsf.getParentNode(this),this.parentArray&&(this.isOrderable=this.layoutNode.arrayItemType==="list"&&!this.options.readonly&&this.parentArray.options.orderable))}ngOnChanges(){this.frameworkInitialized||this.initializeFramework()}initializeFramework(){if(this.layoutNode){if(this.options=(0,qt.cloneDeep)(this.layoutNode.options),this.widgetLayoutNode=Xs(Js({},this.layoutNode),{options:(0,qt.cloneDeep)(this.layoutNode.options)}),this.widgetOptions=this.widgetLayoutNode.options,this.formControl=this.jsf.getFormControl(this),this.options.isInputWidget=ll(this.layoutNode.type,["button","checkbox","checkboxes-inline","checkboxes","color","date","datetime-local","datetime","email","file","hidden","image","integer","month","number","password","radio","radiobuttons","radios-inline","radios","range","reset","search","select","submit","tel","text","textarea","time","url","week"]),this.options.title=this.setTitle(),this.options.htmlClass=fn(this.options.htmlClass,"schema-form-"+this.layoutNode.type),this.layoutNode.type==="array"?this.options.htmlClass=fn(this.options.htmlClass,this.widgetStyles.__array__.htmlClass):this.layoutNode.arrayItem&&this.layoutNode.type!=="$ref"?this.options.htmlClass=fn(this.options.htmlClass,this.widgetStyles.__array_item_nonref__.htmlClass):this.options.htmlClass=fn(this.options.htmlClass,this.widgetStyles.__form_group__.htmlClass),this.widgetOptions.htmlClass="",this.options.labelHtmlClass=fn(this.options.labelHtmlClass,this.widgetStyles.__control_label__.labelHtmlClass),this.widgetOptions.activeClass=fn(this.widgetOptions.activeClass,this.widgetStyles.__active__.activeClass),this.options.fieldAddonLeft=this.options.fieldAddonLeft||this.options.prepend,this.options.fieldAddonRight=this.options.fieldAddonRight||this.options.append,this.options.title&&this.layoutNode.type!=="tab"&&!this.options.notitle&&this.options.required&&!this.options.title.includes("*")){let y=this.widgetStyles.__required_asterisk__||"text-danger";this.options.title+=` <strong class="${y}">*</strong>`}if(this.layoutNode.type=="optionfieldset"&&(this.options.messageLocation="top"),this.applyCssClasses(this.layoutNode.type,this.widgetOptions,this.options.style),this.formControl&&(this.updateHelpBlock(this.formControl.status),this.formControl.statusChanges.subscribe(y=>this.updateHelpBlock(y)),this.options.debug)){let y=[];this.debugOutput=(0,qt.map)(y,w=>JSON.stringify(w,null,2)).join(`
|
|
21
|
-
`)}this.frameworkInitialized=!0}}updateHelpBlock(y){this.options.helpBlock=y==="INVALID"&&this.options.enableErrorState&&this.formControl.errors&&(this.formControl.dirty||this.options.feedbackOnRender)?this.jsf.formatErrors(this.formControl.errors,this.options.validationMessages):this.options.description||this.options.help||null}setTitle(){switch(this.layoutNode.type){case"button":case"checkbox":case"section":case"help":case"msg":case"submit":case"message":case"tabarray":case"tabs":case"$ref":return null;case"advancedfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Advanced options",null;case"authfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Authentication settings",null;case"fieldset":return this.widgetOptions.title=this.options.title,null;case"array":return this.widgetOptions.title=this.options.title,null;default:return this.widgetOptions.title=null,this.jsf.setItemTitle(this)}}removeItem(){this.jsf.removeItem(this)}};m.\u0275fac=function(w){return new(w||m)(Bt(Pr),Bt(In),Bt(se),Bt(Ue))},m.\u0275cmp=bn({type:m,selectors:[["css-framework"]],inputs:{layoutNode:"layoutNode",layoutIndex:"layoutIndex",dataIndex:"dataIndex",widgetStyles:"widgetStyles"},features:[Wr],decls:12,vars:24,consts:[["type","button",3,"class","click",4,"ngIf"],[4,"ngIf"],[3,"class","sr-only","innerHTML",4,"ngIf"],[3,"class","innerHTML",4,"ngIf"],[3,"layoutNode","dataIndex","layoutIndex"],["aria-hidden","true","class","form-control-feedback glyphicon",3,"glyphicon-ok","glyphicon-remove",4,"ngIf"],["type","button",3,"click"],["aria-hidden","true"],[3,"innerHTML"],["aria-hidden","true",1,"form-control-feedback","glyphicon"]],template:function(w,_){w&1&&(q(0,"div"),St(1,x0,5,4,"button",0)(2,C0,2,1,"div",1)(3,I0,1,6,"label",2)(4,S0,4,2,"p",1),q(5,"div"),St(6,A0,1,3,"span",3),at(7,"select-widget-widget",4),St(8,T0,1,3,"span",3),Y(),St(9,L0,1,4,"span",5)(10,R0,2,1,"div",1),Y(),St(11,O0,4,1,"div",1)),w&2&&(Jt((_.options==null?null:_.options.htmlClass)||""),We("has-feedback",(_.options==null?null:_.options.feedback)&&(_.options==null?null:_.options.isInputWidget)&&((_.formControl==null?null:_.formControl.dirty)||(_.options==null?null:_.options.feedbackOnRender)))("has-error",(_.options==null?null:_.options.enableErrorState)&&(_.formControl==null?null:_.formControl.errors)&&((_.formControl==null?null:_.formControl.dirty)||(_.options==null?null:_.options.feedbackOnRender)))("has-success",(_.options==null?null:_.options.enableSuccessState)&&!(_.formControl!=null&&_.formControl.errors)&&((_.formControl==null?null:_.formControl.dirty)||(_.options==null?null:_.options.feedbackOnRender))),kn("data-bs-theme",_.theme)("data-theme",_.theme),P(),z("ngIf",_.showRemoveButton),P(),z("ngIf",(_.options==null?null:_.options.messageLocation)==="top"&&(_.layoutNode==null?null:_.layoutNode.type)!=="array"),P(),z("ngIf",(_.options==null?null:_.options.title)&&(_.layoutNode==null?null:_.layoutNode.type)!=="tab"&&(_.layoutNode==null?null:_.layoutNode.type)!=="array"),P(),z("ngIf",(_.layoutNode==null?null:_.layoutNode.type)==="submit"&&(_.jsf==null||_.jsf.formOptions==null?null:_.jsf.formOptions.fieldsRequired)),P(),We("input-group",(_.options==null?null:_.options.fieldAddonLeft)||(_.options==null?null:_.options.fieldAddonRight)),P(),z("ngIf",_.options==null?null:_.options.fieldAddonLeft),P(),z("layoutNode",_.widgetLayoutNode)("dataIndex",_.dataIndex)("layoutIndex",_.layoutIndex),P(),z("ngIf",_.options==null?null:_.options.fieldAddonRight),P(),z("ngIf",(_.options==null?null:_.options.feedback)&&(_.options==null?null:_.options.isInputWidget)&&!(_.options!=null&&_.options.fieldAddonRight)&&!_.layoutNode.arrayItem&&((_.formControl==null?null:_.formControl.dirty)||(_.options==null?null:_.options.feedbackOnRender))),P(),z("ngIf",(_.options==null?null:_.options.messageLocation)!=="top"&&(_.layoutNode==null?null:_.layoutNode.type)!=="array"),P(),z("ngIf",_.debug&&_.debugOutput))},dependencies:[fl,Hr],styles:[`:host ::ng-deep .list-group-item .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.checkbox-inline,.checkbox-inline+.checkbox-inline,.checkbox-inline+.radio-inline,.radio-inline,.radio-inline+.radio-inline,.radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}.checkbox-inline:last-child,.radio-inline:last-child{margin-right:0}.ng-invalid.ng-touched{border:1px solid #f44336}
|
|
22
|
-
`],encapsulation:2});let u=m;return u})(),M0=new Vs("CSS_FRAMEWORK_CFG"),cl;(function(u){class m{}u.csscategories=m})(cl||(cl={}));var hl=(()=>{let m=class m{};m.\u0275fac=function(w){return new(w||m)},m.\u0275mod=ne({type:m}),m.\u0275inj=te({providers:[In,se,Ur,Ue],imports:[Pe,ue,$r]});let u=m;return u})(),pl=(()=>{let m=class m extends qr{constructor(y,w){super(),this.cssFWService=w,this.name="css",this.framework=go,this.name=y.name,this.text=y.text||this.name,this.stylesheets=y.stylesheets,this.scripts=y.scripts,this.config=y,this.widgets=y.widgets}getActiveTheme(){var E,M;let y=this.cssFWService.getActiveRequestedTheme(),w=(M=(E=this.config)==null?void 0:E.widgetstyles)==null?void 0:M.__themes__,_=w&&w[0];if(y&&(_={name:y,text:y},w)){let j=w.filter(Z=>Z.name==y);_=j&&j[0]||_}return _}requestThemeChange(y){this.cssFWService.requestThemeChange(y)}registerTheme(y,w=!0){var M,j;let E=(((j=(M=this.config)==null?void 0:M.widgetstyles)==null?void 0:j.__themes__)||[]).filter(Z=>y.name==Z.name);if(E&&E[0]){if(w)return E[0].text=y.text,!0;if(!w)return!1}if(!E||E.length==0){let Z=this.config;return Z.widgetstyles=this.config.widgetstyles||{},Z.widgetstyles.__themes__=Z.widgetstyles.__themes__||[],Z.widgetstyles.__themes__.push(y),!0}}unregisterTheme(y){var E,M;let w=(M=(E=this.config)==null?void 0:E.widgetstyles)==null?void 0:M.__themes__,_=-1;return w&&(w.forEach((j,Z)=>{y==j.name&&(_=Z)}),_>=0)?(w.splice(_,1),!0):!1}getConfig(){return this.config}};m.\u0275fac=function(w){return new(w||m)(De(M0),De(Ue))},m.\u0275prov=Fe({token:m,factory:m.\u0275fac});let u=m;return u})();var D0=(()=>{let m=class m{constructor(y,w){this.changeDetector=y,this.jsf=w,this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1}ngOnInit(){}ngOnChanges(){}};m.\u0275fac=function(w){return new(w||m)(Bt(Pr),Bt(In))},m.\u0275cmp=bn({type:m,selectors:[["bootstrap-4-framework"]],inputs:{layoutNode:"layoutNode",layoutIndex:"layoutIndex",dataIndex:"dataIndex"},features:[Wr],decls:2,vars:3,consts:[[3,"layoutNode","layoutIndex","dataIndex"]],template:function(w,_){w&1&&(q(0,"div"),at(1,"css-framework",0),Y()),w&2&&(P(),z("layoutNode",_.layoutNode)("layoutIndex",_.layoutIndex)("dataIndex",_.dataIndex))},dependencies:[go],styles:[`:host ::ng-deep .list-group-item .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.input-group .form-control:first-child,.input-group-text:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text:first-child{border-right:0}.input-group .form-control:last-child,.input-group-text:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text:last-child{border-left:0}.input-group .form-control:not(:first-child):not(:last-child),.input-group-text:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}
|
|
23
|
-
`],encapsulation:2});let u=m;return u})(),B0={name:"bootstrap-4",text:"Bootstrap 4",scripts:["//cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js","//cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"],stylesheets:["//cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"],widgetstyles:{__themes__:[{name:"bootstrap4_default",text:"Bootstrap4 default"}],$ref:{fieldHtmlClass:"btn float-right btn-info"},__array_item_nonref__:{htmlClass:"list-group-item"},__form_group__:{htmlClass:"form-group"},__control_label__:{labelHtmlClass:"control-label"},__active__:{activeClass:"active"},__required_asterisk__:"text-danger",__screen_reader__:"sr-only",__remove_item__:"close float-right",__help_block__:"help-block",__field_addon_left__:"input-group-text input-group-prepend",__field_addon_right__:"input-group-text input-group-append","alt-date":{},"alt-datetime":{},__array__:{htmlClass:"list-group"},array:{},authfieldset:{},advancedfieldset:{},button:{fieldHtmlClass:"btn btn-sm btn-primary"},checkbox:{fieldHtmlClass:"checkbox"},checkboxes:{fieldHtmlClass:"checkbox"},checkboxbuttons:{fieldHtmlClass:"sr-only",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},"checkboxes-inline":{htmlClass:"checkbox",itemLabelHtmlClass:"checkbox-inline"},date:{},"datetime-local":{},fieldset:{},integer:{},number:{},optionfieldset:{},password:{},radiobuttons:{fieldHtmlClass:"sr-only",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},radio:{fieldHtmlClass:"radio"},radios:{fieldHtmlClass:"radio"},"radios-inline":{htmlClass:"radio",itemLabelHtmlClass:"radio-inline"},range:{},section:{},selectfieldset:{},select:{},submit:{fieldHtmlClass:"btn btn-primary"},text:{},tabs:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane"},tabarray:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane"},textarea:{},default:{fieldHtmlClass:"form-control"}}},k0=(()=>{let m=class m extends pl{constructor(y){super(B0,y),this.cssFWService=y,this.framework=D0}};m.\u0275fac=function(w){return new(w||m)(De(Ue))},m.\u0275prov=Fe({token:m,factory:m.\u0275fac});let u=m;return u})(),dl=(()=>{let m=class m{};m.\u0275fac=function(w){return new(w||m)},m.\u0275mod=ne({type:m}),m.\u0275inj=te({providers:[In,se,Ur,{provide:qr,useClass:k0,multi:!0}],imports:[Pe,ue,$r,hl,Pe]});let u=m;return u})();var nm=(()=>{let m=class m{};N(m,"\u0275fac",function(w){return new(w||m)}),N(m,"\u0275mod",ne({type:m})),N(m,"\u0275inj",te({imports:[ue,ol,dl,ul]}));let u=m;return u})();export{q0 as a,n_ as b,X0 as c,P0 as d,dl as e,nm as f};
|