hyperscript-rxjs 1.2.7 → 1.3.0

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.
@@ -1 +1 @@
1
- !function(r,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["rxjs","rxjs/operators"],t):"object"==typeof exports?exports.hyperscriptRxjs=t(require("rxjs"),require("rxjs/operators")):r.hyperscriptRxjs=t(r.rxjs,r.rxjs.operators)}(this,(function(r,t){return(()=>{"use strict";var e={705:r=>{r.exports=t},130:t=>{t.exports=r}},n={};function o(r){var t=n[r];if(void 0!==t)return t.exports;var u=n[r]={exports:{}};return e[r](u,u.exports,o),u.exports}o.d=(r,t)=>{for(var e in t)o.o(t,e)&&!o.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},o.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),o.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var u={};return(()=>{o.r(u),o.d(u,{a:()=>c,abbr:()=>s,address:()=>m,area:()=>l,article:()=>p,aside:()=>d,audio:()=>y,b:()=>A,bdi:()=>b,bdo:()=>h,bindTabIndex:()=>it,blockquote:()=>g,br:()=>E,button:()=>v,caption:()=>T,checkbox:()=>Xr,choice:()=>et,cite:()=>N,code:()=>O,col:()=>x,colgroup:()=>S,collapse:()=>tt,data:()=>I,datalist:()=>D,dd:()=>R,del:()=>L,details:()=>C,dfn:()=>j,dialog:()=>B,div:()=>P,dl:()=>k,dt:()=>M,em:()=>U,fieldset:()=>w,figcaption:()=>H,figure:()=>G,flip:()=>nt,footer:()=>F,form:()=>q,fragment:()=>f,getDisplay:()=>mt,h1:()=>V,h2:()=>_,h3:()=>K,h4:()=>Y,h5:()=>Q,h6:()=>W,header:()=>X,hgroup:()=>J,hr:()=>z,hyperscript:()=>i,i:()=>Z,img:()=>$,input:()=>rr,ins:()=>tr,kbd:()=>er,label:()=>nr,legend:()=>or,li:()=>ur,main:()=>ar,mark:()=>ir,menu:()=>fr,menuitem:()=>cr,meter:()=>sr,nav:()=>mr,numberbox:()=>Jr,ol:()=>lr,optgroup:()=>pr,option:()=>dr,output:()=>yr,p:()=>Ar,pre:()=>br,progress:()=>hr,q:()=>gr,radio:()=>zr,rb:()=>Er,rp:()=>vr,rt:()=>Tr,rtc:()=>Nr,ruby:()=>Or,s:()=>xr,samp:()=>Sr,section:()=>Ir,select:()=>Zr,small:()=>Dr,span:()=>Rr,strong:()=>Lr,sub:()=>Cr,summary:()=>jr,sup:()=>Br,tabControl:()=>ft,tabNavItem:()=>ot,tabPanel:()=>ut,tabRoot:()=>at,table:()=>Pr,tbody:()=>kr,td:()=>Mr,textNode:()=>Wr,textarea:()=>rt,textbox:()=>$r,tfoot:()=>Ur,th:()=>wr,thead:()=>Hr,time:()=>Gr,tr:()=>Fr,track:()=>qr,tt:()=>Vr,u:()=>_r,ul:()=>Kr,video:()=>Yr,wbr:()=>Qr});var r=o(130);const t=(r,t)=>{r.subscription?r.subscription.add(t):r.subscription=t};var e=o(705);function n(r,t,e){if("."===t.charAt(0)){let n=t.substring(1);e?r.classList.add(n):r.classList.remove(n)}else{let[n,o]=function(r,t){if(r.includes(".")){let e=r.split("."),n=e.pop();return[e.reduce(((r,t)=>r[t]),t),n]}return[t,r]}(t,r);n[o]=e}return r}function a(r,o,u){var a;let i=(a=u,(0,e.startWith)(0)(a).subscribe({next:t=>{n(r,o,t)},error(t){n(r,o,t.message)}}));return t(r,i),r}function i(e,...o){let u=document.createElement(e),{props:i,childNodes:f}=function(r){let t={},e=[];if(r.length>0){let[n,...o]=r;null==n||Object.getPrototypeOf(n)===Object.prototype?(n&&(t=n),o.length>0&&(e=o)):e=r}return{props:t,childNodes:e}}(o);return function(t,e){let[o,u]=function(t){let e={},n={};for(const o in t){let u=t[o];(0,r.isObservable)(u)?e[o]=u:n[o]=u}return[e,n]}(e);Object.entries(u).forEach((([r,e])=>{n(t,r,e)})),Object.entries(o).forEach((([r,e])=>{a(t,r,e)}))}(u,i),f=1===f.length&&Array.isArray(f[0])?f[0]:f,f.map((r=>{return(t=r)&&t.nodeType&&(t.nodeType===document.ELEMENT_NODE||t.nodeType===document.TEXT_NODE)?r:document.createTextNode(r);var t})).forEach((r=>{u.appendChild(r)})),u.pipeEvent=function(e){return(n,o)=>{let u=o((0,r.fromEvent)(e,n));return t(e,u),e}}(u),u.subscribeEvent=function(e){return(n,o)=>{let u=(0,r.fromEvent)(e,n).subscribe(o);return t(e,u),e}}(u),u}function f(...r){r=1===r.length&&Array.isArray(r[0])?r[0]:r;let t=new DocumentFragment;return r.forEach((r=>{t.appendChild(r)})),t}function c(r,...t){return i("a",...Array.from(arguments))}function s(r,...t){return i("abbr",...Array.from(arguments))}function m(r,...t){return i("address",...Array.from(arguments))}function l(r,...t){return i("area",...Array.from(arguments))}function p(r,...t){return i("article",...Array.from(arguments))}function d(r,...t){return i("aside",...Array.from(arguments))}function y(r,...t){return i("audio",...Array.from(arguments))}function A(r,...t){return i("b",...Array.from(arguments))}function b(r,...t){return i("bdi",...Array.from(arguments))}function h(r,...t){return i("bdo",...Array.from(arguments))}function g(r,...t){return i("blockquote",...Array.from(arguments))}function E(r,...t){return i("br",...Array.from(arguments))}function v(r,...t){return i("button",...Array.from(arguments))}function T(r,...t){return i("caption",...Array.from(arguments))}function N(r,...t){return i("cite",...Array.from(arguments))}function O(r,...t){return i("code",...Array.from(arguments))}function x(r,...t){return i("col",...Array.from(arguments))}function S(r,...t){return i("colgroup",...Array.from(arguments))}function I(r,...t){return i("data",...Array.from(arguments))}function D(r,...t){return i("datalist",...Array.from(arguments))}function R(r,...t){return i("dd",...Array.from(arguments))}function L(r,...t){return i("del",...Array.from(arguments))}function C(r,...t){return i("details",...Array.from(arguments))}function j(r,...t){return i("dfn",...Array.from(arguments))}function B(r,...t){return i("dialog",...Array.from(arguments))}function P(r,...t){return i("div",...Array.from(arguments))}function k(r,...t){return i("dl",...Array.from(arguments))}function M(r,...t){return i("dt",...Array.from(arguments))}function U(r,...t){return i("em",...Array.from(arguments))}function w(r,...t){return i("fieldset",...Array.from(arguments))}function H(r,...t){return i("figcaption",...Array.from(arguments))}function G(r,...t){return i("figure",...Array.from(arguments))}function F(r,...t){return i("footer",...Array.from(arguments))}function q(r,...t){return i("form",...Array.from(arguments))}function V(r,...t){return i("h1",...Array.from(arguments))}function _(r,...t){return i("h2",...Array.from(arguments))}function K(r,...t){return i("h3",...Array.from(arguments))}function Y(r,...t){return i("h4",...Array.from(arguments))}function Q(r,...t){return i("h5",...Array.from(arguments))}function W(r,...t){return i("h6",...Array.from(arguments))}function X(r,...t){return i("header",...Array.from(arguments))}function J(r,...t){return i("hgroup",...Array.from(arguments))}function z(r,...t){return i("hr",...Array.from(arguments))}function Z(r,...t){return i("i",...Array.from(arguments))}function $(r,...t){return i("img",...Array.from(arguments))}function rr(r,...t){return i("input",...Array.from(arguments))}function tr(r,...t){return i("ins",...Array.from(arguments))}function er(r,...t){return i("kbd",...Array.from(arguments))}function nr(r,...t){return i("label",...Array.from(arguments))}function or(r,...t){return i("legend",...Array.from(arguments))}function ur(r,...t){return i("li",...Array.from(arguments))}function ar(r,...t){return i("main",...Array.from(arguments))}function ir(r,...t){return i("mark",...Array.from(arguments))}function fr(r,...t){return i("menu",...Array.from(arguments))}function cr(r,...t){return i("menuitem",...Array.from(arguments))}function sr(r,...t){return i("meter",...Array.from(arguments))}function mr(r,...t){return i("nav",...Array.from(arguments))}function lr(r,...t){return i("ol",...Array.from(arguments))}function pr(r,...t){return i("optgroup",...Array.from(arguments))}function dr(r,...t){return i("option",...Array.from(arguments))}function yr(r,...t){return i("output",...Array.from(arguments))}function Ar(r,...t){return i("p",...Array.from(arguments))}function br(r,...t){return i("pre",...Array.from(arguments))}function hr(r,...t){return i("progress",...Array.from(arguments))}function gr(r,...t){return i("q",...Array.from(arguments))}function Er(r,...t){return i("rb",...Array.from(arguments))}function vr(r,...t){return i("rp",...Array.from(arguments))}function Tr(r,...t){return i("rt",...Array.from(arguments))}function Nr(r,...t){return i("rtc",...Array.from(arguments))}function Or(r,...t){return i("ruby",...Array.from(arguments))}function xr(r,...t){return i("s",...Array.from(arguments))}function Sr(r,...t){return i("samp",...Array.from(arguments))}function Ir(r,...t){return i("section",...Array.from(arguments))}function Dr(r,...t){return i("small",...Array.from(arguments))}function Rr(r,...t){return i("span",...Array.from(arguments))}function Lr(r,...t){return i("strong",...Array.from(arguments))}function Cr(r,...t){return i("sub",...Array.from(arguments))}function jr(r,...t){return i("summary",...Array.from(arguments))}function Br(r,...t){return i("sup",...Array.from(arguments))}function Pr(r,...t){return i("table",...Array.from(arguments))}function kr(r,...t){return i("tbody",...Array.from(arguments))}function Mr(r,...t){return i("td",...Array.from(arguments))}function Ur(r,...t){return i("tfoot",...Array.from(arguments))}function wr(r,...t){return i("th",...Array.from(arguments))}function Hr(r,...t){return i("thead",...Array.from(arguments))}function Gr(r,...t){return i("time",...Array.from(arguments))}function Fr(r,...t){return i("tr",...Array.from(arguments))}function qr(r,...t){return i("track",...Array.from(arguments))}function Vr(r,...t){return i("tt",...Array.from(arguments))}function _r(r,...t){return i("u",...Array.from(arguments))}function Kr(r,...t){return i("ul",...Array.from(arguments))}function Yr(r,...t){return i("video",...Array.from(arguments))}function Qr(r,...t){return i("wbr",...Array.from(arguments))}function Wr(t){if((0,r.isObservable)(t)){let r=document.createTextNode("");return t.subscribe({next:t=>{r.nodeValue=t},error:t=>{r.nodeValue=t.message}}),r}return document.createTextNode(t)}function Xr(r){let t=rr({...r,type:"checkbox"});return r.checked&&t.pipeEvent("input",(t=>t.pipe((0,e.map)((r=>r.target.checked))).subscribe(r.checked))),t}function Jr(t={}){let{number:n,...o}=t,u=rr({...o,type:"text"});if(!(n&&n instanceof r.BehaviorSubject))throw console.log(n),console.log(r.BehaviorSubject),console.log(n.constructor),console.log(n.constructor===r.BehaviorSubject),new Error("numberbox must have `number` prop.");{let r=n.pipe((0,e.map)((r=>String(r))));a(u,"value",r),u.pipeEvent("blur",(r=>r.pipe((0,e.map)((r=>Number(r.target.value)))).subscribe((r=>{Number.isNaN(r)?u.select():n.value!==r&&n.next(r)}))))}return u.style.textAlign="right",u}function zr(r){let t=rr({...r,type:"radio"});return r.checked&&t.pipeEvent("input",(t=>t.pipe((0,e.map)((r=>r.target.checked))).subscribe(r.checked))),t}function Zr(t,...n){let o=i("select",t,...n),{selectedIndex:u,value:a,...f}=t;return(0,r.isObservable)(u)&&(u.subscribe((r=>{o[r].selected=!0})),o.pipeEvent("input",(r=>r.pipe((0,e.map)((r=>r.target.selectedIndex))).subscribe(u)))),(0,r.isObservable)(a)&&(a.subscribe((r=>{Array.from(o.getElementsByTagName("option")).filter((t=>t.value===r)).forEach((r=>{r.selected=!0}))})),o.pipeEvent("input",(r=>r.pipe((0,e.map)((r=>r.target.value))).subscribe(a)))),o}function $r(r){let t=rr({...r,type:"text"});return t.pipeEvent("input",(t=>{var n;return n=t,(0,e.map)((r=>r.target.value))(n).subscribe(r.value)})),t}function rt(r){let t=i("textarea",r);return t.pipeEvent("input",(t=>{var n;return n=t,(0,e.map)((r=>r.target.value))(n).subscribe(r.value)})),t}function tt(r,...t){return(t=1===t.length&&Array.isArray(t[0])?t[0]:t).forEach((t=>{a(t,"hidden",r)})),t}function et(r,t){return Object.entries(t).map((([t,n])=>{var o;return tt((o=r,(0,e.map)((r=>r!==t))(o)),n)})).reduce(((r,t)=>[...r,...t]),[])}function nt(r,t,n){var o;return[...tt((o=r,(0,e.map)((r=>!r))(o)),t),...tt(r,n)]}function ot(...r){return ur({className:"nav-item"},v({type:"button",className:"btn btn-link nav-link"},...r))}function ut(...r){return P({className:"tab-pane"},...r)}function at(r={}){return P(r,Kr({className:"nav nav-tabs"}),P({className:"tab-content"}))}function it(r,t=new BehaviorSubject(0)){let n=r.firstChild,o=r.lastChild;t.subscribe((r=>{Array.from(n.childNodes).forEach(((t,e)=>{let n=t.firstChild;r===e?n.classList.add("active"):n.classList.remove("active")})),Array.from(o.childNodes).forEach(((t,e)=>{r===e?t.classList.add("active"):t.classList.remove("active")}))})),n.pipeEvent("click",(r=>{var o,u;return u=r,o=(0,e.map)((r=>[...n.childNodes].map((r=>r.firstChild)).indexOf(r.target)))(u),(0,e.filter)((r=>r>-1))(o).subscribe(t)}))}function ft(r,t,e){let{tabIndex:n,...o}=r,u=at(o),a=u.firstChild,i=u.lastChild;return t.map((r=>ot(r))).forEach((r=>a.appendChild(r))),e.map((r=>ut(r))).forEach((r=>i.appendChild(r))),it(u,n),u}const ct=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DD","DETAILS","DIALOG","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"]),st=new Set(["A","ABBR","ACRONYM","AUDIO","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","DATA","DATALIST","DEL","DFN","EM","EMBED","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","METER","NOSCRIPT","OBJECT","OUTPUT","PICTURE","PROGRESS","Q","RUBY","S","SAMP","SCRIPT","SELECT","SLOT","SMALL","SPAN","STRONG","SUB","SUP","SVG","TEMPLATE","TEXTAREA","TIME","TT","U","VAR","VIDEO","WBR"]);function mt(r){return"TBODY"===r.tagName?"table-row-group":"THEAD"===r.tagName?"table-header-group":"TFOOT"===r.tagName?"table-footer-group":"TR"===r.tagName?"table-row":"TD"===r.tagName||"TH"===r.tagName?"table-cell":"COLGROUP"===r.tagName?"table-column-group":"COL"===r.tagName?"table-column":"CAPTION"===r.tagName?"table-caption":ct.has(r.tagName)?"block":st.has(r.tagName)?"inline":"unset"}})(),u})()}));
1
+ !function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["rxjs","rxjs/operators"],e):"object"==typeof exports?exports.hyperscriptRxjs=e(require("rxjs"),require("rxjs/operators")):r.hyperscriptRxjs=e(r.rxjs,r.rxjs.operators)}(this,((r,e)=>(()=>{"use strict";var t={34:(r,e,t)=>{var n=t(4901);r.exports=function(r){return"object"==typeof r?null!==r:n(r)}},283:(r,e,t)=>{var n=t(9504),o=t(9039),i=t(4901),u=t(9297),a=t(3724),c=t(350).CONFIGURABLE,s=t(3706),f=t(1181),l=f.enforce,p=f.get,h=String,m=Object.defineProperty,y=n("".slice),b=n("".replace),d=n([].join),g=a&&!o((function(){return 8!==m((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=r.exports=function(r,e,t){"Symbol("===y(h(e),0,7)&&(e="["+b(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!u(r,"name")||c&&r.name!==e)&&(a?m(r,"name",{value:e,configurable:!0}):r.name=e),g&&t&&u(t,"arity")&&r.length!==t.arity&&m(r,"length",{value:t.arity});try{t&&u(t,"constructor")&&t.constructor?a&&m(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var n=l(r);return u(n,"source")||(n.source=d(v,"string"==typeof e?e:"")),r};Function.prototype.toString=w((function(){return i(this)&&p(this).source||s(this)}),"toString")},350:(r,e,t)=>{var n=t(3724),o=t(9297),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,s=a&&(!n||n&&u(i,"name").configurable);r.exports={EXISTS:a,PROPER:c,CONFIGURABLE:s}},397:(r,e,t)=>{var n=t(7751);r.exports=n("document","documentElement")},421:r=>{r.exports={}},616:(r,e,t)=>{var n=t(9039);r.exports=!n((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},741:r=>{var e=Math.ceil,t=Math.floor;r.exports=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}},757:(r,e,t)=>{var n=t(7751),o=t(4901),i=t(1625),u=t(7040),a=Object;r.exports=u?function(r){return"symbol"==typeof r}:function(r){var e=n("Symbol");return o(e)&&i(e.prototype,a(r))}},1181:(r,e,t)=>{var n,o,i,u=t(8622),a=t(4576),c=t(34),s=t(6699),f=t(9297),l=t(7629),p=t(6119),h=t(421),m="Object already initialized",y=a.TypeError,b=a.WeakMap;if(u||l.state){var d=l.state||(l.state=new b);d.get=d.get,d.has=d.has,d.set=d.set,n=function(r,e){if(d.has(r))throw new y(m);return e.facade=r,d.set(r,e),e},o=function(r){return d.get(r)||{}},i=function(r){return d.has(r)}}else{var g=p("state");h[g]=!0,n=function(r,e){if(f(r,g))throw new y(m);return e.facade=r,s(r,g,e),e},o=function(r){return f(r,g)?r[g]:{}},i=function(r){return f(r,g)}}r.exports={set:n,get:o,has:i,enforce:function(r){return i(r)?o(r):n(r,{})},getterFor:function(r){return function(e){var t;if(!c(e)||(t=o(e)).type!==r)throw new y("Incompatible receiver, "+r+" required");return t}}}},1291:(r,e,t)=>{var n=t(741);r.exports=function(r){var e=+r;return e!=e||0===e?0:n(e)}},1625:(r,e,t)=>{var n=t(9504);r.exports=n({}.isPrototypeOf)},1828:(r,e,t)=>{var n=t(9504),o=t(9297),i=t(5397),u=t(9617).indexOf,a=t(421),c=n([].push);r.exports=function(r,e){var t,n=i(r),s=0,f=[];for(t in n)!o(a,t)&&o(n,t)&&c(f,t);for(;e.length>s;)o(n,t=e[s++])&&(~u(f,t)||c(f,t));return f}},2106:(r,e,t)=>{var n=t(283),o=t(4913);r.exports=function(r,e,t){return t.get&&n(t.get,e,{getter:!0}),t.set&&n(t.set,e,{setter:!0}),o.f(r,e,t)}},2195:(r,e,t)=>{var n=t(9504),o=n({}.toString),i=n("".slice);r.exports=function(r){return i(o(r),8,-1)}},2777:(r,e,t)=>{var n=t(9565),o=t(34),i=t(757),u=t(5966),a=t(4270),c=t(8227),s=TypeError,f=c("toPrimitive");r.exports=function(r,e){if(!o(r)||i(r))return r;var t,c=u(r,f);if(c){if(void 0===e&&(e="default"),t=n(c,r,e),!o(t)||i(t))return t;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(r,e)}},2796:(r,e,t)=>{var n=t(9039),o=t(4901),i=/#|\.prototype\./,u=function(r,e){var t=c[a(r)];return t===f||t!==s&&(o(e)?n(e):!!e)},a=u.normalize=function(r){return String(r).replace(i,".").toLowerCase()},c=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";r.exports=u},2812:r=>{var e=TypeError;r.exports=function(r,t){if(r<t)throw new e("Not enough arguments");return r}},2839:(r,e,t)=>{var n=t(4576).navigator,o=n&&n.userAgent;r.exports=o?String(o):""},3138:e=>{e.exports=r},3392:(r,e,t)=>{var n=t(9504),o=0,i=Math.random(),u=n(1..toString);r.exports=function(r){return"Symbol("+(void 0===r?"":r)+")_"+u(++o+i,36)}},3706:(r,e,t)=>{var n=t(9504),o=t(4901),i=t(7629),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(r){return u(r)}),r.exports=i.inspectSource},3717:(r,e)=>{e.f=Object.getOwnPropertySymbols},3724:(r,e,t)=>{var n=t(9039);r.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(r,e,t)=>{var n=t(4576),o=t(34),i=n.document,u=o(i)&&o(i.createElement);r.exports=function(r){return u?i.createElement(r):{}}},4117:r=>{r.exports=function(r){return null==r}},4215:(r,e,t)=>{var n=t(4576),o=t(2839),i=t(2195),u=function(r){return o.slice(0,r.length)===r};r.exports=u("Bun/")?"BUN":u("Cloudflare-Workers")?"CLOUDFLARE":u("Deno/")?"DENO":u("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},4270:(r,e,t)=>{var n=t(9565),o=t(4901),i=t(34),u=TypeError;r.exports=function(r,e){var t,a;if("string"===e&&o(t=r.toString)&&!i(a=n(t,r)))return a;if(o(t=r.valueOf)&&!i(a=n(t,r)))return a;if("string"!==e&&o(t=r.toString)&&!i(a=n(t,r)))return a;throw new u("Can't convert object to primitive value")}},4495:(r,e,t)=>{var n=t(9519),o=t(9039),i=t(4576).String;r.exports=!!Object.getOwnPropertySymbols&&!o((function(){var r=Symbol("symbol detection");return!i(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4537:r=>{r.exports=e},4576:function(r,e,t){var n=function(r){return r&&r.Math===Math&&r};r.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t.g&&t.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4901:r=>{var e="object"==typeof document&&document.all;r.exports=void 0===e&&void 0!==e?function(r){return"function"==typeof r||r===e}:function(r){return"function"==typeof r}},4913:(r,e,t)=>{var n=t(3724),o=t(5917),i=t(8686),u=t(8551),a=t(6969),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";e.f=n?i?function(r,e,t){if(u(r),e=a(e),u(t),"function"==typeof r&&"prototype"===e&&"value"in t&&h in t&&!t[h]){var n=f(r,e);n&&n[h]&&(r[e]=t.value,t={configurable:p in t?t[p]:n[p],enumerable:l in t?t[l]:n[l],writable:!1})}return s(r,e,t)}:s:function(r,e,t){if(u(r),e=a(e),u(t),o)try{return s(r,e,t)}catch(r){}if("get"in t||"set"in t)throw new c("Accessors not supported");return"value"in t&&(r[e]=t.value),r}},5031:(r,e,t)=>{var n=t(7751),o=t(9504),i=t(8480),u=t(3717),a=t(8551),c=o([].concat);r.exports=n("Reflect","ownKeys")||function(r){var e=i.f(a(r)),t=u.f;return t?c(e,t(r)):e}},5397:(r,e,t)=>{var n=t(7055),o=t(7750);r.exports=function(r){return n(o(r))}},5610:(r,e,t)=>{var n=t(1291),o=Math.max,i=Math.min;r.exports=function(r,e){var t=n(r);return t<0?o(t+e,0):i(t,e)}},5745:(r,e,t)=>{var n=t(7629);r.exports=function(r,e){return n[r]||(n[r]=e||{})}},5917:(r,e,t)=>{var n=t(3724),o=t(9039),i=t(4055);r.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5966:(r,e,t)=>{var n=t(9306),o=t(4117);r.exports=function(r,e){var t=r[e];return o(t)?void 0:n(t)}},6080:(r,e,t)=>{var n=t(7476),o=t(9306),i=t(616),u=n(n.bind);r.exports=function(r,e){return o(r),void 0===e?r:i?u(r,e):function(){return r.apply(e,arguments)}}},6119:(r,e,t)=>{var n=t(5745),o=t(3392),i=n("keys");r.exports=function(r){return i[r]||(i[r]=o(r))}},6193:(r,e,t)=>{var n=t(4215);r.exports="NODE"===n},6198:(r,e,t)=>{var n=t(8014);r.exports=function(r){return n(r.length)}},6368:(r,e,t)=>{var n=t(6518),o=t(4576),i=t(9225).clear;n({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},6395:r=>{r.exports=!1},6518:(r,e,t)=>{var n=t(4576),o=t(7347).f,i=t(6699),u=t(6840),a=t(9433),c=t(7740),s=t(2796);r.exports=function(r,e){var t,f,l,p,h,m=r.target,y=r.global,b=r.stat;if(t=y?n:b?n[m]||a(m,{}):n[m]&&n[m].prototype)for(f in e){if(p=e[f],l=r.dontCallGetSet?(h=o(t,f))&&h.value:t[f],!s(y?f:m+(b?".":"#")+f,r.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(r.sham||l&&l.sham)&&i(p,"sham",!0),u(t,f,p,r)}}},6699:(r,e,t)=>{var n=t(3724),o=t(4913),i=t(6980);r.exports=n?function(r,e,t){return o.f(r,e,i(1,t))}:function(r,e,t){return r[e]=t,r}},6823:r=>{var e=String;r.exports=function(r){try{return e(r)}catch(r){return"Object"}}},6840:(r,e,t)=>{var n=t(4901),o=t(4913),i=t(283),u=t(9433);r.exports=function(r,e,t,a){a||(a={});var c=a.enumerable,s=void 0!==a.name?a.name:e;if(n(t)&&i(t,s,a),a.global)c?r[e]=t:u(e,t);else{try{a.unsafe?r[e]&&(c=!0):delete r[e]}catch(r){}c?r[e]=t:o.f(r,e,{value:t,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return r}},6969:(r,e,t)=>{var n=t(2777),o=t(757);r.exports=function(r){var e=n(r,"string");return o(e)?e:e+""}},6980:r=>{r.exports=function(r,e){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:e}}},7040:(r,e,t)=>{var n=t(4495);r.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(r,e,t)=>{var n=t(9504),o=t(9039),i=t(2195),u=Object,a=n("".split);r.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(r){return"String"===i(r)?a(r,""):u(r)}:u},7347:(r,e,t)=>{var n=t(3724),o=t(9565),i=t(8773),u=t(6980),a=t(5397),c=t(6969),s=t(9297),f=t(5917),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(r,e){if(r=a(r),e=c(e),f)try{return l(r,e)}catch(r){}if(s(r,e))return u(!o(i.f,r,e),r[e])}},7476:(r,e,t)=>{var n=t(2195),o=t(9504);r.exports=function(r){if("Function"===n(r))return o(r)}},7629:(r,e,t)=>{var n=t(6395),o=t(4576),i=t(9433),u="__core-js_shared__",a=r.exports=o[u]||i(u,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7680:(r,e,t)=>{var n=t(9504);r.exports=n([].slice)},7740:(r,e,t)=>{var n=t(9297),o=t(5031),i=t(7347),u=t(4913);r.exports=function(r,e,t){for(var a=o(e),c=u.f,s=i.f,f=0;f<a.length;f++){var l=a[f];n(r,l)||t&&n(t,l)||c(r,l,s(e,l))}}},7750:(r,e,t)=>{var n=t(4117),o=TypeError;r.exports=function(r){if(n(r))throw new o("Can't call method on "+r);return r}},7751:(r,e,t)=>{var n=t(4576),o=t(4901);r.exports=function(r,e){return arguments.length<2?(t=n[r],o(t)?t:void 0):n[r]&&n[r][e];var t}},7979:(r,e,t)=>{var n=t(8551);r.exports=function(){var r=n(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}},8014:(r,e,t)=>{var n=t(1291),o=Math.min;r.exports=function(r){var e=n(r);return e>0?o(e,9007199254740991):0}},8227:(r,e,t)=>{var n=t(4576),o=t(5745),i=t(9297),u=t(3392),a=t(4495),c=t(7040),s=n.Symbol,f=o("wks"),l=c?s.for||s:s&&s.withoutSetter||u;r.exports=function(r){return i(f,r)||(f[r]=a&&i(s,r)?s[r]:l("Symbol."+r)),f[r]}},8480:(r,e,t)=>{var n=t(1828),o=t(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(r){return n(r,o)}},8551:(r,e,t)=>{var n=t(34),o=String,i=TypeError;r.exports=function(r){if(n(r))return r;throw new i(o(r)+" is not an object")}},8622:(r,e,t)=>{var n=t(4576),o=t(4901),i=n.WeakMap;r.exports=o(i)&&/native code/.test(String(i))},8686:(r,e,t)=>{var n=t(3724),o=t(9039);r.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:r=>{r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(r,e,t)=>{var n=t(616),o=Function.prototype,i=o.apply,u=o.call;r.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},8773:(r,e)=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!t.call({1:2},1);e.f=o?function(r){var e=n(this,r);return!!e&&e.enumerable}:t},8981:(r,e,t)=>{var n=t(7750),o=Object;r.exports=function(r){return o(n(r))}},9039:r=>{r.exports=function(r){try{return!!r()}catch(r){return!0}}},9225:(r,e,t)=>{var n,o,i,u,a=t(4576),c=t(8745),s=t(6080),f=t(4901),l=t(9297),p=t(9039),h=t(397),m=t(7680),y=t(4055),b=t(2812),d=t(9544),g=t(6193),v=a.setImmediate,w=a.clearImmediate,A=a.process,E=a.Dispatch,j=a.Function,x=a.MessageChannel,S=a.String,O=0,T={},N="onreadystatechange";p((function(){n=a.location}));var k=function(r){if(l(T,r)){var e=T[r];delete T[r],e()}},I=function(r){return function(){k(r)}},C=function(r){k(r.data)},P=function(r){a.postMessage(S(r),n.protocol+"//"+n.host)};v&&w||(v=function(r){b(arguments.length,1);var e=f(r)?r:j(r),t=m(arguments,1);return T[++O]=function(){c(e,void 0,t)},o(O),O},w=function(r){delete T[r]},g?o=function(r){A.nextTick(I(r))}:E&&E.now?o=function(r){E.now(I(r))}:x&&!d?(u=(i=new x).port2,i.port1.onmessage=C,o=s(u.postMessage,u)):a.addEventListener&&f(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(P)?(o=P,a.addEventListener("message",C,!1)):o=N in y("script")?function(r){h.appendChild(y("script"))[N]=function(){h.removeChild(this),k(r)}}:function(r){setTimeout(I(r),0)}),r.exports={set:v,clear:w}},9297:(r,e,t)=>{var n=t(9504),o=t(8981),i=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(r,e){return i(o(r),e)}},9306:(r,e,t)=>{var n=t(4901),o=t(6823),i=TypeError;r.exports=function(r){if(n(r))return r;throw new i(o(r)+" is not a function")}},9309:(r,e,t)=>{var n=t(6518),o=t(4576),i=t(9225).set,u=t(9472),a=o.setImmediate?u(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==a},{setImmediate:a})},9433:(r,e,t)=>{var n=t(4576),o=Object.defineProperty;r.exports=function(r,e){try{o(n,r,{value:e,configurable:!0,writable:!0})}catch(t){n[r]=e}return e}},9472:(r,e,t)=>{var n,o=t(4576),i=t(8745),u=t(4901),a=t(4215),c=t(2839),s=t(7680),f=t(2812),l=o.Function,p=/MSIE .\./.test(c)||"BUN"===a&&((n=o.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));r.exports=function(r,e){var t=e?2:1;return p?function(n,o){var a=f(arguments.length,1)>t,c=u(n)?n:l(n),p=a?s(arguments,t):[],h=a?function(){i(c,this,p)}:c;return e?r(h,o):r(h)}:r}},9479:(r,e,t)=>{var n=t(4576),o=t(3724),i=t(2106),u=t(7979),a=t(9039),c=n.RegExp,s=c.prototype;o&&a((function(){var r=!0;try{c(".","d")}catch(e){r=!1}var e={},t="",n=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(e,r,{get:function(){return t+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in r&&(i.hasIndices="d"),i)o(u,i[u]);return Object.getOwnPropertyDescriptor(s,"flags").get.call(e)!==n||t!==n}))&&i(s,"flags",{configurable:!0,get:u})},9504:(r,e,t)=>{var n=t(616),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);r.exports=n?u:function(r){return function(){return i.apply(r,arguments)}}},9519:(r,e,t)=>{var n,o,i=t(4576),u=t(2839),a=i.process,c=i.Deno,s=a&&a.versions||c&&c.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),r.exports=o},9544:(r,e,t)=>{var n=t(2839);r.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},9565:(r,e,t)=>{var n=t(616),o=Function.prototype.call;r.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9617:(r,e,t)=>{var n=t(5397),o=t(5610),i=t(6198),u=function(r){return function(e,t,u){var a=n(e),c=i(a);if(0===c)return!r&&-1;var s,f=o(u,c);if(r&&t!=t){for(;c>f;)if((s=a[f++])!=s)return!0}else for(;c>f;f++)if((r||f in a)&&a[f]===t)return r||f||0;return!r&&-1}};r.exports={includes:u(!0),indexOf:u(!1)}},9848:(r,e,t)=>{t(6368),t(9309)}},n={};function o(r){var e=n[r];if(void 0!==e)return e.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,o),i.exports}o.d=(r,e)=>{for(var t in e)o.o(e,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),o.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};function u(r,e){let t=[];for(let n=0;n<r;n++)t[r-1-n]=e[n];return[t,e.slice(r)]}function a(r,e,t=r.length){for(let e=r.length;e>t;e--)r[e]=r[e-1];r[t]=e}function c(r,e=r.length-1){const t=r.length;for(let n=e;n<t-1;n++)r[n]=r[n+1];Reflect.deleteProperty(r,t-1),r.length=t-1}function s(r){return!!r.every((r=>/^\d+$/.test(r)))&&r.map((r=>parseInt(r))).every(((r,e)=>r===e))}function f(r,e,t=r.length-1){for(t=Math.min(t,r.length-1);t>=0;){if(e(r[t],t))return t;t--}return-1}function l(r){return Array.from({length:r}).map(((r,e)=>e))}function p(r,e){if(!Array.isArray(r)||!Array.isArray(e))throw new Error("arrayZip(a,b):both a and b should be array");return l(Math.max(r.length,e.length)).map((t=>[r[t],e[t]]))}function h(r,e){return r>e?1:r<e?-1:0}function m(r,e){let t=typeof r;return t===typeof e?h(r,e):"string"===t?1:-1}function y(r,e){if(0===r.length&&0===e.length)return 0;if(0===r.length)return-1;if(0===e.length)return 1;let[t,...n]=r,[o,...i]=e;return m(t,o)||y(n,i)}o.r(i),o.d(i,{Comparer:()=>v,Deep:()=>F,ObservableArray:()=>V,a:()=>cr,abbr:()=>sr,address:()=>fr,advance:()=>u,area:()=>lr,arrayInsert:()=>a,arrayRemove:()=>c,article:()=>pr,aside:()=>hr,attachSubscriptionToNode:()=>J,audio:()=>mr,b:()=>yr,bdi:()=>br,bdo:()=>dr,bindTabIndex:()=>lt,blockquote:()=>gr,br:()=>vr,button:()=>wr,caption:()=>Ar,checkbox:()=>We,choice:()=>Je,cite:()=>Er,code:()=>jr,col:()=>xr,colgroup:()=>Sr,collapse:()=>Ke,compareDate:()=>x,compareEntries:()=>b,compareKey:()=>m,compareKeyPath:()=>y,compareNumber:()=>S,compose:()=>ht,cond:()=>mt,data:()=>Or,datalist:()=>Tr,dd:()=>Nr,defaultCompare:()=>h,defaultComparer:()=>w,del:()=>kr,details:()=>Ir,dfn:()=>Cr,dialog:()=>Pr,div:()=>Mr,dl:()=>Br,dt:()=>Dr,em:()=>Lr,entryComparer:()=>j,erectObject:()=>k,fieldset:()=>Rr,figcaption:()=>Fr,figure:()=>qr,findLastIndex:()=>f,flat:()=>I,flip:()=>Ye,fold:()=>yt,footer:()=>$r,form:()=>Ur,fragment:()=>Xe,getDisplay:()=>at,getNestedProperty:()=>Z,groupByFirstLevelKey:()=>T,h1:()=>Hr,h2:()=>Vr,h3:()=>Gr,h4:()=>_r,h5:()=>zr,h6:()=>Wr,header:()=>Kr,hgroup:()=>Jr,hr:()=>Yr,hyperscript:()=>ur,i:()=>Xr,img:()=>Qr,input:()=>Zr,ins:()=>re,intersectObject:()=>P,isEmptyObject:()=>M,isNode:()=>K,isRange:()=>s,isRxType:()=>q,kbd:()=>ee,keyComparer:()=>A,keyPathComparer:()=>E,label:()=>te,legend:()=>ne,li:()=>oe,main:()=>ie,mark:()=>ue,menu:()=>ae,menuitem:()=>ce,meter:()=>se,multiselect:()=>Qe,nav:()=>fe,nestedCombineLatest:()=>$,nestedMerge:()=>U,normalizeChildNodes:()=>ir,numberbox:()=>Ze,ol:()=>le,optgroup:()=>pe,option:()=>he,output:()=>me,p:()=>ye,parseHyperscriptArgs:()=>Q,parsePropName:()=>rr,pctEncodeChar:()=>dt,pickBehaviorSubject:()=>G,pipe:()=>H,pipeEvent:()=>Y,pluckProperty:()=>B,pre:()=>be,progress:()=>de,q:()=>ge,queryPctEncode:()=>vt,queryStringify:()=>xt,radio:()=>rt,rangeArray:()=>l,rb:()=>ve,restore:()=>z,rp:()=>we,rt:()=>Ae,rtc:()=>Ee,ruby:()=>je,s:()=>xe,samp:()=>Se,section:()=>Oe,select:()=>et,setProp:()=>er,setProps:()=>nr,small:()=>Te,span:()=>Ne,splitObjectByObservable:()=>D,strong:()=>ke,sub:()=>Ie,subscribeEvent:()=>X,subscribeProp:()=>tr,summary:()=>Ce,sup:()=>Pe,tabControl:()=>pt,tabNavItem:()=>st,tabPanel:()=>ft,tabRoot:()=>ct,table:()=>Me,tbody:()=>Be,td:()=>De,textNode:()=>ot,textarea:()=>tt,textbox:()=>nt,tfoot:()=>Le,th:()=>Re,thead:()=>Fe,time:()=>qe,toUtf8:()=>gt,tojs:()=>N,tr:()=>$e,track:()=>Ue,tt:()=>He,u:()=>Ve,ul:()=>Ge,unfold:()=>bt,unquotedJsonStringify:()=>Et,video:()=>_e,wbr:()=>ze,zipArray:()=>p}),o(9479),o(9848);const b=([r],[e])=>y(r,e);function d(r,e){return r.reduce(((r,[t,n])=>{let[o,i]=r[r.length-1];return 0===e(o,t)?i.push(n):r.push([t,[n]]),r}),[[r[0][0],[]]])}function g(r,e,t=h){let n=(r,e)=>{if(0===r.length)return!0;if(0===e.length)return!1;switch(Math.sign(t(r[0],e[0]))){case-1:return!1;case 0:return n(r.slice(1),e.slice(1));case 1:return n(r,e.slice(1))}};return n(r,e)}class v{constructor(r){this.compare=r}sort(r){return r.sort(this.compare)}distinct(r){return function(r,e=(r,e)=>r===e){try{return function r(t=[],n){if(0===n.length)return t;{let[o,...i]=n;return t.findIndex((r=>e(o,r)))<0?r([...t,o],i):r(t,i)}}([],r)}catch(r){console.error("distinctArray")}}(r,((r,e)=>0===this.compare(r,e)))}groupBy(r,e){return function(r,e,t){return 0===r.length?[]:d(r.map((r=>[e(r),r])).sort((([r],[e])=>t(r,e))),t)}(r,e,this.compare)}groupSortedEntries(r){return d(r,this.compare)}differenceSet(r,e){return function(r,e,t=h){let n=(r,e,o)=>{if(0===e.length)return r;if(0===o.length)return[...r,...e];switch(Math.sign(t(e[0],o[0]))){case-1:return n([...r,e[0]],e.slice(1),o);case 0:return n(r,e.slice(1),o.slice(1));case 1:return n(r,e,o.slice(1))}};return n([],r,e)}(r,e,this.compare)}findIndexInSet(r,e){return function(r,e,t=h){let n=(r,o)=>{if(0===o.length)return-1;switch(Math.sign(t(o[0],e))){case-1:return n(r+1,o.slice(1));case 0:return r;case 1:return-1}};return n(0,r)}(r,e,this.compare)}intersectSet(r,e){return function(r,e,t){let n=(r,e,o)=>{if(0===e.length||0===o.length)return r;switch(Math.sign(t(e[0],o[0]))){case-1:return n(r,e.slice(1),o);case 0:return n([...r,e[0]],e.slice(1),o.slice(1));case 1:return n(r,e,o.slice(1))}};return n([],r,e)}(r,e,this.compare)}isEqualset(r,e){return function(r,e,t=h){let n=(r,e)=>{if(0===r.length&&0===e.length)return!0;if(r.length>0&&e.length>0){let[o,...i]=r,[u,...a]=e;return 0===t(o,u)&&n(i,a)}return!1};return n(r,e)}(r,e,this.compare)}isSubset(r,e){return g(r,e,this.compare)}isSuperset(r,e){return function(r,e,t=h){return g(e,r,t)}(r,e,this.compare)}unionSet(r,e){return function(r,e,t=h){let n=(r,e,o)=>{if(0===e.length)return[...r,...o];if(0===o.length)return[...r,...e];switch(Math.sign(t(e[0],o[0]))){case-1:return n([...r,e[0]],e.slice(1),o);case 0:return n([...r,e[0]],e.slice(1),o.slice(1));case 1:return n([...r,o[0]],e,o.slice(1))}};return n([],r,e)}(r,e,this.compare)}sortedArrayToSet(r){return function(r,e=h){try{return 0===r.length?[]:function r(t,n){if(0===n.length)return t;switch(Math.sign(e(t[t.length-1],n[0]))){case-1:return r([...t,n[0]],n.slice(1));case 0:return r(t,n.slice(1));case 1:throw new Error("sort ascent")}}([r[0]],r.slice(1))}catch(r){console.error("sortedArrayToSet()输入数组未正确排序(非升序)")}}(r,this.compare)}}const w=new v(h),A=new v(m),E=new v(y),j=new v(b);function x(r,e){return r.valueOf()-e.valueOf()}function S(r,e){return Number.isNaN(r)&&Number.isNaN(e)?0:Number.isNaN(r)?1:Number.isNaN(e)?-1:h(r,e)}var O=o(3138);function T(r){if(0===r.length)return[];let e=r.map((([[r,...e],t])=>[r,[e,t]]));return A.groupSortedEntries(e)}function N(r){if(!Array.isArray(r))throw new TypeError("Expected an array of flat entries");if(0===r.length)return{};if(1===r.length&&0===r[0][0].length)return r[0][1];let e=T(r).map((([r,e])=>[r,1===e.length&&0===e[0][0].length?e[0][1]:N(e)])),t=e.map((([r])=>r)),n=Object.fromEntries(e);return s(t)?Array.from({...n,length:t.length}):n}function k(r){return N(E.sort(r))}const I=(r,e=()=>!1)=>{try{return function r(t,n,o,i){if(n=[...n,o],e(i,o,n))return[...t,[n,i]];if(i&&"object"==typeof i){if(i instanceof Function||i instanceof Boolean||i instanceof Symbol||i instanceof Error||i instanceof Number||i instanceof BigInt||i instanceof Date||i instanceof String||i instanceof RegExp||i instanceof Map||i instanceof Set||i instanceof WeakMap||i instanceof WeakSet)return[...t,[n,i]];if(Array.isArray(i)&&0===i.length)return[...t,[n,i]];if(0===Object.keys(i).length)return[...t,[n,i]];let e=Array.isArray(i)?[...i.entries()]:Object.entries(i);return e.length>0?e.map((([e,t])=>r([],n,e,t))).reduce(((r,e)=>[...r,...e]),t):[...t,[n,i]]}return[...t,[n,i]]}([],[],"",r).map((([[r,...e],t])=>[e,t]))}catch(r){console.error("flat",r.message)}},C=r=>e=>{let t=function(r,e){let t=(r=[],e,n)=>{if(0===e.length||0===n.length)return r;switch(Math.sign(y(e[0][0],n[0]))){case 0:let o=[...r,e[0]];return t(o,e.slice(1),n.slice(1));case-1:return t(r,e.slice(1),n);case 1:return t(r,e,n.slice(1))}};return t([],r,e)}(e.entries,r);return new F(t)};function P(r,e){if("object"!=typeof r||null===r)throw new TypeError("First argument must be an object");if(!Array.isArray(e))throw new TypeError("Second argument must be an array");return Object.fromEntries(e.filter((e=>e in r)).map((e=>[e,r[e]])))}const M=r=>r&&"object"==typeof r&&0===Object.keys(r).length&&!Array.isArray(r);function B(r,e){if("object"!=typeof r||null===r)throw new TypeError("First argument must be an object");if(!Array.isArray(e))throw new TypeError("keyPath must be an array");try{return e.reduce(((r,e)=>{if(null==r||!(e in r))throw new TypeError(`Property '${e}' not found in path`);return r[e]}),r)}catch(r){throw new TypeError(`Invalid property path: ${r.message}`)}}function D(r){if("object"!=typeof r||Array.isArray(r)||null===r)throw new Error('参数 "obj" 必须是一个非空对象。');let e={},t={};for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){let o=r[n];(0,O.isObservable)(o)?e[n]=o:t[n]=o}return[e,t]}const L=r=>e=>{let t=p(e.keys,r);return new F(t)};var R=o(4537);class F{constructor(r){this.entries=r}get keys(){return this._keys||(this._keys=this.entries.map((([r])=>r))),this._keys}getValues(){return this.entries.map((([r,e])=>e))}toObject(){return N(this.entries)}findIndex(r){return E.findIndexInSet(this.keys,r)}structuralEqual(r){return E.isEqualset(this.keys,r)}structuralSubset(r){return E.isSubset(this.keys,r)}structuralSuperset(r){return E.isSuperset(this.keys,r)}map(...r){let e=this.entries.map(...r);return new F(e)}filter(...r){let e=this.entries.filter(...r);return new F(e)}forEach(...r){this.entries.forEach(...r)}difference(r){return(r=>e=>{let t=E.differenceSet(e.keys,r);return C(t)(e)})(r)(this)}freshValue(r){return(r=>e=>{let t=e.keys.map((e=>[e,B(r,e)]));return new F(t)})(r)(this)}intersect(r){return C(r)(this)}replaceValue(r){return L(r)(this)}zipValue(r){return(r=>e=>{let t=e.entries.map((([e,t],n)=>[e,[t,r[n]]]));return new F(t)})(r)(this)}combineLatest(){return function(r=new F([])){let e=r.getValues();return(0,O.combineLatest)(e).pipe((0,R.map)((e=>L(e)(r))))}(this)}merge(){return(0,O.from)(this.entries).pipe((0,R.mergeMap)((([r,e])=>e.pipe((0,R.map)((e=>[r,e]))))))}static unionMany(r){return function(r){let e=r.map((r=>{if(r instanceof F)return r.entries;if(Array.isArray(r))return r;throw new TypeError("should be Deep or entries")})).reduce(((r,e)=>[...r,...e]),[]).sort(b);return new F(e)}(r)}static fromObject(r,e){return function(r,e){let t=I(r,e),n=j.sort(t);return new F(n)}(r,e)}static fromBehaviorSubject(r){return F.fromObject(r,(r=>r instanceof O.BehaviorSubject))}static fromObservable(r){return F.fromObject(r,(r=>(0,O.isObservable)(r)))}}function q(r){return"object"==typeof r&&r&&((0,O.isObservable)(r)||r instanceof O.Subscription)}function $(r){return F.fromObservable(r).combineLatest().pipe((0,R.map)((r=>r.toObject())))}function U(r){return F.fromObservable(r).merge()}const H=(r,...e)=>{if(0===e.length)return r;const t=e.findIndex((r=>"function"!=typeof r));if(-1!==t){const r=e[t];throw new TypeError(`所有管道函数必须是函数,但第 ${t} 个参数是: ${null===r?"null":void 0===r?"undefined":typeof r}`)}return e.reduce(((r,e)=>e(r)),r)};class V extends Array{constructor(...r){if(r.length>0)throw new Error("不能有参数");super(),this.action=new O.Subject,this.insertBefore$=H(this.action,(0,R.filter)((([r])=>"insertBefore"===r)),(0,R.map)((([r,e,t])=>[e,t]))),this.removeChild$=H(this.action,(0,R.filter)((([r])=>"removeChild"===r)),(0,R.map)((([r,e])=>e))),this.replaceChild$=H(this.action,(0,R.filter)((([r])=>"replaceChild"===r)),(0,R.map)((([r,e,t])=>[e,t])))}insertBefore(r,e=this.length){a(this,r,e),this.action.next(["insertBefore",r,e])}removeChild(r=this.length-1){c(this,r),this.action.next(["removeChild",r])}replaceChild(r,e){this[e]=r,this.action.next(["replaceChild",r,e])}}function G(r){let e=_(r,"",null);if(1===e.length)return e[0][1];throw new Error("pickBehaviorSubject")}const _=(r,e,t)=>{if((0,O.isObservable)(r)&&r instanceof O.BehaviorSubject)return[[e,r.value]];if(null===r||"object"!=typeof r||q(r))return[];if(r instanceof V){let t=[...r].map(((e,t)=>{let n=_(e,t,r);if(1===n.length)return n[0][1];throw new Error("dense Array")}));return[[e,t]]}if(r instanceof Array){if(0===r.length)return[];{let t=r.map(((e,t)=>{let n=_(e,t,r);if(1===n.length)return n[0][1];throw new Error("dense Array")}));return[[e,t]]}}if("pickeys"in r)return _(P(r,r.pickeys()),e,t);{let n=Object.entries(r);if(0===n.length)return[];{let r=n.map((([r,e])=>_(e,r,t))).reduce(((r,e)=>[...r,...e]),[]);return 0===r.length?[]:[[e,Object.fromEntries(r)]]}}},z=(r,e)=>(W(r,e),r),W=(r,e)=>{if(r instanceof O.BehaviorSubject)r.next(e);else if(null===r||"object"!=typeof r||q(r));else if(r instanceof V){let t=r.length,n=t-e.length;n>0?Array.from({length:n}).map(((r,e)=>t-1-e)).forEach((e=>{r.removeChild(e)})):n<0&&Array.from({length:-n}).map(((r,e)=>t+e)).forEach((e=>{r.appendChild(e)}));for(let t of r.keys())W(r[t],e[t])}else if(r instanceof Array){let t=r.length<e.length?r:e;for(let n of t.keys())W(r[n],e[n])}else"object"==typeof r&&Object.entries(r).filter((([r,t])=>r in e)).forEach((([r,t])=>{W(t,e[r])}))},K=r=>"object"==typeof r&&r&&r instanceof Node&&(r.nodeType===document.ELEMENT_NODE||r.nodeType===document.TEXT_NODE),J=(r,e)=>{if(!K(r))throw new Error("Valid DOM node required");if(!(e&&"object"==typeof e&&e instanceof O.Subscription))throw new Error("Valid RxJS subscription required");r.subscription?r.subscription.add(e):r.subscription=e};function Y(r){if(!(r instanceof HTMLElement))throw new Error('参数 "elem" 必须是一个有效的 DOM 元素。');return(e,t)=>{if("string"!=typeof e)throw new Error('参数 "event" 必须是一个字符串。');if("function"!=typeof t)throw new Error('参数 "subscriber" 必须是一个函数。');let n=(0,O.fromEvent)(r,e);try{let e=t(n);J(r,e)}catch(r){throw console.error(`处理事件 "${e}" 时发生错误:`,r),r}return r}}function X(r){if(!(r instanceof HTMLElement))throw new Error('参数 "elem" 必须是一个有效的 DOM 元素。');return(e,t)=>{if("string"!=typeof e)throw new Error('参数 "event" 必须是一个字符串。');if("function"!=typeof t&&"object"!=typeof t||null===t)throw new Error('参数 "observer" 必须是一个函数或观察者对象。');let n,o=(0,O.fromEvent)(r,e);try{n=o.subscribe(t)}catch(r){throw console.error(`订阅事件 "${e}" 时发生错误:`,r),r}return J(r,n),r}}function Q(r){if(!Array.isArray(r))throw new Error('参数 "args" 必须是一个数组。');let e={},t=[];if(r.length>0){let[n,...o]=r;null==n||Object.getPrototypeOf(n)===Object.prototype?(n&&(e=n),o.length>0&&(t=o)):t=r}return{props:e,childNodes:t}}function Z(r,e){if(!Array.isArray(e))throw new Error('The "pathArray" parameter must be an array.');if(!r||"object"!=typeof r)throw new Error('The "obj" parameter must be a non-null object.');return e.reduce(((r,e)=>{if(!r||!(e in r))throw new Error(`Property "${e}" does not exist on the object.`);return r[e]}),r)}function rr(r,e){if("string"!=typeof r)throw new Error('The "prop" parameter must be a string.');let t=(r,e)=>{if(!r||"object"!=typeof r)throw new Error('The "obj" parameter must be a non-null object.');if(!(e in r))throw new Error(`Property "${e}" does not exist on the target object.`);return[r,e]};if(r.includes(".")){const n=r.split("."),o=n.pop();return t(Z(e,n),o)}return t(e,r)}function er(r,e,t){if(!(r instanceof HTMLElement))throw new Error('The "element" parameter must be a valid DOM element.');if("string"!=typeof e)throw new Error('The "key" parameter must be a string.');if("."===e.charAt(0)){const n=e.substring(1);if(0===n.length)throw new Error("The class name cannot be empty.");t?r.classList.add(n):r.classList.remove(n)}else try{const[n,o]=rr(e,r);n[o]=t}catch(r){throw new Error(`Failed to set property "${e}": ${r.message}`)}return r}function tr(r,e,t){if(!(r instanceof HTMLElement))throw new Error('参数 "element" 必须是一个有效的 DOM 元素。');if("string"!=typeof e)throw new Error('参数 "key" 必须是一个字符串。');if(!(0,O.isObservable)(t))throw new Error('参数 "value$" 必须是一个有效的 Observable。');const n=t.pipe((0,R.startWith)(0)).subscribe({next:t=>{er(r,e,t)},error:t=>{er(r,e,t.message)}});return J(r,n),r}function nr(r,e){if(!(r instanceof HTMLElement))throw new Error('参数 "element" 必须是一个有效的 DOM 元素。');if("object"!=typeof e||null===e)throw new Error('参数 "props" 必须是一个非空对象。');const[t,n]=D(e);return Object.entries(n).forEach((([e,t])=>{try{er(r,e,t)}catch(r){console.error(`设置属性 "${e}" 时发生错误:`,r)}})),Object.entries(t).forEach((([e,t])=>{try{tr(r,e,t)}catch(r){console.error(`订阅属性 "${e}" 时发生错误:`,r)}})),r}function or(r){return 1===r.length&&Array.isArray(r[0])?r[0]:r}function ir(r){return or(r).map((r=>K(r)?r:document.createTextNode(String(r))))}function ur(r,...e){if("string"!=typeof r||!ar.has(r))throw new Error("参数 elemName 不是一个有效的 HTML 元素标签名。");let t=document.createElement(r);const{props:n,childNodes:o}=Q(e);try{nr(t,n)}catch(r){throw console.error("设置元素属性时发生错误:",r),r}try{ir(o).forEach((r=>{t.appendChild(r)}))}catch(r){throw console.error("添加子节点时发生错误:",r),r}try{t.pipeEvent=Y(t),t.subscribeEvent=X(t)}catch(r){throw console.error("附加事件接口时发生错误:",r),r}return t.unsubscribe=()=>{t.subscription&&t.subscription instanceof O.Subscription&&(t.subscription.unsubscribe(),delete t.subscription)},t}const ar=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","br","button","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","main","mark","menu","menuitem","meter","nav","ol","optgroup","option","output","p","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","section","select","small","span","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","video","wbr"]);function cr(r,...e){return ur("a",...Array.from(arguments))}function sr(r,...e){return ur("abbr",...Array.from(arguments))}function fr(r,...e){return ur("address",...Array.from(arguments))}function lr(r,...e){return ur("area",...Array.from(arguments))}function pr(r,...e){return ur("article",...Array.from(arguments))}function hr(r,...e){return ur("aside",...Array.from(arguments))}function mr(r,...e){return ur("audio",...Array.from(arguments))}function yr(r,...e){return ur("b",...Array.from(arguments))}function br(r,...e){return ur("bdi",...Array.from(arguments))}function dr(r,...e){return ur("bdo",...Array.from(arguments))}function gr(r,...e){return ur("blockquote",...Array.from(arguments))}function vr(r,...e){return ur("br",...Array.from(arguments))}function wr(r,...e){return ur("button",...Array.from(arguments))}function Ar(r,...e){return ur("caption",...Array.from(arguments))}function Er(r,...e){return ur("cite",...Array.from(arguments))}function jr(r,...e){return ur("code",...Array.from(arguments))}function xr(r,...e){return ur("col",...Array.from(arguments))}function Sr(r,...e){return ur("colgroup",...Array.from(arguments))}function Or(r,...e){return ur("data",...Array.from(arguments))}function Tr(r,...e){return ur("datalist",...Array.from(arguments))}function Nr(r,...e){return ur("dd",...Array.from(arguments))}function kr(r,...e){return ur("del",...Array.from(arguments))}function Ir(r,...e){return ur("details",...Array.from(arguments))}function Cr(r,...e){return ur("dfn",...Array.from(arguments))}function Pr(r,...e){return ur("dialog",...Array.from(arguments))}function Mr(r,...e){return ur("div",...Array.from(arguments))}function Br(r,...e){return ur("dl",...Array.from(arguments))}function Dr(r,...e){return ur("dt",...Array.from(arguments))}function Lr(r,...e){return ur("em",...Array.from(arguments))}function Rr(r,...e){return ur("fieldset",...Array.from(arguments))}function Fr(r,...e){return ur("figcaption",...Array.from(arguments))}function qr(r,...e){return ur("figure",...Array.from(arguments))}function $r(r,...e){return ur("footer",...Array.from(arguments))}function Ur(r,...e){return ur("form",...Array.from(arguments))}function Hr(r,...e){return ur("h1",...Array.from(arguments))}function Vr(r,...e){return ur("h2",...Array.from(arguments))}function Gr(r,...e){return ur("h3",...Array.from(arguments))}function _r(r,...e){return ur("h4",...Array.from(arguments))}function zr(r,...e){return ur("h5",...Array.from(arguments))}function Wr(r,...e){return ur("h6",...Array.from(arguments))}function Kr(r,...e){return ur("header",...Array.from(arguments))}function Jr(r,...e){return ur("hgroup",...Array.from(arguments))}function Yr(r,...e){return ur("hr",...Array.from(arguments))}function Xr(r,...e){return ur("i",...Array.from(arguments))}function Qr(r,...e){return ur("img",...Array.from(arguments))}function Zr(r,...e){return ur("input",...Array.from(arguments))}function re(r,...e){return ur("ins",...Array.from(arguments))}function ee(r,...e){return ur("kbd",...Array.from(arguments))}function te(r,...e){return ur("label",...Array.from(arguments))}function ne(r,...e){return ur("legend",...Array.from(arguments))}function oe(r,...e){return ur("li",...Array.from(arguments))}function ie(r,...e){return ur("main",...Array.from(arguments))}function ue(r,...e){return ur("mark",...Array.from(arguments))}function ae(r,...e){return ur("menu",...Array.from(arguments))}function ce(r,...e){return ur("menuitem",...Array.from(arguments))}function se(r,...e){return ur("meter",...Array.from(arguments))}function fe(r,...e){return ur("nav",...Array.from(arguments))}function le(r,...e){return ur("ol",...Array.from(arguments))}function pe(r,...e){return ur("optgroup",...Array.from(arguments))}function he(r,...e){return ur("option",...Array.from(arguments))}function me(r,...e){return ur("output",...Array.from(arguments))}function ye(r,...e){return ur("p",...Array.from(arguments))}function be(r,...e){return ur("pre",...Array.from(arguments))}function de(r,...e){return ur("progress",...Array.from(arguments))}function ge(r,...e){return ur("q",...Array.from(arguments))}function ve(r,...e){return ur("rb",...Array.from(arguments))}function we(r,...e){return ur("rp",...Array.from(arguments))}function Ae(r,...e){return ur("rt",...Array.from(arguments))}function Ee(r,...e){return ur("rtc",...Array.from(arguments))}function je(r,...e){return ur("ruby",...Array.from(arguments))}function xe(r,...e){return ur("s",...Array.from(arguments))}function Se(r,...e){return ur("samp",...Array.from(arguments))}function Oe(r,...e){return ur("section",...Array.from(arguments))}function Te(r,...e){return ur("small",...Array.from(arguments))}function Ne(r,...e){return ur("span",...Array.from(arguments))}function ke(r,...e){return ur("strong",...Array.from(arguments))}function Ie(r,...e){return ur("sub",...Array.from(arguments))}function Ce(r,...e){return ur("summary",...Array.from(arguments))}function Pe(r,...e){return ur("sup",...Array.from(arguments))}function Me(r,...e){return ur("table",...Array.from(arguments))}function Be(r,...e){return ur("tbody",...Array.from(arguments))}function De(r,...e){return ur("td",...Array.from(arguments))}function Le(r,...e){return ur("tfoot",...Array.from(arguments))}function Re(r,...e){return ur("th",...Array.from(arguments))}function Fe(r,...e){return ur("thead",...Array.from(arguments))}function qe(r,...e){return ur("time",...Array.from(arguments))}function $e(r,...e){return ur("tr",...Array.from(arguments))}function Ue(r,...e){return ur("track",...Array.from(arguments))}function He(r,...e){return ur("tt",...Array.from(arguments))}function Ve(r,...e){return ur("u",...Array.from(arguments))}function Ge(r,...e){return ur("ul",...Array.from(arguments))}function _e(r,...e){return ur("video",...Array.from(arguments))}function ze(r,...e){return ur("wbr",...Array.from(arguments))}function We(r={}){if("object"!=typeof r||null===r)throw new Error("`checkbox` requires a `props` object.");const e=Zr({...r,type:"checkbox"});if(!(r.checked&&r.checked instanceof O.BehaviorSubject))throw new Error("`checkbox` requires a `checked` prop that is an instance of BehaviorSubject.");{let t=e=>e.pipe((0,R.map)((r=>r.target.checked))).subscribe(r.checked);e.pipeEvent("input",t)}return e}function Ke(r,...e){return(e=or(e)).forEach((e=>{if(!(e instanceof HTMLElement))throw new Error("`collapse` only supports HTMLElement nodes.");tr(e,"hidden",r)})),e}function Je(r,e={}){return Object.entries(e).map((([e,t])=>Ke(r.pipe((0,R.map)((r=>r!==e))),t))).reduce(((r,e)=>[...r,...e]),[])}function Ye(r,e,t){return[...Ke(r.pipe((0,R.map)((r=>!r))),e),...Ke(r,t)]}function Xe(...r){const e=new DocumentFragment;return ir(r).forEach((r=>{e.appendChild(r)})),e}function Qe(r,...e){if("object"!=typeof r||null===r)throw new Error("`select` requires a `props` object.");let{oninput:t,onchange:n,...o}=r,i=ur("select",{...o,multiple:!0},...e);return"function"==typeof t&&i.subscribeEvent("input",(r=>{t(r)})),"function"==typeof n&&i.subscribeEvent("change",(r=>{n(r)})),i}function Ze(r={}){if("object"!=typeof r||null===r)throw new Error("`numberbox` requires a `props` object.");let{number:e,...t}=r,n=Zr({...t,type:"text"});if(!(e&&e instanceof O.BehaviorSubject))throw new Error("`numberbox` requires a `number` prop that is an instance of BehaviorSubject. ");{let r=e.pipe((0,R.map)((r=>String(r))));tr(n,"value",r);let t=r=>r.pipe((0,R.map)((r=>Number(r.target.value)))).subscribe((r=>{Number.isNaN(r)?n.select():e.value!==r&&e.next(r)}));n.pipeEvent("blur",t)}return n.style.textAlign="right",n}function rt(r={}){if("object"!=typeof r||null===r)throw new Error("`radio` requires a `props` object.");const e=Zr({...r,type:"radio"});if(!(r.checked&&r.checked instanceof O.BehaviorSubject))throw new Error("`radio` requires a `checked` prop that is an instance of BehaviorSubject. ");{const t=e=>e.pipe((0,R.map)((r=>r.target.checked))).subscribe(r.checked);e.pipeEvent("input",t)}return e}function et(r,...e){if("object"!=typeof r||null===r)throw new Error("`select` requires a `props` object.");let t=ur("select",{...r,multiple:!1},...e),{selectedIndex:n,value:o}=r;if(t.options.length>0&&!(n instanceof O.BehaviorSubject)&&!(o instanceof O.BehaviorSubject))throw new Error("`select` requires at least one of `selectedIndex` or `value` to be a BehaviorSubject.");if(n&&n instanceof O.BehaviorSubject){n.subscribe((r=>{t[r].selected=!0}));let r=r=>r.pipe((0,R.map)((r=>r.target.selectedIndex))).subscribe(n);t.pipeEvent("input",r)}if(o&&o instanceof O.BehaviorSubject){o.subscribe((r=>{Array.from(t.getElementsByTagName("option")).filter((e=>e.value===r)).forEach((r=>{r.selected=!0}))}));let r=r=>r.pipe((0,R.map)((r=>r.target.value))).subscribe(o);t.pipeEvent("input",r)}return t}function tt(r){if("object"!=typeof r||null===r)throw new Error("`textarea` requires a `props` object.");const{value:e}=r;if(!(e instanceof O.BehaviorSubject))throw new Error("`value` must be an instance of BehaviorSubject.");const t=ur("textarea",r);return t.pipeEvent("input",(r=>r.pipe((0,R.map)((r=>r.target.value))).subscribe(e))),t}function nt(r){if("object"!=typeof r||null===r)throw new Error("`textbox` requires a `props` object.");const{value:e}=r;if(!(e instanceof O.BehaviorSubject))throw new Error("`value` must be an instance of BehaviorSubject.");const t=Zr({...r,type:"text"});return t.pipeEvent("input",(r=>r.pipe((0,R.map)((r=>r.target.value))).subscribe(e))),t}function ot(r){if((0,O.isObservable)(r)){const e=document.createTextNode(""),t=r.subscribe({next:r=>{e.nodeValue=r},error:r=>{e.nodeValue=`Error: ${r.message}`}});return e.subscription=t,e.unsubscribe=function(){this.subscription instanceof O.Subscription&&(this.subscription.unsubscribe(),delete this.subscription)},e}{let e=document.createTextNode(String(r));return e.unsubscribe=()=>{},e}}const it=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DD","DETAILS","DIALOG","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"]),ut=new Set(["A","ABBR","ACRONYM","AUDIO","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","DATA","DATALIST","DEL","DFN","EM","EMBED","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","METER","NOSCRIPT","OBJECT","OUTPUT","PICTURE","PROGRESS","Q","RUBY","S","SAMP","SCRIPT","SELECT","SLOT","SMALL","SPAN","STRONG","SUB","SUP","SVG","TEMPLATE","TEXTAREA","TIME","TT","U","VAR","VIDEO","WBR"]);function at(r){return"TBODY"===r.tagName?"table-row-group":"THEAD"===r.tagName?"table-header-group":"TFOOT"===r.tagName?"table-footer-group":"TR"===r.tagName?"table-row":"TD"===r.tagName||"TH"===r.tagName?"table-cell":"COLGROUP"===r.tagName?"table-column-group":"COL"===r.tagName?"table-column":"CAPTION"===r.tagName?"table-caption":it.has(r.tagName)?"block":ut.has(r.tagName)?"inline":"unset"}function ct(r={}){return Mr(r,Ge({className:"nav nav-tabs"}),Mr({className:"tab-content"}))}function st(...r){return oe({className:"nav-item"},wr({type:"button",className:"btn btn-link nav-link"},...r))}function ft(...r){return Mr({className:"tab-pane"},...r)}function lt(r,e=new O.BehaviorSubject(0)){const t=r.firstChild,n=r.lastChild;e.subscribe((r=>{Array.from(t.childNodes).forEach(((e,t)=>{const n=e.firstChild;r===t?n.classList.add("active"):n.classList.remove("active")})),Array.from(n.childNodes).forEach(((e,t)=>{r===t?e.classList.add("active"):e.classList.remove("active")}))})),t.pipeEvent("click",(r=>r.pipe((0,R.map)((r=>[...t.childNodes].map((r=>r.firstChild)).indexOf(r.target))),(0,R.filter)((r=>r>-1))).subscribe(e)))}function pt(r,e,t){const{tabIndex:n,...o}=r,i=ct(o),u=i.firstChild,a=i.lastChild;return e.map((r=>st(r))).forEach((r=>u.appendChild(r))),t.map((r=>ft(r))).forEach((r=>a.appendChild(r))),lt(i,n),i}const ht=(...r)=>{if(!r||0===r.length)return r=>r;const e=r.findIndex((r=>"function"!=typeof r));if(-1!==e){const t=r[e];throw new TypeError(`所有参数必须是函数,但第 ${e} 个参数是: ${null===t?"null":void 0===t?"undefined":typeof t}`)}return 1===r.length?r[0]:r.reduce(((r,e)=>(...t)=>r(e(...t))))};let mt=function(r){return function(){for(const e of r)if("function"==typeof e){let r=e.apply(this,arguments);if(r)return r}else if(Array.isArray(e)){let r=e[0].apply(this,arguments);if(r){let t=Array.from(arguments);return t[t.length]=r,e[1].apply(this,t)}}}};const yt=function(r,e,t){for(;null!=t;){let n=r.call(this,e,t);if(null==n||0===n.length)break;if(e=n[0],1===n.length)break;t=n[1]}return e};function bt(r,e){let t=[],n=r.call(this,e);for(;n&&n.length;)t[t.length]=n[0],n=r.call(this,n[1]);return t}function dt(r){return r.map((r=>{let e=r.toString(16).toUpperCase();return"%"+(r<16?"0"+e:e)})).join("")}function gt(r){return r<128?[r]:128<=r&&r<2048?[r>>6|192,63&r|128]:[r>>12|224,r>>6&63|128,63&r|128]}function vt(r){return Array.from(r).map((r=>[r.charCodeAt(0),r])).map((([r,e])=>r<=32||'"'===e||"#"===e||"%"===e||"&"===e||"'"===e||"+"===e||"<"===e||"="===e||">"===e||127<=r&&r<=65535?dt(gt(r)):e)).join("")}const wt=r=>""===r||/(^\u0020)|[,:{}[\]"\u0000-\u001F\u007F]|(\u0020$)/.test(r)?JSON.stringify(r):r,At=r=>"true"===r||"false"===r||"null"===r||/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?$/.test(r)?JSON.stringify(r):wt(r);function Et(r){return null===r?"null":"string"==typeof r?At(r):"number"==typeof r?isFinite(r)?r.toString():"null":"boolean"==typeof r?r?"true":"false":"bigint"==typeof r?r.toString():Array.isArray(r)?"["+r.map((r=>Et(r))).join(",")+"]":"object"==typeof r?"{"+Object.entries(r).map((([r,e])=>wt(r)+":"+Et(e))).join(",")+"}":"null"}const jt=r=>"string"==typeof r?r:"object"==typeof r?Et(r):r.toString();function xt(r){if(!r||Array.isArray(r)||"object"!=typeof r)throw console.error(r),new Error("input should be a plain object.");let e=Object.entries(r).filter((([r,e])=>"object"==typeof e&&null!==e||"boolean"==typeof e||Number.isFinite(e)||"bigint"==typeof e||"string"==typeof e&&""!==e));return 0===e.length?"":"?"+e.map((([r,e])=>[r,jt(e)])).map((([r,e])=>vt(r)+"="+vt(e))).join("&")}return i})()));
package/package.json CHANGED
@@ -1,34 +1,41 @@
1
1
  {
2
2
  "dependencies": {},
3
3
  "devDependencies": {
4
- "rxjs": "7.5.5",
5
- "@babel/core": "7.17.7",
6
- "@babel/plugin-proposal-class-properties": "7.16.7",
7
- "@babel/plugin-proposal-export-default-from": "7.16.7",
8
- "@babel/plugin-proposal-export-namespace-from": "7.16.7",
9
- "@babel/plugin-proposal-pipeline-operator": "7.17.6",
10
- "@babel/preset-env": "7.16.11",
11
- "@webpack-cli/serve": "1.6.1",
12
- "babel-jest": "27.5.1",
13
- "babel-loader": "8.2.3",
4
+ "rxjs": "7.8.2",
5
+ "jest": "29.7.0",
6
+ "jsdom": "26.1.0",
7
+ "jest-environment-jsdom": "29.7.0",
8
+ "node-fetch": "3.3.2",
9
+ "babel-jest": "29.7.0",
10
+ "@babel/core": "7.27.1",
11
+ "@babel/preset-env": "7.27.2",
12
+ "@babel/plugin-proposal-export-default-from": "7.27.1",
13
+ "@babel/plugin-proposal-export-namespace-from": "7.18.9",
14
+ "@webpack-cli/serve": "3.0.1",
15
+ "babel-loader": "10.0.0",
14
16
  "clean-webpack-plugin": "4.0.0",
15
- "core-js": "3.21.1",
16
- "jest": "27.5.1",
17
- "node-fetch": "3.2.3",
18
- "webpack": "5.70.0",
19
- "webpack-cli": "4.9.2",
20
- "webpack-dev-server": "4.7.4",
21
- "webpack-merge": "5.8.0"
17
+ "core-js": "3.42.0",
18
+ "regenerator-runtime": "0.14.1",
19
+ "tslib": "2.8.1",
20
+ "webpack": "5.99.8",
21
+ "webpack-cli": "6.0.1",
22
+ "webpack-dev-server": "5.2.1",
23
+ "webpack-merge": "6.0.1"
24
+ },
25
+ "jest": {
26
+ "testEnvironment": "jsdom"
22
27
  },
23
28
  "scripts": {
24
29
  "build": "webpack --config webpack.prod.js",
25
30
  "start": "webpack serve --config webpack.dev.js",
26
- "test": "jest"
31
+ "test": "jest",
32
+ "test:watch": "jest --watch",
33
+ "test:coverage": "jest --coverage"
27
34
  },
28
35
  "name": "hyperscript-rxjs",
29
- "description": "A js UI library that uses rxjs to react dom directly.",
36
+ "description": "A js UI library that uses rxjs to handle dom directly.",
30
37
  "main": "dist/hyperscript-rxjs.js",
31
- "version": "1.2.7",
38
+ "version": "1.3.0",
32
39
  "author": "cuishengli<34696643@qq.com>",
33
40
  "keywords": [
34
41
  "ui",
@@ -40,5 +47,9 @@
40
47
  "type": "git",
41
48
  "url": "https://github.com/xp44mm/hyperscript-rxjs"
42
49
  },
43
- "license": "LGPL-3.0-or-later"
50
+ "license": "LGPL-3.0-or-later",
51
+ "files": [
52
+ "dist",
53
+ "README.md"
54
+ ]
44
55
  }
package/readme.md CHANGED
@@ -1,45 +1,155 @@
1
- `hyperscript-rxjs`是一个直接操作DOM的js前端框架库。`hyperscript-rxjs`具有如下特点:
2
1
 
3
- * 相比操作DOM模型的命令式代码,`hyperscript-rxjs`更具声明性。
2
+ # hyperscript-rxjs
4
3
 
5
- * `hyperscript-rxjs`修复或绕开了很多DOM的历史缺陷。
4
+ A JavaScript UI library that uses RxJS to handle DOM directly.
6
5
 
7
- * 像knockout一样,`hyperscript-rxjs`使用MVVM分离视图与视图模型,不同的是`hyperscript-rxjs`采取通用的rxjs库来观察变化。
6
+ ## Features
8
7
 
9
- * 像react一样,`hyperscript-rxjs`操作DOM,与html无关。不同的是`hyperscript-rxjs`直接操作DOM本身,无虚拟DOM。
8
+ - Reactive programming with RxJS.
9
+ - Direct DOM manipulation.
10
+ - Lightweight and flexible.
10
11
 
11
- * `hyperscript-rxjs`采用更新的事件标准`addEventListener`,不采用属性事件`onevent`。采用rxjs观察DOM模型的变化,事件通知。
12
+ ---
12
13
 
13
- * 尽管rxjs是技术发展趋势,用户仍然可以基于`hyperscript-rxjs`实现代码,渐进实现不依赖任何框架的代码。
14
+ ## Installation
14
15
 
15
- `hyperscript-rxjs`学习难度小于react,并且其知识兼容底层的DOM,实用性更强。教程见单独的文件。
16
+ Install the library via npm:
16
17
 
17
- ## 依赖库
18
+ ```bash
19
+ npm install hyperscript-rxjs
20
+ ```
21
+
22
+ ---
23
+
24
+ ## Usage
25
+
26
+ ### Basic Example
27
+
28
+ ```javascript
29
+ import { Comparer } from "hyperscript-rxjs";
30
+
31
+ const comparer = new Comparer((a, b) => a - b);
32
+ console.log(comparer.sort([3, 1, 2])); // Output: [1, 2, 3]
33
+ ```
34
+
35
+ ### Importing Specific Modules
36
+
37
+ You can import specific modules as needed:
38
+
39
+ ```javascript
40
+ import { nestedCombineLatest } from "hyperscript-rxjs";
41
+ ```
42
+
43
+ ---
44
+
45
+ ## API
46
+
47
+ ### Exported Modules
48
+
49
+ #### Comparers
50
+ - `Comparer`
51
+ - `defaultComparer`
52
+ - `keyComparer`
53
+ - `keyPathComparer`
54
+ - `entryComparer`
55
+
56
+ #### Reactive Utilities
57
+ - `isRxType`
58
+ - `nestedCombineLatest`
59
+ - `nestedMerge`
60
+ - `ObservableArray`
61
+ - `pickBehaviorSubject`
62
+ - `restore`
63
+
64
+ #### Other Utilities
65
+ - `Deep`
66
+ - `nodes`
67
+ - `object`
68
+ - `props`
69
+ - `ramda`
70
+ - `structures`
71
+ - `unquoted-json`
72
+
73
+ ---
74
+
75
+ ## Development
76
+
77
+ ### Prerequisites
78
+
79
+ Ensure you have the following installed:
80
+ - Node.js (>= 14.x)
81
+ - npm (>= 6.x)
18
82
 
19
- `hyperscript-rxjs` is based on `rxjs`。
83
+ ### Clone the Repository
20
84
 
21
- ## 入门
85
+ ```bash
86
+ git clone https://github.com/xp44mm/hyperscript-rxjs.git
87
+ cd hyperscript-rxjs
88
+ ```
89
+
90
+ ### Install Dependencies
91
+
92
+ ```bash
93
+ npm install
94
+ ```
22
95
 
23
- 一个Hello World程序,就像写html一样简单。
96
+ ### Build the Project
24
97
 
25
- ```js
26
- import { p } from 'hyperscript-rxjs'
27
- export function hello() { return p('hello world!'); }
98
+ ```bash
99
+ npm run build
28
100
  ```
29
101
 
30
- 本框架API的设计和DOM底层完全一致,即使你将来不使用本框架,也会有益于你的职业生涯。本教程的其余部分将更加详细地涵盖前端库的各种功能以及其它高级用法。
102
+ The build output will be located in the `dist/` directory.
103
+
104
+ ---
31
105
 
32
- ## 教程
106
+ ## Testing
33
107
 
34
- 教程及其源代码位于github库`xp44mm/hyperscript-rxjs-test`中。
108
+ ### Run Tests
35
109
 
36
- ## 相关库
110
+ ```bash
111
+ npm test
112
+ ```
37
113
 
38
- 推荐使用如下库,编写更优美的代码:
114
+ ### Watch Tests
115
+
116
+ ```bash
117
+ npm run test:watch
118
+ ```
119
+
120
+ ### Test Coverage
121
+
122
+ ```bash
123
+ npm run test:coverage
124
+ ```
39
125
 
40
- xp44mm/structural-comparison
126
+ ---
41
127
 
42
- xp44mm/deep-rxjs
128
+ ## Contributing
43
129
 
44
- xp44mm/parse-html
130
+ Contributions are welcome! Please follow these steps:
45
131
 
132
+ 1. Fork the repository.
133
+ 2. Create a new branch for your feature or bugfix.
134
+ 3. Commit your changes and push the branch.
135
+ 4. Submit a pull request.
136
+
137
+ ---
138
+
139
+ ## License
140
+
141
+ This project is licensed under the **LGPL-3.0-or-later** license. See the [LICENSE](LICENSE) file for details.
142
+
143
+ ---
144
+
145
+ ## Repository
146
+
147
+ [GitHub Repository](https://github.com/xp44mm/hyperscript-rxjs)
148
+
149
+ ---
150
+
151
+ ## Author
152
+
153
+ **cuishengli**
154
+ Email: 34696643@qq.com
155
+ ```