diff --git a/changelog.md b/changelog.md index 5a48cec..ba5eff4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,5 @@ -## [1.9.21] - 2025-12-21 -* bugfixes +## [2.0.0] - 2025-02-05 +* sponsor API ## [1.9.19] - 2025-12-13 * optimize: Completely rework for image selection UX. diff --git a/javascript/sdppp-comfy.js b/javascript/sdppp-comfy.js index 82fe605..043e67f 100644 --- a/javascript/sdppp-comfy.js +++ b/javascript/sdppp-comfy.js @@ -5,7 +5,9 @@ var b3=Object.create;var Dp=Object.defineProperty;var HE=Object.getOwnPropertyDe `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ob=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Td(e):""}function NW(e){switch(e.tag){case 5:return Td(e.type);case 16:return Td("Lazy");case 13:return Td("Suspense");case 19:return Td("SuspenseList");case 0:case 2:case 15:return e=Nb(e.type,!1),e;case 11:return e=Nb(e.type.render,!1),e;case 1:return e=Nb(e.type,!0),e;default:return""}}function Zb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cc:return"Fragment";case Sc:return"Portal";case Yb:return"Profiler";case HS:return"StrictMode";case Qb:return"Suspense";case Jb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bP:return(e.displayName||"Context")+".Consumer";case yP:return(e._context.displayName||"Context")+".Provider";case US:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case GS:return t=e.displayName||null,t!==null?t:Zb(e.type)||"Memo";case rs:t=e._payload,e=e._init;try{return Zb(e(t))}catch{}}return null}function IW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zb(t);case 8:return t===HS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function CP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TW(e){var t=CP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _m(e){e._valueTracker||(e._valueTracker=TW(e))}function xP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=CP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function eg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function eS(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function m_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wP(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function tS(e,t){wP(e,t);var r=hs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rS(e,t.type,r):t.hasOwnProperty("defaultValue")&&rS(e,t.type,hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function rS(e,t,r){(t!=="number"||eg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $d=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ud(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$W=["Webkit","ms","Moz","O"];Object.keys(kd).forEach(function(e){$W.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kd[t]=kd[e]})});function PP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||kd.hasOwnProperty(e)&&kd[e]?(""+t).trim():t+"px"}function OP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=PP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var DW=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function iS(e,t){if(t){if(DW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function aS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sS=null;function qS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lS=null,Dc=null,Ac=null;function y_(e){if(e=uf(e)){if(typeof lS!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Og(t),lS(e.stateNode,e.type,t))}}function NP(e){Dc?Ac?Ac.push(e):Ac=[e]:Dc=e}function IP(){if(Dc){var e=Dc,t=Ac;if(Ac=Dc=null,y_(e),t)for(e=0;e>>=0,e===0?32:31-(HW(e)/UW|0)|0}var Om=64,Nm=4194304;function Dd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function og(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Dd(s):(i&=a,i!==0&&(n=Dd(i)))}else a=r&~o,a!==0?n=Dd(a):i!==0&&(n=Dd(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function lf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mi(t),e[t]=r}function XW(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Ld),P_=" ",O_=!1;function YP(e,t){switch(e){case"keyup":return wz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xc=!1;function Rz(e,t){switch(e){case"compositionend":return QP(t);case"keypress":return t.which!==32?null:(O_=!0,P_);case"textInput":return e=t.data,e===P_&&O_?null:e;default:return null}}function _z(e,t){if(xc)return e==="compositionend"||!tC&&YP(e,t)?(e=KP(),Um=JS=as=null,xc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=T_(r)}}function tO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rO(){for(var e=window,t=eg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=eg(e.document)}return t}function rC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kz(e){var t=rO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&tO(r.ownerDocument.documentElement,r)){if(n!==null&&rC(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=$_(r,i);var a=$_(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wc=null,mS=null,Wd=null,gS=!1;function D_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gS||wc==null||wc!==eg(n)||(n=wc,"selectionStart"in n&&rC(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wd&&Qd(Wd,n)||(Wd=n,n=sg(mS,"onSelect"),0_c||(e.current=CS[_c],CS[_c]=null,_c--)}function tr(e,t){_c++,CS[_c]=e.current,e.current=t}var vs={},Tn=bs(vs),eo=bs(!1),bl=vs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return vs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function to(e){return e=e.childContextTypes,e!=null}function cg(){or(eo),or(Tn)}function B_(e,t,r){if(Tn.current!==vs)throw Error(ge(168));tr(Tn,t),tr(eo,r)}function dO(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,IW(e)||"Unknown",o));return Rr({},r,n)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vs,bl=Tn.current,tr(Tn,e),tr(eo,eo.current),!0}function V_(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=dO(e,t,bl),n.__reactInternalMemoizedMergedChildContext=e,or(eo),or(Tn),tr(Tn,e)):or(eo),tr(eo,r)}var pa=null,Ng=!1,zb=!1;function fO(e){pa===null?pa=[e]:pa.push(e)}function Uz(e){Ng=!0,fO(e)}function Ss(){if(!zb&&pa!==null){zb=!0;var e=0,t=jt;try{var r=pa;for(jt=1;e>=a,o-=a,ma=1<<32-mi(t)+o|r<R?(O=x,x=null):O=x.sibling;var _=f(g,x,b[R],S);if(_===null){x===null&&(x=O);break}e&&x&&_.alternate===null&&t(g,x),p=i(_,p,R),w===null?C=_:w.sibling=_,w=_,x=O}if(R===b.length)return r(g,x),vr&&fl(g,R),C;if(x===null){for(;RR?(O=x,x=null):O=x.sibling;var T=f(g,x,_.value,S);if(T===null){x===null&&(x=O);break}e&&x&&T.alternate===null&&t(g,x),p=i(T,p,R),w===null?C=T:w.sibling=T,w=T,x=O}if(_.done)return r(g,x),vr&&fl(g,R),C;if(x===null){for(;!_.done;R++,_=b.next())_=d(g,_.value,S),_!==null&&(p=i(_,p,R),w===null?C=_:w.sibling=_,w=_);return vr&&fl(g,R),C}for(x=n(g,x);!_.done;R++,_=b.next())_=m(x,g,R,_.value,S),_!==null&&(e&&_.alternate!==null&&x.delete(_.key===null?R:_.key),p=i(_,p,R),w===null?C=_:w.sibling=_,w=_);return e&&x.forEach(function($){return t(g,$)}),vr&&fl(g,R),C}function y(g,p,b,S){if(typeof b=="object"&&b!==null&&b.type===Cc&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Rm:e:{for(var C=b.key,w=p;w!==null;){if(w.key===C){if(C=b.type,C===Cc){if(w.tag===7){r(g,w.sibling),p=o(w,b.props.children),p.return=g,g=p;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rs&&G_(C)===w.type){r(g,w.sibling),p=o(w,b.props),p.ref=Pd(g,w,b),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}b.type===Cc?(p=yl(b.props.children,g.mode,S,b.key),p.return=g,g=p):(S=Zm(b.type,b.key,b.props,null,g.mode,S),S.ref=Pd(g,p,b),S.return=g,g=S)}return a(g);case Sc:e:{for(w=b.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===b.containerInfo&&p.stateNode.implementation===b.implementation){r(g,p.sibling),p=o(p,b.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=Kb(b,g.mode,S),p.return=g,g=p}return a(g);case rs:return w=b._init,y(g,p,w(b._payload),S)}if($d(b))return h(g,p,b,S);if(wd(b))return v(g,p,b,S);zm(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,b),p.return=g,g=p):(r(g,p),p=qb(b,g.mode,S),p.return=g,g=p),a(g)):r(g,p)}return y}var jc=hO(!0),vO=hO(!1),pg=bs(null),mg=null,Nc=null,aC=null;function sC(){aC=Nc=mg=null}function lC(e){var t=pg.current;or(pg),e._currentValue=t}function ES(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mc(e,t){mg=e,aC=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zn=!0),e.firstContext=null)}function jo(e){var t=e._currentValue;if(aC!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(mg===null)throw Error(ge(308));Nc=e,mg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var gl=null;function cC(e){gl===null?gl=[e]:gl.push(e)}function yO(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,cC(t)):(r.next=o.next,o.next=r),t.interleaved=r,ba(e,n)}function ba(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ns=!1;function uC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(kt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ba(e,r)}return o=n.interleaved,o===null?(t.next=t,cC(n)):(t.next=o.next,o.next=t),n.interleaved=t,ba(e,r)}function qm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XS(e,r)}}function q_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gg(e,t,r,n){var o=e.updateQueue;ns=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,m=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(f=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){d=h.call(m,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,f=typeof h=="function"?h.call(m,d,f):h,f==null)break e;d=Rr({},d,f);break e;case 2:ns=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xl|=a,e.lanes=a,e.memoizedState=d}}function K_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Bb.transition;Bb.transition={};try{e(!1),t()}finally{jt=r,Bb.transition=n}}function MO(){return Bo().memoizedState}function Xz(e,t,r){var n=ms(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},LO(e))FO(t,r);else if(r=yO(e,t,r,n),r!==null){var o=Hn();gi(r,e,n,o),WO(r,t,n)}}function Yz(e,t,r){var n=ms(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(LO(e))FO(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,hi(s,a)){var l=t.interleaved;l===null?(o.next=o,cC(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=yO(e,t,o,n),r!==null&&(o=Hn(),gi(r,e,n,o),WO(r,t,n))}}function LO(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function FO(e,t){zd=vg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function WO(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XS(e,r)}}var yg={readContext:jo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},Qz={readContext:jo,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:jo,useEffect:Y_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xm(4194308,4,TO.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xm(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Xz.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:X_,useDebugValue:yC,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=X_(!1),t=e[0];return e=Kz.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,o=zi();if(vr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),ln===null)throw Error(ge(349));(Cl&30)!==0||wO(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Y_(RO.bind(null,n,i,e),[e]),n.flags|=2048,af(9,EO.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=ln.identifierPrefix;if(vr){var r=ga,n=ma;r=(n&~(1<<32-mi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=nf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ji]=t,e[ef]=n,XO(e,t,!1,!1),t.stateNode=e;e:{switch(a=aS(r,n),r){case"dialog":nr("cancel",e),nr("close",e),o=n;break;case"iframe":case"object":case"embed":nr("load",e),o=n;break;case"video":case"audio":for(o=0;oHc&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304)}else{if(!n)if(e=hg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Od(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!vr)return Nn(t),null}else 2*Fr()-i.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fr(),t.sibling=null,r=wr.current,tr(wr,n?r&1|2:r&1),t):(Nn(t),null);case 22:case 23:return EC(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(go&1073741824)!==0&&(Nn(t),t.subtreeFlags&6&&(t.flags|=8192)):Nn(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function i4(e,t){switch(oC(t),t.tag){case 1:return to(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),or(eo),or(Tn),pC(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return fC(t),null;case 13:if(or(wr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));zc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return or(wr),null;case 4:return Bc(),null;case 10:return lC(t.type._context),null;case 22:case 23:return EC(),null;case 24:return null;default:return null}}var Bm=!1,In=!1,a4=typeof WeakSet=="function"?WeakSet:Set,He=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Tr(e,t,n)}}var sP=!1;function s4(e,t){if(hS=ig,e=rO(),rC(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var m;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=a),f===i&&++u===n&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(vS={focusedElem:e,selectionRange:r},ig=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(S){Tr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return h=sP,sP=!1,h}function jd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function AS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function JO(e){var t=e.alternate;t!==null&&(e.alternate=null,JO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[ef],delete t[SS],delete t[Vz],delete t[Hz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ZO(e){return e.tag===5||e.tag===3||e.tag===4}function lP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=lg));else if(n!==4&&(e=e.child,e!==null))for(kS(e,t,r),e=e.sibling;e!==null;)kS(e,t,r),e=e.sibling}function MS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(MS(e,t,r),e=e.sibling;e!==null;)MS(e,t,r),e=e.sibling}var hn=null,fi=!1;function ts(e,t,r){for(r=r.child;r!==null;)eN(e,t,r),r=r.sibling}function eN(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Eg,r)}catch{}switch(r.tag){case 5:In||Ic(r,t);case 6:var n=hn,o=fi;hn=null,ts(e,t,r),hn=n,fi=o,hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hn.removeChild(r.stateNode));break;case 18:hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?Wb(e.parentNode,r):e.nodeType===1&&Wb(e,r),Xd(e)):Wb(hn,r.stateNode));break;case 4:n=hn,o=fi,hn=r.stateNode.containerInfo,fi=!0,ts(e,t,r),hn=n,fi=o;break;case 0:case 11:case 14:case 15:if(!In&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}ts(e,t,r);break;case 1:if(!In&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tr(r,t,s)}ts(e,t,r);break;case 21:ts(e,t,r);break;case 22:r.mode&1?(In=(n=In)||r.memoizedState!==null,ts(e,t,r),In=n):ts(e,t,r);break;default:ts(e,t,r)}}function cP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new a4),t.forEach(function(n){var o=h4.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ui(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Fr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*c4(n/1960))-n,10e?16:e,ss===null)var n=!1;else{if(e=ss,ss=null,Cg=0,(kt&6)!==0)throw Error(ge(331));var o=kt;for(kt|=4,He=e.current;He!==null;){var i=He,a=i.child;if((He.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lFr()-xC?vl(e,0):CC|=r),ro(e,t)}function lN(e,t){t===0&&((e.mode&1)===0?t=1:(t=Nm,Nm<<=1,(Nm&130023424)===0&&(Nm=4194304)));var r=Hn();e=ba(e,t),e!==null&&(lf(e,t,r),ro(e,r))}function g4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lN(e,r)}function h4(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),lN(e,r)}var cN;cN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,n4(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,vr&&(t.flags&1048576)!==0&&pO(t,fg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ym(e,t),e=t.pendingProps;var o=Wc(t,Tn.current);Mc(t,r),o=gC(null,t,n,e,o,r);var i=hC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,to(n)?(i=!0,ug(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uC(t),o.updater=Tg,t.stateNode=o,o._reactInternals=t,_S(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,vr&&i&&nC(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ym(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=y4(n),e=di(n,e),o){case 0:t=OS(null,t,n,e,r);break e;case 1:t=oP(null,t,n,e,r);break e;case 11:t=rP(null,t,n,e,r);break e;case 14:t=nP(null,t,n,di(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),OS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),oP(e,t,n,o,r);case 3:e:{if(GO(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,bO(e,t),gg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vc(Error(ge(423)),t),t=iP(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(ge(424)),t),t=iP(e,t,n,r,o);break e}else for(ho=ds(t.stateNode.containerInfo.firstChild),vo=t,vr=!0,pi=null,r=vO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zc(),n===o){t=Sa(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return SO(t),e===null&&wS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yS(n,o)?a=null:i!==null&&yS(n,i)&&(t.flags|=32),UO(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&wS(t),null;case 13:return qO(e,t,r);case 4:return dC(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),rP(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,tr(pg,n._currentValue),n._currentValue=a,i!==null)if(hi(i.value,a)){if(i.children===o.children&&!eo.current){t=Sa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ha(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ES(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),ES(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mc(t,r),o=jo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),nP(e,t,n,o,r);case 15:return VO(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),Ym(e,t),t.tag=1,to(n)?(e=!0,ug(t)):e=!1,Mc(t,r),zO(t,n,o),_S(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return KO(e,t,r);case 22:return HO(e,t,r)}throw Error(ge(156,t.tag))};function uN(e,t){return LP(e,t)}function v4(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(e,t,r,n){return new v4(e,t,r,n)}function _C(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y4(e){if(typeof e=="function")return _C(e)?1:0;if(e!=null){if(e=e.$$typeof,e===US)return 11;if(e===GS)return 14}return 2}function gs(e,t){var r=e.alternate;return r===null?(r=Wo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zm(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")_C(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return yl(r.children,o,i,t);case HS:a=8,o|=8;break;case Yb:return e=Wo(12,r,t,o|2),e.elementType=Yb,e.lanes=i,e;case Qb:return e=Wo(13,r,t,o),e.elementType=Qb,e.lanes=i,e;case Jb:return e=Wo(19,r,t,o),e.elementType=Jb,e.lanes=i,e;case SP:return Ag(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yP:a=10;break e;case bP:a=9;break e;case US:a=11;break e;case GS:a=14;break e;case rs:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Wo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yl(e,t,r,n){return e=Wo(7,e,n,t),e.lanes=r,e}function Ag(e,t,r,n){return e=Wo(22,e,n,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function qb(e,t,r){return e=Wo(6,e,null,t),e.lanes=r,e}function Kb(e,t,r){return t=Wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b4(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tb(0),this.expirationTimes=Tb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tb(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PC(e,t,r,n,o,i,a,s,l){return e=new b4(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},uC(i),e}function S4(e,t,r){var n=3{"use strict";function gN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gN)}catch(e){console.error(e)}}gN(),hN.exports=mN()});var yN=Do(TC=>{"use strict";var vN=Hi();TC.createRoot=vN.createRoot,TC.hydrateRoot=vN.hydrateRoot;var VY});var $e=Do((GY,Wg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var AC=Symbol.for("react.element"),kC=Symbol.for("react.portal"),Bg=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),Hg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),D4=Symbol.for("react.server_context"),qg=Symbol.for("react.forward_ref"),Kg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),A4=Symbol.for("react.offscreen"),PN;PN=Symbol.for("react.module.reference");function Vo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AC:switch(e=e.type,e){case Bg:case Hg:case Vg:case Kg:case Xg:return e;default:switch(e=e&&e.$$typeof,e){case D4:case Gg:case qg:case Qg:case Yg:case Ug:return e;default:return t}}case kC:return t}}}Vt.ContextConsumer=Gg;Vt.ContextProvider=Ug;Vt.Element=AC;Vt.ForwardRef=qg;Vt.Fragment=Bg;Vt.Lazy=Qg;Vt.Memo=Yg;Vt.Portal=kC;Vt.Profiler=Hg;Vt.StrictMode=Vg;Vt.Suspense=Kg;Vt.SuspenseList=Xg;Vt.isAsyncMode=function(){return!1};Vt.isConcurrentMode=function(){return!1};Vt.isContextConsumer=function(e){return Vo(e)===Gg};Vt.isContextProvider=function(e){return Vo(e)===Ug};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AC};Vt.isForwardRef=function(e){return Vo(e)===qg};Vt.isFragment=function(e){return Vo(e)===Bg};Vt.isLazy=function(e){return Vo(e)===Qg};Vt.isMemo=function(e){return Vo(e)===Yg};Vt.isPortal=function(e){return Vo(e)===kC};Vt.isProfiler=function(e){return Vo(e)===Hg};Vt.isStrictMode=function(e){return Vo(e)===Vg};Vt.isSuspense=function(e){return Vo(e)===Kg};Vt.isSuspenseList=function(e){return Vo(e)===Xg};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bg||e===Hg||e===Vg||e===Kg||e===Xg||e===A4||typeof e=="object"&&e!==null&&(e.$$typeof===Qg||e.$$typeof===Yg||e.$$typeof===Ug||e.$$typeof===Gg||e.$$typeof===qg||e.$$typeof===PN||e.getModuleId!==void 0)};Vt.typeOf=Vo});var IN=Do((fQ,NN)=>{"use strict";NN.exports=ON()});var KF=Do(O0=>{"use strict";var sG=I(),lG=Symbol.for("react.element"),cG=Symbol.for("react.fragment"),uG=Object.prototype.hasOwnProperty,dG=sG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fG={key:!0,ref:!0,__self:!0,__source:!0};function qF(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)uG.call(t,n)&&!fG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:lG,type:e,key:i,ref:a,props:o,_owner:dG.current}}O0.Fragment=cG;O0.jsx=qF;O0.jsxs=qF});var fr=Do((jAe,XF)=>{"use strict";XF.exports=KF()});var M0={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var L0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var UE=typeof A0<"u"?A0:void 0,F0="en";typeof navigator<"u"&&navigator.language?F0=navigator.language=="zh-CN"?"zhcn":"en":UE&&(F0=UE("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=F0=="zhcn"?L0[e]:e in M0?M0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function ol(e,t){return e==t||L0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return ol(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return ol(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return ol(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return ol(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return ol(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return ol(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var W0={};k0(W0,{JsonPatchError:()=>Ir,_areEquals:()=>od,applyOperation:()=>il,applyPatch:()=>sc,applyReducer:()=>O3,deepClone:()=>_3,getValueByPointer:()=>al,validate:()=>qE,validator:()=>Fp});var E3=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),R3=Object.prototype.hasOwnProperty;function kp(e,t){return R3.call(e,t)}function Mp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function ki(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function rd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ap(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ji]=t,e[ef]=n,XO(e,t,!1,!1),t.stateNode=e;e:{switch(a=aS(r,n),r){case"dialog":nr("cancel",e),nr("close",e),o=n;break;case"iframe":case"object":case"embed":nr("load",e),o=n;break;case"video":case"audio":for(o=0;oHc&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304)}else{if(!n)if(e=hg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Od(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!vr)return Nn(t),null}else 2*Fr()-i.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fr(),t.sibling=null,r=wr.current,tr(wr,n?r&1|2:r&1),t):(Nn(t),null);case 22:case 23:return EC(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(go&1073741824)!==0&&(Nn(t),t.subtreeFlags&6&&(t.flags|=8192)):Nn(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function i4(e,t){switch(oC(t),t.tag){case 1:return to(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),or(eo),or(Tn),pC(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return fC(t),null;case 13:if(or(wr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));zc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return or(wr),null;case 4:return Bc(),null;case 10:return lC(t.type._context),null;case 22:case 23:return EC(),null;case 24:return null;default:return null}}var Bm=!1,In=!1,a4=typeof WeakSet=="function"?WeakSet:Set,He=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Tr(e,t,n)}}var sP=!1;function s4(e,t){if(hS=ig,e=rO(),rC(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var m;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=a),f===i&&++u===n&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(vS={focusedElem:e,selectionRange:r},ig=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(S){Tr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return h=sP,sP=!1,h}function jd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function AS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function JO(e){var t=e.alternate;t!==null&&(e.alternate=null,JO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[ef],delete t[SS],delete t[Vz],delete t[Hz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ZO(e){return e.tag===5||e.tag===3||e.tag===4}function lP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=lg));else if(n!==4&&(e=e.child,e!==null))for(kS(e,t,r),e=e.sibling;e!==null;)kS(e,t,r),e=e.sibling}function MS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(MS(e,t,r),e=e.sibling;e!==null;)MS(e,t,r),e=e.sibling}var hn=null,fi=!1;function ts(e,t,r){for(r=r.child;r!==null;)eN(e,t,r),r=r.sibling}function eN(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Eg,r)}catch{}switch(r.tag){case 5:In||Ic(r,t);case 6:var n=hn,o=fi;hn=null,ts(e,t,r),hn=n,fi=o,hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hn.removeChild(r.stateNode));break;case 18:hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?Wb(e.parentNode,r):e.nodeType===1&&Wb(e,r),Xd(e)):Wb(hn,r.stateNode));break;case 4:n=hn,o=fi,hn=r.stateNode.containerInfo,fi=!0,ts(e,t,r),hn=n,fi=o;break;case 0:case 11:case 14:case 15:if(!In&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}ts(e,t,r);break;case 1:if(!In&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tr(r,t,s)}ts(e,t,r);break;case 21:ts(e,t,r);break;case 22:r.mode&1?(In=(n=In)||r.memoizedState!==null,ts(e,t,r),In=n):ts(e,t,r);break;default:ts(e,t,r)}}function cP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new a4),t.forEach(function(n){var o=h4.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ui(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Fr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*c4(n/1960))-n,10e?16:e,ss===null)var n=!1;else{if(e=ss,ss=null,Cg=0,(kt&6)!==0)throw Error(ge(331));var o=kt;for(kt|=4,He=e.current;He!==null;){var i=He,a=i.child;if((He.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lFr()-xC?vl(e,0):CC|=r),ro(e,t)}function lN(e,t){t===0&&((e.mode&1)===0?t=1:(t=Nm,Nm<<=1,(Nm&130023424)===0&&(Nm=4194304)));var r=Hn();e=ba(e,t),e!==null&&(lf(e,t,r),ro(e,r))}function g4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lN(e,r)}function h4(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),lN(e,r)}var cN;cN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,n4(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,vr&&(t.flags&1048576)!==0&&pO(t,fg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ym(e,t),e=t.pendingProps;var o=Wc(t,Tn.current);Mc(t,r),o=gC(null,t,n,e,o,r);var i=hC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,to(n)?(i=!0,ug(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uC(t),o.updater=Tg,t.stateNode=o,o._reactInternals=t,_S(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,vr&&i&&nC(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ym(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=y4(n),e=di(n,e),o){case 0:t=OS(null,t,n,e,r);break e;case 1:t=oP(null,t,n,e,r);break e;case 11:t=rP(null,t,n,e,r);break e;case 14:t=nP(null,t,n,di(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),OS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),oP(e,t,n,o,r);case 3:e:{if(GO(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,bO(e,t),gg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vc(Error(ge(423)),t),t=iP(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(ge(424)),t),t=iP(e,t,n,r,o);break e}else for(ho=ds(t.stateNode.containerInfo.firstChild),vo=t,vr=!0,pi=null,r=vO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zc(),n===o){t=Sa(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return SO(t),e===null&&wS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yS(n,o)?a=null:i!==null&&yS(n,i)&&(t.flags|=32),UO(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&wS(t),null;case 13:return qO(e,t,r);case 4:return dC(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),rP(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,tr(pg,n._currentValue),n._currentValue=a,i!==null)if(hi(i.value,a)){if(i.children===o.children&&!eo.current){t=Sa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ha(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ES(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),ES(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mc(t,r),o=jo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),nP(e,t,n,o,r);case 15:return VO(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),Ym(e,t),t.tag=1,to(n)?(e=!0,ug(t)):e=!1,Mc(t,r),zO(t,n,o),_S(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return KO(e,t,r);case 22:return HO(e,t,r)}throw Error(ge(156,t.tag))};function uN(e,t){return LP(e,t)}function v4(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(e,t,r,n){return new v4(e,t,r,n)}function _C(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y4(e){if(typeof e=="function")return _C(e)?1:0;if(e!=null){if(e=e.$$typeof,e===US)return 11;if(e===GS)return 14}return 2}function gs(e,t){var r=e.alternate;return r===null?(r=Wo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zm(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")_C(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return yl(r.children,o,i,t);case HS:a=8,o|=8;break;case Yb:return e=Wo(12,r,t,o|2),e.elementType=Yb,e.lanes=i,e;case Qb:return e=Wo(13,r,t,o),e.elementType=Qb,e.lanes=i,e;case Jb:return e=Wo(19,r,t,o),e.elementType=Jb,e.lanes=i,e;case SP:return Ag(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yP:a=10;break e;case bP:a=9;break e;case US:a=11;break e;case GS:a=14;break e;case rs:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Wo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yl(e,t,r,n){return e=Wo(7,e,n,t),e.lanes=r,e}function Ag(e,t,r,n){return e=Wo(22,e,n,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function qb(e,t,r){return e=Wo(6,e,null,t),e.lanes=r,e}function Kb(e,t,r){return t=Wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b4(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tb(0),this.expirationTimes=Tb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tb(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PC(e,t,r,n,o,i,a,s,l){return e=new b4(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},uC(i),e}function S4(e,t,r){var n=3{"use strict";function gN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gN)}catch(e){console.error(e)}}gN(),hN.exports=mN()});var yN=Do(TC=>{"use strict";var vN=Hi();TC.createRoot=vN.createRoot,TC.hydrateRoot=vN.hydrateRoot;var VY});var $e=Do((GY,Wg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var AC=Symbol.for("react.element"),kC=Symbol.for("react.portal"),Bg=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),Hg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),D4=Symbol.for("react.server_context"),qg=Symbol.for("react.forward_ref"),Kg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),A4=Symbol.for("react.offscreen"),PN;PN=Symbol.for("react.module.reference");function Vo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AC:switch(e=e.type,e){case Bg:case Hg:case Vg:case Kg:case Xg:return e;default:switch(e=e&&e.$$typeof,e){case D4:case Gg:case qg:case Qg:case Yg:case Ug:return e;default:return t}}case kC:return t}}}Vt.ContextConsumer=Gg;Vt.ContextProvider=Ug;Vt.Element=AC;Vt.ForwardRef=qg;Vt.Fragment=Bg;Vt.Lazy=Qg;Vt.Memo=Yg;Vt.Portal=kC;Vt.Profiler=Hg;Vt.StrictMode=Vg;Vt.Suspense=Kg;Vt.SuspenseList=Xg;Vt.isAsyncMode=function(){return!1};Vt.isConcurrentMode=function(){return!1};Vt.isContextConsumer=function(e){return Vo(e)===Gg};Vt.isContextProvider=function(e){return Vo(e)===Ug};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AC};Vt.isForwardRef=function(e){return Vo(e)===qg};Vt.isFragment=function(e){return Vo(e)===Bg};Vt.isLazy=function(e){return Vo(e)===Qg};Vt.isMemo=function(e){return Vo(e)===Yg};Vt.isPortal=function(e){return Vo(e)===kC};Vt.isProfiler=function(e){return Vo(e)===Hg};Vt.isStrictMode=function(e){return Vo(e)===Vg};Vt.isSuspense=function(e){return Vo(e)===Kg};Vt.isSuspenseList=function(e){return Vo(e)===Xg};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bg||e===Hg||e===Vg||e===Kg||e===Xg||e===A4||typeof e=="object"&&e!==null&&(e.$$typeof===Qg||e.$$typeof===Yg||e.$$typeof===Ug||e.$$typeof===Gg||e.$$typeof===qg||e.$$typeof===PN||e.getModuleId!==void 0)};Vt.typeOf=Vo});var IN=Do((fQ,NN)=>{"use strict";NN.exports=ON()});var KF=Do(O0=>{"use strict";var sG=I(),lG=Symbol.for("react.element"),cG=Symbol.for("react.fragment"),uG=Object.prototype.hasOwnProperty,dG=sG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fG={key:!0,ref:!0,__self:!0,__source:!0};function qF(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)uG.call(t,n)&&!fG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:lG,type:e,key:i,ref:a,props:o,_owner:dG.current}}O0.Fragment=cG;O0.jsx=qF;O0.jsxs=qF});var fr=Do((jAe,XF)=>{"use strict";XF.exports=KF()});var M0={"SDPPP Get Document":"DEPRECATED! Get Document","SDPPP Get Layer By ID":"DEPRECATED! Get Layer","SDPPP Get Linked Layers":"DEPRECATED! Get Linked Layers","SDPPP Get Layers In Group":"DEPRECATED! Get Layers In Group","SDPPP Get Text From Layer":"DEPRECATED! Get Text From Layer","SDPPP Parse Layer Info":"DEPRECATED! Parse Layer Info","SDPPP Get Selection":"DEPRECATED! Get Selection","SDPPP Get Image From Photoshop":"DEPRECATED! Get Image From Photoshop","SDPPP Send Images To Photoshop":"DEPRECATED! Send Images To Photoshop","SDPPP Send Text To Layer":"DEPRECATED! Send Text To Layer","SDPPP Select Layer And Run PS Action":"DEPRECATED! Select Layer And Run PS Action","Photoshop Disconnected!":`Photoshop Disconnected! +(2.0+ use LoadImage node)`};var L0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u5E9F\u5F03\u8282\u70B9! \u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u5E9F\u5F03\u8282\u70B9! \u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":`Photoshop \u672A\u8FDE\u63A5\uFF01 +(2.0+ \u8BF7\u6539\u7528LoadImage\u8282\u70B9)`,rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var UE=typeof A0<"u"?A0:void 0,F0="en";typeof navigator<"u"&&navigator.language?F0=navigator.language=="zh-CN"?"zhcn":"en":UE&&(F0=UE("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=F0=="zhcn"?L0[e]:e in M0?M0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function ol(e,t){return e==t||L0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return ol(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return ol(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return ol(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return ol(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return ol(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return ol(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var W0={};k0(W0,{JsonPatchError:()=>Ir,_areEquals:()=>od,applyOperation:()=>il,applyPatch:()=>sc,applyReducer:()=>O3,deepClone:()=>_3,getValueByPointer:()=>al,validate:()=>qE,validator:()=>Fp});var E3=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),R3=Object.prototype.hasOwnProperty;function kp(e,t){return R3.call(e,t)}function Mp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function ki(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function rd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ap(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&f===void 0&&(c[m]===void 0?f=l.slice(0,u).join("/"):u==d-1&&(f=t.path),f!==void 0&&h(t,0,e,f)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!Lp(m))throw new Ir("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Lp(m)&&(m=~~m)}if(u>=d){if(r&&t.op==="add"&&m>c.length)throw new Ir("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=P3[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=d){var a=ac[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new Ir('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Ir("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ap(e.value))throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Ir("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Ir("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=qE([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ir("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function qE(e,t,r){try{if(!Array.isArray(e))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sc(Nr(t),Nr(e),r||!0);else{r=r||Fp;for(var n=0;nWp,generate:()=>z0,observe:()=>k3,unobserve:()=>A3});var j0=new WeakMap,N3=(function(){function e(t){this.observers=new Map,this.obj=t}return e})(),I3=(function(){function e(t,r){this.callback=t,this.observer=r}return e})();function T3(e){return j0.get(e)}function $3(e,t){return e.observers.get(t)}function D3(e,t){e.observers.delete(t.callback)}function A3(e,t){t.unobserve()}function k3(e,t){var r=[],n,o=T3(e);if(!o)o=new N3(e),j0.set(e,o);else{var i=$3(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Nr(e),t){n.callback=t,n.next=null;var a=function(){z0(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){z0(n),clearTimeout(n.next),D3(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new I3(t,n)),n}function z0(e,t){t===void 0&&(t=!1);var r=j0.get(e.object);B0(r.value,e.object,e.patches,"",t),e.patches.length&&sc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function B0(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Mp(t),a=Mp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],d=e[u];if(kp(t,u)&&!(t[u]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var f=t[u];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?B0(d,f,r,n+"/"+ki(u),o):d!==f&&(s=!0,o&&r.push({op:"test",path:n+"/"+ki(u),value:Nr(d)}),r.push({op:"replace",path:n+"/"+ki(u),value:Nr(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+ki(u),value:Nr(d)}),r.push({op:"remove",path:n+"/"+ki(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;cn!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:al(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:al(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function rr(e,t,r){return e.constructor[zp]||(e.constructor[zp]=[]),e.constructor[zp].push(t),{value:function(...n){let o=Nr(this._data);r.value.apply(this,n);let i=Wp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var sl=class extends H0{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Jt([rr],sl.prototype,"setSID",1);var on=class extends sl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Jt([rr],on.prototype,"setWebviewFromSid",1),Jt([rr],on.prototype,"setTitle",1),Jt([rr],on.prototype,"setProgress",1),Jt([rr],on.prototype,"setLastError",1),Jt([rr],on.prototype,"setQueueSize",1),Jt([rr],on.prototype,"setExecutingNodeTitle",1),Jt([rr],on.prototype,"setWidgetTableStructure",1),Jt([rr],on.prototype,"setWidgetTableValue",1),Jt([rr],on.prototype,"setWidgetTableErrors",1),Jt([rr],on.prototype,"setHasPSDNodes",1),Jt([rr],on.prototype,"setComfyUserToken",1),Jt([rr],on.prototype,"setComfyOrgLoggedIn",1),Jt([rr],on.prototype,"setComfyOrgAPIKey",1),Jt([rr],on.prototype,"setUseSliderForNumberWidget",1);var Ao=class extends sl{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Jt([rr],Ao.prototype,"setIsLocal",1),Jt([rr],Ao.prototype,"setUName",1),Jt([rr],Ao.prototype,"setDocument",1),Jt([rr],Ao.prototype,"setCanvasStateID",1),Jt([rr],Ao.prototype,"setSelectionStateID",1),Jt([rr],Ao.prototype,"setHistoryStateID",1),Jt([rr],Ao.prototype,"setComfyUserToken",1),Jt([rr],Ao.prototype,"setActions",1);var jp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var mt=window.comfyAPI.app.app,qG=window.comfyAPI.ui.$el,an=window.comfyAPI.api.api;var U0=class extends jp{createStore(t,r){return new Ao(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},Wn=new U0,Ke=new on;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Ke.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function XE(){document.title!==Ke.data.title&&Ke.setTitle(document.title),"user"in mt.extensionManager&&Ke.setComfyOrgLoggedIn(mt.extensionManager.user.isLoggedIn),requestAnimationFrame(XE)}requestAnimationFrame(XE);var KE=!1;async function YE(){if(KE)return Promise.resolve();an.user&&Ke.setComfyUserToken(an.user);let e=await an.getSetting("sdppp.useSliderForNumberWidget");e&&Ke.setUseSliderForNumberWidget(e),KE=!0}function M3(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Bp(e){return M3(e)}globalThis.sdpppX=globalThis.sdpppX||{};var sa=globalThis.sdpppX;var Mi=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Bp(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function G0(){let e=Wn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(an.user&&an.user!=r.data.comfyUserToken)return;let n=Mi.makeDocumentDataOptions(r).map(o=>q0(o,r.data.uname));t.push(...n)}),t}function QE(e,t){let r=[""],n=lc(e);if(!n)return[];let o=Mi.makeLayerOptions(n.documentData,t);return r.push(...o),r}function JE(){return an.user?Object.values(Wn.getAllStore()).filter(e=>an.user==e.data.comfyUserToken).length>0:Wn.storeCount()}function q0(e,t){return`${t}/${e}`}function lc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=Wn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:Bp(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var L3=function(e){let t=mt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function K0(e){let t=mt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(me("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=L3(s.link);if(!l)continue;let c=t.find(d=>d.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}sa.findDocumentNodeRecursive=K0;var Vp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function ZE(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new Vp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function eR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var li=Object.create(null);li.open="0";li.close="1";li.ping="2";li.pong="3";li.message="4";li.upgrade="5";li.noop="6";var id=Object.create(null);Object.keys(li).forEach(e=>{id[li[e]]=e});var ad={type:"error",data:"parser error"};var nR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oR=typeof ArrayBuffer=="function",iR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,sd=({type:e,data:t},r,n)=>nR&&t instanceof Blob?r?n(t):tR(t,n):oR&&(t instanceof ArrayBuffer||iR(t))?r?n(t):tR(new Blob([t]),n):n(li[e]+(t||"")),tR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function rR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var X0;function aR(e,t){if(nR&&e.data instanceof Blob)return e.data.arrayBuffer().then(rR).then(t);if(oR&&(e.data instanceof ArrayBuffer||iR(e.data)))return t(rR(e.data));sd(e,!1,r=>{X0||(X0=new TextEncoder),t(X0.encode(r))})}var sR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ld=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,n,o=0,i,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var F3=typeof ArrayBuffer=="function",cd=(e,t)=>{if(typeof e!="string")return{type:"message",data:cR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:W3(e.substring(1),t)}:id[r]?e.length>1?{type:id[r],data:e.substring(1)}:{type:id[r]}:ad},W3=(e,t)=>{if(F3){let r=lR(e);return cR(r,t)}else return{base64:!0,data:e}},cR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var uR="",dR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{sd(i,!1,s=>{n[a]=s,++o===r&&t(n.join(uR))})})},fR=(e,t)=>{let r=e.split(uR),n=[];for(let o=0;o{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Y0;function Hp(e){return e.reduce((t,r)=>t+r.length,0)}function Up(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;oMath.pow(2,21)-1){s.enqueue(ad);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Hp(r)e){s.enqueue(ad);break}}}})}var Q0=4;function Zt(e){if(e)return z3(e)}function z3(e){for(var t in Zt.prototype)e[t]=Zt.prototype[t];return e}Zt.prototype.on=Zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Zt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;oPromise.resolve().then(t):(t,r)=>r(t,0),zn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gR="arraybuffer";function Gp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var j3=zn.setTimeout,B3=zn.clearTimeout;function ca(e,t){t.useNativeTimers?(e.setTimeoutFn=j3.bind(zn),e.clearTimeoutFn=B3.bind(zn)):(e.setTimeoutFn=zn.setTimeout.bind(zn),e.clearTimeoutFn=zn.clearTimeout.bind(zn))}var V3=1.33;function hR(e){return typeof e=="string"?H3(e):Math.ceil((e.byteLength||e.size)*V3)}function H3(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function qp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function yR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};fR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,dR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=qp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var bR=!1;try{bR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var SR=bR;function U3(){}var J0=class extends ud{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Xa=class e extends Zt{constructor(t,r,n){super(),this.createRequest=t,ca(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=U3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Xa.requestsCount=0;Xa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CR);else if(typeof addEventListener=="function"){let e="onpagehide"in zn?"pagehide":"unload";addEventListener(e,CR,!1)}}function CR(){for(let e in Xa.requests)Xa.requests.hasOwnProperty(e)&&Xa.requests[e].abort()}var G3=(function(){let e=xR({xdomain:!1});return e&&e.responseType!==null})(),Ya=class extends J0{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=G3&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Xa(xR,this.uri(),t)}};function xR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SR))return new XMLHttpRequest}catch{}if(!t)try{return new zn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var wR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",eb=class extends ua{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=wR?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(n,i)}catch{}o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=qp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Z0=zn.WebSocket||zn.MozWebSocket,Qa=class extends eb{createSocket(t,r,n){return wR?new Z0(t,r,n):r?new Z0(t,r):new Z0(t)}doWrite(t,r){this.ws.send(r)}};var cc=class extends ua{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=mR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=pR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var tb={websocket:Qa,webtransport:cc,polling:Ya};var q3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,K3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=q3.exec(e||""),i={},a=14;for(;a--;)i[K3[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=X3(i,i.path),i.queryKey=Y3(i,i.query),i}function X3(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Y3(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var rb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xp=[];rb&&addEventListener("offline",()=>{Xp.forEach(e=>e())},!1);var ll=class e extends Zt{constructor(t,r){if(super(),this.binaryType=gR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=uc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=uc(r.host).host);ca(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yR(this.opts.query)),rb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Xp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Q0,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,la(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),rb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Xp.indexOf(this._offlineEventListener);n!==-1&&Xp.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};ll.protocol=Q0;var Yp=class extends ll{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ll.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=d=>{let f=new Error("probe error: "+d);f.transport=r.name,i(),this.emitReserved("upgradeError",f)};function s(){a("transport closed")}function l(){a("socket closed")}function c(d){r&&d.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;ntb[o]).filter(o=>!!o)),super(t,n)}};var EK=dc.protocol;function ER(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=uc(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var lb={};k0(lb,{Decoder:()=>ab,Encoder:()=>ib,PacketType:()=>Ot,protocol:()=>NR});var J3=typeof ArrayBuffer=="function",Z3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,RR=Object.prototype.toString,eW=typeof Blob=="function"||typeof Blob<"u"&&RR.call(Blob)==="[object BlobConstructor]",tW=typeof File=="function"||typeof File<"u"&&RR.call(File)==="[object FileConstructor]";function fd(e){return J3&&(e instanceof ArrayBuffer||Z3(e))||eW&&e instanceof Blob||tW&&e instanceof File}function dd(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ot.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ot.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ot.EVENT:case Ot.BINARY_EVENT:this.onevent(t);break;case Ot.ACK:case Ot.BINARY_ACK:this.onack(t);break;case Ot.DISCONNECT:this.ondisconnect();break;case Ot.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Ot.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ot.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}cl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};cl.prototype.reset=function(){this.attempts=0};cl.prototype.setMin=function(e){this.ms=e};cl.prototype.setMax=function(e){this.max=e};cl.prototype.setJitter=function(e){this.jitter=e};var pc=class extends Zt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ca(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new cl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||lb;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=mo(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=mo(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(mo(t,"ping",this.onping.bind(this)),mo(t,"data",this.ondata.bind(this)),mo(t,"error",this.onerror.bind(this)),mo(t,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){la(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new fc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;nt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var pd={};function md(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=ER(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=pd[o]&&i in pd[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new pc(n,t):(pd[o]||(pd[o]=new pc(n,t)),l=pd[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(md,{Manager:pc,Socket:fc,io:md,connect:md});var IR="507";var Qp=IR.trim();var cb=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=md(t,{transports:["websocket"],path:r,query:{api_level:Qp},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function TR(...e){return e.reduce((t,r)=>r(t),cb)}function $R(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&&mt.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var DR={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ja=[];sa.widgetable=sa.widgetable||{};sa.widgetable.add=function(e,t){typeof t=="function"?Ja.push([e,{formatter:t,setter:null}]):Ja.push([e,t])};function Zp(e,t,r){let n=Ja.find(([s])=>s=="__DEFAULT__"),o=Ja.find(([s])=>ub(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function gd(e){let t={},r=Ja.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Ja.find(([i])=>ub(i,n.type))||r;if(o)try{let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}catch{t[n.id]=[]}}),t}function em(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Ke.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=Jp(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ja.find(([u])=>ub(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((d,f)=>d+(f.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:me("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Ja.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((d,f)=>d+(f.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,d)=>u+(d.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=Jp(o),s=Jp(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Ke.data.useSliderForNumberWidget}}}function ub(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Jp(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}sa.getNodeTitle=Jp;var iW=new Map,ul=iW;function kR(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=mt.workflowManager||mt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){db||aW();let r=t.size,n=!1,o="",i={};try{tm=[];let s=await mt.queuePrompt(1,r);tm.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;ul.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Ke.setLastError(o):Ke.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],d=mt.graph.nodes.find(f=>f.id==u);l[u]=`[${d?.title||u}]`+s[c].errors.map(JSON.stringify).join(` `)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),d=s.includes(c);return u&&!d?-1:!u&&d?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=mt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||Zp(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Ke.setLastError(""),Ke.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await mt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await mt.loadGraphData(DR):await AR(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await AR(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Ke.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Ke.data.widgetTableStructure.widgetTableID,widgetTablePath:Ke.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Ke.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=mt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await mt.api.interrupt()}async clearQueue(t){await mt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:me("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:me("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function AR(e,t){mt.workflowManager==e?await t.load():(await e.openWorkflow(t),await mt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var db=!1,tm=[];function aW(){if(db)return;let e=an.queuePrompt;an.queuePrompt=async(...t)=>{try{let r=await e.call(an,...t);return tm.push({error:null,result:r}),r}catch(r){throw tm.push({error:r,result:null}),r}},db=!0}var jn=class e extends TR(ZE(Ke,"comfy"),eR(Wn,"photoshop"),$R,kR){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function rm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var nm=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},om=class extends nm{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Za=class e extends om{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return Wn.getStoreByName(t)?.data||null}static create(t,r){let n=G0(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:G0});return i.serializeValue=async()=>{let a=lc(i.value);if(!a)return JSON.stringify({instance_id:me("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await jn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){LR(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=Wn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=q0(r.data.documents[r.data.activeDocumentID].identify,t)}}},mc=class e extends om{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=lc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},sW={extraOptions:[],documentWidgetInNode:null},hd=class e extends mc{documentWidgetInNode;constructor(t,r,n=sW){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=QE(t.widget.value,this.extraOptions),LR(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},MR=0,gc=class extends nm{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||rm(Ke.data.widgetTableStructure.widgetTablePath)},i=K0(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=Wn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{Wn.storeCount()==0&&Date.now()-MR>3e3&&(MR=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${me("How to use .ccx file")}

x in o ? Hn(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; -var me = (o, x, t) => zn(o, typeof x != "symbol" ? x + "" : x, t); +var Ln = Object.defineProperty; +var $n = (o, x, t) => x in o ? Ln(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; +var me = (o, x, t) => $n(o, typeof x != "symbol" ? x + "" : x, t); const a = K; (function(o, x) { const t = K, r = o(); for (; ; ) try { - if (-parseInt(t(572)) / 1 * (parseInt(t(2974)) / 2) + -parseInt(t(2595)) / 3 + parseInt(t(767)) / 4 * (parseInt(t(2552)) / 5) + -parseInt(t(824)) / 6 + parseInt(t(582)) / 7 + parseInt(t(3048)) / 8 * (-parseInt(t(837)) / 9) + parseInt(t(2210)) / 10 === x) break; + if (-parseInt(t(535)) / 1 + parseInt(t(1810)) / 2 + -parseInt(t(1798)) / 3 * (parseInt(t(1193)) / 4) + parseInt(t(657)) / 5 + parseInt(t(2677)) / 6 + -parseInt(t(1966)) / 7 + parseInt(t(2995)) / 8 === x) break; r.push(r.shift()); } catch { r.push(r.shift()); } -})(Tx, 238766); -const Ne = window[a(2399)][a(2161)][a(2161)]; -window[a(2399)].ui[a(1185)]; -const E0 = window[a(2399)][a(1039)][a(1039)]; -var ts; -class Vn { +})(yx, 988054); +const Te = window[a(1608)][a(2012)][a(2012)]; +window.comfyAPI.ui.$el; +const R0 = window[a(1608)][a(706)][a(706)]; +var as; +class Un { constructor(x) { - me(this, ts); + me(this, as); const t = a; - this[t(1118)] = x; - const r = this[t(2033)](); - if (!r[t(1694)]) throw new Error(t(977) + r[t(2311)].join(", ")); + this[t(1686)] = x; + const r = this[t(3181)](); + if (!r[t(1122)]) throw new Error(t(2225) + r[t(2800)][t(1592)](", ")); } - [(ts = a(1118), a(2033))]() { + [(as = a(1686), a(3181))]() { const x = a, t = []; - (!this[x(1118)].nodes || Object[x(548)](this[x(1118)][x(2066)])[x(2910)] === 0) && t[x(816)](x(1201)); - for (const [e, s] of this[x(1118)][x(2739)]) - !this.definition[x(2066)][e] && t.push(x(1744) + e), !this.definition[x(2066)][s] && t[x(816)](x(1832) + s); - const r = this[x(963)](); - return !r.valid && t[x(816)](...r.errors), { valid: t[x(2910)] === 0, errors: t }; + (!this[x(1686)].nodes || Object[x(2123)](this[x(1686)][x(669)])[x(2710)] === 0) && t[x(3062)](x(2937)); + for (const [e, s] of this[x(1686)].edges) + !this[x(1686)][x(669)][e] && t[x(3062)]("Edge references unknown source node: " + e), !this.definition[x(669)][s] && t[x(3062)](x(1423) + s); + const r = this[x(2200)](); + return !r[x(1122)] && t[x(3062)](...r[x(2800)]), { valid: t.length === 0, errors: t }; } - [a(534)]() { + [a(2822)]() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object.keys(this[x(1118)].nodes)) + for (const r of Object[x(2123)](this[x(1686)].nodes)) t.set(r, []); - for (const [r, e] of this[x(1118)][x(2739)]) { - const s = t.get(r) || []; - s[x(816)](e), t.set(r, s); + for (const [r, e] of this[x(1686)][x(2273)]) { + const s = t[x(674)](r) || []; + s[x(3062)](e), t[x(780)](r, s); } return t; } - [a(963)]() { - const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(534)](), n = (i, c) => { - const d = x; - if (e[d(2239)](i)) { - const l = c[d(1316)](i), f = c[d(2527)](l)[d(653)](i); - return t[d(816)](d(2850) + f[d(952)](d(603))), !0; + [a(2200)]() { + const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(2822)](), n = (i, c) => { + const u = x; + if (e[u(2348)](i)) { + const l = c.indexOf(i), d = c[u(1387)](l)[u(2700)](i); + return t[u(3062)]("Cycle detected: " + d[u(1592)](u(3055))), !0; } if (r.has(i)) return !1; - r[d(1604)](i), e[d(1604)](i); - const u = s.get(i) || []; - for (const l of u) + r[u(1580)](i), e[u(1580)](i); + const f = s[u(674)](i) || []; + for (const l of f) if (n(l, [...c, i])) return !0; - return e[d(1239)](i), !1; + return e[u(875)](i), !1; }; - for (const i of Object[x(548)](this.definition[x(2066)])) - !r[x(2239)](i) && n(i, []); + for (const i of Object[x(2123)](this[x(1686)][x(669)])) + !r[x(2348)](i) && n(i, []); return { valid: t.length === 0, errors: t }; } - buildAdjacencyList() { + [a(1804)]() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object[x(548)](this.definition[x(2066)])) - t[x(2454)](r, []); - for (const [r, e] of this[x(1118)][x(2739)]) { + for (const r of Object[x(2123)](this[x(1686)][x(669)])) + t[x(780)](r, []); + for (const [r, e] of this[x(1686)][x(2273)]) { const s = t.get(r) || []; - s.push(e), t[x(2454)](r, s); - const n = t[x(2620)](e) || []; - n.push(r), t[x(2454)](e, n); + s[x(3062)](e), t[x(780)](r, s); + const n = t[x(674)](e) || []; + n[x(3062)](r), t[x(780)](e, n); } return t; } - getNeighbors(x) { - return this[a(1795)]().get(x) || []; - } - [a(2328)](x) { + [a(710)](x) { const t = a; - return this[t(1118)][t(2066)][x]; + return this.buildAdjacencyList()[t(674)](x) || []; } - [a(2823)]() { + [a(1316)](x) { + const t = a; + return this.definition[t(669)][x]; + } + [a(681)]() { const x = a; - return Object.keys(this[x(1118)][x(2066)]); + return Object[x(2123)](this.definition[x(669)]); } - [a(923)](x, t) { + [a(1070)](x, t) { const r = a; - return this[r(1118)][r(2739)][r(445)](([e, s]) => e === x && s === t || e === t && s === x); + return this.definition.edges[r(2172)](([e, s]) => e === x && s === t || e === t && s === x); } - findPath(x, t) { + [a(1395)](x, t) { const r = a; if (x === t) return [x]; - const e = this[r(1795)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); - for (; s.length > 0; ) { - const { nodeId: i, path: c } = s[r(613)](); - if (n[r(2239)](i)) continue; - if (n[r(1604)](i), i === t) return c; - const d = e[r(2620)](i) || []; - for (const u of d) - !n[r(2239)](u) && s.push({ nodeId: u, path: [...c, u] }); + const e = this[r(1804)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); + for (; s[r(2710)] > 0; ) { + const { nodeId: i, path: c } = s[r(1263)](); + if (n[r(2348)](i)) continue; + if (n[r(1580)](i), i === t) return c; + const u = e[r(674)](i) || []; + for (const f of u) + !n[r(2348)](f) && s[r(3062)]({ nodeId: f, path: [...c, f] }); } return null; } - [a(2949)](x, t) { - return this[a(1231)](x, t) !== null; + hasPath(x, t) { + return this[a(1395)](x, t) !== null; } - [a(1808)]() { + [a(1857)]() { return { ...this.definition }; } } const Ca = (o) => { let x; - const t = /* @__PURE__ */ new Set(), r = (d, u) => { - const l = K, f = typeof d === l(2855) ? d(x) : d; - if (!Object.is(f, x)) { - const b = x; - x = u ?? (typeof f !== l(2517) || f === null) ? f : Object[l(1841)]({}, x, f), t[l(1548)]((h) => h(x, b)); + const t = /* @__PURE__ */ new Set(), r = (u, f) => { + const l = K, d = typeof u === l(1936) ? u(x) : u; + if (!Object.is(d, x)) { + const g = x; + x = f ?? (typeof d !== l(1304) || d === null) ? d : Object[l(661)]({}, x, d), t[l(2617)]((h) => h(x, g)); } - }, e = () => x, s = () => c, n = (d) => { - const u = K; - return t.add(d), () => t[u(1239)](d); + }, e = () => x, s = () => c, n = (u) => { + const f = K; + return t.add(u), () => t[f(875)](u); }, i = { setState: r, getState: e, getInitialState: s, subscribe: n }, c = x = o(r, e, i); return i; -}, Bn = (o) => o ? Ca(o) : Ca; -var qe; +}, zn = (o) => o ? Ca(o) : Ca; +var Ne; (function(o) { const x = a; - o[x(1125)] = (s) => { + o[x(1133)] = (s) => { }; function t(s) { } - o[x(1293)] = t; + o[x(1809)] = t; function r(s) { throw new Error(); } - o[x(696)] = r, o[x(1910)] = (s) => { + o[x(1034)] = r, o[x(692)] = (s) => { const n = {}; for (const i of s) n[i] = i; return n; - }, o[x(944)] = (s) => { - const n = x, i = o.objectKeys(s).filter((d) => typeof s[s[d]] !== n(1730)), c = {}; - for (const d of i) - c[d] = s[d]; - return o[n(3070)](c); - }, o.objectValues = (s) => o[x(2656)](s).map(function(i) { - return s[i]; - }), o[x(2656)] = typeof Object[x(548)] === x(2855) ? (s) => Object.keys(s) : (s) => { + }, o[x(1256)] = (s) => { + const n = x, i = o[n(2493)](s)[n(2581)]((u) => typeof s[s[u]] !== n(2665)), c = {}; + for (const u of i) + c[u] = s[u]; + return o.objectValues(c); + }, o.objectValues = (s) => { + const n = x; + return o[n(2493)](s)[n(1930)](function(i) { + return s[i]; + }); + }, o[x(2493)] = typeof Object[x(2123)] === x(1936) ? (s) => Object[x(2123)](s) : (s) => { const n = x, i = []; for (const c in s) - Object[n(560)][n(938)][n(1175)](s, c) && i[n(816)](c); + Object.prototype[n(1315)][n(1522)](s, c) && i.push(c); return i; - }, o[x(1801)] = (s, n) => { + }, o[x(3146)] = (s, n) => { for (const i of s) if (n(i)) return i; - }, o.isInteger = typeof Number[x(2510)] === x(2855) ? (s) => Number[x(2510)](s) : (s) => typeof s === x(1730) && Number.isFinite(s) && Math[x(878)](s) === s; - function e(s, n = x(2448)) { + }, o[x(2534)] = typeof Number[x(2534)] === x(1936) ? (s) => Number.isInteger(s) : (s) => typeof s === x(2665) && Number.isFinite(s) && Math.floor(s) === s; + function e(s, n = x(1512)) { const i = x; - return s.map((c) => typeof c === i(1443) ? "'" + c + "'" : c).join(n); + return s[i(1930)]((c) => typeof c === i(1361) ? "'" + c + "'" : c).join(n); } - o.joinValues = e, o[x(692)] = (s, n) => typeof n === x(1540) ? n.toString() : n; -})(qe || (qe = {})); -var Ra; + o[x(2768)] = e, o.jsonStringifyReplacer = (s, n) => { + const i = x; + return typeof n === i(3242) ? n[i(2732)]() : n; + }; +})(Ne || (Ne = {})); +var _a; (function(o) { const x = a; - o[x(1790)] = (t, r) => ({ ...t, ...r }); -})(Ra || (Ra = {})); -const ae = qe[a(1910)]([a(1443), a(2184), "number", "integer", "float", a(1964), "date", "bigint", a(1189), a(2855), a(1691), "null", a(1517), "object", a(543), "promise", a(2003), a(2631), "map", a(2454)]), I0 = (o) => { + o[x(2969)] = (t, r) => ({ ...t, ...r }); +})(_a || (_a = {})); +const ae = Ne.arrayToEnum([a(1361), a(1220), a(2665), a(766), a(2863), a(3106), a(1591), a(3242), a(1698), a(1936), "undefined", a(1959), a(529), a(1304), "unknown", a(810), a(1123), "never", a(1930), "set"]), E0 = (o) => { const x = a; switch (typeof o) { - case x(1691): + case x(993): return ae.undefined; - case x(1443): - return ae[x(1443)]; - case x(1730): - return Number[x(1497)](o) ? ae[x(2184)] : ae[x(1730)]; - case x(1964): - return ae[x(1964)]; - case x(2855): - return ae[x(2855)]; - case "bigint": - return ae[x(1540)]; - case x(1189): - return ae[x(1189)]; - case x(2517): - return Array[x(2573)](o) ? ae[x(1517)] : o === null ? ae.null : o[x(857)] && typeof o[x(857)] == "function" && o[x(1508)] && typeof o[x(1508)] === x(2855) ? ae[x(545)] : typeof Map !== x(1691) && o instanceof Map ? ae[x(1429)] : typeof Set !== x(1691) && o instanceof Set ? ae[x(2454)] : typeof Date < "u" && o instanceof Date ? ae.date : ae[x(2517)]; + case x(1361): + return ae[x(1361)]; + case x(2665): + return Number.isNaN(o) ? ae[x(1220)] : ae[x(2665)]; + case x(3106): + return ae[x(3106)]; + case x(1936): + return ae[x(1936)]; + case x(3242): + return ae[x(3242)]; + case "symbol": + return ae[x(1698)]; + case "object": + return Array[x(3255)](o) ? ae[x(529)] : o === null ? ae[x(1959)] : o[x(2517)] && typeof o[x(2517)] === x(1936) && o[x(742)] && typeof o[x(742)] === x(1936) ? ae[x(810)] : typeof Map !== x(993) && o instanceof Map ? ae[x(1930)] : typeof Set < "u" && o instanceof Set ? ae[x(780)] : typeof Date !== x(993) && o instanceof Date ? ae.date : ae[x(1304)]; default: - return ae[x(543)]; + return ae[x(1440)]; } -}, Z = qe[a(1910)]([a(1947), a(1884), "custom", a(1967), a(1074), a(1207), a(1188), a(935), a(2326), a(1877), a(2128), a(2302), "too_big", a(2685), a(1826), a(2358)]); -class k0 extends Error { - get [a(2311)]() { - return this[a(1989)]; +}, Z = Ne[a(692)]([a(2421), a(1703), "custom", a(1572), "invalid_union_discriminator", "invalid_enum_value", a(1825), "invalid_arguments", a(765), a(1869), "invalid_string", "too_small", a(1305), a(1998), "not_multiple_of", a(2546)]); +class P0 extends Error { + get [a(2800)]() { + return this[a(908)]; } constructor(x) { const t = a; - super(), this[t(1989)] = [], this[t(2643)] = (e) => { - this.issues = [...this.issues, e]; - }, this[t(1414)] = (e = []) => { + super(), this.issues = [], this.addIssue = (e) => { + const s = K; + this[s(908)] = [...this[s(908)], e]; + }, this[t(2258)] = (e = []) => { const s = t; - this[s(1989)] = [...this[s(1989)], ...e]; + this.issues = [...this[s(908)], ...e]; }; const r = new.target.prototype; - Object[t(784)] ? Object[t(784)](this, r) : this[t(888)] = r, this.name = t(2625), this.issues = x; + Object[t(2109)] ? Object[t(2109)](this, r) : this.__proto__ = r, this[t(2641)] = t(3054), this[t(908)] = x; } - [a(1918)](x) { + [a(802)](x) { const t = x || function(s) { - return s[K(2732)]; + return s[K(1044)]; }, r = { _errors: [] }, e = (s) => { const n = K; - for (const i of s[n(1989)]) - if (i[n(3068)] === n(1967)) i[n(590)][n(1429)](e); - else if (i[n(3068)] === n(2326)) e(i[n(2120)]); - else if (i[n(3068)] === n(935)) e(i[n(2830)]); - else if (i.path[n(2910)] === 0) r[n(701)][n(816)](t(i)); + for (const i of s.issues) + if (i[n(2427)] === n(1572)) i.unionErrors[n(1930)](e); + else if (i[n(2427)] === "invalid_return_type") e(i[n(517)]); + else if (i[n(2427)] === n(2252)) e(i[n(1375)]); + else if (i[n(2474)][n(2710)] === 0) r[n(1613)][n(3062)](t(i)); else { - let c = r, d = 0; - for (; d < i.path[n(2910)]; ) { - const u = i.path[d]; - d === i[n(2075)][n(2910)] - 1 ? (c[u] = c[u] || { _errors: [] }, c[u][n(701)].push(t(i))) : c[u] = c[u] || { _errors: [] }, c = c[u], d++; + let c = r, u = 0; + for (; u < i.path[n(2710)]; ) { + const f = i[n(2474)][u]; + u === i[n(2474)][n(2710)] - 1 ? (c[f] = c[f] || { _errors: [] }, c[f][n(1613)][n(3062)](t(i))) : c[f] = c[f] || { _errors: [] }, c = c[f], u++; } } }; return e(this), r; } - static [a(2667)](x) { + static [a(2746)](x) { const t = a; - if (!(x instanceof k0)) throw new Error(t(2537) + x); + if (!(x instanceof P0)) throw new Error(t(1702) + x); } - [a(1725)]() { + [a(2732)]() { return this.message; } - get message() { - return JSON.stringify(this[a(1989)], qe.jsonStringifyReplacer, 2); - } - get [a(2388)]() { + get [a(1044)]() { const x = a; - return this[x(1989)][x(2910)] === 0; + return JSON[x(1031)](this[x(908)], Ne[x(2161)], 2); } - [a(2902)](x = (t) => t[a(2732)]) { + get [a(509)]() { + const x = a; + return this[x(908)][x(2710)] === 0; + } + [a(2343)](x = (t) => t[a(1044)]) { const t = a, r = {}, e = []; - for (const s of this[t(1989)]) - if (s[t(2075)].length > 0) { + for (const s of this[t(908)]) + if (s[t(2474)][t(2710)] > 0) { const n = s.path[0]; - r[n] = r[n] || [], r[n][t(816)](x(s)); - } else e[t(816)](x(s)); + r[n] = r[n] || [], r[n].push(x(s)); + } else e[t(3062)](x(s)); return { formErrors: e, fieldErrors: r }; } get formErrors() { - return this[a(2902)](); + return this[a(2343)](); } } -k0[a(1468)] = (o) => new k0(o); +P0.create = (o) => new P0(o); const Ut = (o, x) => { const t = a; let r; - switch (o[t(3068)]) { - case Z.invalid_type: - o[t(942)] === ae[t(1691)] ? r = t(1300) : r = t(1866) + o.expected + t(3071) + o.received; + switch (o[t(2427)]) { + case Z[t(2421)]: + o[t(1412)] === ae[t(993)] ? r = t(3230) : r = t(1633) + o[t(1598)] + t(762) + o[t(1412)]; break; - case Z[t(1884)]: - r = t(1861) + JSON[t(1749)](o.expected, qe.jsonStringifyReplacer); + case Z.invalid_literal: + r = t(758) + JSON.stringify(o[t(1598)], Ne[t(2161)]); break; case Z.unrecognized_keys: - r = t(2541) + qe[t(1867)](o[t(548)], ", "); + r = t(1802) + Ne.joinValues(o.keys, ", "); break; - case Z[t(1967)]: - r = t(1915); + case Z.invalid_union: + r = t(2380); break; - case Z[t(1074)]: - r = t(1837) + qe[t(1867)](o[t(961)]); + case Z.invalid_union_discriminator: + r = t(2972) + Ne[t(2768)](o.options); break; - case Z[t(1207)]: - r = t(530) + qe[t(1867)](o[t(961)]) + t(1431) + o.received + "'"; + case Z[t(1065)]: + r = t(978) + Ne[t(2768)](o[t(2876)]) + t(1884) + o[t(1412)] + "'"; break; - case Z[t(935)]: - r = t(1972); + case Z[t(2252)]: + r = t(2360); break; - case Z[t(2326)]: - r = t(1079); + case Z[t(765)]: + r = t(1658); break; - case Z[t(1877)]: - r = t(1235); + case Z[t(1869)]: + r = t(2243); break; - case Z[t(2128)]: - typeof o.validation === t(2517) ? "includes" in o.validation ? (r = 'Invalid input: must include "' + o[t(2995)].includes + '"', typeof o[t(2995)][t(635)] === t(1730) && (r = r + " at one or more positions greater than or equal to " + o[t(2995)][t(635)])) : t(1904) in o.validation ? r = t(845) + o.validation[t(1904)] + '"' : t(770) in o[t(2995)] ? r = t(1732) + o[t(2995)][t(770)] + '"' : qe.assertNever(o.validation) : o[t(2995)] !== t(3019) ? r = "Invalid " + o[t(2995)] : r = "Invalid"; + case Z[t(893)]: + typeof o.validation == "object" ? t(2978) in o.validation ? (r = t(2333) + o[t(2183)].includes + '"', typeof o.validation[t(1293)] === t(2665) && (r = r + t(1812) + o[t(2183)][t(1293)])) : t(760) in o[t(2183)] ? r = t(1029) + o.validation[t(760)] + '"' : t(1826) in o[t(2183)] ? r = 'Invalid input: must end with "' + o[t(2183)][t(1826)] + '"' : Ne.assertNever(o[t(2183)]) : o[t(2183)] !== t(2338) ? r = t(2767) + o[t(2183)] : r = t(2283); break; - case Z[t(2302)]: - o.type === "array" ? r = t(1943) + (o[t(1304)] ? t(1762) : o[t(797)] ? t(1106) : "more than") + " " + o[t(2242)] + " element(s)" : o[t(506)] === t(1443) ? r = "String must contain " + (o[t(1304)] ? t(1762) : o[t(797)] ? "at least" : t(3003)) + " " + o.minimum + t(1869) : o[t(506)] === t(1730) ? r = t(1627) + (o[t(1304)] ? t(1689) : o[t(797)] ? t(2090) : "greater than ") + o.minimum : o[t(506)] === "bigint" ? r = t(1627) + (o[t(1304)] ? t(1689) : o[t(797)] ? t(2090) : t(1260)) + o[t(2242)] : o[t(506)] === t(1457) ? r = t(1330) + (o[t(1304)] ? "exactly equal to " : o[t(797)] ? t(2090) : t(1260)) + new Date(Number(o[t(2242)])) : r = "Invalid input"; + case Z[t(2724)]: + o[t(2076)] === t(529) ? r = t(3128) + (o.exact ? "exactly" : o[t(2068)] ? t(1526) : "more than") + " " + o[t(2226)] + t(1568) : o[t(2076)] === t(1361) ? r = t(1625) + (o[t(2579)] ? "exactly" : o[t(2068)] ? t(1526) : "over") + " " + o.minimum + " character(s)" : o[t(2076)] === t(2665) ? r = "Number must be " + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : t(923)) + o[t(2226)] : o[t(2076)] === t(3242) ? r = t(2852) + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : "greater than ") + o[t(2226)] : o[t(2076)] === t(1591) ? r = t(2626) + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : t(923)) + new Date(Number(o[t(2226)])) : r = t(2380); break; - case Z[t(554)]: - o.type === t(1517) ? r = t(1943) + (o.exact ? t(1762) : o[t(797)] ? t(747) : t(1273)) + " " + o[t(2793)] + t(1177) : o[t(506)] === t(1443) ? r = t(2095) + (o[t(1304)] ? t(1762) : o[t(797)] ? t(747) : t(1147)) + " " + o[t(2793)] + " character(s)" : o[t(506)] === t(1730) ? r = t(1627) + (o[t(1304)] ? "exactly" : o[t(797)] ? "less than or equal to" : t(1273)) + " " + o[t(2793)] : o[t(506)] === t(1540) ? r = t(2316) + (o[t(1304)] ? t(1762) : o[t(797)] ? t(1502) : "less than") + " " + o[t(2793)] : o[t(506)] === t(1457) ? r = t(1330) + (o.exact ? t(1762) : o.inclusive ? t(3043) : t(2756)) + " " + new Date(Number(o.maximum)) : r = "Invalid input"; + case Z.too_big: + o.type === t(529) ? r = t(3128) + (o[t(2579)] ? t(1192) : o[t(2068)] ? "at most" : t(721)) + " " + o.maximum + t(1568) : o[t(2076)] === t(1361) ? r = "String must contain " + (o.exact ? t(1192) : o[t(2068)] ? t(2912) : "under") + " " + o.maximum + " character(s)" : o[t(2076)] === "number" ? r = "Number must be " + (o[t(2579)] ? t(1192) : o[t(2068)] ? "less than or equal to" : "less than") + " " + o[t(631)] : o[t(2076)] === t(3242) ? r = "BigInt must be " + (o.exact ? t(1192) : o[t(2068)] ? t(3249) : "less than") + " " + o[t(631)] : o[t(2076)] === t(1591) ? r = t(2626) + (o[t(2579)] ? t(1192) : o.inclusive ? t(3017) : "smaller than") + " " + new Date(Number(o[t(631)])) : r = "Invalid input"; break; - case Z[t(899)]: - r = t(1915); + case Z[t(1618)]: + r = t(2380); break; case Z.invalid_intersection_types: - r = t(1681); + r = "Intersection results could not be merged"; break; - case Z[t(1826)]: - r = t(2929) + o[t(2570)]; + case Z[t(2267)]: + r = t(1168) + o[t(2798)]; break; - case Z[t(2358)]: - r = "Number must be finite"; + case Z[t(2546)]: + r = t(2379); break; default: - r = x.defaultError, qe[t(696)](o); + r = x[t(2272)], Ne[t(1034)](o); } return { message: r }; }; -let Zn = Ut; -function Wn() { - return Zn; +let Hn = Ut; +function Vn() { + return Hn; } -const Kn = (o) => { - const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(2075)] || []], i = { ...s, path: n }; - if (s[x(2732)] !== void 0) return { ...s, path: n, message: s[x(2732)] }; +const Bn = (o) => { + const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(2474)] || []], i = { ...s, path: n }; + if (s.message !== void 0) return { ...s, path: n, message: s[x(1044)] }; let c = ""; - const d = e[x(2951)]((u) => !!u).slice()[x(2055)](); - for (const u of d) - c = u(i, { data: t, defaultError: c })[x(2732)]; + const u = e.filter((f) => !!f)[x(1387)]()[x(2462)](); + for (const f of u) + c = f(i, { data: t, defaultError: c }).message; return { ...s, path: n, message: c }; }; -function X(o, x) { - const t = a, r = Wn(), e = Kn({ issueData: x, data: o[t(571)], path: o[t(2075)], errorMaps: [o[t(1037)].contextualErrorMap, o[t(1099)], r, r === Ut ? void 0 : Ut][t(2951)]((s) => !!s) }); - o.common[t(1989)][t(816)](e); +function ee(o, x) { + const t = a, r = Vn(), e = Bn({ issueData: x, data: o[t(2663)], path: o[t(2474)], errorMaps: [o[t(1281)][t(2896)], o[t(2208)], r, r === Ut ? void 0 : Ut][t(2581)]((s) => !!s) }); + o[t(1281)][t(908)][t(3062)](e); } class e0 { constructor() { + this.value = "valid"; + } + [a(2329)]() { const x = a; - this[x(2398)] = x(1694); + this[x(2446)] === x(1122) && (this.value = "dirty"); } - [a(2906)]() { - this[a(2398)] === "valid" && (this.value = "dirty"); - } - [a(1973)]() { + [a(1158)]() { const x = a; - this[x(2398)] !== x(930) && (this[x(2398)] = x(930)); + this[x(2446)] !== "aborted" && (this[x(2446)] = x(896)); } - static [a(2314)](x, t) { + static [a(1141)](x, t) { const r = a, e = []; for (const s of t) { - if (s[r(735)] === "aborted") return he; - s.status === r(2906) && x[r(2906)](), e[r(816)](s[r(2398)]); + if (s.status === r(896)) return he; + s.status === r(2329) && x.dirty(), e[r(3062)](s[r(2446)]); } - return { status: x[r(2398)], value: e }; + return { status: x[r(2446)], value: e }; } - static async [a(1535)](x, t) { + static async [a(3003)](x, t) { const r = a, e = []; for (const s of t) { - const n = await s.key, i = await s[r(2398)]; - e.push({ key: n, value: i }); + const n = await s[r(480)], i = await s.value; + e[r(3062)]({ key: n, value: i }); } return e0.mergeObjectSync(x, e); } - static [a(2463)](x, t) { + static [a(3048)](x, t) { const r = a, e = {}; for (const s of t) { const { key: n, value: i } = s; - if (n[r(735)] === r(930) || i[r(735)] === r(930)) return he; - n[r(735)] === r(2906) && x[r(2906)](), i[r(735)] === "dirty" && x[r(2906)](), n[r(2398)] !== "__proto__" && (typeof i[r(2398)] !== r(1691) || s[r(995)]) && (e[n[r(2398)]] = i[r(2398)]); + if (n.status === "aborted" || i[r(1227)] === "aborted") return he; + n.status === "dirty" && x[r(2329)](), i[r(1227)] === r(2329) && x.dirty(), n[r(2446)] !== r(1134) && (typeof i[r(2446)] !== r(993) || s[r(2643)]) && (e[n.value] = i.value); } - return { status: x[r(2398)], value: e }; + return { status: x[r(2446)], value: e }; } } -const he = Object[a(2534)]({ status: a(930) }), Q0 = (o) => ({ status: a(2906), value: o }), a0 = (o) => ({ status: a(1694), value: o }), Fa = (o) => o[a(735)] === a(930), Na = (o) => o[a(735)] === a(2906), V0 = (o) => o[a(735)] === a(1694), bx = (o) => typeof Promise !== a(1691) && o instanceof Promise; +const he = Object.freeze({ status: "aborted" }), X0 = (o) => ({ status: a(2329), value: o }), a0 = (o) => ({ status: a(1122), value: o }), Fa = (o) => o.status === a(896), Ta = (o) => o[a(1227)] === a(2329), V0 = (o) => o[a(1227)] === a(1122), gx = (o) => typeof Promise !== a(993) && o instanceof Promise; var ne; (function(o) { const x = a; - o[x(1770)] = (t) => typeof t == "string" ? { message: t } : t || {}, o.toString = (t) => typeof t === x(1443) ? t : t == null ? void 0 : t[x(2732)]; + o[x(1892)] = (t) => typeof t == "string" ? { message: t } : t || {}, o[x(2732)] = (t) => typeof t === x(1361) ? t : t == null ? void 0 : t.message; })(ne || (ne = {})); class p0 { constructor(x, t, r, e) { const s = a; - this[s(505)] = [], this[s(698)] = x, this[s(571)] = t, this[s(2303)] = r, this[s(2478)] = e; + this._cachedPath = [], this[s(2366)] = x, this.data = t, this[s(2953)] = r, this._key = e; } - get [a(2075)]() { + get path() { const x = a; - return !this[x(505)].length && (Array[x(2573)](this._key) ? this[x(505)].push(...this[x(2303)], ...this[x(2478)]) : this._cachedPath.push(...this._path, this[x(2478)])), this._cachedPath; + return !this._cachedPath[x(2710)] && (Array[x(3255)](this[x(1084)]) ? this[x(1571)][x(3062)](...this[x(2953)], ...this[x(1084)]) : this[x(1571)][x(3062)](...this[x(2953)], this[x(1084)])), this[x(1571)]; } } -const qa = (o, x) => { +const Na = (o, x) => { const t = a; - if (V0(x)) return { success: !0, data: x[t(2398)] }; - if (!o[t(1037)][t(1989)][t(2910)]) throw new Error(t(1649)); + if (V0(x)) return { success: !0, data: x[t(2446)] }; + if (!o[t(1281)][t(908)][t(2710)]) throw new Error(t(1092)); return { success: !1, get error() { const r = t; - if (this[r(1058)]) return this[r(1058)]; - const e = new k0(o.common.issues); - return this._error = e, this[r(1058)]; + if (this[r(2697)]) return this._error; + const e = new P0(o[r(1281)][r(908)]); + return this._error = e, this._error; } }; }; -function ye(o) { +function ve(o) { const x = a; if (!o) return {}; const { errorMap: t, invalid_type_error: r, required_error: e, description: s } = o; - if (t && (r || e)) throw new Error(x(2054)); + if (t && (r || e)) throw new Error(x(806)); return t ? { errorMap: t, description: s } : { errorMap: (i, c) => { - const d = x, { message: u } = o; - return i.code === d(1207) ? { message: u ?? c[d(984)] } : typeof c[d(571)] === d(1691) ? { message: u ?? e ?? c[d(984)] } : i.code !== d(1947) ? { message: c[d(984)] } : { message: u ?? r ?? c[d(984)] }; + const u = x, { message: f } = o; + return i[u(2427)] === u(1065) ? { message: f ?? c[u(2272)] } : typeof c.data === u(993) ? { message: f ?? e ?? c[u(2272)] } : i.code !== "invalid_type" ? { message: c.defaultError } : { message: f ?? r ?? c.defaultError }; }, description: s }; } -class Ee { - get [a(852)]() { - const x = a; - return this._def[x(852)]; +class Ce { + get [a(541)]() { + return this[a(1575)].description; } - [a(2020)](x) { - return I0(x[a(571)]); + _getType(x) { + return E0(x[a(2663)]); } - _getOrReturnCtx(x, t) { + [a(3148)](x, t) { const r = a; - return t || { common: x[r(698)][r(1037)], data: x[r(571)], parsedType: I0(x.data), schemaErrorMap: this._def[r(3029)], path: x[r(2075)], parent: x[r(698)] }; + return t || { common: x[r(2366)].common, data: x.data, parsedType: E0(x[r(2663)]), schemaErrorMap: this._def[r(717)], path: x[r(2474)], parent: x.parent }; } - [a(1225)](x) { + [a(861)](x) { const t = a; - return { status: new e0(), ctx: { common: x[t(698)][t(1037)], data: x.data, parsedType: I0(x.data), schemaErrorMap: this._def[t(3029)], path: x[t(2075)], parent: x[t(698)] } }; + return { status: new e0(), ctx: { common: x[t(2366)][t(1281)], data: x[t(2663)], parsedType: E0(x.data), schemaErrorMap: this[t(1575)][t(717)], path: x[t(2474)], parent: x[t(2366)] } }; } - [a(1284)](x) { - const t = this._parse(x); - if (bx(t)) throw new Error("Synchronous parse encountered promise."); - return t; + [a(2308)](x) { + const t = a, r = this[t(1585)](x); + if (gx(r)) throw new Error(t(1822)); + return r; } - [a(2893)](x) { - const t = a, r = this[t(1948)](x); - return Promise[t(510)](r); + [a(2909)](x) { + const t = a, r = this[t(1585)](x); + return Promise[t(2457)](r); } - parse(x, t) { - const r = a, e = this[r(3031)](x, t); - if (e[r(1472)]) return e[r(571)]; - throw e[r(1493)]; + [a(2774)](x, t) { + const r = a, e = this.safeParse(x, t); + if (e.success) return e[r(2663)]; + throw e[r(490)]; } - [a(3031)](x, t) { - const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(372)]) ?? !1, contextualErrorMap: t == null ? void 0 : t[r(3029)] }, path: (t == null ? void 0 : t[r(2075)]) || [], schemaErrorMap: this._def[r(3029)], parent: null, data: x, parsedType: I0(x) }, s = this[r(1284)]({ data: x, path: e[r(2075)], parent: e }); - return qa(e, s); + [a(3098)](x, t) { + const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(2416)]) ?? !1, contextualErrorMap: t == null ? void 0 : t.errorMap }, path: (t == null ? void 0 : t[r(2474)]) || [], schemaErrorMap: this[r(1575)].errorMap, parent: null, data: x, parsedType: E0(x) }, s = this._parseSync({ data: x, path: e[r(2474)], parent: e }); + return Na(e, s); } - [a(1387)](x) { + [a(877)](x) { var e, s; - const t = a, r = { common: { issues: [], async: !!this[t(1277)].async }, path: [], schemaErrorMap: this._def.errorMap, parent: null, data: x, parsedType: I0(x) }; - if (!this["~standard"][t(372)]) try { - const n = this[t(1284)]({ data: x, path: [], parent: r }); - return V0(n) ? { value: n[t(2398)] } : { issues: r[t(1037)][t(1989)] }; + const t = a, r = { common: { issues: [], async: !!this[t(859)][t(2416)] }, path: [], schemaErrorMap: this[t(1575)][t(717)], parent: null, data: x, parsedType: E0(x) }; + if (!this[t(859)].async) try { + const n = this[t(2308)]({ data: x, path: [], parent: r }); + return V0(n) ? { value: n[t(2446)] } : { issues: r[t(1281)].issues }; } catch (n) { - (s = (e = n == null ? void 0 : n.message) == null ? void 0 : e[t(2071)]()) != null && s.includes("encountered") && (this["~standard"][t(372)] = !0), r[t(1037)] = { issues: [], async: !0 }; + (s = (e = n == null ? void 0 : n[t(1044)]) == null ? void 0 : e.toLowerCase()) != null && s[t(2978)](t(628)) && (this[t(859)].async = !0), r.common = { issues: [], async: !0 }; } - return this[t(2893)]({ data: x, path: [], parent: r })[t(857)]((n) => V0(n) ? { value: n[t(2398)] } : { issues: r[t(1037)].issues }); + return this[t(2909)]({ data: x, path: [], parent: r }).then((n) => V0(n) ? { value: n[t(2446)] } : { issues: r[t(1281)].issues }); } - async [a(436)](x, t) { - const r = a, e = await this[r(2942)](x, t); - if (e.success) return e[r(571)]; - throw e[r(1493)]; + async [a(2237)](x, t) { + const r = a, e = await this[r(755)](x, t); + if (e[r(3031)]) return e[r(2663)]; + throw e[r(490)]; } - async safeParseAsync(x, t) { - const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t[r(3029)], async: !0 }, path: (t == null ? void 0 : t[r(2075)]) || [], schemaErrorMap: this[r(594)][r(3029)], parent: null, data: x, parsedType: I0(x) }, s = this._parse({ data: x, path: e[r(2075)], parent: e }), n = await (bx(s) ? s : Promise[r(510)](s)); - return qa(e, n); + async [a(755)](x, t) { + const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t[r(717)], async: !0 }, path: (t == null ? void 0 : t.path) || [], schemaErrorMap: this[r(1575)][r(717)], parent: null, data: x, parsedType: E0(x) }, s = this[r(1585)]({ data: x, path: e[r(2474)], parent: e }), n = await (gx(s) ? s : Promise[r(2457)](s)); + return Na(e, n); } - [a(2251)](x, t) { - const r = (e) => { - const s = K; - return typeof t === s(1443) || typeof t === s(1691) ? { message: t } : typeof t === s(2855) ? t(e) : t; + refine(x, t) { + const r = a, e = (s) => { + const n = K; + return typeof t === n(1361) || typeof t === n(993) ? { message: t } : typeof t === n(1936) ? t(s) : t; }; - return this._refinement((e, s) => { - const n = K, i = x(e), c = () => s[n(2643)]({ code: Z.custom, ...r(e) }); - return typeof Promise !== n(1691) && i instanceof Promise ? i[n(857)]((d) => d ? !0 : (c(), !1)) : i ? !0 : (c(), !1); + return this[r(3129)]((s, n) => { + const i = r, c = x(s), u = () => n[i(1910)]({ code: Z.custom, ...e(s) }); + return typeof Promise !== i(993) && c instanceof Promise ? c[i(2517)]((f) => f ? !0 : (u(), !1)) : c ? !0 : (u(), !1); }); } - [a(2585)](x, t) { - const r = a; - return this[r(1094)]((e, s) => { - const n = r; - return x(e) ? !0 : (s[n(2643)](typeof t === n(2855) ? t(e, s) : t), !1); + refinement(x, t) { + return this._refinement((r, e) => { + const s = K; + return x(r) ? !0 : (e[s(1910)](typeof t === s(1936) ? t(r, e) : t), !1); }); } - _refinement(x) { + [a(3129)](x) { const t = a; - return new A0({ schema: this, typeName: pe[t(2523)], effect: { type: t(2585), refinement: x } }); + return new N0({ schema: this, typeName: pe[t(1621)], effect: { type: t(2100), refinement: x } }); } - [a(1566)](x) { - return this[a(1094)](x); + [a(957)](x) { + return this._refinement(x); } constructor(x) { const t = a; - this[t(1230)] = this[t(2942)], this[t(594)] = x, this[t(1584)] = this.parse[t(2381)](this), this[t(3031)] = this[t(3031)][t(2381)](this), this.parseAsync = this[t(436)].bind(this), this[t(2942)] = this[t(2942)][t(2381)](this), this[t(1230)] = this[t(1230)].bind(this), this[t(2251)] = this.refine.bind(this), this[t(2585)] = this[t(2585)][t(2381)](this), this.superRefine = this.superRefine[t(2381)](this), this[t(1712)] = this.optional[t(2381)](this), this[t(2259)] = this[t(2259)][t(2381)](this), this[t(2025)] = this[t(2025)][t(2381)](this), this[t(1517)] = this[t(1517)].bind(this), this[t(545)] = this[t(545)].bind(this), this.or = this.or[t(2381)](this), this[t(2069)] = this[t(2069)].bind(this), this.transform = this[t(1564)][t(2381)](this), this[t(1290)] = this[t(1290)][t(2381)](this), this.default = this[t(2889)].bind(this), this.catch = this[t(1508)].bind(this), this.describe = this[t(1145)].bind(this), this[t(1696)] = this[t(1696)][t(2381)](this), this.readonly = this.readonly[t(2381)](this), this[t(3044)] = this[t(3044)][t(2381)](this), this[t(2989)] = this[t(2989)][t(2381)](this), this["~standard"] = { version: 1, vendor: t(1305), validate: (r) => this[t(1387)](r) }; + this[t(812)] = this.safeParseAsync, this[t(1575)] = x, this.parse = this[t(2774)][t(1386)](this), this[t(3098)] = this.safeParse.bind(this), this[t(2237)] = this.parseAsync[t(1386)](this), this[t(755)] = this[t(755)].bind(this), this[t(812)] = this[t(812)][t(1386)](this), this[t(570)] = this[t(570)].bind(this), this.refinement = this[t(2100)][t(1386)](this), this[t(957)] = this.superRefine[t(1386)](this), this[t(2478)] = this[t(2478)][t(1386)](this), this[t(2644)] = this.nullable[t(1386)](this), this[t(1987)] = this[t(1987)][t(1386)](this), this[t(529)] = this[t(529)][t(1386)](this), this.promise = this[t(810)][t(1386)](this), this.or = this.or[t(1386)](this), this.and = this[t(1638)].bind(this), this[t(2450)] = this[t(2450)][t(1386)](this), this[t(2823)] = this[t(2823)][t(1386)](this), this.default = this[t(2485)][t(1386)](this), this[t(742)] = this[t(742)][t(1386)](this), this[t(3065)] = this[t(3065)][t(1386)](this), this[t(1514)] = this.pipe[t(1386)](this), this[t(1558)] = this[t(1558)][t(1386)](this), this[t(1015)] = this[t(1015)][t(1386)](this), this.isOptional = this[t(2275)].bind(this), this["~standard"] = { version: 1, vendor: t(1639), validate: (r) => this[t(877)](r) }; } - [a(1712)]() { - return w0.create(this, this._def); + [a(2478)]() { + return S0[a(1602)](this, this._def); } - [a(2259)]() { + [a(2644)]() { const x = a; - return j0[x(1468)](this, this[x(594)]); + return D0[x(1602)](this, this[x(1575)]); } - [a(2025)]() { + nullish() { const x = a; - return this.nullable()[x(1712)](); + return this[x(2644)]()[x(2478)](); } - [a(1517)]() { - return h0[a(1468)](this); + [a(529)]() { + return h0[a(1602)](this); } - [a(545)]() { + [a(810)]() { const x = a; - return kx[x(1468)](this, this[x(594)]); + return Ix[x(1602)](this, this[x(1575)]); } or(x) { const t = a; - return yx[t(1468)]([this, x], this[t(594)]); + return wx[t(1602)]([this, x], this[t(1575)]); } - [a(2069)](x) { + and(x) { const t = a; - return vx[t(1468)](this, x, this[t(594)]); + return Sx[t(1602)](this, x, this[t(1575)]); } - transform(x) { + [a(2450)](x) { const t = a; - return new A0({ ...ye(this._def), schema: this, typeName: pe.ZodEffects, effect: { type: t(1564), transform: x } }); + return new N0({ ...ve(this[t(1575)]), schema: this, typeName: pe[t(1621)], effect: { type: t(2450), transform: x } }); } - [a(2889)](x) { - const t = a, r = typeof x === t(2855) ? x : () => x; - return new Px({ ...ye(this[t(594)]), innerType: this, defaultValue: r, typeName: pe[t(2954)] }); + [a(2485)](x) { + const t = a, r = typeof x === t(1936) ? x : () => x; + return new Ex({ ...ve(this[t(1575)]), innerType: this, defaultValue: r, typeName: pe[t(3051)] }); } - brand() { + [a(2823)]() { const x = a; - return new Bs({ typeName: pe[x(2635)], type: this, ...ye(this[x(594)]) }); + return new Hs({ typeName: pe[x(1020)], type: this, ...ve(this[x(1575)]) }); } - [a(1508)](x) { - const t = a, r = typeof x === t(2855) ? x : () => x; - return new Ix({ ...ye(this._def), innerType: this, catchValue: r, typeName: pe[t(2698)] }); + [a(742)](x) { + const t = a, r = typeof x === t(1936) ? x : () => x; + return new Rx({ ...ve(this[t(1575)]), innerType: this, catchValue: r, typeName: pe[t(2521)] }); } - [a(1145)](x) { - const t = a, r = this.constructor; - return new r({ ...this[t(594)], description: x }); + [a(3065)](x) { + const t = a, r = this[t(2038)]; + return new r({ ...this._def, description: x }); } - [a(1696)](x) { + [a(1514)](x) { return oa.create(this, x); } - [a(1761)]() { - return Ex[a(1468)](this); + [a(1558)]() { + return Cx.create(this); } - [a(2989)]() { + [a(2275)]() { const x = a; - return this[x(3031)](void 0)[x(1472)]; + return this[x(3098)](void 0)[x(3031)]; } - isNullable() { + [a(1015)]() { const x = a; - return this[x(3031)](null)[x(1472)]; + return this[x(3098)](null)[x(3031)]; } } -const Gn = /^c[^\s-]{8,}$/i, Jn = /^[0-9a-z]+$/, Qn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Xn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Yn = /^[a-z0-9_-]{21}$/i, eo = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, xo = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, to = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, ao = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; -let $x; -const ro = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, so = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, no = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, oo = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, io = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, co = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Hs = a(493), uo = new RegExp("^" + Hs + "$"); -function zs(o) { +const Wn = /^c[^\s-]{8,}$/i, Zn = /^[0-9a-z]+$/, Kn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Gn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Jn = /^[a-z0-9_-]{21}$/i, Qn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Xn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Yn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, eo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; +let Ux; +const xo = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, to = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, ao = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, ro = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, so = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, no = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, $s = a(1303), oo = new RegExp("^" + $s + "$"); +function Us(o) { const x = a; let t = "[0-5]\\d"; - o[x(1713)] ? t = t + x(2720) + o.precision + "}" : o[x(1713)] == null && (t = t + x(2588)); - const r = o[x(1713)] ? "+" : "?"; - return x(1569) + t + ")" + r; + o.precision ? t = t + x(2051) + o[x(2394)] + "}" : o[x(2394)] == null && (t = t + x(2162)); + const r = o[x(2394)] ? "+" : "?"; + return x(2899) + t + ")" + r; } -function lo(o) { - return new RegExp("^" + zs(o) + "$"); +function io(o) { + return new RegExp("^" + Us(o) + "$"); } -function fo(o) { +function co(o) { const x = a; - let t = Hs + "T" + zs(o); + let t = $s + "T" + Us(o); const r = []; - return r[x(816)](o[x(968)] ? "Z?" : "Z"), o[x(2727)] && r[x(816)](x(1359)), t = t + "(" + r[x(952)]("|") + ")", new RegExp("^" + t + "$"); + return r[x(3062)](o[x(655)] ? "Z?" : "Z"), o.offset && r.push("([+-]\\d{2}:?\\d{2})"), t = t + "(" + r.join("|") + ")", new RegExp("^" + t + "$"); } -function ho(o, x) { - return !!((x === "v4" || !x) && ro.test(o) || (x === "v6" || !x) && no.test(o)); -} -function po(o, x) { +function uo(o, x) { const t = a; - if (!eo.test(o)) return !1; + return !!((x === "v4" || !x) && xo[t(2346)](o) || (x === "v6" || !x) && ao[t(2346)](o)); +} +function fo(o, x) { + const t = a; + if (!Qn[t(2346)](o)) return !1; try { - const [r] = o[t(1389)]("."); + const [r] = o.split("."); if (!r) return !1; - const e = r[t(1840)](/-/g, "+")[t(1840)](/_/g, "/").padEnd(r[t(2910)] + (4 - r[t(2910)] % 4) % 4, "="), s = JSON.parse(atob(e)); - return !(typeof s !== t(2517) || s === null || t(1565) in s && (s == null ? void 0 : s[t(1565)]) !== t(377) || !s[t(2101)] || x && s.alg !== x); + const e = r[t(1521)](/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r[t(2710)] % 4) % 4, "="), s = JSON.parse(atob(e)); + return !(typeof s !== t(1304) || s === null || t(2990) in s && (s == null ? void 0 : s[t(2990)]) !== t(843) || !s[t(627)] || x && s[t(627)] !== x); } catch { return !1; } } -function mo(o, x) { +function lo(o, x) { const t = a; - return !!((x === "v4" || !x) && so[t(2266)](o) || (x === "v6" || !x) && oo[t(2266)](o)); + return !!((x === "v4" || !x) && to[t(2346)](o) || (x === "v6" || !x) && ro[t(2346)](o)); } -class v0 extends Ee { - [a(1948)](x) { +class w0 extends Ce { + [a(1585)](x) { const t = a; - if (this[t(594)][t(2480)] && (x[t(571)] = String(x.data)), this[t(2020)](x) !== ae[t(1443)]) { - const n = this[t(556)](x); - return X(n, { code: Z[t(1947)], expected: ae[t(1443)], received: n[t(2966)] }), he; + if (this._def[t(1077)] && (x[t(2663)] = String(x[t(2663)])), this._getType(x) !== ae.string) { + const n = this[t(3148)](x); + return ee(n, { code: Z[t(2421)], expected: ae.string, received: n[t(3156)] }), he; } const e = new e0(); let s; - for (const n of this[t(594)][t(2078)]) - if (n[t(2566)] === t(2310)) x[t(571)][t(2910)] < n[t(2398)] && (s = this._getOrReturnCtx(x, s), X(s, { code: Z[t(2302)], minimum: n[t(2398)], type: t(1443), inclusive: !0, exact: !1, message: n[t(2732)] }), e[t(2906)]()); - else if (n.kind === t(544)) x[t(571)].length > n[t(2398)] && (s = this[t(556)](x, s), X(s, { code: Z[t(554)], maximum: n.value, type: t(1443), inclusive: !0, exact: !1, message: n[t(2732)] }), e.dirty()); - else if (n[t(2566)] === t(2910)) { - const i = x[t(571)][t(2910)] > n[t(2398)], c = x[t(571)][t(2910)] < n[t(2398)]; - (i || c) && (s = this[t(556)](x, s), i ? X(s, { code: Z[t(554)], maximum: n[t(2398)], type: "string", inclusive: !0, exact: !0, message: n.message }) : c && X(s, { code: Z.too_small, minimum: n[t(2398)], type: t(1443), inclusive: !0, exact: !0, message: n[t(2732)] }), e[t(2906)]()); - } else if (n[t(2566)] === t(2512)) !to[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(2512), code: Z.invalid_string, message: n.message }), e[t(2906)]()); - else if (n[t(2566)] === "emoji") !$x && ($x = new RegExp(ao, "u")), !$x[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(529), code: Z[t(2128)], message: n.message }), e.dirty()); - else if (n[t(2566)] === "uuid") !Xn.test(x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(1342), code: Z.invalid_string, message: n[t(2732)] }), e[t(2906)]()); - else if (n[t(2566)] === t(2017)) !Yn[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(2017), code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]()); - else if (n[t(2566)] === t(1935)) !Gn[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(1935), code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]()); - else if (n[t(2566)] === t(675)) !Jn[t(2266)](x.data) && (s = this[t(556)](x, s), X(s, { validation: t(675), code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]()); - else if (n[t(2566)] === t(1113)) !Qn[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: "ulid", code: Z[t(2128)], message: n.message }), e[t(2906)]()); - else if (n[t(2566)] === t(1998)) try { - new URL(x[t(571)]); + for (const n of this[t(1575)].checks) + if (n[t(1859)] === t(521)) x[t(2663)][t(2710)] < n.value && (s = this[t(3148)](x, s), ee(s, { code: Z[t(2724)], minimum: n[t(2446)], type: t(1361), inclusive: !0, exact: !1, message: n[t(1044)] }), e[t(2329)]()); + else if (n[t(1859)] === "max") x.data[t(2710)] > n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(1305)], maximum: n.value, type: t(1361), inclusive: !0, exact: !1, message: n.message }), e[t(2329)]()); + else if (n.kind === t(2710)) { + const i = x[t(2663)][t(2710)] > n[t(2446)], c = x[t(2663)][t(2710)] < n[t(2446)]; + (i || c) && (s = this[t(3148)](x, s), i ? ee(s, { code: Z[t(1305)], maximum: n[t(2446)], type: t(1361), inclusive: !0, exact: !0, message: n[t(1044)] }) : c && ee(s, { code: Z[t(2724)], minimum: n[t(2446)], type: t(1361), inclusive: !0, exact: !0, message: n[t(1044)] }), e[t(2329)]()); + } else if (n.kind === t(2255)) !Yn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2255), code: Z[t(893)], message: n[t(1044)] }), e.dirty()); + else if (n[t(1859)] === t(2738)) !Ux && (Ux = new RegExp(eo, "u")), !Ux[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: "emoji", code: Z.invalid_string, message: n[t(1044)] }), e.dirty()); + else if (n[t(1859)] === "uuid") !Gn.test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: "uuid", code: Z[t(893)], message: n[t(1044)] }), e.dirty()); + else if (n[t(1859)] === t(2031)) !Jn.test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2031), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); + else if (n[t(1859)] === t(1025)) !Wn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(1025), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); + else if (n[t(1859)] === "cuid2") !Zn.test(x[t(2663)]) && (s = this._getOrReturnCtx(x, s), ee(s, { validation: t(1130), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); + else if (n[t(1859)] === t(2035)) !Kn[t(2346)](x.data) && (s = this[t(3148)](x, s), ee(s, { validation: "ulid", code: Z[t(893)], message: n.message }), e[t(2329)]()); + else if (n[t(1859)] === "url") try { + new URL(x.data); } catch { - s = this[t(556)](x, s), X(s, { validation: "url", code: Z[t(2128)], message: n[t(2732)] }), e.dirty(); + s = this[t(3148)](x, s), ee(s, { validation: t(2120), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)](); } else - n[t(2566)] === t(3019) ? (n[t(3019)].lastIndex = 0, !n[t(3019)][t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: "regex", code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]())) : n[t(2566)] === t(1823) ? x[t(571)] = x[t(571)].trim() : n.kind === t(416) ? !x[t(571)].includes(n[t(2398)], n[t(635)]) && (s = this[t(556)](x, s), X(s, { code: Z[t(2128)], validation: { includes: n[t(2398)], position: n[t(635)] }, message: n[t(2732)] }), e.dirty()) : n[t(2566)] === t(2071) ? x[t(571)] = x.data[t(2071)]() : n[t(2566)] === t(2791) ? x[t(571)] = x.data[t(2791)]() : n[t(2566)] === t(1904) ? !x[t(571)][t(1904)](n[t(2398)]) && (s = this._getOrReturnCtx(x, s), X(s, { code: Z[t(2128)], validation: { startsWith: n[t(2398)] }, message: n[t(2732)] }), e.dirty()) : n[t(2566)] === t(770) ? !x.data[t(770)](n[t(2398)]) && (s = this[t(556)](x, s), X(s, { code: Z[t(2128)], validation: { endsWith: n[t(2398)] }, message: n[t(2732)] }), e[t(2906)]()) : n[t(2566)] === t(1053) ? !fo(n)[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { code: Z[t(2128)], validation: t(1053), message: n.message }), e[t(2906)]()) : n[t(2566)] === "date" ? !uo.test(x[t(571)]) && (s = this[t(556)](x, s), X(s, { code: Z[t(2128)], validation: t(1457), message: n[t(2732)] }), e[t(2906)]()) : n[t(2566)] === t(827) ? !lo(n)[t(2266)](x[t(571)]) && (s = this._getOrReturnCtx(x, s), X(s, { code: Z[t(2128)], validation: t(827), message: n.message }), e[t(2906)]()) : n[t(2566)] === t(1995) ? !xo[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: "duration", code: Z.invalid_string, message: n[t(2732)] }), e.dirty()) : n[t(2566)] === "ip" ? !ho(x[t(571)], n[t(1104)]) && (s = this[t(556)](x, s), X(s, { validation: "ip", code: Z[t(2128)], message: n.message }), e[t(2906)]()) : n.kind === t(1252) ? !po(x.data, n[t(2101)]) && (s = this._getOrReturnCtx(x, s), X(s, { validation: "jwt", code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]()) : n[t(2566)] === t(712) ? !mo(x[t(571)], n[t(1104)]) && (s = this[t(556)](x, s), X(s, { validation: t(712), code: Z[t(2128)], message: n.message }), e[t(2906)]()) : n[t(2566)] === t(1276) ? !io[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(1276), code: Z[t(2128)], message: n[t(2732)] }), e[t(2906)]()) : n[t(2566)] === "base64url" ? !co[t(2266)](x[t(571)]) && (s = this[t(556)](x, s), X(s, { validation: t(2487), code: Z.invalid_string, message: n[t(2732)] }), e[t(2906)]()) : qe.assertNever(n); - return { status: e[t(2398)], value: x[t(571)] }; + n.kind === "regex" ? (n[t(2338)].lastIndex = 0, !n[t(2338)].test(x.data) && (s = this[t(3148)](x, s), ee(s, { validation: t(2338), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]())) : n[t(1859)] === t(2337) ? x.data = x.data[t(2337)]() : n[t(1859)] === "includes" ? !x[t(2663)][t(2978)](n[t(2446)], n[t(1293)]) && (s = this._getOrReturnCtx(x, s), ee(s, { code: Z[t(893)], validation: { includes: n[t(2446)], position: n[t(1293)] }, message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(1945) ? x[t(2663)] = x[t(2663)][t(1945)]() : n[t(1859)] === "toUpperCase" ? x[t(2663)] = x.data[t(3013)]() : n[t(1859)] === "startsWith" ? !x[t(2663)][t(760)](n[t(2446)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: { startsWith: n[t(2446)] }, message: n.message }), e[t(2329)]()) : n[t(1859)] === t(1826) ? !x[t(2663)][t(1826)](n.value) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: { endsWith: n.value }, message: n.message }), e[t(2329)]()) : n[t(1859)] === t(2638) ? !co(n).test(x.data) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(2638), message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(1591) ? !oo[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(1591), message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(2193) ? !io(n).test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(2193), message: n[t(1044)] }), e.dirty()) : n[t(1859)] === t(2523) ? !Xn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2523), code: Z.invalid_string, message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === "ip" ? !uo(x[t(2663)], n.version) && (s = this[t(3148)](x, s), ee(s, { validation: "ip", code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n.kind === t(1749) ? !fo(x[t(2663)], n[t(627)]) && (s = this._getOrReturnCtx(x, s), ee(s, { validation: t(1749), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(2559) ? !lo(x[t(2663)], n[t(2739)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2559), code: Z[t(893)], message: n.message }), e[t(2329)]()) : n[t(1859)] === t(3046) ? !so[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(3046), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === "base64url" ? !no[t(2346)](x.data) && (s = this[t(3148)](x, s), ee(s, { validation: "base64url", code: Z.invalid_string, message: n.message }), e.dirty()) : Ne[t(1034)](n); + return { status: e[t(2446)], value: x[t(2663)] }; } - [a(2839)](x, t, r) { + [a(1341)](x, t, r) { const e = a; - return this.refinement((s) => x[e(2266)](s), { validation: t, code: Z[e(2128)], ...ne[e(1770)](r) }); + return this[e(2100)]((s) => x[e(2346)](s), { validation: t, code: Z[e(893)], ...ne[e(1892)](r) }); } - [a(1561)](x) { + [a(1095)](x) { const t = a; - return new v0({ ...this._def, checks: [...this._def[t(2078)], x] }); + return new w0({ ...this[t(1575)], checks: [...this._def[t(1773)], x] }); } - email(x) { + [a(2255)](x) { const t = a; - return this[t(1561)]({ kind: t(2512), ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(2255), ...ne[t(1892)](x) }); } - [a(1998)](x) { + [a(2120)](x) { const t = a; - return this[t(1561)]({ kind: "url", ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(2120), ...ne.errToObj(x) }); } - [a(529)](x) { + [a(2738)](x) { const t = a; - return this[t(1561)]({ kind: "emoji", ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(2738), ...ne[t(1892)](x) }); } - [a(1342)](x) { - return this[a(1561)]({ kind: "uuid", ...ne.errToObj(x) }); + [a(1551)](x) { + const t = a; + return this[t(1095)]({ kind: t(1551), ...ne[t(1892)](x) }); } - nanoid(x) { - return this[a(1561)]({ kind: "nanoid", ...ne.errToObj(x) }); + [a(2031)](x) { + const t = a; + return this[t(1095)]({ kind: t(2031), ...ne[t(1892)](x) }); } - cuid(x) { - return this[a(1561)]({ kind: "cuid", ...ne.errToObj(x) }); + [a(1025)](x) { + return this._addCheck({ kind: "cuid", ...ne.errToObj(x) }); } cuid2(x) { const t = a; - return this[t(1561)]({ kind: t(675), ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(1130), ...ne[t(1892)](x) }); } ulid(x) { - const t = a; - return this[t(1561)]({ kind: t(1113), ...ne[t(1770)](x) }); + return this[a(1095)]({ kind: "ulid", ...ne.errToObj(x) }); } - [a(1276)](x) { + [a(3046)](x) { const t = a; - return this[t(1561)]({ kind: t(1276), ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(3046), ...ne.errToObj(x) }); } - [a(2487)](x) { + [a(1136)](x) { const t = a; - return this[t(1561)]({ kind: "base64url", ...ne[t(1770)](x) }); + return this[t(1095)]({ kind: t(1136), ...ne[t(1892)](x) }); } - [a(1252)](x) { + [a(1749)](x) { const t = a; - return this[t(1561)]({ kind: t(1252), ...ne.errToObj(x) }); + return this._addCheck({ kind: t(1749), ...ne[t(1892)](x) }); } ip(x) { + return this._addCheck({ kind: "ip", ...ne.errToObj(x) }); + } + [a(2559)](x) { const t = a; - return this[t(1561)]({ kind: "ip", ...ne[t(1770)](x) }); + return this._addCheck({ kind: t(2559), ...ne[t(1892)](x) }); } - cidr(x) { + [a(2638)](x) { const t = a; - return this._addCheck({ kind: t(712), ...ne[t(1770)](x) }); + return typeof x == "string" ? this._addCheck({ kind: "datetime", precision: null, offset: !1, local: !1, message: x }) : this[t(1095)]({ kind: "datetime", precision: typeof (x == null ? void 0 : x[t(2394)]) === t(993) ? null : x == null ? void 0 : x[t(2394)], offset: (x == null ? void 0 : x[t(2887)]) ?? !1, local: (x == null ? void 0 : x[t(655)]) ?? !1, ...ne.errToObj(x == null ? void 0 : x[t(1044)]) }); } - [a(1053)](x) { + [a(1591)](x) { const t = a; - return typeof x == "string" ? this._addCheck({ kind: t(1053), precision: null, offset: !1, local: !1, message: x }) : this[t(1561)]({ kind: t(1053), precision: typeof (x == null ? void 0 : x[t(1713)]) === t(1691) ? null : x == null ? void 0 : x[t(1713)], offset: (x == null ? void 0 : x.offset) ?? !1, local: (x == null ? void 0 : x[t(968)]) ?? !1, ...ne[t(1770)](x == null ? void 0 : x[t(2732)]) }); + return this[t(1095)]({ kind: t(1591), message: x }); } - [a(1457)](x) { - return this[a(1561)]({ kind: "date", message: x }); - } - time(x) { + [a(2193)](x) { const t = a; - return typeof x === t(1443) ? this[t(1561)]({ kind: "time", precision: null, message: x }) : this[t(1561)]({ kind: "time", precision: typeof (x == null ? void 0 : x[t(1713)]) > "u" ? null : x == null ? void 0 : x[t(1713)], ...ne.errToObj(x == null ? void 0 : x[t(2732)]) }); + return typeof x === t(1361) ? this[t(1095)]({ kind: "time", precision: null, message: x }) : this[t(1095)]({ kind: "time", precision: typeof (x == null ? void 0 : x[t(2394)]) === t(993) ? null : x == null ? void 0 : x[t(2394)], ...ne.errToObj(x == null ? void 0 : x[t(1044)]) }); } - [a(1995)](x) { + [a(2523)](x) { const t = a; - return this[t(1561)]({ kind: "duration", ...ne[t(1770)](x) }); + return this._addCheck({ kind: t(2523), ...ne[t(1892)](x) }); } - regex(x, t) { + [a(2338)](x, t) { const r = a; - return this._addCheck({ kind: r(3019), regex: x, ...ne.errToObj(t) }); + return this[r(1095)]({ kind: r(2338), regex: x, ...ne.errToObj(t) }); } - [a(416)](x, t) { + [a(2978)](x, t) { const r = a; - return this[r(1561)]({ kind: r(416), value: x, position: t == null ? void 0 : t[r(635)], ...ne[r(1770)](t == null ? void 0 : t.message) }); + return this[r(1095)]({ kind: r(2978), value: x, position: t == null ? void 0 : t[r(1293)], ...ne.errToObj(t == null ? void 0 : t[r(1044)]) }); } - startsWith(x, t) { + [a(760)](x, t) { const r = a; - return this[r(1561)]({ kind: r(1904), value: x, ...ne[r(1770)](t) }); + return this[r(1095)]({ kind: "startsWith", value: x, ...ne[r(1892)](t) }); } - endsWith(x, t) { + [a(1826)](x, t) { const r = a; - return this[r(1561)]({ kind: r(770), value: x, ...ne.errToObj(t) }); + return this._addCheck({ kind: r(1826), value: x, ...ne[r(1892)](t) }); } - min(x, t) { + [a(521)](x, t) { const r = a; - return this[r(1561)]({ kind: r(2310), value: x, ...ne[r(1770)](t) }); + return this[r(1095)]({ kind: r(521), value: x, ...ne[r(1892)](t) }); } - max(x, t) { + [a(753)](x, t) { const r = a; - return this[r(1561)]({ kind: "max", value: x, ...ne[r(1770)](t) }); + return this[r(1095)]({ kind: r(753), value: x, ...ne[r(1892)](t) }); } - [a(2910)](x, t) { + [a(2710)](x, t) { const r = a; - return this._addCheck({ kind: r(2910), value: x, ...ne.errToObj(t) }); + return this[r(1095)]({ kind: r(2710), value: x, ...ne[r(1892)](t) }); } nonempty(x) { - const t = a; - return this.min(1, ne[t(1770)](x)); + return this.min(1, ne.errToObj(x)); } - [a(1823)]() { + [a(2337)]() { const x = a; - return new v0({ ...this[x(594)], checks: [...this._def[x(2078)], { kind: x(1823) }] }); + return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(2337) }] }); } - toLowerCase() { + [a(1945)]() { const x = a; - return new v0({ ...this[x(594)], checks: [...this[x(594)][x(2078)], { kind: x(2071) }] }); + return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(1945) }] }); } - [a(2791)]() { + [a(3013)]() { const x = a; - return new v0({ ...this._def, checks: [...this[x(594)][x(2078)], { kind: "toUpperCase" }] }); + return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(3013) }] }); } get isDatetime() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t.kind === x(1053)); + return !!this[x(1575)].checks[x(3146)]((t) => t[x(1859)] === x(2638)); } - get [a(2193)]() { + get isDate() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === x(1457)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t.kind === x(1591)); } - get isTime() { + get [a(3191)]() { const x = a; - return !!this._def[x(2078)][x(1801)]((t) => t[x(2566)] === x(827)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(2193)); } - get [a(2859)]() { + get [a(904)]() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === x(1995)); + return !!this._def[x(1773)].find((t) => t[x(1859)] === x(2523)); } - get isEmail() { + get [a(575)]() { const x = a; - return !!this[x(594)][x(2078)].find((t) => t.kind === x(2512)); + return !!this[x(1575)].checks.find((t) => t.kind === x(2255)); } - get [a(2036)]() { + get isURL() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === "url"); + return !!this[x(1575)][x(1773)].find((t) => t[x(1859)] === "url"); } - get [a(1524)]() { + get [a(1016)]() { const x = a; - return !!this._def[x(2078)].find((t) => t[x(2566)] === x(529)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t.kind === x(2738)); } get isUUID() { const x = a; - return !!this[x(594)].checks[x(1801)]((t) => t.kind === x(1342)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(1551)); } - get isNANOID() { + get [a(1007)]() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === x(2017)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === "nanoid"); } - get isCUID() { + get [a(3280)]() { const x = a; - return !!this[x(594)][x(2078)].find((t) => t[x(2566)] === x(1935)); + return !!this._def[x(1773)][x(3146)]((t) => t[x(1859)] === x(1025)); } - get isCUID2() { + get [a(2496)]() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === x(675)); + return !!this[x(1575)].checks[x(3146)]((t) => t[x(1859)] === "cuid2"); } - get [a(1446)]() { + get [a(1978)]() { const x = a; - return !!this[x(594)][x(2078)][x(1801)]((t) => t[x(2566)] === x(1113)); + return !!this[x(1575)].checks[x(3146)]((t) => t.kind === x(2035)); } - get [a(2691)]() { + get isIP() { const x = a; - return !!this._def[x(2078)][x(1801)]((t) => t[x(2566)] === "ip"); + return !!this[x(1575)][x(1773)].find((t) => t[x(1859)] === "ip"); } - get isCIDR() { + get [a(2389)]() { const x = a; - return !!this._def[x(2078)][x(1801)]((t) => t.kind === x(712)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(2559)); } - get [a(2337)]() { + get [a(1314)]() { const x = a; - return !!this[x(594)][x(2078)].find((t) => t[x(2566)] === x(1276)); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(3046)); } - get [a(1174)]() { + get [a(981)]() { const x = a; - return !!this[x(594)].checks[x(1801)]((t) => t[x(2566)] === x(2487)); + return !!this._def[x(1773)][x(3146)]((t) => t.kind === "base64url"); } get minLength() { const x = a; let t = null; - for (const r of this[x(594)][x(2078)]) - r.kind === x(2310) && (t === null || r[x(2398)] > t) && (t = r[x(2398)]); + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === x(521) && (t === null || r[x(2446)] > t) && (t = r[x(2446)]); return t; } - get maxLength() { + get [a(649)]() { const x = a; let t = null; - for (const r of this._def.checks) - r[x(2566)] === x(544) && (t === null || r[x(2398)] < t) && (t = r[x(2398)]); + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === x(753) && (t === null || r.value < t) && (t = r[x(2446)]); return t; } } -v0[a(1468)] = (o) => { +w0[a(1602)] = (o) => { const x = a; - return new v0({ checks: [], typeName: pe.ZodString, coerce: (o == null ? void 0 : o[x(2480)]) ?? !1, ...ye(o) }); + return new w0({ checks: [], typeName: pe[x(1451)], coerce: (o == null ? void 0 : o.coerce) ?? !1, ...ve(o) }); }; -function bo(o, x) { - const t = a, r = (o[t(1725)]().split(".")[1] || "")[t(2910)], e = (x[t(1725)]()[t(1389)](".")[1] || "")[t(2910)], s = r > e ? r : e, n = Number[t(1127)](o[t(526)](s)[t(1840)](".", "")), i = Number[t(1127)](x.toFixed(s).replace(".", "")); +function yx() { + const o = ["Graph must have at least one node", "getRegisteredActions", "Invalid forward path for proxy action", "errs_", "lngs", "simplifyPluralSuffix", "当前任务路由暂不支持上传控件", "Cloud:", "You must pass an array of schemas to z.tuple([ ... ])", "setProperty", ".test(", "getResourceBundle", " = new RegExp(", "#00CCCC", "interpolationkey", " === undefined || ", "_path", "Please login to use the plugin", "Please provide prompt content.", "_exclusiveLimit", " = formats[", "escapeValue", "Set text to layer", "joinArrays", "交集或缩放目标为空", "formData", "response", "partialBundledLanguages", "使用整个画布", "ZodNativeEnum", "channel", "combo", "mergeShapes", "fragment", "ydd", "Invalid discriminator value. Expected ", "notificationHandlers", "scheme", "Disk", "graphInstance", "full", "includes", "_loadingSchemas", "colors", "_getType", "sendPromptListChanged", "mountTo", "timeoutId", "__nwjs", "favorites", "Empty", "resource", " , parentSchema: validate.schema", "typ", " , message: 'should be ", "postProcessor", "getConnectionToNodeInternal", "Boundary", "23364256xDpQma", "RULES", "任务失败:{{status}}", "inlineRefs", "setDefaultNamespace", "找不到文档: {{0}}", "no plural rule found for: ", "lowerCaseLng", "mergeObjectAsync", "removeMiddleware", "properties", "Failed to reboot ComfyUI", "createAsyncIterator", " , message: 'should match exactly one schema in oneOf' ", "allErrors", "getNodes API failed - {{reason}}", "如何获取APIKey", "not-basic", "toUpperCase", "logging/setLevel", "/then", "Invalid JSON-pointer: ", "smaller than or equal to", "minDate", "race", "正向裁剪", "执行成功", "curlayer", "\\:\\:", "requestsHandled", "Invalid boundary: left must be less than right, top must be less than bottom", '" is used in schema at path "', "Manage reusable prompt snippets for Comfy Simple workflows.", "isRequest", "isInitialized", "当前无法应用模板。", "success", "getNodes API 调用失败 - HTTP 错误,状态: {{status}}", ") && (missing", "hbo", "Refresh workflow list", "_formats", " , params: { allowedValues: schema", "async ", "getProperty", "dataVar", "ComfyUI server reconnecting", "#FF0066", "serialize", ` + '" schema' `, "enabled", "base64", " ) { ", "mergeObjectSync", "openWorkflowJSON", "Not implemented (501)", "ZodDefault", "Client does not support listing roots (required for ", "loadGraphData", "ZodError", " -> ", "{0,1}", "Prompts", "Select Banana app...", "setupStreamRequestHandler", "cache", " && ", "push", "yih", "Request handler failed: ", "describe", "Get pixel of {{0}} failed", "valueSchema", "hasLanguageSomeTranslations", " } else if ( ", "__cycle__", "_onprogress", "Layer mask", "Google Gemini 图像生成器", "Source", "自动同步中…", "模板已删除。", "getPath", "examples", " == null) ", "Template name", "fullPath", "resourceStore", "saveMissing", "pctEncChar", ".hasOwnProperty(", "weeks", "Failed to fetch account status", "请选择要获取的图像", "{0,4}", "language", "aeb", "removeRequestHandler", "sdpppX2", "loopRequired", "Remove slot", "#FF00CC", "ordinal", "safeParse", "Set as Current Selection", "输入设置", "getFixedT", "formatParams", "查看日志", "initialize", "cardinal", "boolean", "No images", "Current Selection", ".then", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "NOT_SCHEME", "ayh", "keyword schema is invalid: ", "languageDetector", "#CC33FF", "Auto send disabled", "pick", "var missing", "=== Options ===", "MethodNotFound", " if (schema", "state", "_resetTimeout", "_errorDataPathProperty", "week", "inlineRef", "[i], ", "Array must contain ", "_refinement", "ZodNaN", "模板名称", "Run Photoshop Action", "normalizeId", "_oninitialize", " , ", "Delete current", "removeAdditional", "./api/userdata/workflows%2F.index.json", "registerStreamRequestorHandler", "Exclude selection", "handleDirectProxyForward", "Fetch current layer with primary boundary", "2024-10-07", " , message: 'should NOT be ", "sdppp/streamResponse", "find", "ZodTuple", "_getOrReturnCtx", "获取表单数据失败", "performWorkflowReset: ", "coerced", "outputs API 调用失败 - {{reason}}", "#FFCC00", "$id", "formats", "parsedType", "_limitItems", "debug", "ucs2length", "Invalid proxy forwarding: current node ", "abortRequest", "findIndex", "ZodMap", "lng", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", "结果获取已中止", "Selection bounds only", " , message: 'should NOT have more than ", "queues", "content", "Upload from disk", "setupStreamResponseHandler", "executeHandlerAsync", "Uploading...", "No store found for node ", "activeWorkflow", "status API failed - {{reason}}", "abortAllRequests", "notifications/progress", "Invalid name: {{0}}", "validate", "i18next:", "sdppp/broadcast", "More actions", "#FF0000", " } ", "Sending image...", "Supabase anon key", "Task Details", "适配至选区", "isTime", "getNodes API failed - HTTP error! status: {{status}}", "hasDefaultValue", "openWorkflow: ", "No default templates available.", "云端推荐:", "failed parsing options string in nesting for key ", "createStreamState", "run API 调用失败 - {{reason}}", "缺少遮罩资源", "(typeof ", "InvalidRequest", "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "requestId", "{0,3}", "#6600CC", "#/definitions/simpleTypes", "以画布边界获取当前图层", "disconnect", "loaded namespace ", "模板已应用。", "sourceType", "http", " else { ", "Server does not support tools (required for ", "isNotification", "notifications/initialized", "humanize", "hrs", "actionManager", "invalid_union_discriminator", "images", "#0066FF", "Enter a quality percentage", "queueLoad", "peo", "_setupTimeout", "inline", "Canvas bounds", "Required", "propsKeywords", "parseMissingKeyHandler", "作为新文档导入", "processors", "fromNode", "workflows", "values", "formatType", " break; ", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "node_errors", "bigint", "]; ", " = true; else if (!Array.isArray(schema", "_requestHandlers", "fromCodePoint", "Task failed: {{status}}", ".length , ", "less than or equal to", "#FF3366", "Clear all", " characters' ", "callback", "hasLoadedNamespace", "isArray", "Prompt Templates", "sdppp/abort", ") {", "minSize", "; else vErrors = vErrors.concat(", " {} ", "messageHandlers", "split", "contentMediaType", "每批图像数", "activeState", " ? await ", "Send to PS", "Store not found for current node ", "Use entire canvas", "跳转到最后一个", ` , message: 'should pass "`, "请求超时 (408)", "[^\\%\\[\\]\\:]", "now", "Error in broadcast handler for ", ") == -1 ", " = null; ", "posterIdentifier", "isCUID", "ZodSet", "exclusiveMaximum", "getAccountStatus API failed - {{reason}}", "key", "_getCached", "[\\@]", "userinfo", "broadcastManager", "#9900FF", "initializeConsumer", "nonpositive", "cancel", "maxDate", "error", "sd-ppp-static/sdppp_images/", "清空所有", " = errors; ", "request", "equal", "addMetaSchema", "_refs", " && Object.prototype.hasOwnProperty.call(", "Loading...", "Task execution failed", "; }", "#CC0033", "2.1.0", "minutes", "jsonrpc", "/type", "addResource", "sdppp-heartbeat", "isEmpty", "SDPPP may not be installed or version mismatch (404)", "从文件打开图像", "overflow", "ASCII", "pending", "#CC0099", "transport", "returnTypeError", "uri-reference", "选择应用...", "sessionId", "min", "任务详情", " if (true) { ", "适配至当前图层", "usedParams", "pattern", "usedKey", "missingSchema", "array", "Layer not found {{0}}", "Fetch canvas with current-layer boundary", "访客登录成功", "pickLocalFile", " (async", "786655TtrUxU", "重启ComfyUI失败", "partial", "workflow", "_responseHandlers", "删除模板", "description", "lte", "未返回图片", "executed", " == '", "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "initializedStoreOnce", "DateTimeFormat", "iri", "Forbidden (403)", "Select Source", "网关超时 (504)", "生成失败", "sqr", "图层 {{0}} 不是一个组", " === 'true' || ", "assertCapabilityForMethod", "WebkitAppearance", "createErrors", "UploadPassProvider is not fully compatible with TaskRouter upload mechanism. Please use the uploadResource prop instead.", "RH币:", " === undefined ", "outputs API failed - {{reason}}", "工作流打开中", `Get image & +Limit image boundary`, "获取图层 {{0}} 的内容", "Positive Prompt", "$data", "errSchemaPath", "refine", "Invalid boundary type: {{type}}", "Aborted", "Host's domain name can not be converted to ASCII via punycode: ", " == ", "isEmail", "every", "ZodNull", "exclusiveMinimum", "Please provide a template name.", "#FF9900", "Generating", "withTimeout", "asyncIterator", "A discriminator value for key `", "loadNamespaces", "originalQueuePrompt", "无法从文件创建文档", "refs", "Failed to create document from file", "No history tasks", "#33CC33", " } else { for (var ", "executing", "getLanguagePartFromCode", "Notification interceptor failed for ", ".validate; var ", "notifications/roots/list_changed", "; else vErrors = null; }", "=0; ", "'].definition; var ", "批次数量", "Values", "actionHandlers", "customErrors", "setupAbortHandler", "timestamp", "addResourceBundle", "__connection_established", "++) { ", "localRefs", "Get selection", "var ", "++) { if (", "exclType", " = 'then'; ", "ckb", " var errors = 0; ", "syncStoresToNewConnection", "No active layer available", "Resize document for preview", "toFixed", "setWidgetValue", "schemaId", ") : ", "useColors", "Show Preview ({{count}} images)", "alg", "encountered", "Bounds", "Desire bounds is null", "maximum", "prefix", "URI is not a ", "等待 ComfyUI 连接完成…", "notificationsHandled", "{2})", "schema id ignored", "languageChanged", "Module", " && ( ", "Modify", " is not a valid identifier", "isFinite", "Rectangle coordinates required for create action", "seconds", "msecs", " % 1)", "property", "maxLength", "varReplace", "_serverInfo", " !== undefined && ( typeof ", "限制图片尺寸", "safe", "local", "Save all", "3065650IVplXZ", "Current Tasks:", " = false; if (e instanceof ValidationError) ", "prompt_ids: ", "assign", "dataPathArr", "; } catch (e) { ", " == 'boolean' || ", "registerDirectRequestHandlerGeneric", "node_id", "removeNamespaces", "###", "nodes", "运行中...", " ) || ", "substring", "saveMissingPlurals", "get", "Scan", "result", "Sponsor", "assistant", ") { var op", "./sdppp_upload2", "getNodeIds", "使用教程", " = errors;", "domainHost", "选区边界", "#FF33CC", " ); if (isAdditional", "contains", "resource_link", "_onresponse", "Layer {{0}} is not a group", "arrayToEnum", "graphChanged", "NOT_PATH_NOSCHEME", " is already defined", "ZodNumber", "isTransportReady", "missed to pass in variable ", "zero", "acx", "getScriptPartFromCode", "]; return false; ", "_unknown", "allOf", "image", "api", "zh-CN", "Failed", "toHash", "getNeighbors", "execution_error", "Result fetch aborted", "暂无历史任务", "获取 Supabase 会话失败: {{error}}", "__proxy_forward", "click to restore", "errorMap", "Invalid attempt to destructure non-iterable instance", "getConnectedNodeIds", "从磁盘上传", "less than", "选择图像来源", "setResolvedLanguage", "获取任务状态失败", "exec_info", "markConnected", "true", "wss", "comfy_api_key", "MissingRefError", "addEventListener", "exports", "无法将文件作为文档打开: {{path}}", "Your powerful node-based workflow engine", "IPV6ADDRESS", "新增槽位", "保存提示词模板失败。", "setState", "ActionSet {{0}} 未找到", "env", "oninitialized", "catch", "there was no format function for ", "suffix", "abh", "host", "_any", "#CC00FF", "maxValue", "root.refVal[0]", "getAccountStatus API 调用失败 - {{reason}}", "提示信息", "max", ".type", "safeParseAsync", "Intersect or scaledDesire is null", "statusText", "Invalid literal value, expected ", "changeLanguage", "startsWith", " } else { ", ", received ", "getKeyword", "[^\\%\\/\\@]", "invalid_return_type", "integer", "newlayer_selection", "is an invalid additional property", " = true; if (", "react", "Refresh", "initImmediate", "Press Enter to open app: {{appName}}", " ) { ", "createInstance", "uri", "SCHEMES", "Task incomplete, current status: {{status}}", "Select layer", "set", "+Alt reversed mask", "ready", "Batch Count", "保存并立即执行", " (division", "ComfyUI - {{workflowName}}", "missed to resolve ", "detail", "promptIds", "getDataByLanguage", " - no connection available", " division", "scanned", " == errors) { ", "加载中...", "尚未配置 ComfyUI 连接,请先设置地址。", "Auto sync is off", "getAllReachableNodes", "missingKey", "right", 'unknown format "', "format", "nss", "ZodEnum", "baseId", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "isHeartbeatEnabled", "listRoots", "options.loadSchema should be a function", "promise", "_cache", "spa", "initializeProducer", "table", "Input not instance of ", "onprogress", "compiling", `((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`, " } if (errors === ", "管理 Comfy Simple 工作流的提示词片段。", " == 'number' || ", "getHandlerTypes", "toNode", "getResource", "]] === undefined ", "从 选区 获取遮罩", "extractFromKey", "longer", 'key "', "Layer", "aec", " = equal(", "disconnected", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "ZodPromise", " if ( ", "initialState", "反向裁剪", "stopSequence", "http://json-schema.org/draft-07/schema#", "sort", "prevValid", "JWT", "Masked", "获取账户信息失败", "size", "ZodNullable", "#3300FF", "authInfo", " var itemIndices = {}, item; for (;i--;) { var item = ", "选择 AI 服务提供商", "modules", "删除当前", "#FF33FF", "removeResourceBundle", "status API 调用失败 - {{reason}}", "can't resolve reference ", "var default", "~standard", " var errs_", "_processInputParams", "documentElement", "获取选区失败", "Google Gemini - Image Generation", "画布变更后自动运行工作流", "currentNodeId", "manuallyExtractDefaults", "strictKeywords", "No crop", " } } ", "' } ", "store", "isClone", "Sync current content", "delete", "logger must implement log, warn and error methods", "~validate", "Import from disk", " = true;", "rtl", "未知错误({{code}})", "prepend", " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' ", "UUID is not valid.", "$ref", "comfy", "Current Layer", "setupGeneralBroadcastHandler", "#FF3399", "未能解析租户信息", "#/definitions/nonNegativeIntegerDefault0", "ParseError", "invalid_string", "No videos yet", "Node definition not found for current node ", "aborted", "ComfyUI 未就绪", "\\$&", "[\\uE000-\\uF8FF]", "Comfy.userId", "charCodeAt", "fail", " throw new ValidationError(vErrors); ", "isDuration", " = errors; var ", "创建文档失败", "Options", "issues", "设置图层的文本", "openWorkflows", "i18nFormat", "Outpaint (positive crop)", "{0,6}", "Confirm", "保存所有", "rejectImage", "当前图层边界", "maxTokens", "extend", "HeartbeatTimeoutError", "save", "自动填入画布开启", "greater than ", "Input Setting", "localeCompare", "ListFormat", "hasPath", "hasRequestHandler", ") { ", "更多设置", "prompt_id", "&", "Please click Login in the top-right corner.", "onerror", "years", " return data; ", "_metaOpts", "silent", "Unknown message type: ", "skipOnVariables", " not found in graph definition", "mcp-mesh-router", "registerProxyForwardHandler", "Inpaint (reverse crop)", "outgoingRequestInterceptors", "Missing upload resource", "Template removed.", "生成中...", "+Alt 反转遮罩", "Image imported to canvas", "ownProperties", "resources/read", "read", "Workflow stopped by user", "Upload controls are not supported for TaskRouter", " === null) ", "superRefine", "validateKeyword", "Save", "getTransportToNode", "hasLoadedNamespace: i18n.languages were undefined or empty", "apd", "'", "men", "setNodeTitle", " == 'string' && ", "尺寸限制 (px)", "connectedNodes", "Upload aborted", "运行了 {{duration}} 秒,{{message}}", "aao", "留空表示不限", "timeout", "Connection closed", "Layer {0} not found", "New Layer", " , message: 'should be equal to constant' ", "Invalid enum value. Expected ", "regexp", "critical", "isBase64url", "Running", "上传中,如果图片过大,可能会卡顿...", "returnObjects", "+Alt 按选区裁剪", "sourceCode", "addMessageEventListener", "Failed to send cancellation: ", "notifications/message", "isNaN", " = false; else {", "responseSchema", "undefined", "mask", "accept", "Set as Current Layer", "清除参考线框架", " for language ", "#66CC00", "Failed to update the {{part}} prompt: no matching widget binding.", "init: i18next is already initialized. You should call init just once!", "revoke", "ZodReadonly", "Delete Template", "subject", "非法的名称: {{0}}", "isNANOID", "reloadResources", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", "catchall", "Action {{0}} was not found", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", "Overflow: input needs wider integers to process", "{3}", "isNullable", "isEmoji", "$$$$", "Importing history image...", "nodeStores", "ZodBranded", " validate.errors = vErrors; return false; ", "logging", "setupTransportHandlers", "Output to", "cuid", "_compile", "未找到文档 {0}", "absolute", 'Invalid input: must start with "', "Email address's domain name can not be converted to ", "stringify", "workflows/", "Document {{0}} not found", "assertNever", "idx", "externalListenMessageCallback", "getRunningRequestsCount", "source", "Failed to request initial state for ", " console.log(", ".length == 1) { ", ") ) { ", "toUnicode", "message", "listWorkflows", "ZodDiscriminatedUnion", "文件未找到: {{path}}", "Cannot register capabilities after connecting to transport", "resolvedLanguage", "resolveComponents", "newlayer_canvas", `Log saved to file: {{path}} + + +`, "当前图层范围", "xn--", "Back", "languages", "fullFilename", "Boundary preview", "Current layer", "点击恢复默认遮罩", " == 'function' ? ", " } if (", "validate.schema", "' + ", "invalid_enum_value", "messagePoster", "assertCanSetRequestHandler", "_opts", "Rescoped", "hasEdge", "Email address's domain name can not be converted to ASCII via punycode: ", "Waiting for ComfyUI to finish connecting…", "keyPrefix", "ComfyManager not found, cannot reboot", "isValidLookup", "Clear selection", "coerce", "Failed to request initial states after connecting to ", "getState", "#FF00FF", "continueOnInterceptorError", "level", "property ", "_key", "Server error (500)", " , message: 'property name \\'", "default is ignored for: ", "detect", "新增模板", "WARNING DEPRECATED: ", "checkState", "Validation failed but no issues detected.", "pre", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "_addCheck", "all", "reconnecting", "_limitLength", "延迟上传失败: {{error}}", "freeze", "$async", " if (!", " var startErrs", "#0066CC", "getNodes API 调用失败 - {{reason}}", "getRule", " if (true) {", " { keyword: '", "varOccurences", "dependencies", "nodeErrors", "Connecting to ComfyUI...", "Duration", "warn", "return", "strict", "useDefault", ", exclusive: ", "setupStreamProtocolHandlers", 'schema with key or id "', "output", "valid", "void", "handleIncomingRequest", "preload", "querySelector", "Retry", "Email: {{email}}", "Gemini 2.5 Flash 图像", "cuid2", "ZodRecord", "regExpMap", "assertEqual", "__proto__", '" as the namespace "', "base64url", "file", " , params: { i: i, j: j } ", "Click to restore default mask", "emergency", "mergeArray", "put", "prompts/get", " === undefined) ", "Internal ZodObject error: invalid unknownKeys value.", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", "Click to get RunningHub APIKey", "Select Image Source", "isSupportedCode", "Auto sync in progress…", "isObject", "shorter", "setter", '" ignored in schema at path "', "kPanelBrightnessMediumGray", " = errors;var ", " = ''; ", "abort", "macro", "resourceName", " after ", "unshift", ") { for (var ", "elicitInput", "filename", "meta", ", '", "Number must be a multiple of ", "handleIncomingNotification", "选择文件失败,请重试", " : ", "Prompt", "appendNamespaceToCIMode", "#33CCFF", "3rdParty", "OpenAI API 错误", "getter", "验证表单中...", "', depsCount: ", "上传失败,请重试", "context", "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "仅当前图层范围", "Current layer boundary", "无法打开图像文件: {{error}}", "getData", "setupGraphStoreSync", "defaultMeta", "prepareLoading", "namespace", ` , message: 'should match "' + `, "exactly", "3692rjRfYn", "fallbackRequestHandler", " return errors === 0; ", "currentOnly", " === 'false' || ", "自动填入画布关闭", "getCurrentNodeId", "keySeparator", "#/definitions/stringArray", "不裁剪", "hasResourceBundle", "userDefinedKeySeparator", "revocable", "elicitation/create", "json", "Idle", "getPrototypeOf", "App ID:", "请输入您的 Google API Key", "创建参考线框架", "Clear", "nonempty", "resolveRef", "Click to send (Shift-click creates new document)", "Unknown error", "Server does not support resources (required for ", "setRequestHandler", "nan", "; if (!", "Failed to create file resource", "-{{value}} points", " = vErrors[", "locale", "removed", "status", "Uncaught error in notification handler: ", "Failed to save prompt templates.", "origin", "backend", "调整预览文档尺寸", "notificationQueue", "Uploader not set", "Fit to current layer", "dataType", "Sending all images...", "abv", "任务执行失败: {{error}}", "NumberFormat", "info", " when property ", "[0-9A-Fa-f]", "Full Canvas", "warning", "closeWorkflow", "ConnectionClosed", " if (!(await ", "setLimit", " } }", "SDPPPX 服务不可用", "getBestMatchFromCodes", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "] = ", "connectionManager", "getValidEnumValues", "INTERCEPTOR_ERROR", "无效边界: 左边必须小于右边,上边必须小于下边", ") || ", "isPersisted", "Action handler ", "schemaPath", "shift", "loadResources", "escapeQuotes", `" keyword validation' `, "query", "getTransportInternal", "refVal", "sendResourceUpdated", "safeValue", "maxSize", "getConnectionInfo", "cacheUserLanguage", "HTTP URIs must have a host.", "如何获取APIKey和API Secret", "sendToolListChanged", "#00CCFF", "processCode", '" already exists', "common", "executeOutgoingRequestInterceptor", "更多操作", "finally", "{0,5}", "[BroadcastManager] Error forwarding ", "cancelled", "addRule", " failed", "File upload failed", "resolvedOptions", "currency", "position", "validateHandlerType", "Server does not support logging (required for ", "Points Spent", "__DEFAULT__", "); if (!", "%25", ")) { if (vErrors === null) vErrors = ", "正在发送图像...", "[GraphStoreSynchronizer] Error broadcasting state update for ", "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", "object", "too_big", "[GraphStoreSynchronizer] Error processing store update for ", "passthrough", "]; } else { ", "uploadImage API failed - HTTP error! status: {{status}}", "firebug", " var schema", "minLength", "date-time", "isBase64", "hasOwnProperty", "getNode", "[\\.]", "preprocess", "510", "Model with affordable price, abundant community applications", "请选择AI服务", "Crop by selection", " = false , ", "milliseconds", "点击发送(Shift-点击新建文档)", "unescapeComponent", "cleanCode", "Internal error", "async keyword in sync schema", " ( ( ", "/", "day", " than ", "initializeResponseQueue", "maxItems", "New Template", "Reset", "fallbackLng", "prp", "Send all", "_regex", "Adjust input settings", "exception", `获取图像 & +裁剪选区遮罩`, ")) ", " , schema: validate.schema", "Base URL", "startTime", "pst", "Failed to write log file:", "status API failed - HTTP error! status: {{status}}", "Advanced selection", "uiLocale", "userDefinedNsSeparator", "proxy", "iterator", ".schema = ", "step", "/required", ") break; } ", "string", "pctDecChars", "toJSON", "Fetch current layer with canvas boundary", "nest", "schema id must be string", "hijacked", "custom keyword definition is invalid: ", " Math.abs(Math.round(division", "readOnly", "reason", "画布边界", "Fetch canvas with primary boundary", "./api/manager/reboot", "argumentsError", "以主图边界获取画布", "getImage", "No handler for streamRequestor: ", "allServers", " , message: 'boolean schema is false' ", " var err = ", "realTransport", "finite", "管理可复用的提示词模板", " == 'boolean') ", "bind", "slice", "本地视频", "addFormat", 'did not save key "', "isLanguageChangingTo", "start", "Selection", "outputType", "findPath", "prompts/list", "nonExplicitSupportedLngs", " not implemented for node ", "_fragments", "color", "Edit Template", "addCached", "{2}", "Preparing...", " reference.", "' && !(typeof ", "pes", " else if (", "请输入大于 0 的像素值", "getAccountStatus API 调用失败 - HTTP 错误,状态: {{status}}", " } ", "received", "__internal_requestInitialState_", "getNodeStore", " = undefined; ", "Auto", "Unsupported upload type: {{type}}", ") break; ", "buffer", "]] !== undefined ", "上传图片中...", "仅选区范围", "Edge references unknown target node: ", "registerHandler", "schema", "prev", "); for (var ", "Get selection failed", "load", "ajv", "Set as Canvas", "新建文档", "click", "Validation", "validateStreamRequestorRequest", "Layer {{layerName}}", "点击移除本地文件", " , message: 'should have ", "Processing {{processed}}/{{total}}", "unknown", "Maximum total timeout exceeded", "(?:", "'else'", "-latn", "_notificationHandlers", "Service unavailable (503)", "我的模板", "_transport", "整个画布", "[\\+\\-\\.]", "ZodString", "false schema", "Cloud-based model service platform", "Upload failed: ", "X10", "joinAs", "forwarded", "重新加载", "Canvas boundary", "Shortcut selection feature requires login", "addSchema", "Input Image", "done", "req_", "assertRequestHandlerCapability", "智能对象图层", " = false; else if (", "ComfyUI not ready", "skipCopy", "创建文档", "[\\:\\@\\/\\?]", " if (Array.isArray(", "SDPPP sponsor exclusive API", "implementInternalAction", "给发送的图片创建文档", "languageUtils", "loadLanguages", "Outgoing message:", "2025-06-18", "prd", "ComfyUI加载中...", "notificationsIntercepted", " = true , j; if (i > 1) { ", "PS shortcuts may be blocked by plugin...", "useRawValueToEscape", "parentDataProperty", "RH Coins:", " var missing", "close", "defaultVariables", "Quick", "Exclude current layer", "compileAsync", "forward", "ZodPipeline", "自定义AI工作流引擎", "Error validating elicitation response: ", "dataLevel", " throw new ValidationError([", " = false; ", "ComfyUI loading...", "completion/complete", "Action {{0}} 未找到", "decline", "skipKeywords", "Content", "after app.queuePrompt errors: ", "{6}", "_clientCapabilities", "xmn", "#9933CC", " | ", '"number"', "pipe", "forkResourceStore", "Google Gemini Image Generator", " == +", "Cannot access data ", "', missingProperty: '", "Generating...", "replace", "call", "connecting", "Manage reusable prompt templates", "获取图片", "at least", "/additionalProperties", "遮罩应用后未得到资源", "setNotificationHandler", "skips", " , message: '", "Enter Google API Key", "_timeoutInfo", "changeTracker", "getSchema", "Negative Crop", "))) { ", "getTransport", "加载历史任务...", "hasOutgoingRequestInterceptor", "dev", "setItem", "translate", "opts", "registerCapabilities", " var i = ", "shape", "控件 {0} 转换失败:", "Local file", "handleAsObject", "uuid", "api/view?type=", "同步当前内容", ".errors", "fallbackNS", "_requestMessageId", "languageOnly", "readonly", "IPV4ADDRESS", " , message: 'should be equal to one of the allowed values' ", "widgetable", "reference", "subfolder", " = true; else if (typeof ", "strictNumbers", "init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting", "[^0-9]", " element(s)", "auz", "reboot", "_cachedPath", "invalid_union", "defaults", "sdppp_assets", "_def", "storage", "backendConnector", " || ! Object.prototype.hasOwnProperty.call(", "maxRetries", "add", "headers", "PluralRules", "))))) {", "Success", "_parse", "sdpppHandshake", "How to get APIKey and API Secret", " = await ", "defaultNS", " must be number or boolean", "date", "join", "清空选择", "requestInitialStateForNode", "准备中...", "Run", "当前任务数:", "expected", "nonstrict", "notifications/tools/list_changed", "protocol", "create", "const", "My Templates", "__esModule", "; if (vErrors !== null) { if (", "Current layer bounds only", "comfyAPI", " = true; if ( ", "omit", "[UnexpectedJSONParseError]: ", "unknownFormats", "_errors", "isInitializing", ".dataPath === undefined) ", " , params: { type: '", "Logout", "custom", "Select Workflow", ".length > ", "ZodEffects", " via punycode: ", "exactLength", " = true; break; }", "String must contain ", "创建时间", "pong", "URI can not be parsed.", "notifications/resources/list_changed", "reduce", " ucs2length(", "当前图层", "Expected ", "getCapabilities", "log", "formatters", "relativetime", "and", "zod", "waitingReads", ") > 1e-", "提示词", "metaSchema", " ) ", "connect", "reload", "interpolation", "_options", "long", "translation", "maxProperties", "removeDotSegments", "ESCAPE", "addNamespaces", "No images to preview", "params", "ZodNever", "Invalid function return type", "Tutorial", "fromCharCode", "Connect", " < ", " , schema: false , parentSchema: validate.schema", "Username: {{username}}", "获取结果失败: {{error}}", "Heartbeat timeout for poster ", "Only the latest 10 items are available in this version", "absolutePath", "Add Template", "streamRequestorHandlers", "range", ".dataPath = (dataPath || '') + ", "resources", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "escapeFragment", " , params: {} ", "stats", "反向裁剪(Inpaint)", "NOT_FRAGMENT", "separator", "Auto send enabled", "image/png", "Auto-run workflow after changes...", "uniqueItems", "MIN_SAFE_INTEGER", "definition", " , message: 'should NOT have ", "patternProperties", "质量{{percent}}%", "{4}", "; var ", "disable", "substr", "PS图片", "ZodUnion", "messages", "Result fetch failed", "symbol", " = validate.schema", "extendTranslation", "选择模型", "Not a ZodError: ", "invalid_literal", "comfy-entry", "No errors", "Cannot reboot because ComfyManager is missing", "nsSeparator", "second", "lazycreate", "lastPongReceived", " = errors , ", " != 'number') || ", "获取结果失败", "停止自动运行", " = typeof ", "createWithPreprocess", "; } var err = ", "extract", "initAsync", "已选择", "[BroadcastManager] Error forwarding broadcast:", "网关错误 (502)", ".length <= ", "资源标识符无效", "Max size (px)", "选择文件", "Supabase URL", "use", "missingKeyNoValueFallbackToKey", "ZodUnknown", "ref/resource", "暂无视频", "schemaHasRules", "external", "nestingOptionsSeparator", "创建文件资源失败", "(会员专属)", "removeSchema", "callValidate", "objectValues", "); errors = vErrors.length; for (var ", "mode", "处理进度 {{processed}}/{{total}}", "order", "Shift 点击或右键可切换自动发送", "Mask apply returned empty resource", "user", "Outgoing request interceptor failed: ", "jwt", "sdppp/directRequest", "resolveImage", " = null; try { ", "UNRESERVED", " if (", "Document {0} not found", "OpenAI/Google 格式API", "runningRequests", "count", "File not found: {{path}}", " in ", "Uploading, if the image too large, may be lag...", "typeof ", "jpr", "mailto", "uploadImage API failed - {{reason}}", "returnDetails", "toQuotedString", "#FF3300", "[object RegExp]", "loaded", "选择边界", " self._opts.$comment(", "checks", "default is ignored in the schema root", "init", "_getId", "heartbeatInterval", "if (!", "merge", "ComfyUI服务器重连中", "translator", "OpenAI/Google format API", "Generate", "选择素材来源", "Request interceptor failed for ", "schemaHasRulesExcept", "Comfy Manager未安装,无法重启", "获取 API Key", "waiting for queue prompt", "mcpMesh", "services", "$schema must be a string", ") { ", "toASCII", "postProcessPassResolved", "requestHandlers", "extensionManager", "5604mBcUKY", "发送图片失败 {{index}}: {{error}}", "empty", "#CC33CC", "Unrecognized key(s) in object: ", "onmessage", "buildAdjacencyList", "errorDataPath", "无效操作: {{action}}", "streamRequest", "checkDataTypes", "assertIs", "1240282MfDGBR", "请登陆后使用插件", " at one or more positions greater than or equal to ", " = defaults[", " === 1) ", " = +", "widgets", "Template saved.", "token", "快捷键选图功能仅在插件窗口聚焦时可用", "#CC6600", "./sdppp-custom.js", "Synchronous parse encountered promise.", "broadcastCurrentState", "Not current document", "unrecognized_keys", "endsWith", "executeOutgoingNotificationInterceptor", "[object Function]", "broadcast", "缺少主图资源", "_requestHandlerAbortControllers", "urn", "TaskRouter 服务地址", "ary", "compile", "getDefaultValueFromField", "_compilations", "send", "Auto fetching…", "fcName", "负面提示词", "exists", "graph", " , data: ", " , params: { allowedValue: schema", "newdoc_canvas", "#33CCCC", " !== parseInt(division", "Using local file", "Please select an app first", "keySchema", "relatedRequestId", ")) { var err = ", "ZodFunction", "lastIndex", ") { if (vErrors === null) vErrors = ", "getDefinition", "More Settings", "kind", "async schema in sync schema", "protocolVersion", "Cannot access property/index ", " === 0 || ", " != 'boolean' && ", "unescapePrefix", " if (rootData === undefined) rootData = data; ", " try { await ", "0?[1-9]", "invalid_date", "errs__", "当前选项:图层 {{layerName}}", "additionalProperties", "getFallbackCodes", "customRule", "请输入您的Replicate API Key", "prs", "RunningHub - {{webappId}}", "requestInfo", "curr", "connected", "{1,4}", " , params: { additionalProperty: '", " for (var ", ", received '", "diff", "自动同步: 开启", " || ", "Outputs", '[\\"\\\\]', "画布范围", "nodeId", "errToObj", "action", "maxParallelReads", "TaskRouter client is not initialized", "interpolator", "_onnotification", "findPathInternal", "[^\\%]", "pluralCategories", "暂无预览内容", "Guest login successful", "getStats", "请填写模板名称。", "请输入您的RunningHub API Key", "正在连接 ComfyUI...", "历史记录", "No workflow selected", "sendStreamRequestorRequest", "addIssue", " , params: { multipleOf: ", "customRules", "Smart Object Layer", "Mask resource is missing", "Array.isArray(", "sdppp/streamRequest", "[\\:]", "escapeComponent", "minItems", "Task ID", "++) { var ", "[A-Za-z]", "设为选区", "notifications/cancelled", "deprecate", " + ']'", "No task template selected", "enforceStrictCapabilities", "canvas", "map", "_onerror", "if ( ", "readingCalls", "formatter", "errorPath", "function", "未授权 (401)", "uploadImage API 调用失败 - HTTP 错误,状态: {{status}}", ") { var err = ", "Failed to update the {{part}} prompt: ComfyUI connection is not ready.", "Applying templates is unavailable right now.", "key '", "} else { errors = ", "Unable to reboot ComfyUI", "toLowerCase", "body", "checkDataType", "Incoming message:", " !== undefined ", "#3366CC", ")) { ", "subscribe", " && !(", "ZodOptional", "#FF0033", "exactly equal to ", "xaa", "#FF6633", "null", "Note", " else { ", "payload", "请选择要发送图像的位置", "nodeTransports", "async schema referenced by sync schema", "11068155tILZfg", "Output to:", "点我恢复", "failedLoading", "uiWeight", "请填写提示词内容。", "ayn", " / ", "2[0-4]", "util", " must be number", "Stop", "isULID", "Leave empty for no limit", "ayp", "以画布边界获取画布", "[^\\%\\:]", "[\\-\\.\\_\\~]", "UploadPassProvider 与 TaskRouter 上传机制不兼容,请改用 uploadResource。", "ZodAny", "#0033FF", "nullish", "Defaults using", "A-Z\\x5E-\\x7E]", "'[\\'' + ", "Limit image size", "No image returned", "splice", " } ", "missingRef", "; ", "Opening workflow", """, "offset", "registerDirectRequestHandler", "val is not a non-empty string or a valid number. val=", "自动同步未打开", "请输入质量百分比", "is a required property", "AI使用的区域与最大尺寸控制", "]) ", " var schemaExcl", "contextualErrorMap", "Created At", "InternalError", "([01]\\d|2[0-3]):[0-5]\\d(:", "pop", "') ", "color: inherit", "addKeyword", "handleIncomingMessage", "Keyword ", "Negative prompt content", "getRegExp", "useCustomRule", "_parseAsync", "expired", "_capabilities", "at most", " = null;", "自动获取中…", "SDPPP 2.0 不再需要此节点", " already exists, which would be overridden", "isOpen", "isTop", " if (!", "requestedSchema", "No first related layer in {{0}}", "implementAction", "mins", "flags", "interpolate", "排队等待", " , message: 'should NOT be valid' ", "isSafeInteger", " , params: { limit: ", "默认模板", "(new RegExp(", "stream", " is loaded but ", "当前没有活动图层", "Server does not support notifying of prompt list changes (required for ", "nodeProxies"]; + return yx = function() { + return o; + }, yx(); +} +function ho(o, x) { + const t = a, r = (o.toString()[t(3263)](".")[1] || "")[t(2710)], e = (x.toString()[t(3263)](".")[1] || "").length, s = r > e ? r : e, n = Number[t(2085)](o[t(621)](s)[t(1521)](".", "")), i = Number[t(2085)](x[t(621)](s)[t(1521)](".", "")); return n % i / 10 ** s; } -class B0 extends Ee { +class B0 extends Ce { constructor() { const x = a; - super(...arguments), this.min = this[x(794)], this.max = this[x(2393)], this[x(550)] = this.multipleOf; + super(...arguments), this[x(521)] = this.gte, this[x(753)] = this[x(542)], this[x(1358)] = this[x(2798)]; } - [a(1948)](x) { + [a(1585)](x) { const t = a; - if (this[t(594)][t(2480)] && (x.data = Number(x[t(571)])), this[t(2020)](x) !== ae[t(1730)]) { - const n = this[t(556)](x); - return X(n, { code: Z.invalid_type, expected: ae[t(1730)], received: n[t(2966)] }), he; + if (this[t(1575)][t(1077)] && (x[t(2663)] = Number(x.data)), this[t(2981)](x) !== ae[t(2665)]) { + const n = this[t(3148)](x); + return ee(n, { code: Z[t(2421)], expected: ae[t(2665)], received: n[t(3156)] }), he; } let e; const s = new e0(); - for (const n of this[t(594)][t(2078)]) - n[t(2566)] === t(2837) ? !qe[t(2510)](x[t(571)]) && (e = this[t(556)](x, e), X(e, { code: Z.invalid_type, expected: "integer", received: t(2376), message: n[t(2732)] }), s[t(2906)]()) : n[t(2566)] === t(2310) ? (n[t(797)] ? x[t(571)] < n.value : x.data <= n.value) && (e = this._getOrReturnCtx(x, e), X(e, { code: Z[t(2302)], minimum: n.value, type: t(1730), inclusive: n[t(797)], exact: !1, message: n[t(2732)] }), s[t(2906)]()) : n[t(2566)] === "max" ? (n[t(797)] ? x[t(571)] > n.value : x[t(571)] >= n[t(2398)]) && (e = this[t(556)](x, e), X(e, { code: Z[t(554)], maximum: n[t(2398)], type: t(1730), inclusive: n[t(797)], exact: !1, message: n.message }), s[t(2906)]()) : n[t(2566)] === t(2570) ? bo(x.data, n.value) !== 0 && (e = this[t(556)](x, e), X(e, { code: Z.not_multiple_of, multipleOf: n[t(2398)], message: n[t(2732)] }), s.dirty()) : n[t(2566)] === t(381) ? !Number[t(871)](x.data) && (e = this[t(556)](x, e), X(e, { code: Z[t(2358)], message: n[t(2732)] }), s[t(2906)]()) : qe.assertNever(n); - return { status: s.value, value: x[t(571)] }; + for (const n of this[t(1575)][t(1773)]) + n.kind === t(2755) ? !Ne.isInteger(x[t(2663)]) && (e = this[t(3148)](x, e), ee(e, { code: Z.invalid_type, expected: t(766), received: "float", message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(521) ? (n[t(2068)] ? x[t(2663)] < n.value : x[t(2663)] <= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2724)], minimum: n[t(2446)], type: t(2665), inclusive: n[t(2068)], exact: !1, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(753) ? (n.inclusive ? x.data > n[t(2446)] : x[t(2663)] >= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(1305)], maximum: n[t(2446)], type: "number", inclusive: n[t(2068)], exact: !1, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(2798) ? ho(x.data, n[t(2446)]) !== 0 && (e = this._getOrReturnCtx(x, e), ee(e, { code: Z[t(2267)], multipleOf: n.value, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(1383) ? !Number[t(643)](x[t(2663)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2546)], message: n[t(1044)] }), s[t(2329)]()) : Ne[t(1034)](n); + return { status: s.value, value: x.data }; } - [a(794)](x, t) { + [a(2846)](x, t) { const r = a; - return this[r(689)]("min", x, !0, ne[r(1725)](t)); + return this.setLimit("min", x, !0, ne[r(2732)](t)); } gt(x, t) { const r = a; - return this[r(689)](r(2310), x, !1, ne.toString(t)); + return this[r(1249)](r(521), x, !1, ne[r(2732)](t)); } lte(x, t) { const r = a; - return this[r(689)](r(544), x, !0, ne[r(1725)](t)); + return this[r(1249)](r(753), x, !0, ne[r(2732)](t)); } lt(x, t) { const r = a; - return this[r(689)](r(544), x, !1, ne.toString(t)); + return this.setLimit(r(753), x, !1, ne[r(2732)](t)); } - [a(689)](x, t, r, e) { + [a(1249)](x, t, r, e) { const s = a; - return new B0({ ...this[s(594)], checks: [...this._def[s(2078)], { kind: x, value: t, inclusive: r, message: ne[s(1725)](e) }] }); + return new B0({ ...this._def, checks: [...this[s(1575)].checks, { kind: x, value: t, inclusive: r, message: ne[s(2732)](e) }] }); } - _addCheck(x) { + [a(1095)](x) { const t = a; - return new B0({ ...this[t(594)], checks: [...this[t(594)][t(2078)], x] }); + return new B0({ ...this[t(1575)], checks: [...this[t(1575)].checks, x] }); } - [a(2837)](x) { + [a(2755)](x) { const t = a; - return this[t(1561)]({ kind: t(2837), message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: t(2755), message: ne[t(2732)](x) }); } - positive(x) { + [a(2797)](x) { const t = a; - return this[t(1561)]({ kind: t(2310), value: 0, inclusive: !1, message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: "min", value: 0, inclusive: !1, message: ne[t(2732)](x) }); } negative(x) { const t = a; - return this[t(1561)]({ kind: t(544), value: 0, inclusive: !1, message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: t(753), value: 0, inclusive: !1, message: ne[t(2732)](x) }); } - [a(1035)](x) { + [a(487)](x) { const t = a; - return this[t(1561)]({ kind: t(544), value: 0, inclusive: !0, message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: t(753), value: 0, inclusive: !0, message: ne[t(2732)](x) }); } - [a(2858)](x) { + nonnegative(x) { const t = a; - return this[t(1561)]({ kind: t(2310), value: 0, inclusive: !0, message: ne.toString(x) }); + return this[t(1095)]({ kind: "min", value: 0, inclusive: !0, message: ne[t(2732)](x) }); } - [a(2570)](x, t) { + multipleOf(x, t) { const r = a; - return this[r(1561)]({ kind: r(2570), value: x, message: ne.toString(t) }); + return this[r(1095)]({ kind: r(2798), value: x, message: ne.toString(t) }); } - [a(381)](x) { + finite(x) { const t = a; - return this[t(1561)]({ kind: t(381), message: ne[t(1725)](x) }); + return this._addCheck({ kind: t(1383), message: ne[t(2732)](x) }); } - safe(x) { + [a(654)](x) { const t = a; - return this[t(1561)]({ kind: t(2310), inclusive: !0, value: Number.MIN_SAFE_INTEGER, message: ne.toString(x) })[t(1561)]({ kind: t(544), inclusive: !0, value: Number[t(417)], message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: t(521), inclusive: !0, value: Number[t(1685)], message: ne[t(2732)](x) })._addCheck({ kind: t(753), inclusive: !0, value: Number[t(2551)], message: ne[t(2732)](x) }); } - get [a(2591)]() { + get [a(2690)]() { const x = a; let t = null; - for (const r of this[x(594)].checks) - r[x(2566)] === "min" && (t === null || r.value > t) && (t = r[x(2398)]); + for (const r of this[x(1575)].checks) + r[x(1859)] === "min" && (t === null || r.value > t) && (t = r[x(2446)]); return t; } - get [a(2368)]() { + get [a(749)]() { const x = a; let t = null; - for (const r of this[x(594)][x(2078)]) - r.kind === x(544) && (t === null || r[x(2398)] < t) && (t = r[x(2398)]); + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === x(753) && (t === null || r.value < t) && (t = r.value); return t; } - get [a(2308)]() { + get isInt() { const x = a; - return !!this._def[x(2078)][x(1801)]((t) => t[x(2566)] === x(2837) || t[x(2566)] === x(2570) && qe[x(2510)](t[x(2398)])); + return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === "int" || t[x(1859)] === x(2798) && Ne[x(2534)](t.value)); } - get [a(871)]() { + get [a(643)]() { const x = a; let t = null, r = null; - for (const e of this._def.checks) { - if (e[x(2566)] === x(381) || e[x(2566)] === "int" || e.kind === x(2570)) return !0; - e[x(2566)] === x(2310) ? (r === null || e[x(2398)] > r) && (r = e[x(2398)]) : e[x(2566)] === "max" && (t === null || e[x(2398)] < t) && (t = e[x(2398)]); + for (const e of this[x(1575)][x(1773)]) { + if (e[x(1859)] === x(1383) || e.kind === x(2755) || e[x(1859)] === "multipleOf") return !0; + e[x(1859)] === x(521) ? (r === null || e[x(2446)] > r) && (r = e[x(2446)]) : e[x(1859)] === x(753) && (t === null || e[x(2446)] < t) && (t = e[x(2446)]); } - return Number[x(871)](r) && Number[x(871)](t); + return Number[x(643)](r) && Number[x(643)](t); } } -B0[a(1468)] = (o) => { +B0.create = (o) => { const x = a; - return new B0({ checks: [], typeName: pe[x(483)], coerce: (o == null ? void 0 : o[x(2480)]) || !1, ...ye(o) }); + return new B0({ checks: [], typeName: pe.ZodNumber, coerce: (o == null ? void 0 : o[x(1077)]) || !1, ...ve(o) }); }; -class tx extends Ee { +class ax extends Ce { constructor() { const x = a; - super(...arguments), this.min = this[x(794)], this[x(544)] = this[x(2393)]; + super(...arguments), this.min = this.gte, this[x(753)] = this[x(542)]; } - [a(1948)](x) { + [a(1585)](x) { const t = a; - if (this._def[t(2480)]) try { - x.data = BigInt(x.data); + if (this[t(1575)][t(1077)]) try { + x[t(2663)] = BigInt(x[t(2663)]); } catch { - return this[t(971)](x); + return this._getInvalidInput(x); } - if (this[t(2020)](x) !== ae[t(1540)]) return this[t(971)](x); + if (this[t(2981)](x) !== ae[t(3242)]) return this[t(2304)](x); let e; const s = new e0(); - for (const n of this[t(594)][t(2078)]) - n[t(2566)] === t(2310) ? (n[t(797)] ? x.data < n[t(2398)] : x[t(571)] <= n[t(2398)]) && (e = this[t(556)](x, e), X(e, { code: Z[t(2302)], type: t(1540), minimum: n[t(2398)], inclusive: n[t(797)], message: n.message }), s[t(2906)]()) : n[t(2566)] === "max" ? (n[t(797)] ? x[t(571)] > n[t(2398)] : x[t(571)] >= n[t(2398)]) && (e = this[t(556)](x, e), X(e, { code: Z[t(554)], type: "bigint", maximum: n.value, inclusive: n.inclusive, message: n[t(2732)] }), s[t(2906)]()) : n[t(2566)] === t(2570) ? x[t(571)] % n.value !== BigInt(0) && (e = this[t(556)](x, e), X(e, { code: Z[t(1826)], multipleOf: n[t(2398)], message: n[t(2732)] }), s.dirty()) : qe.assertNever(n); - return { status: s[t(2398)], value: x[t(571)] }; + for (const n of this._def[t(1773)]) + n[t(1859)] === t(521) ? (n.inclusive ? x[t(2663)] < n[t(2446)] : x[t(2663)] <= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2724)], type: t(3242), minimum: n.value, inclusive: n.inclusive, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(753) ? (n[t(2068)] ? x[t(2663)] > n.value : x[t(2663)] >= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(1305)], type: t(3242), maximum: n[t(2446)], inclusive: n[t(2068)], message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === "multipleOf" ? x.data % n.value !== BigInt(0) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2267)], multipleOf: n.value, message: n[t(1044)] }), s[t(2329)]()) : Ne[t(1034)](n); + return { status: s[t(2446)], value: x[t(2663)] }; } - [a(971)](x) { - const t = a, r = this._getOrReturnCtx(x); - return X(r, { code: Z.invalid_type, expected: ae[t(1540)], received: r.parsedType }), he; + [a(2304)](x) { + const t = a, r = this[t(3148)](x); + return ee(r, { code: Z[t(2421)], expected: ae.bigint, received: r[t(3156)] }), he; } - [a(794)](x, t) { + [a(2846)](x, t) { const r = a; - return this[r(689)](r(2310), x, !0, ne[r(1725)](t)); + return this[r(1249)](r(521), x, !0, ne.toString(t)); } gt(x, t) { - return this.setLimit("min", x, !1, ne.toString(t)); + const r = a; + return this[r(1249)](r(521), x, !1, ne[r(2732)](t)); } lte(x, t) { const r = a; - return this.setLimit(r(544), x, !0, ne[r(1725)](t)); + return this[r(1249)](r(753), x, !0, ne[r(2732)](t)); } lt(x, t) { const r = a; - return this.setLimit(r(544), x, !1, ne[r(1725)](t)); + return this[r(1249)](r(753), x, !1, ne[r(2732)](t)); } - [a(689)](x, t, r, e) { + [a(1249)](x, t, r, e) { const s = a; - return new tx({ ...this[s(594)], checks: [...this[s(594)].checks, { kind: x, value: t, inclusive: r, message: ne[s(1725)](e) }] }); + return new ax({ ...this[s(1575)], checks: [...this[s(1575)][s(1773)], { kind: x, value: t, inclusive: r, message: ne[s(2732)](e) }] }); } - [a(1561)](x) { + [a(1095)](x) { const t = a; - return new tx({ ...this[t(594)], checks: [...this[t(594)].checks, x] }); + return new ax({ ...this._def, checks: [...this[t(1575)].checks, x] }); } - [a(516)](x) { + [a(2797)](x) { const t = a; - return this[t(1561)]({ kind: t(2310), value: BigInt(0), inclusive: !1, message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: "min", value: BigInt(0), inclusive: !1, message: ne[t(2732)](x) }); } - [a(1580)](x) { + [a(2134)](x) { const t = a; - return this._addCheck({ kind: "max", value: BigInt(0), inclusive: !1, message: ne[t(1725)](x) }); + return this._addCheck({ kind: t(753), value: BigInt(0), inclusive: !1, message: ne.toString(x) }); } - [a(1035)](x) { + nonpositive(x) { const t = a; - return this._addCheck({ kind: t(544), value: BigInt(0), inclusive: !0, message: ne.toString(x) }); + return this[t(1095)]({ kind: t(753), value: BigInt(0), inclusive: !0, message: ne[t(2732)](x) }); } - [a(2858)](x) { + nonnegative(x) { const t = a; - return this[t(1561)]({ kind: "min", value: BigInt(0), inclusive: !0, message: ne[t(1725)](x) }); + return this[t(1095)]({ kind: t(521), value: BigInt(0), inclusive: !0, message: ne[t(2732)](x) }); } - [a(2570)](x, t) { + [a(2798)](x, t) { const r = a; - return this[r(1561)]({ kind: r(2570), value: x, message: ne[r(1725)](t) }); + return this[r(1095)]({ kind: r(2798), value: x, message: ne[r(2732)](t) }); } - get minValue() { + get [a(2690)]() { const x = a; let t = null; - for (const r of this[x(594)][x(2078)]) - r[x(2566)] === x(2310) && (t === null || r[x(2398)] > t) && (t = r[x(2398)]); + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === x(521) && (t === null || r[x(2446)] > t) && (t = r[x(2446)]); return t; } - get [a(2368)]() { - const x = a; - let t = null; - for (const r of this[x(594)][x(2078)]) - r.kind === "max" && (t === null || r.value < t) && (t = r[x(2398)]); - return t; - } -} -tx[a(1468)] = (o) => { - const x = a; - return new tx({ checks: [], typeName: pe[x(2601)], coerce: (o == null ? void 0 : o.coerce) ?? !1, ...ye(o) }); -}; -class Ht extends Ee { - [a(1948)](x) { - const t = a; - if (this[t(594)][t(2480)] && (x[t(571)] = !!x.data), this[t(2020)](x) !== ae.boolean) { - const e = this[t(556)](x); - return X(e, { code: Z.invalid_type, expected: ae.boolean, received: e[t(2966)] }), he; - } - return a0(x[t(571)]); - } -} -Ht.create = (o) => { - const x = a; - return new Ht({ typeName: pe[x(2955)], coerce: (o == null ? void 0 : o[x(2480)]) || !1, ...ye(o) }); -}; -class gx extends Ee { - [a(1948)](x) { - const t = a; - if (this._def[t(2480)] && (x[t(571)] = new Date(x[t(571)])), this[t(2020)](x) !== ae[t(1457)]) { - const n = this[t(556)](x); - return X(n, { code: Z.invalid_type, expected: ae.date, received: n[t(2966)] }), he; - } - if (Number[t(1497)](x.data[t(936)]())) { - const n = this[t(556)](x); - return X(n, { code: Z[t(1877)] }), he; - } - const e = new e0(); - let s; - for (const n of this[t(594)][t(2078)]) - n[t(2566)] === t(2310) ? x[t(571)][t(936)]() < n[t(2398)] && (s = this[t(556)](x, s), X(s, { code: Z[t(2302)], message: n[t(2732)], inclusive: !0, exact: !1, minimum: n[t(2398)], type: t(1457) }), e[t(2906)]()) : n[t(2566)] === t(544) ? x[t(571)].getTime() > n[t(2398)] && (s = this[t(556)](x, s), X(s, { code: Z[t(554)], message: n[t(2732)], inclusive: !0, exact: !1, maximum: n[t(2398)], type: t(1457) }), e.dirty()) : qe[t(696)](n); - return { status: e.value, value: new Date(x.data[t(936)]()) }; - } - [a(1561)](x) { - return new gx({ ...this._def, checks: [...this._def.checks, x] }); - } - [a(2310)](x, t) { - const r = a; - return this[r(1561)]({ kind: "min", value: x[r(936)](), message: ne[r(1725)](t) }); - } - max(x, t) { - const r = a; - return this[r(1561)]({ kind: r(544), value: x.getTime(), message: ne[r(1725)](t) }); - } - get [a(949)]() { - const x = a; - let t = null; - for (const r of this[x(594)][x(2078)]) - r[x(2566)] === x(2310) && (t === null || r[x(2398)] > t) && (t = r[x(2398)]); - return t != null ? new Date(t) : null; - } - get [a(2888)]() { + get maxValue() { const x = a; let t = null; for (const r of this._def.checks) - r[x(2566)] === x(544) && (t === null || r[x(2398)] < t) && (t = r[x(2398)]); + r[x(1859)] === "max" && (t === null || r.value < t) && (t = r[x(2446)]); + return t; + } +} +ax[a(1602)] = (o) => { + const x = a; + return new ax({ checks: [], typeName: pe[x(2268)], coerce: (o == null ? void 0 : o[x(1077)]) ?? !1, ...ve(o) }); +}; +class zt extends Ce { + [a(1585)](x) { + const t = a; + if (this[t(1575)][t(1077)] && (x[t(2663)] = !!x[t(2663)]), this[t(2981)](x) !== ae.boolean) { + const e = this._getOrReturnCtx(x); + return ee(e, { code: Z[t(2421)], expected: ae[t(3106)], received: e.parsedType }), he; + } + return a0(x[t(2663)]); + } +} +zt[a(1602)] = (o) => { + const x = a; + return new zt({ typeName: pe[x(2084)], coerce: (o == null ? void 0 : o.coerce) || !1, ...ve(o) }); +}; +class vx extends Ce { + _parse(x) { + const t = a; + if (this[t(1575)].coerce && (x[t(2663)] = new Date(x[t(2663)])), this[t(2981)](x) !== ae[t(1591)]) { + const n = this[t(3148)](x); + return ee(n, { code: Z.invalid_type, expected: ae[t(1591)], received: n[t(3156)] }), he; + } + if (Number[t(990)](x[t(2663)].getTime())) { + const n = this[t(3148)](x); + return ee(n, { code: Z.invalid_date }), he; + } + const e = new e0(); + let s; + for (const n of this[t(1575)][t(1773)]) + n[t(1859)] === t(521) ? x[t(2663)].getTime() < n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(2724)], message: n[t(1044)], inclusive: !0, exact: !1, minimum: n[t(2446)], type: t(1591) }), e[t(2329)]()) : n[t(1859)] === t(753) ? x[t(2663)][t(2722)]() > n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(1305)], message: n[t(1044)], inclusive: !0, exact: !1, maximum: n[t(2446)], type: t(1591) }), e[t(2329)]()) : Ne[t(1034)](n); + return { status: e[t(2446)], value: new Date(x[t(2663)][t(2722)]()) }; + } + [a(1095)](x) { + const t = a; + return new vx({ ...this._def, checks: [...this[t(1575)].checks, x] }); + } + min(x, t) { + const r = a; + return this[r(1095)]({ kind: r(521), value: x.getTime(), message: ne[r(2732)](t) }); + } + [a(753)](x, t) { + const r = a; + return this[r(1095)]({ kind: r(753), value: x[r(2722)](), message: ne[r(2732)](t) }); + } + get [a(3018)]() { + const x = a; + let t = null; + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === "min" && (t === null || r[x(2446)] > t) && (t = r.value); + return t != null ? new Date(t) : null; + } + get [a(489)]() { + const x = a; + let t = null; + for (const r of this[x(1575)][x(1773)]) + r[x(1859)] === "max" && (t === null || r[x(2446)] < t) && (t = r[x(2446)]); return t != null ? new Date(t) : null; } } -gx[a(1468)] = (o) => { +vx[a(1602)] = (o) => { const x = a; - return new gx({ checks: [], coerce: (o == null ? void 0 : o[x(2480)]) || !1, typeName: pe.ZodDate, ...ye(o) }); + return new vx({ checks: [], coerce: (o == null ? void 0 : o[x(1077)]) || !1, typeName: pe.ZodDate, ...ve(o) }); }; -class Ta extends Ee { - [a(1948)](x) { +class qa extends Ce { + [a(1585)](x) { const t = a; - if (this[t(2020)](x) !== ae.symbol) { - const e = this[t(556)](x); - return X(e, { code: Z.invalid_type, expected: ae.symbol, received: e.parsedType }), he; - } - return a0(x.data); - } -} -Ta.create = (o) => { - const x = a; - return new Ta({ typeName: pe[x(520)], ...ye(o) }); -}; -class zt extends Ee { - [a(1948)](x) { - const t = a; - if (this[t(2020)](x) !== ae.undefined) { - const e = this[t(556)](x); - return X(e, { code: Z.invalid_type, expected: ae.undefined, received: e[t(2966)] }), he; - } - return a0(x[t(571)]); - } -} -zt.create = (o) => { - const x = a; - return new zt({ typeName: pe[x(2992)], ...ye(o) }); -}; -class Vt extends Ee { - _parse(x) { - const t = a; - if (this._getType(x) !== ae[t(2973)]) { + if (this[t(2981)](x) !== ae[t(1698)]) { const e = this._getOrReturnCtx(x); - return X(e, { code: Z.invalid_type, expected: ae[t(2973)], received: e[t(2966)] }), he; + return ee(e, { code: Z.invalid_type, expected: ae[t(1698)], received: e[t(3156)] }), he; } - return a0(x[t(571)]); + return a0(x[t(2663)]); } } -Vt[a(1468)] = (o) => new Vt({ typeName: pe.ZodNull, ...ye(o) }); -class ax extends Ee { - constructor() { - const x = a; - super(...arguments), this[x(2672)] = !0; - } - [a(1948)](x) { - return a0(x[a(571)]); - } -} -ax.create = (o) => { +qa[a(1602)] = (o) => { const x = a; - return new ax({ typeName: pe[x(1206)], ...ye(o) }); + return new qa({ typeName: pe[x(2021)], ...ve(o) }); }; -class Bt extends Ee { +class Ht extends Ce { + [a(1585)](x) { + const t = a; + if (this[t(2981)](x) !== ae[t(993)]) { + const e = this._getOrReturnCtx(x); + return ee(e, { code: Z[t(2421)], expected: ae.undefined, received: e.parsedType }), he; + } + return a0(x[t(2663)]); + } +} +Ht[a(1602)] = (o) => { + const x = a; + return new Ht({ typeName: pe[x(2720)], ...ve(o) }); +}; +class Vt extends Ce { + [a(1585)](x) { + const t = a; + if (this[t(2981)](x) !== ae.null) { + const e = this[t(3148)](x); + return ee(e, { code: Z.invalid_type, expected: ae[t(1959)], received: e[t(3156)] }), he; + } + return a0(x[t(2663)]); + } +} +Vt[a(1602)] = (o) => { + const x = a; + return new Vt({ typeName: pe[x(577)], ...ve(o) }); +}; +class rx extends Ce { constructor() { const x = a; - super(...arguments), this[x(732)] = !0; + super(...arguments), this[x(747)] = !0; } + [a(1585)](x) { + return a0(x[a(2663)]); + } +} +rx[a(1602)] = (o) => { + const x = a; + return new rx({ typeName: pe[x(1985)], ...ve(o) }); +}; +class Bt extends Ce { + constructor() { + const x = a; + super(...arguments), this[x(703)] = !0; + } + [a(1585)](x) { + return a0(x[a(2663)]); + } +} +Bt[a(1602)] = (o) => { + const x = a; + return new Bt({ typeName: pe[x(1730)], ...ve(o) }); +}; +class C0 extends Ce { _parse(x) { + const t = a, r = this[t(3148)](x); + return ee(r, { code: Z[t(2421)], expected: ae.never, received: r[t(3156)] }), he; + } +} +C0[a(1602)] = (o) => new C0({ typeName: pe.ZodNever, ...ve(o) }); +class Wt extends Ce { + [a(1585)](x) { + const t = a; + if (this[t(2981)](x) !== ae[t(993)]) { + const e = this._getOrReturnCtx(x); + return ee(e, { code: Z[t(2421)], expected: ae[t(1123)], received: e.parsedType }), he; + } return a0(x.data); } } -Bt[a(1468)] = (o) => { +Wt[a(1602)] = (o) => { const x = a; - return new Bt({ typeName: pe[x(924)], ...ye(o) }); + return new Wt({ typeName: pe[x(2842)], ...ve(o) }); }; -class C0 extends Ee { - [a(1948)](x) { - const t = a, r = this[t(556)](x); - return X(r, { code: Z[t(1947)], expected: ae[t(2631)], received: r[t(2966)] }), he; - } -} -C0[a(1468)] = (o) => new C0({ typeName: pe.ZodNever, ...ye(o) }); -class Zt extends Ee { - [a(1948)](x) { - const t = a; - if (this[t(2020)](x) !== ae.undefined) { - const e = this[t(556)](x); - return X(e, { code: Z[t(1947)], expected: ae[t(2003)], received: e[t(2966)] }), he; - } - return a0(x[t(571)]); - } -} -Zt[a(1468)] = (o) => { - const x = a; - return new Zt({ typeName: pe[x(2137)], ...ye(o) }); -}; -class h0 extends Ee { +class h0 extends Ce { _parse(x) { - const t = a, { ctx: r, status: e } = this[t(1225)](x), s = this[t(594)]; - if (r[t(2966)] !== ae[t(1517)]) return X(r, { code: Z[t(1947)], expected: ae[t(1517)], received: r[t(2966)] }), he; - if (s[t(2768)] !== null) { - const i = r[t(571)].length > s.exactLength[t(2398)], c = r.data[t(2910)] < s.exactLength[t(2398)]; - (i || c) && (X(r, { code: i ? Z.too_big : Z[t(2302)], minimum: c ? s[t(2768)][t(2398)] : void 0, maximum: i ? s[t(2768)][t(2398)] : void 0, type: t(1517), inclusive: !0, exact: !0, message: s[t(2768)].message }), e.dirty()); + const t = a, { ctx: r, status: e } = this[t(861)](x), s = this._def; + if (r[t(3156)] !== ae[t(529)]) return ee(r, { code: Z[t(2421)], expected: ae[t(529)], received: r[t(3156)] }), he; + if (s.exactLength !== null) { + const i = r[t(2663)][t(2710)] > s.exactLength[t(2446)], c = r[t(2663)][t(2710)] < s[t(1623)][t(2446)]; + (i || c) && (ee(r, { code: i ? Z[t(1305)] : Z[t(2724)], minimum: c ? s[t(1623)][t(2446)] : void 0, maximum: i ? s[t(1623)][t(2446)] : void 0, type: "array", inclusive: !0, exact: !0, message: s[t(1623)][t(1044)] }), e[t(2329)]()); } - if (s[t(2694)] !== null && r[t(571)].length < s[t(2694)].value && (X(r, { code: Z[t(2302)], minimum: s[t(2694)][t(2398)], type: t(1517), inclusive: !0, exact: !1, message: s.minLength[t(2732)] }), e[t(2906)]()), s[t(496)] !== null && r[t(571)][t(2910)] > s[t(496)][t(2398)] && (X(r, { code: Z[t(554)], maximum: s[t(496)].value, type: t(1517), inclusive: !0, exact: !1, message: s.maxLength.message }), e[t(2906)]()), r.common[t(372)]) return Promise[t(2264)]([...r[t(571)]].map((i, c) => { - const d = t; - return s.type._parseAsync(new p0(r, i, r[d(2075)], c)); - }))[t(857)]((i) => e0[t(2314)](e, i)); - const n = [...r[t(571)]].map((i, c) => { - const d = t; - return s[d(506)][d(1284)](new p0(r, i, r.path, c)); + if (s[t(1312)] !== null && r[t(2663)][t(2710)] < s[t(1312)].value && (ee(r, { code: Z[t(2724)], minimum: s[t(1312)].value, type: "array", inclusive: !0, exact: !1, message: s[t(1312)][t(1044)] }), e.dirty()), s[t(649)] !== null && r[t(2663)][t(2710)] > s[t(649)][t(2446)] && (ee(r, { code: Z.too_big, maximum: s[t(649)][t(2446)], type: t(529), inclusive: !0, exact: !1, message: s[t(649)][t(1044)] }), e.dirty()), r.common[t(2416)]) return Promise[t(1096)]([...r.data][t(1930)]((i, c) => { + const u = t; + return s[u(2076)][u(2909)](new p0(r, i, r[u(2474)], c)); + }))[t(2517)]((i) => e0[t(1141)](e, i)); + const n = [...r[t(2663)]][t(1930)]((i, c) => { + const u = t; + return s[u(2076)][u(2308)](new p0(r, i, r[u(2474)], c)); }); - return e0[t(2314)](e, n); + return e0[t(1141)](e, n); } - get [a(1161)]() { + get [a(2671)]() { const x = a; - return this._def[x(506)]; + return this[x(1575)][x(2076)]; } - [a(2310)](x, t) { + [a(521)](x, t) { const r = a; - return new h0({ ...this[r(594)], minLength: { value: x, message: ne[r(1725)](t) } }); + return new h0({ ...this[r(1575)], minLength: { value: x, message: ne[r(2732)](t) } }); } - [a(544)](x, t) { + max(x, t) { const r = a; - return new h0({ ...this._def, maxLength: { value: x, message: ne[r(1725)](t) } }); + return new h0({ ...this[r(1575)], maxLength: { value: x, message: ne.toString(t) } }); } - [a(2910)](x, t) { + [a(2710)](x, t) { const r = a; - return new h0({ ...this[r(594)], exactLength: { value: x, message: ne[r(1725)](t) } }); + return new h0({ ...this[r(1575)], exactLength: { value: x, message: ne[r(2732)](t) } }); } - [a(2647)](x) { - return this.min(1, x); + [a(1214)](x) { + return this[a(521)](1, x); } } -h0[a(1468)] = (o, x) => new h0({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: pe.ZodArray, ...ye(x) }); -function H0(o) { +h0.create = (o, x) => { + const t = a; + return new h0({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: pe[t(2196)], ...ve(x) }); +}; +function z0(o) { const x = a; - if (o instanceof We) { + if (o instanceof Ke) { const t = {}; - for (const r in o[x(1798)]) { - const e = o[x(1798)][r]; - t[r] = w0[x(1468)](H0(e)); + for (const r in o[x(1547)]) { + const e = o[x(1547)][r]; + t[r] = S0[x(1602)](z0(e)); } - return new We({ ...o[x(594)], shape: () => t }); + return new Ke({ ...o._def, shape: () => t }); } else - return o instanceof h0 ? new h0({ ...o[x(594)], type: H0(o[x(1161)]) }) : o instanceof w0 ? w0[x(1468)](H0(o[x(965)]())) : o instanceof j0 ? j0[x(1468)](H0(o[x(965)]())) : o instanceof O0 ? O0[x(1468)](o[x(1141)][x(1429)]((t) => H0(t))) : o; + return o instanceof h0 ? new h0({ ...o._def, type: z0(o[x(2671)]) }) : o instanceof S0 ? S0[x(1602)](z0(o[x(2524)]())) : o instanceof D0 ? D0[x(1602)](z0(o.unwrap())) : o instanceof A0 ? A0[x(1602)](o[x(2286)][x(1930)]((t) => z0(t))) : o; } -class We extends Ee { +class Ke extends Ce { constructor() { const x = a; - super(...arguments), this[x(386)] = null, this[x(1787)] = this[x(2829)], this[x(2611)] = this[x(1393)]; + super(...arguments), this[x(2490)] = null, this[x(1599)] = this.passthrough, this[x(2689)] = this[x(919)]; } - _getCached() { + [a(481)]() { const x = a; - if (this._cached !== null) return this[x(386)]; - const t = this._def[x(1798)](), r = qe[x(2656)](t); - return this[x(386)] = { shape: t, keys: r }, this[x(386)]; + if (this[x(2490)] !== null) return this[x(2490)]; + const t = this[x(1575)][x(1547)](), r = Ne[x(2493)](t); + return this[x(2490)] = { shape: t, keys: r }, this[x(2490)]; } - [a(1948)](x) { + _parse(x) { const t = a; - if (this[t(2020)](x) !== ae[t(2517)]) { - const u = this[t(556)](x); - return X(u, { code: Z[t(1947)], expected: ae[t(2517)], received: u[t(2966)] }), he; + if (this[t(2981)](x) !== ae[t(1304)]) { + const f = this._getOrReturnCtx(x); + return ee(f, { code: Z.invalid_type, expected: ae[t(1304)], received: f.parsedType }), he; } - const { status: e, ctx: s } = this._processInputParams(x), { shape: n, keys: i } = this[t(1695)](), c = []; - if (!(this[t(594)][t(1931)] instanceof C0 && this._def[t(3033)] === "strip")) for (const u in s[t(571)]) - !i[t(416)](u) && c[t(816)](u); - const d = []; - for (const u of i) { - const l = n[u], f = s[t(571)][u]; - d[t(816)]({ key: { status: t(1694), value: u }, value: l._parse(new p0(s, f, s.path, u)), alwaysSet: u in s.data }); + const { status: e, ctx: s } = this._processInputParams(x), { shape: n, keys: i } = this._getCached(), c = []; + if (!(this._def[t(1010)] instanceof C0 && this._def[t(2477)] === t(2384))) for (const f in s.data) + !i[t(2978)](f) && c.push(f); + const u = []; + for (const f of i) { + const l = n[f], d = s[t(2663)][f]; + u[t(3062)]({ key: { status: t(1122), value: f }, value: l[t(1585)](new p0(s, d, s[t(2474)], f)), alwaysSet: f in s[t(2663)] }); } - if (this[t(594)][t(1931)] instanceof C0) { - const u = this[t(594)][t(3033)]; - if (u === "passthrough") for (const l of c) - d[t(816)]({ key: { status: t(1694), value: l }, value: { status: "valid", value: s[t(571)][l] } }); - else if (u === "strict") c[t(2910)] > 0 && (X(s, { code: Z[t(1188)], keys: c }), e[t(2906)]()); - else if (u !== t(1610)) throw new Error(t(2483)); + if (this[t(1575)][t(1010)] instanceof C0) { + const f = this[t(1575)][t(2477)]; + if (f === t(1307)) for (const l of c) + u[t(3062)]({ key: { status: t(1122), value: l }, value: { status: t(1122), value: s[t(2663)][l] } }); + else if (f === "strict") c.length > 0 && (ee(s, { code: Z[t(1825)], keys: c }), e[t(2329)]()); + else if (f !== t(2384)) throw new Error(t(1145)); } else { - const u = this[t(594)][t(1931)]; + const f = this._def[t(1010)]; for (const l of c) { - const f = s[t(571)][l]; - d[t(816)]({ key: { status: t(1694), value: l }, value: u._parse(new p0(s, f, s.path, l)), alwaysSet: l in s[t(571)] }); + const d = s[t(2663)][l]; + u[t(3062)]({ key: { status: "valid", value: l }, value: f[t(1585)](new p0(s, d, s[t(2474)], l)), alwaysSet: l in s.data }); } } - return s[t(1037)][t(372)] ? Promise[t(510)]()[t(857)](async () => { - const u = t, l = []; - for (const f of d) { - const b = await f[u(1741)], h = await f.value; - l[u(816)]({ key: b, value: h, alwaysSet: f.alwaysSet }); + return s.common[t(2416)] ? Promise[t(2457)]()[t(2517)](async () => { + const f = t, l = []; + for (const d of u) { + const g = await d[f(480)], h = await d[f(2446)]; + l.push({ key: g, value: h, alwaysSet: d[f(2643)] }); } return l; - })[t(857)]((u) => e0.mergeObjectSync(e, u)) : e0[t(2463)](e, d); + })[t(2517)]((f) => e0[t(3048)](e, f)) : e0[t(3048)](e, u); } - get [a(1798)]() { - const x = a; - return this[x(594)][x(1798)](); + get [a(1547)]() { + return this._def.shape(); } - [a(426)](x) { + [a(1116)](x) { const t = a; - return ne.errToObj, new We({ ...this[t(594)], unknownKeys: "strict", ...x !== void 0 ? { errorMap: (r, e) => { + return ne.errToObj, new Ke({ ...this[t(1575)], unknownKeys: t(1116), ...x !== void 0 ? { errorMap: (r, e) => { var i, c; - const s = t, n = ((c = (i = this._def).errorMap) == null ? void 0 : c.call(i, r, e)[s(2732)]) ?? e[s(984)]; - return r[s(3068)] === s(1188) ? { message: ne[s(1770)](x)[s(2732)] ?? n } : { message: n }; + const s = t, n = ((c = (i = this[s(1575)])[s(717)]) == null ? void 0 : c.call(i, r, e)[s(1044)]) ?? e[s(2272)]; + return r.code === "unrecognized_keys" ? { message: ne.errToObj(x)[s(1044)] ?? n } : { message: n }; } } : {} }); } - [a(1610)]() { + [a(2384)]() { const x = a; - return new We({ ...this._def, unknownKeys: x(1610) }); + return new Ke({ ...this[x(1575)], unknownKeys: x(2384) }); } - [a(2829)]() { + [a(1307)]() { const x = a; - return new We({ ...this[x(594)], unknownKeys: x(2829) }); + return new Ke({ ...this[x(1575)], unknownKeys: x(1307) }); } - [a(1393)](x) { + [a(919)](x) { const t = a; - return new We({ ...this._def, shape: () => ({ ...this[t(594)][t(1798)](), ...x }) }); + return new Ke({ ...this[t(1575)], shape: () => ({ ...this[t(1575)].shape(), ...x }) }); } - [a(585)](x) { + [a(1779)](x) { const t = a; - return new We({ unknownKeys: x[t(594)][t(3033)], catchall: x._def[t(1931)], shape: () => ({ ...this[t(594)][t(1798)](), ...x[t(594)][t(1798)]() }), typeName: pe[t(440)] }); + return new Ke({ unknownKeys: x[t(1575)][t(2477)], catchall: x[t(1575)][t(1010)], shape: () => ({ ...this._def[t(1547)](), ...x[t(1575)].shape() }), typeName: pe[t(2585)] }); } - setKey(x, t) { - return this[a(2611)]({ [x]: t }); + [a(2569)](x, t) { + return this[a(2689)]({ [x]: t }); } - [a(1931)](x) { + [a(1010)](x) { const t = a; - return new We({ ...this[t(594)], catchall: x }); + return new Ke({ ...this[t(1575)], catchall: x }); } - [a(2327)](x) { + pick(x) { const t = a, r = {}; - for (const e of qe[t(2656)](x)) - x[e] && this.shape[e] && (r[e] = this[t(1798)][e]); - return new We({ ...this._def, shape: () => r }); + for (const e of Ne.objectKeys(x)) + x[e] && this[t(1547)][e] && (r[e] = this[t(1547)][e]); + return new Ke({ ...this[t(1575)], shape: () => r }); } - omit(x) { + [a(1610)](x) { const t = a, r = {}; - for (const e of qe[t(2656)](this[t(1798)])) - !x[e] && (r[e] = this[t(1798)][e]); - return new We({ ...this._def, shape: () => r }); + for (const e of Ne[t(2493)](this[t(1547)])) + !x[e] && (r[e] = this.shape[e]); + return new Ke({ ...this._def, shape: () => r }); } - [a(2502)]() { - return H0(this); + deepPartial() { + return z0(this); } - [a(1883)](x) { + [a(537)](x) { const t = a, r = {}; - for (const e of qe[t(2656)](this.shape)) { - const s = this.shape[e]; - x && !x[e] ? r[e] = s : r[e] = s[t(1712)](); + for (const e of Ne[t(2493)](this[t(1547)])) { + const s = this[t(1547)][e]; + x && !x[e] ? r[e] = s : r[e] = s[t(2478)](); } - return new We({ ...this[t(594)], shape: () => r }); + return new Ke({ ...this[t(1575)], shape: () => r }); } - required(x) { + [a(2438)](x) { const t = a, r = {}; - for (const e of qe[t(2656)](this[t(1798)])) - if (x && !x[e]) r[e] = this[t(1798)][e]; + for (const e of Ne[t(2493)](this[t(1547)])) + if (x && !x[e]) r[e] = this[t(1547)][e]; else { - let n = this[t(1798)][e]; - for (; n instanceof w0; ) - n = n[t(594)][t(2441)]; + let n = this.shape[e]; + for (; n instanceof S0; ) + n = n._def[t(2813)]; r[e] = n; } - return new We({ ...this._def, shape: () => r }); + return new Ke({ ...this[t(1575)], shape: () => r }); } - [a(2144)]() { + keyof() { const x = a; - return Vs(qe.objectKeys(this[x(1798)])); + return zs(Ne[x(2493)](this[x(1547)])); } } -We[a(1468)] = (o, x) => { +Ke[a(1602)] = (o, x) => { const t = a; - return new We({ shape: () => o, unknownKeys: t(1610), catchall: C0[t(1468)](), typeName: pe[t(440)], ...ye(x) }); -}, We.strictCreate = (o, x) => { + return new Ke({ shape: () => o, unknownKeys: "strip", catchall: C0[t(1602)](), typeName: pe[t(2585)], ...ve(x) }); +}, Ke.strictCreate = (o, x) => { const t = a; - return new We({ shape: () => o, unknownKeys: t(426), catchall: C0[t(1468)](), typeName: pe.ZodObject, ...ye(x) }); -}, We[a(2424)] = (o, x) => { + return new Ke({ shape: () => o, unknownKeys: "strict", catchall: C0[t(1602)](), typeName: pe.ZodObject, ...ve(x) }); +}, Ke[a(1709)] = (o, x) => { const t = a; - return new We({ shape: o, unknownKeys: t(1610), catchall: C0.create(), typeName: pe.ZodObject, ...ye(x) }); + return new Ke({ shape: o, unknownKeys: t(2384), catchall: C0[t(1602)](), typeName: pe[t(2585)], ...ve(x) }); }; -class yx extends Ee { - [a(1948)](x) { - const t = a, { ctx: r } = this[t(1225)](x), e = this[t(594)][t(961)]; +class wx extends Ce { + [a(1585)](x) { + const t = a, { ctx: r } = this[t(861)](x), e = this[t(1575)][t(2876)]; function s(n) { const i = t; - for (const d of n) - if (d[i(2712)][i(735)] === "valid") return d[i(2712)]; - for (const d of n) - if (d.result[i(735)] === "dirty") return r[i(1037)][i(1989)][i(816)](...d[i(1650)].common.issues), d[i(2712)]; - const c = n[i(1429)]((d) => new k0(d[i(1650)][i(1037)][i(1989)])); - return X(r, { code: Z[i(1967)], unionErrors: c }), he; + for (const u of n) + if (u[i(676)][i(1227)] === "valid") return u[i(676)]; + for (const u of n) + if (u[i(676)][i(1227)] === i(2329)) return r[i(1281)][i(908)][i(3062)](...u[i(2136)][i(1281)][i(908)]), u[i(676)]; + const c = n[i(1930)]((u) => new P0(u[i(2136)][i(1281)].issues)); + return ee(r, { code: Z.invalid_union, unionErrors: c }), he; } - if (r.common[t(372)]) return Promise[t(2264)](e[t(1429)](async (n) => { - const i = t, c = { ...r, common: { ...r[i(1037)], issues: [] }, parent: null }; - return { result: await n._parseAsync({ data: r[i(571)], path: r[i(2075)], parent: c }), ctx: c }; - }))[t(857)](s); + if (r[t(1281)][t(2416)]) return Promise.all(e[t(1930)](async (n) => { + const i = t, c = { ...r, common: { ...r.common, issues: [] }, parent: null }; + return { result: await n[i(2909)]({ data: r[i(2663)], path: r[i(2474)], parent: c }), ctx: c }; + }))[t(2517)](s); { let n; const i = []; - for (const d of e) { - const u = { ...r, common: { ...r[t(1037)], issues: [] }, parent: null }, l = d._parseSync({ data: r[t(571)], path: r[t(2075)], parent: u }); - if (l[t(735)] === t(1694)) return l; - l.status === t(2906) && !n && (n = { result: l, ctx: u }), u[t(1037)].issues[t(2910)] && i[t(816)](u[t(1037)][t(1989)]); + for (const u of e) { + const f = { ...r, common: { ...r.common, issues: [] }, parent: null }, l = u[t(2308)]({ data: r[t(2663)], path: r.path, parent: f }); + if (l[t(1227)] === t(1122)) return l; + l[t(1227)] === "dirty" && !n && (n = { result: l, ctx: f }), f[t(1281)][t(908)][t(2710)] && i[t(3062)](f[t(1281)][t(908)]); } - if (n) return r[t(1037)][t(1989)][t(816)](...n.ctx[t(1037)][t(1989)]), n[t(2712)]; - const c = i[t(1429)]((d) => new k0(d)); - return X(r, { code: Z[t(1967)], unionErrors: c }), he; + if (n) return r[t(1281)][t(908)][t(3062)](...n[t(2136)][t(1281)][t(908)]), n[t(676)]; + const c = i[t(1930)]((u) => new P0(u)); + return ee(r, { code: Z.invalid_union, unionErrors: c }), he; } } - get [a(961)]() { + get [a(2876)]() { const x = a; - return this[x(594)][x(961)]; + return this[x(1575)][x(2876)]; } } -yx.create = (o, x) => { +wx[a(1602)] = (o, x) => { const t = a; - return new yx({ options: o, typeName: pe[t(1251)], ...ye(x) }); + return new wx({ options: o, typeName: pe[t(1695)], ...ve(x) }); }; -const g0 = (o) => { +const y0 = (o) => { const x = a; - return o instanceof Kt ? g0(o[x(1346)]) : o instanceof A0 ? g0(o[x(2441)]()) : o instanceof Sx ? [o[x(2398)]] : o instanceof D0 ? o[x(961)] : o instanceof Gt ? qe.objectValues(o[x(1662)]) : o instanceof Px ? g0(o[x(594)].innerType) : o instanceof zt ? [void 0] : o instanceof Vt ? [null] : o instanceof w0 ? [void 0, ...g0(o[x(965)]())] : o instanceof j0 ? [null, ...g0(o[x(965)]())] : o instanceof Bs || o instanceof Ex ? g0(o[x(965)]()) : o instanceof Ix ? g0(o[x(594)][x(2441)]) : []; + return o instanceof Kt ? y0(o[x(1425)]) : o instanceof N0 ? y0(o[x(2813)]()) : o instanceof Px ? [o[x(2446)]] : o instanceof O0 ? o[x(2876)] : o instanceof Gt ? Ne[x(1740)](o.enum) : o instanceof Ex ? y0(o[x(1575)][x(2813)]) : o instanceof Ht ? [void 0] : o instanceof Vt ? [null] : o instanceof S0 ? [void 0, ...y0(o[x(2524)]())] : o instanceof D0 ? [null, ...y0(o[x(2524)]())] : o instanceof Hs || o instanceof Cx ? y0(o[x(2524)]()) : o instanceof Rx ? y0(o[x(1575)].innerType) : []; }; -class na extends Ee { - [a(1948)](x) { - const t = a, { ctx: r } = this[t(1225)](x); - if (r[t(2966)] !== ae[t(2517)]) return X(r, { code: Z.invalid_type, expected: ae[t(2517)], received: r[t(2966)] }), he; - const e = this[t(2471)], s = r[t(571)][e], n = this[t(2265)][t(2620)](s); - return n ? r[t(1037)][t(372)] ? n._parseAsync({ data: r[t(571)], path: r[t(2075)], parent: r }) : n[t(1284)]({ data: r[t(571)], path: r[t(2075)], parent: r }) : (X(r, { code: Z[t(1074)], options: Array[t(2725)](this[t(2265)][t(548)]()), path: [e] }), he); +class na extends Ce { + [a(1585)](x) { + const t = a, { ctx: r } = this[t(861)](x); + if (r.parsedType !== ae[t(1304)]) return ee(r, { code: Z[t(2421)], expected: ae[t(1304)], received: r[t(3156)] }), he; + const e = this[t(2830)], s = r[t(2663)][e], n = this[t(2501)].get(s); + return n ? r[t(1281)].async ? n[t(2909)]({ data: r[t(2663)], path: r[t(2474)], parent: r }) : n[t(2308)]({ data: r[t(2663)], path: r[t(2474)], parent: r }) : (ee(r, { code: Z[t(3221)], options: Array[t(2047)](this[t(2501)][t(2123)]()), path: [e] }), he); } get discriminator() { - return this[a(594)].discriminator; - } - get [a(961)]() { const x = a; - return this[x(594)][x(961)]; + return this[x(1575)][x(2830)]; } - get [a(2265)]() { + get [a(2876)]() { const x = a; - return this[x(594)][x(2265)]; + return this[x(1575)][x(2876)]; } - static [a(1468)](x, t, r) { + get [a(2501)]() { + const x = a; + return this._def[x(2501)]; + } + static [a(1602)](x, t, r) { const e = a, s = /* @__PURE__ */ new Map(); for (const n of t) { - const i = g0(n.shape[x]); - if (!i.length) throw new Error("A discriminator value for key `" + x + "` could not be extracted from all schema options"); + const i = y0(n[e(1547)][x]); + if (!i[e(2710)]) throw new Error(e(584) + x + e(2306)); for (const c of i) { - if (s[e(2239)](c)) throw new Error("Discriminator property " + String(x) + e(2352) + String(c)); - s.set(c, n); + if (s[e(2348)](c)) throw new Error(e(2331) + String(x) + e(2221) + String(c)); + s[e(780)](c, n); } } - return new na({ typeName: pe.ZodDiscriminatedUnion, discriminator: x, options: t, optionsMap: s, ...ye(r) }); + return new na({ typeName: pe[e(1046)], discriminator: x, options: t, optionsMap: s, ...ve(r) }); } } -function Wt(o, x) { - const t = a, r = I0(o), e = I0(x); +function Zt(o, x) { + const t = a, r = E0(o), e = E0(x); if (o === x) return { valid: !0, data: o }; - if (r === ae.object && e === ae[t(2517)]) { - const s = qe.objectKeys(x), n = qe[t(2656)](o)[t(2951)]((c) => s[t(1316)](c) !== -1), i = { ...o, ...x }; + if (r === ae[t(1304)] && e === ae[t(1304)]) { + const s = Ne.objectKeys(x), n = Ne[t(2493)](o)[t(2581)]((c) => s[t(2436)](c) !== -1), i = { ...o, ...x }; for (const c of n) { - const d = Wt(o[c], x[c]); - if (!d[t(1694)]) return { valid: !1 }; - i[c] = d[t(571)]; + const u = Zt(o[c], x[c]); + if (!u.valid) return { valid: !1 }; + i[c] = u[t(2663)]; } return { valid: !0, data: i }; - } else if (r === ae[t(1517)] && e === ae.array) { - if (o[t(2910)] !== x[t(2910)]) return { valid: !1 }; + } else if (r === ae[t(529)] && e === ae[t(529)]) { + if (o.length !== x[t(2710)]) return { valid: !1 }; const s = []; - for (let n = 0; n < o[t(2910)]; n++) { - const i = o[n], c = x[n], d = Wt(i, c); - if (!d[t(1694)]) return { valid: !1 }; - s[t(816)](d.data); + for (let n = 0; n < o[t(2710)]; n++) { + const i = o[n], c = x[n], u = Zt(i, c); + if (!u[t(1122)]) return { valid: !1 }; + s[t(3062)](u.data); } return { valid: !0, data: s }; - } else return r === ae[t(1457)] && e === ae[t(1457)] && +o == +x ? { valid: !0, data: o } : { valid: !1 }; + } else return r === ae[t(1591)] && e === ae[t(1591)] && +o == +x ? { valid: !0, data: o } : { valid: !1 }; } -class vx extends Ee { - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this[t(1225)](x), s = (n, i) => { +class Sx extends Ce { + [a(1585)](x) { + const t = a, { status: r, ctx: e } = this[t(861)](x), s = (n, i) => { const c = t; if (Fa(n) || Fa(i)) return he; - const d = Wt(n[c(2398)], i[c(2398)]); - return d[c(1694)] ? ((Na(n) || Na(i)) && r[c(2906)](), { status: r[c(2398)], value: d[c(571)] }) : (X(e, { code: Z.invalid_intersection_types }), he); + const u = Zt(n[c(2446)], i[c(2446)]); + return u.valid ? ((Ta(n) || Ta(i)) && r[c(2329)](), { status: r.value, value: u[c(2663)] }) : (ee(e, { code: Z[c(1998)] }), he); }; - return e[t(1037)][t(372)] ? Promise[t(2264)]([this[t(594)][t(2099)]._parseAsync({ data: e[t(571)], path: e[t(2075)], parent: e }), this._def[t(1809)][t(2893)]({ data: e[t(571)], path: e[t(2075)], parent: e })])[t(857)](([n, i]) => s(n, i)) : s(this._def.left[t(1284)]({ data: e[t(571)], path: e[t(2075)], parent: e }), this[t(594)][t(1809)]._parseSync({ data: e[t(571)], path: e[t(2075)], parent: e })); + return e[t(1281)][t(2416)] ? Promise[t(1096)]([this[t(1575)][t(2731)][t(2909)]({ data: e[t(2663)], path: e[t(2474)], parent: e }), this._def[t(800)]._parseAsync({ data: e.data, path: e[t(2474)], parent: e })])[t(2517)](([n, i]) => s(n, i)) : s(this[t(1575)][t(2731)]._parseSync({ data: e[t(2663)], path: e.path, parent: e }), this[t(1575)][t(800)][t(2308)]({ data: e[t(2663)], path: e.path, parent: e })); } } -vx.create = (o, x, t) => { +Sx[a(1602)] = (o, x, t) => { const r = a; - return new vx({ left: o, right: x, typeName: pe[r(1444)], ...ye(t) }); + return new Sx({ left: o, right: x, typeName: pe[r(2449)], ...ve(t) }); }; -class O0 extends Ee { - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this[t(1225)](x); - if (e.parsedType !== ae[t(1517)]) return X(e, { code: Z[t(1947)], expected: ae[t(1517)], received: e.parsedType }), he; - if (e[t(571)][t(2910)] < this[t(594)][t(1141)].length) return X(e, { code: Z[t(2302)], minimum: this[t(594)][t(1141)].length, inclusive: !0, exact: !1, type: t(1517) }), he; - !this[t(594)][t(2433)] && e.data[t(2910)] > this[t(594)].items.length && (X(e, { code: Z[t(554)], maximum: this[t(594)][t(1141)].length, inclusive: !0, exact: !1, type: t(1517) }), r[t(2906)]()); - const n = [...e[t(571)]][t(1429)]((i, c) => { - const d = t, u = this._def[d(1141)][c] || this[d(594)].rest; - return u ? u._parse(new p0(e, i, e[d(2075)], c)) : null; - })[t(2951)]((i) => !!i); - return e.common.async ? Promise[t(2264)](n)[t(857)]((i) => e0[t(2314)](r, i)) : e0[t(2314)](r, n); +class A0 extends Ce { + [a(1585)](x) { + const t = a, { status: r, ctx: e } = this[t(861)](x); + if (e[t(3156)] !== ae[t(529)]) return ee(e, { code: Z[t(2421)], expected: ae[t(529)], received: e[t(3156)] }), he; + if (e[t(2663)].length < this._def.items[t(2710)]) return ee(e, { code: Z.too_small, minimum: this._def[t(2286)].length, inclusive: !0, exact: !1, type: "array" }), he; + !this[t(1575)][t(2662)] && e[t(2663)].length > this[t(1575)][t(2286)].length && (ee(e, { code: Z.too_big, maximum: this[t(1575)][t(2286)].length, inclusive: !0, exact: !1, type: t(529) }), r[t(2329)]()); + const n = [...e[t(2663)]][t(1930)]((i, c) => { + const u = t, f = this[u(1575)][u(2286)][c] || this[u(1575)][u(2662)]; + return f ? f._parse(new p0(e, i, e.path, c)) : null; + })[t(2581)]((i) => !!i); + return e[t(1281)][t(2416)] ? Promise[t(1096)](n)[t(2517)]((i) => e0[t(1141)](r, i)) : e0[t(1141)](r, n); } - get [a(1141)]() { + get [a(2286)]() { const x = a; - return this[x(594)][x(1141)]; + return this[x(1575)][x(2286)]; } - [a(2433)](x) { - return new O0({ ...this._def, rest: x }); + rest(x) { + const t = a; + return new A0({ ...this[t(1575)], rest: x }); } } -O0[a(1468)] = (o, x) => { +A0.create = (o, x) => { const t = a; - if (!Array[t(2573)](o)) throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); - return new O0({ items: o, typeName: pe[t(1210)], rest: null, ...ye(x) }); + if (!Array[t(3255)](o)) throw new Error(t(2945)); + return new A0({ items: o, typeName: pe[t(3147)], rest: null, ...ve(x) }); }; -class wx extends Ee { - get [a(2783)]() { - return this[a(594)].keyType; +class kx extends Ce { + get keySchema() { + return this[a(1575)].keyType; } - get [a(1060)]() { + get [a(3067)]() { const x = a; - return this[x(594)][x(1263)]; + return this._def[x(2027)]; } - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this[t(1225)](x); - if (e[t(2966)] !== ae.object) return X(e, { code: Z[t(1947)], expected: ae.object, received: e[t(2966)] }), he; - const s = [], n = this[t(594)][t(3034)], i = this[t(594)][t(1263)]; - for (const c in e[t(571)]) - s[t(816)]({ key: n._parse(new p0(e, c, e.path, c)), value: i[t(1948)](new p0(e, e[t(571)][c], e[t(2075)], c)), alwaysSet: c in e.data }); - return e.common[t(372)] ? e0[t(1535)](r, s) : e0[t(2463)](r, s); + [a(1585)](x) { + const t = a, { status: r, ctx: e } = this._processInputParams(x); + if (e.parsedType !== ae.object) return ee(e, { code: Z[t(2421)], expected: ae.object, received: e.parsedType }), he; + const s = [], n = this[t(1575)][t(2609)], i = this[t(1575)][t(2027)]; + for (const c in e[t(2663)]) + s.push({ key: n[t(1585)](new p0(e, c, e[t(2474)], c)), value: i[t(1585)](new p0(e, e[t(2663)][c], e.path, c)), alwaysSet: c in e[t(2663)] }); + return e.common[t(2416)] ? e0[t(3003)](r, s) : e0.mergeObjectSync(r, s); } - get [a(1161)]() { - return this[a(594)].valueType; + get [a(2671)]() { + const x = a; + return this[x(1575)][x(2027)]; } - static [a(1468)](x, t, r) { + static [a(1602)](x, t, r) { const e = a; - return t instanceof Ee ? new wx({ keyType: x, valueType: t, typeName: pe.ZodRecord, ...ye(r) }) : new wx({ keyType: v0[e(1468)](), valueType: x, typeName: pe[e(957)], ...ye(t) }); + return t instanceof Ce ? new kx({ keyType: x, valueType: t, typeName: pe[e(1131)], ...ve(r) }) : new kx({ keyType: w0[e(1602)](), valueType: x, typeName: pe[e(1131)], ...ve(t) }); } } -class Aa extends Ee { - get keySchema() { +class Aa extends Ce { + get [a(1851)]() { const x = a; - return this[x(594)][x(3034)]; + return this[x(1575)][x(2609)]; } - get valueSchema() { - return this[a(594)].valueType; + get [a(3067)]() { + const x = a; + return this[x(1575)][x(2027)]; } - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this._processInputParams(x); - if (e[t(2966)] !== ae[t(1429)]) return X(e, { code: Z[t(1947)], expected: ae[t(1429)], received: e[t(2966)] }), he; - const s = this[t(594)][t(3034)], n = this[t(594)][t(1263)], i = [...e[t(571)][t(807)]()][t(1429)](([c, d], u) => { + _parse(x) { + const t = a, { status: r, ctx: e } = this[t(861)](x); + if (e[t(3156)] !== ae.map) return ee(e, { code: Z[t(2421)], expected: ae[t(1930)], received: e[t(3156)] }), he; + const s = this[t(1575)][t(2609)], n = this[t(1575)][t(2027)], i = [...e[t(2663)][t(2634)]()][t(1930)](([c, u], f) => { const l = t; - return { key: s._parse(new p0(e, c, e[l(2075)], [u, l(1741)])), value: n[l(1948)](new p0(e, d, e.path, [u, l(2398)])) }; + return { key: s._parse(new p0(e, c, e[l(2474)], [f, l(480)])), value: n[l(1585)](new p0(e, u, e[l(2474)], [f, "value"])) }; }); - if (e[t(1037)][t(372)]) { + if (e[t(1281)].async) { const c = /* @__PURE__ */ new Map(); - return Promise[t(510)]()[t(857)](async () => { - const d = t; - for (const u of i) { - const l = await u.key, f = await u[d(2398)]; - if (l[d(735)] === d(930) || f[d(735)] === d(930)) return he; - (l[d(735)] === "dirty" || f.status === "dirty") && r[d(2906)](), c[d(2454)](l[d(2398)], f[d(2398)]); + return Promise[t(2457)]()[t(2517)](async () => { + const u = t; + for (const f of i) { + const l = await f.key, d = await f[u(2446)]; + if (l[u(1227)] === u(896) || d[u(1227)] === u(896)) return he; + (l.status === u(2329) || d[u(1227)] === u(2329)) && r[u(2329)](), c[u(780)](l.value, d.value); } - return { status: r.value, value: c }; + return { status: r[u(2446)], value: c }; }); } else { const c = /* @__PURE__ */ new Map(); - for (const d of i) { - const u = d[t(1741)], l = d.value; - if (u[t(735)] === t(930) || l[t(735)] === t(930)) return he; - (u.status === t(2906) || l[t(735)] === t(2906)) && r[t(2906)](), c[t(2454)](u[t(2398)], l[t(2398)]); + for (const u of i) { + const f = u[t(480)], l = u[t(2446)]; + if (f[t(1227)] === t(896) || l.status === "aborted") return he; + (f[t(1227)] === "dirty" || l[t(1227)] === t(2329)) && r[t(2329)](), c[t(780)](f[t(2446)], l[t(2446)]); } - return { status: r[t(2398)], value: c }; + return { status: r[t(2446)], value: c }; } } } -Aa[a(1468)] = (o, x, t) => new Aa({ valueType: x, keyType: o, typeName: pe.ZodMap, ...ye(t) }); -class rx extends Ee { - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this._processInputParams(x); - if (e[t(2966)] !== ae[t(2454)]) return X(e, { code: Z[t(1947)], expected: ae[t(2454)], received: e[t(2966)] }), he; - const s = this[t(594)]; - s[t(2549)] !== null && e.data[t(2873)] < s.minSize[t(2398)] && (X(e, { code: Z[t(2302)], minimum: s[t(2549)][t(2398)], type: "set", inclusive: !0, exact: !1, message: s[t(2549)][t(2732)] }), r[t(2906)]()), s.maxSize !== null && e.data[t(2873)] > s[t(3001)][t(2398)] && (X(e, { code: Z[t(554)], maximum: s[t(3001)][t(2398)], type: t(2454), inclusive: !0, exact: !1, message: s.maxSize[t(2732)] }), r[t(2906)]()); - const n = this[t(594)][t(1263)]; - function i(d) { - const u = t, l = /* @__PURE__ */ new Set(); - for (const f of d) { - if (f.status === u(930)) return he; - f[u(735)] === u(2906) && r[u(2906)](), l[u(1604)](f[u(2398)]); +Aa.create = (o, x, t) => { + const r = a; + return new Aa({ valueType: x, keyType: o, typeName: pe[r(3163)], ...ve(t) }); +}; +class sx extends Ce { + [a(1585)](x) { + const t = a, { status: r, ctx: e } = this[t(861)](x); + if (e[t(3156)] !== ae[t(780)]) return ee(e, { code: Z.invalid_type, expected: ae[t(780)], received: e[t(3156)] }), he; + const s = this[t(1575)]; + s[t(3259)] !== null && e[t(2663)].size < s[t(3259)][t(2446)] && (ee(e, { code: Z[t(2724)], minimum: s[t(3259)][t(2446)], type: t(780), inclusive: !0, exact: !1, message: s[t(3259)][t(1044)] }), r[t(2329)]()), s[t(1272)] !== null && e[t(2663)].size > s[t(1272)][t(2446)] && (ee(e, { code: Z[t(1305)], maximum: s.maxSize[t(2446)], type: t(780), inclusive: !0, exact: !1, message: s[t(1272)].message }), r[t(2329)]()); + const n = this._def.valueType; + function i(u) { + const f = t, l = /* @__PURE__ */ new Set(); + for (const d of u) { + if (d.status === f(896)) return he; + d[f(1227)] === f(2329) && r[f(2329)](), l.add(d[f(2446)]); } - return { status: r.value, value: l }; + return { status: r[f(2446)], value: l }; } - const c = [...e[t(571)][t(2323)]()][t(1429)]((d, u) => n[t(1948)](new p0(e, d, e[t(2075)], u))); - return e.common[t(372)] ? Promise[t(2264)](c).then((d) => i(d)) : i(c); + const c = [...e.data[t(3237)]()][t(1930)]((u, f) => n._parse(new p0(e, u, e[t(2474)], f))); + return e[t(1281)].async ? Promise[t(1096)](c)[t(2517)]((u) => i(u)) : i(c); } - [a(2310)](x, t) { + min(x, t) { const r = a; - return new rx({ ...this._def, minSize: { value: x, message: ne[r(1725)](t) } }); + return new sx({ ...this._def, minSize: { value: x, message: ne[r(2732)](t) } }); } - [a(544)](x, t) { + [a(753)](x, t) { const r = a; - return new rx({ ...this[r(594)], maxSize: { value: x, message: ne[r(1725)](t) } }); + return new sx({ ...this._def, maxSize: { value: x, message: ne[r(2732)](t) } }); } - [a(2873)](x, t) { + [a(846)](x, t) { const r = a; - return this[r(2310)](x, t)[r(544)](x, t); + return this[r(521)](x, t)[r(753)](x, t); } - nonempty(x) { - return this[a(2310)](1, x); + [a(1214)](x) { + return this[a(521)](1, x); } } -rx[a(1468)] = (o, x) => { +sx[a(1602)] = (o, x) => { const t = a; - return new rx({ valueType: o, minSize: null, maxSize: null, typeName: pe[t(1137)], ...ye(x) }); + return new sx({ valueType: o, minSize: null, maxSize: null, typeName: pe[t(3281)], ...ve(x) }); }; -class Kt extends Ee { - get [a(1346)]() { +class Kt extends Ce { + get [a(1425)]() { const x = a; - return this[x(594)][x(2217)](); + return this[x(1575)][x(1177)](); } - _parse(x) { - const t = a, { ctx: r } = this[t(1225)](x); - return this[t(594)][t(2217)]()._parse({ data: r[t(571)], path: r[t(2075)], parent: r }); - } -} -Kt.create = (o, x) => new Kt({ getter: o, typeName: pe.ZodLazy, ...ye(x) }); -class Sx extends Ee { - [a(1948)](x) { - const t = a; - if (x[t(571)] !== this[t(594)].value) { - const r = this[t(556)](x); - return X(r, { received: r.data, code: Z[t(1884)], expected: this[t(594)][t(2398)] }), he; - } - return { status: t(1694), value: x[t(571)] }; - } - get [a(2398)]() { - const x = a; - return this[x(594)][x(2398)]; - } -} -Sx[a(1468)] = (o, x) => { - const t = a; - return new Sx({ value: o, typeName: pe[t(2799)], ...ye(x) }); -}; -function Vs(o, x) { - const t = a; - return new D0({ values: o, typeName: pe[t(2721)], ...ye(x) }); -} -class D0 extends Ee { - [a(1948)](x) { - const t = a; - if (typeof x[t(571)] !== t(1443)) { - const r = this[t(556)](x), e = this._def[t(2323)]; - return X(r, { expected: qe.joinValues(e), received: r[t(2966)], code: Z[t(1947)] }), he; - } - if (!this[t(2952)] && (this[t(2952)] = new Set(this._def[t(2323)])), !this[t(2952)][t(2239)](x[t(571)])) { - const r = this._getOrReturnCtx(x), e = this[t(594)][t(2323)]; - return X(r, { received: r[t(571)], code: Z[t(1207)], options: e }), he; - } - return a0(x.data); - } - get [a(961)]() { - const x = a; - return this[x(594)][x(2323)]; - } - get [a(1662)]() { - const x = a, t = {}; - for (const r of this[x(594)][x(2323)]) - t[r] = r; - return t; - } - get [a(573)]() { - const x = {}; - for (const t of this._def.values) - x[t] = t; - return x; - } - get [a(1970)]() { - const x = a, t = {}; - for (const r of this[x(594)][x(2323)]) - t[r] = r; - return t; - } - extract(x, t = this[a(594)]) { - const r = a; - return D0[r(1468)](x, { ...this[r(594)], ...t }); - } - exclude(x, t = this[a(594)]) { - const r = a; - return D0[r(1468)](this.options[r(2951)]((e) => !x[r(416)](e)), { ...this[r(594)], ...t }); - } -} -D0[a(1468)] = Vs; -class Gt extends Ee { - [a(1948)](x) { - const t = a, r = qe[t(944)](this[t(594)][t(2323)]), e = this[t(556)](x); - if (e[t(2966)] !== ae[t(1443)] && e[t(2966)] !== ae[t(1730)]) { - const s = qe.objectValues(r); - return X(e, { expected: qe[t(1867)](s), received: e[t(2966)], code: Z[t(1947)] }), he; - } - if (!this[t(2952)] && (this[t(2952)] = new Set(qe[t(944)](this._def.values))), !this[t(2952)][t(2239)](x.data)) { - const s = qe.objectValues(r); - return X(e, { received: e[t(571)], code: Z[t(1207)], options: s }), he; - } - return a0(x.data); - } - get [a(1662)]() { - const x = a; - return this[x(594)][x(2323)]; - } -} -Gt[a(1468)] = (o, x) => new Gt({ values: o, typeName: pe.ZodNativeEnum, ...ye(x) }); -class kx extends Ee { - [a(965)]() { - const x = a; - return this[x(594)][x(506)]; - } - [a(1948)](x) { + [a(1585)](x) { const t = a, { ctx: r } = this._processInputParams(x); - if (r.parsedType !== ae.promise && r[t(1037)][t(372)] === !1) return X(r, { code: Z.invalid_type, expected: ae[t(545)], received: r[t(2966)] }), he; - const e = r[t(2966)] === ae.promise ? r.data : Promise[t(510)](r[t(571)]); - return a0(e.then((s) => { + return this[t(1575)][t(1177)]()[t(1585)]({ data: r.data, path: r[t(2474)], parent: r }); + } +} +Kt[a(1602)] = (o, x) => { + const t = a; + return new Kt({ getter: o, typeName: pe[t(2596)], ...ve(x) }); +}; +class Px extends Ce { + [a(1585)](x) { + const t = a; + if (x[t(2663)] !== this._def[t(2446)]) { + const r = this._getOrReturnCtx(x); + return ee(r, { received: r.data, code: Z.invalid_literal, expected: this[t(1575)][t(2446)] }), he; + } + return { status: t(1122), value: x[t(2663)] }; + } + get [a(2446)]() { + const x = a; + return this[x(1575)][x(2446)]; + } +} +Px[a(1602)] = (o, x) => { + const t = a; + return new Px({ value: o, typeName: pe[t(2034)], ...ve(x) }); +}; +function zs(o, x) { + const t = a; + return new O0({ values: o, typeName: pe[t(804)], ...ve(x) }); +} +class O0 extends Ce { + [a(1585)](x) { + const t = a; + if (typeof x[t(2663)] !== t(1361)) { + const r = this[t(3148)](x), e = this[t(1575)].values; + return ee(r, { expected: Ne.joinValues(e), received: r[t(3156)], code: Z[t(2421)] }), he; + } + if (!this._cache && (this[t(811)] = new Set(this[t(1575)][t(3237)])), !this._cache[t(2348)](x.data)) { + const r = this[t(3148)](x), e = this[t(1575)].values; + return ee(r, { received: r[t(2663)], code: Z[t(1065)], options: e }), he; + } + return a0(x[t(2663)]); + } + get [a(2876)]() { + const x = a; + return this[x(1575)][x(3237)]; + } + get [a(2218)]() { + const x = a, t = {}; + for (const r of this[x(1575)][x(3237)]) + t[r] = r; + return t; + } + get [a(602)]() { + const x = a, t = {}; + for (const r of this[x(1575)].values) + t[r] = r; + return t; + } + get Enum() { + const x = a, t = {}; + for (const r of this[x(1575)][x(3237)]) + t[r] = r; + return t; + } + [a(1718)](x, t = this[a(1575)]) { + return O0.create(x, { ...this._def, ...t }); + } + exclude(x, t = this._def) { + const r = a; + return O0.create(this[r(2876)][r(2581)]((e) => !x[r(2978)](e)), { ...this[r(1575)], ...t }); + } +} +O0[a(1602)] = zs; +class Gt extends Ce { + _parse(x) { + const t = a, r = Ne[t(1256)](this[t(1575)][t(3237)]), e = this[t(3148)](x); + if (e[t(3156)] !== ae[t(1361)] && e[t(3156)] !== ae[t(2665)]) { + const s = Ne[t(1740)](r); + return ee(e, { expected: Ne.joinValues(s), received: e[t(3156)], code: Z[t(2421)] }), he; + } + if (!this._cache && (this[t(811)] = new Set(Ne.getValidEnumValues(this[t(1575)].values))), !this[t(811)][t(2348)](x.data)) { + const s = Ne[t(1740)](r); + return ee(e, { received: e[t(2663)], code: Z[t(1065)], options: s }), he; + } + return a0(x[t(2663)]); + } + get [a(2218)]() { + const x = a; + return this[x(1575)][x(3237)]; + } +} +Gt.create = (o, x) => { + const t = a; + return new Gt({ values: o, typeName: pe[t(2966)], ...ve(x) }); +}; +class Ix extends Ce { + [a(2524)]() { + const x = a; + return this[x(1575)][x(2076)]; + } + [a(1585)](x) { + const t = a, { ctx: r } = this[t(861)](x); + if (r.parsedType !== ae[t(810)] && r[t(1281)][t(2416)] === !1) return ee(r, { code: Z[t(2421)], expected: ae[t(810)], received: r.parsedType }), he; + const e = r[t(3156)] === ae.promise ? r[t(2663)] : Promise[t(2457)](r[t(2663)]); + return a0(e[t(2517)]((s) => { const n = t; - return this[n(594)][n(506)][n(436)](s, { path: r[n(2075)], errorMap: r[n(1037)][n(2740)] }); + return this[n(1575)].type[n(2237)](s, { path: r[n(2474)], errorMap: r[n(1281)][n(2896)] }); })); } } -kx.create = (o, x) => new kx({ type: o, typeName: pe.ZodPromise, ...ye(x) }); -class A0 extends Ee { - [a(2441)]() { +Ix[a(1602)] = (o, x) => { + const t = a; + return new Ix({ type: o, typeName: pe[t(835)], ...ve(x) }); +}; +class N0 extends Ce { + [a(2813)]() { const x = a; - return this[x(594)][x(1346)]; + return this[x(1575)][x(1425)]; } - [a(2542)]() { + [a(3212)]() { const x = a; - return this[x(594)][x(1346)][x(594)].typeName === pe[x(2523)] ? this[x(594)][x(1346)][x(2542)]() : this[x(594)].schema; + return this._def[x(1425)][x(1575)].typeName === pe[x(1621)] ? this[x(1575)][x(1425)].sourceType() : this[x(1575)][x(1425)]; } _parse(x) { - const t = a, { status: r, ctx: e } = this[t(1225)](x), s = this[t(594)][t(2738)] || null, n = { addIssue: (i) => { + const t = a, { status: r, ctx: e } = this[t(861)](x), s = this[t(1575)].effect || null, n = { addIssue: (i) => { const c = t; - X(e, i), i[c(810)] ? r[c(1973)]() : r.dirty(); + ee(e, i), i[c(2372)] ? r.abort() : r[c(2329)](); }, get path() { - return e[t(2075)]; + return e[t(2474)]; } }; - if (n[t(2643)] = n[t(2643)].bind(n), s.type === t(879)) { - const i = s[t(1564)](e.data, n); - if (e.common.async) return Promise[t(510)](i).then(async (c) => { - const d = t; - if (r.value === "aborted") return he; - const u = await this._def[d(1346)][d(2893)]({ data: c, path: e[d(2075)], parent: e }); - return u[d(735)] === d(930) ? he : u[d(735)] === "dirty" ? Q0(u[d(2398)]) : r.value === d(2906) ? Q0(u.value) : u; + if (n[t(1910)] = n[t(1910)].bind(n), s[t(2076)] === "preprocess") { + const i = s[t(2450)](e[t(2663)], n); + if (e[t(1281)][t(2416)]) return Promise[t(2457)](i).then(async (c) => { + const u = t; + if (r.value === u(896)) return he; + const f = await this[u(1575)][u(1425)][u(2909)]({ data: c, path: e[u(2474)], parent: e }); + return f[u(1227)] === u(896) ? he : f.status === u(2329) ? X0(f[u(2446)]) : r[u(2446)] === u(2329) ? X0(f.value) : f; }); { - if (r[t(2398)] === t(930)) return he; - const c = this._def[t(1346)][t(1284)]({ data: i, path: e.path, parent: e }); - return c[t(735)] === t(930) ? he : c[t(735)] === t(2906) ? Q0(c.value) : r.value === "dirty" ? Q0(c[t(2398)]) : c; + if (r[t(2446)] === "aborted") return he; + const c = this[t(1575)].schema[t(2308)]({ data: i, path: e[t(2474)], parent: e }); + return c.status === t(896) ? he : c[t(1227)] === "dirty" ? X0(c[t(2446)]) : r[t(2446)] === "dirty" ? X0(c.value) : c; } } - if (s.type === t(2585)) { + if (s[t(2076)] === t(2100)) { const i = (c) => { - const d = t, u = s[d(2585)](c, n); - if (e[d(1037)][d(372)]) return Promise[d(510)](u); - if (u instanceof Promise) throw new Error(d(2711)); + const u = t, f = s.refinement(c, n); + if (e[u(1281)][u(2416)]) return Promise[u(2457)](f); + if (f instanceof Promise) throw new Error(u(2571)); return c; }; - if (e.common[t(372)] === !1) { - const c = this[t(594)][t(1346)][t(1284)]({ data: e[t(571)], path: e[t(2075)], parent: e }); - return c[t(735)] === t(930) ? he : (c[t(735)] === t(2906) && r[t(2906)](), i(c[t(2398)]), { status: r[t(2398)], value: c.value }); - } else return this[t(594)][t(1346)][t(2893)]({ data: e[t(571)], path: e[t(2075)], parent: e })[t(857)]((c) => { - const d = t; - return c[d(735)] === "aborted" ? he : (c.status === "dirty" && r[d(2906)](), i(c.value).then(() => { - const u = d; - return { status: r[u(2398)], value: c[u(2398)] }; + if (e.common.async === !1) { + const c = this._def[t(1425)][t(2308)]({ data: e[t(2663)], path: e[t(2474)], parent: e }); + return c.status === "aborted" ? he : (c[t(1227)] === "dirty" && r[t(2329)](), i(c.value), { status: r[t(2446)], value: c[t(2446)] }); + } else return this[t(1575)].schema[t(2909)]({ data: e[t(2663)], path: e[t(2474)], parent: e })[t(2517)]((c) => { + const u = t; + return c.status === u(896) ? he : (c[u(1227)] === "dirty" && r[u(2329)](), i(c.value)[u(2517)](() => { + const f = u; + return { status: r[f(2446)], value: c[f(2446)] }; })); }); } - if (s[t(506)] === t(1564)) - if (e[t(1037)][t(372)] === !1) { - const i = this[t(594)][t(1346)][t(1284)]({ data: e[t(571)], path: e[t(2075)], parent: e }); + if (s[t(2076)] === t(2450)) + if (e[t(1281)][t(2416)] === !1) { + const i = this[t(1575)][t(1425)]._parseSync({ data: e[t(2663)], path: e[t(2474)], parent: e }); if (!V0(i)) return he; - const c = s[t(1564)](i[t(2398)], n); - if (c instanceof Promise) throw new Error(t(3030)); - return { status: r[t(2398)], value: c }; - } else return this._def[t(1346)][t(2893)]({ data: e[t(571)], path: e[t(2075)], parent: e })[t(857)]((i) => { + const c = s[t(2450)](i[t(2446)], n); + if (c instanceof Promise) throw new Error(t(1674)); + return { status: r[t(2446)], value: c }; + } else return this[t(1575)][t(1425)][t(2909)]({ data: e[t(2663)], path: e.path, parent: e })[t(2517)]((i) => { const c = t; - return V0(i) ? Promise[c(510)](s[c(1564)](i[c(2398)], n)).then((d) => ({ status: r[c(2398)], value: d })) : he; + return V0(i) ? Promise[c(2457)](s[c(2450)](i[c(2446)], n))[c(2517)]((u) => ({ status: r[c(2446)], value: u })) : he; }); - qe.assertNever(s); + Ne[t(1034)](s); } } -A0[a(1468)] = (o, x, t) => new A0({ schema: o, typeName: pe.ZodEffects, effect: x, ...ye(t) }), A0[a(391)] = (o, x, t) => new A0({ schema: x, effect: { type: "preprocess", transform: o }, typeName: pe.ZodEffects, ...ye(t) }); -class w0 extends Ee { - [a(1948)](x) { +N0[a(1602)] = (o, x, t) => { + const r = a; + return new N0({ schema: o, typeName: pe[r(1621)], effect: x, ...ve(t) }); +}, N0[a(1716)] = (o, x, t) => { + const r = a; + return new N0({ schema: x, effect: { type: r(1318), transform: o }, typeName: pe[r(1621)], ...ve(t) }); +}; +class S0 extends Ce { + [a(1585)](x) { const t = a; - return this._getType(x) === ae[t(1691)] ? a0(void 0) : this._def[t(2441)][t(1948)](x); + return this[t(2981)](x) === ae[t(993)] ? a0(void 0) : this[t(1575)].innerType[t(1585)](x); } - [a(965)]() { + [a(2524)]() { const x = a; - return this[x(594)][x(2441)]; + return this[x(1575)][x(2813)]; } } -w0[a(1468)] = (o, x) => { +S0[a(1602)] = (o, x) => { const t = a; - return new w0({ innerType: o, typeName: pe[t(1341)], ...ye(x) }); + return new S0({ innerType: o, typeName: pe[t(1954)], ...ve(x) }); }; -class j0 extends Ee { - [a(1948)](x) { +class D0 extends Ce { + [a(1585)](x) { const t = a; - return this._getType(x) === ae[t(2973)] ? a0(null) : this[t(594)][t(2441)]._parse(x); + return this[t(2981)](x) === ae[t(1959)] ? a0(null) : this[t(1575)][t(2813)][t(1585)](x); } - [a(965)]() { - return this[a(594)].innerType; + [a(2524)]() { + const x = a; + return this[x(1575)][x(2813)]; } } -j0[a(1468)] = (o, x) => { +D0[a(1602)] = (o, x) => { const t = a; - return new j0({ innerType: o, typeName: pe[t(1924)], ...ye(x) }); + return new D0({ innerType: o, typeName: pe[t(847)], ...ve(x) }); }; -class Px extends Ee { - [a(1948)](x) { +class Ex extends Ce { + [a(1585)](x) { const t = a, { ctx: r } = this._processInputParams(x); - let e = r[t(571)]; - return r[t(2966)] === ae.undefined && (e = this[t(594)][t(2628)]()), this[t(594)][t(2441)][t(1948)]({ data: e, path: r.path, parent: r }); + let e = r.data; + return r.parsedType === ae[t(993)] && (e = this[t(1575)][t(2074)]()), this[t(1575)][t(2813)][t(1585)]({ data: e, path: r.path, parent: r }); } - removeDefault() { - const x = a; - return this._def[x(2441)]; + [a(2341)]() { + return this[a(1575)].innerType; } } -Px[a(1468)] = (o, x) => { +Ex[a(1602)] = (o, x) => { const t = a; - return new Px({ innerType: o, typeName: pe[t(2954)], defaultValue: typeof x.default == "function" ? x[t(2889)] : () => x[t(2889)], ...ye(x) }); + return new Ex({ innerType: o, typeName: pe[t(3051)], defaultValue: typeof x[t(2485)] === t(1936) ? x[t(2485)] : () => x[t(2485)], ...ve(x) }); }; -class Ix extends Ee { - [a(1948)](x) { - const t = a, { ctx: r } = this[t(1225)](x), e = { ...r, common: { ...r.common, issues: [] } }, s = this[t(594)][t(2441)][t(1948)]({ data: e.data, path: e[t(2075)], parent: { ...e } }); - return bx(s) ? s.then((n) => { +class Rx extends Ce { + [a(1585)](x) { + const t = a, { ctx: r } = this[t(861)](x), e = { ...r, common: { ...r.common, issues: [] } }, s = this._def[t(2813)][t(1585)]({ data: e[t(2663)], path: e[t(2474)], parent: { ...e } }); + return gx(s) ? s.then((n) => { const i = t; - return { status: i(1694), value: n[i(735)] === i(1694) ? n[i(2398)] : this[i(594)][i(2127)]({ get error() { - return new k0(e.common.issues); - }, input: e[i(571)] }) }; - }) : { status: "valid", value: s[t(735)] === t(1694) ? s[t(2398)] : this[t(594)][t(2127)]({ get error() { + return { status: i(1122), value: n[i(1227)] === i(1122) ? n[i(2446)] : this[i(1575)][i(2220)]({ get error() { + const c = i; + return new P0(e[c(1281)][c(908)]); + }, input: e[i(2663)] }) }; + }) : { status: t(1122), value: s[t(1227)] === "valid" ? s.value : this[t(1575)][t(2220)]({ get error() { const n = t; - return new k0(e[n(1037)][n(1989)]); - }, input: e[t(571)] }) }; + return new P0(e.common[n(908)]); + }, input: e[t(2663)] }) }; } - [a(2887)]() { + removeCatch() { const x = a; - return this[x(594)][x(2441)]; + return this[x(1575)][x(2813)]; } } -Ix[a(1468)] = (o, x) => { +Rx[a(1602)] = (o, x) => { const t = a; - return new Ix({ innerType: o, typeName: pe.ZodCatch, catchValue: typeof x[t(1508)] == "function" ? x[t(1508)] : () => x.catch, ...ye(x) }); + return new Rx({ innerType: o, typeName: pe[t(2521)], catchValue: typeof x.catch === t(1936) ? x.catch : () => x[t(742)], ...ve(x) }); }; -class _a extends Ee { - [a(1948)](x) { +class Oa extends Ce { + [a(1585)](x) { const t = a; - if (this[t(2020)](x) !== ae[t(2184)]) { - const e = this[t(556)](x); - return X(e, { code: Z[t(1947)], expected: ae[t(2184)], received: e[t(2966)] }), he; + if (this._getType(x) !== ae[t(1220)]) { + const e = this[t(3148)](x); + return ee(e, { code: Z[t(2421)], expected: ae[t(1220)], received: e[t(3156)] }), he; } - return { status: "valid", value: x[t(571)] }; + return { status: t(1122), value: x[t(2663)] }; } } -_a[a(1468)] = (o) => { +Oa.create = (o) => { const x = a; - return new _a({ typeName: pe[x(2409)], ...ye(o) }); + return new Oa({ typeName: pe[x(3130)], ...ve(o) }); }; -class Bs extends Ee { - [a(1948)](x) { - const t = a, { ctx: r } = this._processInputParams(x), e = r[t(571)]; - return this[t(594)][t(506)]._parse({ data: e, path: r[t(2075)], parent: r }); +class Hs extends Ce { + [a(1585)](x) { + const t = a, { ctx: r } = this[t(861)](x), e = r[t(2663)]; + return this[t(1575)][t(2076)][t(1585)]({ data: e, path: r[t(2474)], parent: r }); } - [a(965)]() { + [a(2524)]() { const x = a; - return this[x(594)][x(506)]; + return this[x(1575)][x(2076)]; } } -class oa extends Ee { - [a(1948)](x) { - const t = a, { status: r, ctx: e } = this[t(1225)](x); - if (e[t(1037)][t(372)]) +class oa extends Ce { + [a(1585)](x) { + const t = a, { status: r, ctx: e } = this[t(861)](x); + if (e[t(1281)][t(2416)]) return (async () => { - const n = t, i = await this[n(594)].in[n(2893)]({ data: e[n(571)], path: e[n(2075)], parent: e }); - return i[n(735)] === n(930) ? he : i[n(735)] === n(2906) ? (r[n(2906)](), Q0(i.value)) : this._def[n(875)][n(2893)]({ data: i[n(2398)], path: e[n(2075)], parent: e }); + const n = t, i = await this[n(1575)].in[n(2909)]({ data: e.data, path: e[n(2474)], parent: e }); + return i[n(1227)] === "aborted" ? he : i[n(1227)] === n(2329) ? (r[n(2329)](), X0(i[n(2446)])) : this[n(1575)][n(2328)][n(2909)]({ data: i[n(2446)], path: e[n(2474)], parent: e }); })(); { - const s = this[t(594)].in[t(1284)]({ data: e[t(571)], path: e[t(2075)], parent: e }); - return s[t(735)] === t(930) ? he : s[t(735)] === t(2906) ? (r[t(2906)](), { status: "dirty", value: s[t(2398)] }) : this[t(594)].out._parseSync({ data: s.value, path: e[t(2075)], parent: e }); + const s = this[t(1575)].in[t(2308)]({ data: e.data, path: e[t(2474)], parent: e }); + return s[t(1227)] === t(896) ? he : s[t(1227)] === "dirty" ? (r.dirty(), { status: t(2329), value: s[t(2446)] }) : this[t(1575)][t(2328)]._parseSync({ data: s[t(2446)], path: e[t(2474)], parent: e }); } } - static [a(1468)](x, t) { - const r = a; - return new oa({ in: x, out: t, typeName: pe[r(2219)] }); + static create(x, t) { + return new oa({ in: x, out: t, typeName: pe.ZodPipeline }); } } -function K(o, x) { - return o = o - 361, Tx()[o]; -} -class Ex extends Ee { - [a(1948)](x) { - const t = a, r = this[t(594)][t(2441)][t(1948)](x), e = (s) => { +class Cx extends Ce { + [a(1585)](x) { + const t = a, r = this[t(1575)][t(2813)][t(1585)](x), e = (s) => { const n = t; - return V0(s) && (s.value = Object.freeze(s[n(2398)])), s; + return V0(s) && (s[n(2446)] = Object[n(1100)](s[n(2446)])), s; }; - return bx(r) ? r[t(857)]((s) => e(s)) : e(r); + return gx(r) ? r[t(2517)]((s) => e(s)) : e(r); } - [a(965)]() { - const x = a; - return this[x(594)][x(2441)]; + unwrap() { + return this[a(1575)].innerType; } } -Ex[a(1468)] = (o, x) => new Ex({ innerType: o, typeName: pe.ZodReadonly, ...ye(x) }); -function Oa(o, x) { - const t = a, r = typeof o == "function" ? o(x) : typeof o === t(1443) ? { message: o } : o; - return typeof r === t(1443) ? { message: r } : r; +Cx[a(1602)] = (o, x) => { + const t = a; + return new Cx({ innerType: o, typeName: pe[t(1003)], ...ve(x) }); +}; +function Da(o, x) { + const t = a, r = typeof o === t(1936) ? o(x) : typeof o == "string" ? { message: o } : o; + return typeof r === t(1361) ? { message: r } : r; } -function go(o, x = {}, t) { +function po(o, x = {}, t) { const r = a; - return o ? ax[r(1468)]()[r(1566)]((e, s) => { + return o ? rx.create()[r(957)]((e, s) => { const n = r, i = o(e); - if (i instanceof Promise) return i[n(857)]((c) => { - const d = n; + if (i instanceof Promise) return i[n(2517)]((c) => { + const u = n; if (!c) { - const u = Oa(x, e), l = u.fatal ?? t ?? !0; - s[d(2643)]({ code: d(899), ...u, fatal: l }); + const f = Da(x, e), l = f.fatal ?? t ?? !0; + s.addIssue({ code: u(1618), ...f, fatal: l }); } }); if (!i) { - const c = Oa(x, e), d = c[n(810)] ?? t ?? !0; - s[n(2643)]({ code: n(899), ...c, fatal: d }); + const c = Da(x, e), u = c[n(2372)] ?? t ?? !0; + s[n(1910)]({ code: "custom", ...c, fatal: u }); } - }) : ax[r(1468)](); + }) : rx.create(); } var pe; (function(o) { const x = a; - o.ZodString = x(1807), o.ZodNumber = x(483), o[x(2409)] = x(2409), o[x(2601)] = x(2601), o[x(2955)] = x(2955), o[x(1146)] = "ZodDate", o[x(520)] = x(520), o[x(2992)] = x(2992), o[x(1637)] = x(1637), o[x(1206)] = x(1206), o[x(924)] = "ZodUnknown", o[x(1629)] = "ZodNever", o[x(2137)] = x(2137), o.ZodArray = x(2112), o[x(440)] = "ZodObject", o[x(1251)] = x(1251), o.ZodDiscriminatedUnion = x(1048), o[x(1444)] = x(1444), o.ZodTuple = x(1210), o[x(957)] = x(957), o.ZodMap = "ZodMap", o[x(1137)] = x(1137), o[x(2576)] = x(2576), o[x(1526)] = x(1526), o[x(2799)] = x(2799), o[x(2721)] = x(2721), o.ZodEffects = x(2523), o[x(2140)] = x(2140), o[x(1341)] = "ZodOptional", o[x(1924)] = x(1924), o[x(2954)] = "ZodDefault", o[x(2698)] = "ZodCatch", o[x(1763)] = "ZodPromise", o[x(2635)] = x(2635), o.ZodPipeline = x(2219), o[x(569)] = x(569); + o[x(1451)] = x(1451), o[x(696)] = "ZodNumber", o.ZodNaN = x(3130), o[x(2268)] = "ZodBigInt", o[x(2084)] = x(2084), o[x(2010)] = x(2010), o[x(2021)] = x(2021), o[x(2720)] = x(2720), o[x(577)] = x(577), o[x(1985)] = x(1985), o.ZodUnknown = x(1730), o[x(1657)] = x(1657), o[x(2842)] = "ZodVoid", o[x(2196)] = "ZodArray", o[x(2585)] = "ZodObject", o[x(1695)] = x(1695), o[x(1046)] = x(1046), o[x(2449)] = x(2449), o[x(3147)] = x(3147), o.ZodRecord = x(1131), o[x(3163)] = "ZodMap", o.ZodSet = "ZodSet", o[x(1854)] = x(1854), o[x(2596)] = x(2596), o.ZodLiteral = "ZodLiteral", o[x(804)] = "ZodEnum", o[x(1621)] = x(1621), o.ZodNativeEnum = x(2966), o[x(1954)] = x(1954), o[x(847)] = x(847), o[x(3051)] = x(3051), o[x(2521)] = x(2521), o.ZodPromise = x(835), o[x(1020)] = x(1020), o[x(1495)] = x(1495), o.ZodReadonly = x(1003); })(pe || (pe = {})); -const Ux = (o, x = { message: a(1848) + o[a(1907)] }) => go((t) => t instanceof o, x), g = v0[a(1468)], W = B0[a(1468)], ee = Ht[a(1468)], Te = ax[a(1468)], S0 = Bt[a(1468)]; -C0[a(1468)]; -const Hx = Zt[a(1468)], ve = h0.create, S = We[a(1468)], Ke = yx[a(1468)], Zs = na.create; -vx[a(1468)], O0[a(1468)]; -const De = wx[a(1468)], te = Sx[a(1468)], Ie = D0[a(1468)]; -kx[a(1468)]; -const B = w0[a(1468)]; -j0.create; -class yo { +const zx = (o, x = { message: a(815) + o.name }) => po((t) => t instanceof o, x), b = w0.create, W = B0[a(1602)], Q = zt.create, ye = rx[a(1602)], k0 = Bt[a(1602)]; +C0[a(1602)]; +const J0 = Wt[a(1602)], we = h0[a(1602)], S = Ke.create, Ve = wx.create, Vs = na[a(1602)]; +Sx[a(1602)], A0[a(1602)]; +const qe = kx[a(1602)], xe = Px[a(1602)], Pe = O0[a(1602)]; +Ix.create; +const B = S0[a(1602)]; +D0[a(1602)]; +var rs, ss; +class mo { constructor(x, t) { - me(this, "graphInstance"); - me(this, "nodeId"); + me(this, ss); + me(this, rs); const r = a; - this[r(918)] = x, this[r(1441)] = t; + this[r(2976)] = x, this[r(1891)] = t; } - get [a(2849)]() { - const x = a, t = this.graphInstance[x(1112)](this.nodeId); - if (!t) throw new Error(x(2229) + this[x(1441)]); + get [(ss = a(2976), rs = a(1891), a(872))]() { + const x = a, t = this[x(2976)][x(1414)](this[x(1891)]); + if (!t) throw new Error(x(3175) + this.nodeId); return t; } - get [a(1043)]() { - const x = a, t = this[x(918)][x(1808)]()[x(2328)](this.nodeId); - if (!t) throw new Error(x(854) + this[x(1441)]); + get [a(2848)]() { + const x = a, t = this[x(2976)][x(1857)]().getNode(this.nodeId); + if (!t) throw new Error(x(2645) + this.nodeId); return new Proxy({}, { get: (e, s) => { const n = x; - if (typeof s !== n(1443)) return; - const i = t[n(1043)][s], c = s[n(1904)]("__internal_"); - if (!i && !c) throw new Error("Action " + s + n(1295) + this[n(1441)]); - return async (d, u) => { - const l = n, f = this[l(2113)](); - if (!f) throw new Error("No connection available for node " + this[l(1441)]); - const { transport: b, path: h } = f, p = this.graphInstance[l(1004)](); - if (!(i != null && i[l(880)])) { - const k = Te(); + if (typeof s != "string") return; + const i = t[n(2848)][s], c = s[n(760)](n(2818)); + if (!i && !c) throw new Error("Action " + s + n(2251) + this.nodeId); + return async (u, f) => { + const l = n, d = this.getConnectionInfo(); + if (!d) throw new Error(l(2356) + this[l(1891)]); + const { transport: g, path: h } = d, m = this[l(2976)][l(1199)](); + if (!(i != null && i[l(2932)])) { + const k = ye(); let P; - if (h.length === 2) P = await b.request({ method: l(1896), params: { action: s, data: d, sourceNodeId: p } }, k); + if (h[l(2710)] === 2) P = await g[l(494)]({ method: l(1750), params: { action: s, data: u, sourceNodeId: m } }, k); else try { - P = await b[l(714)]({ method: l(1896), params: { action: l(1788), data: { targetNodeId: this.nodeId, targetAction: s, targetData: d, forwardPath: h.slice(1) }, sourceNodeId: p } }, k); - } catch (N) { - throw console.error("Error in direct request " + s + ":", N), console[l(1493)]({ targetNodeId: this[l(1441)], targetAction: s, targetData: d, forwardPath: h[l(2527)](1) }), N; + P = await g.request({ method: l(1750), params: { action: l(715), data: { targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h[l(1387)](1) }, sourceNodeId: m } }, k); + } catch (T) { + throw console[l(490)](l(2307) + s + ":", T), console.error({ targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h.slice(1) }), T; } return P; } let v; - return h[l(2910)] === 2 ? v = b[l(1729)]({ action: s, data: d, sourceNodeId: p }, i[l(2028)], u) : v = b[l(1729)]({ action: l(1788), data: { targetNodeId: this[l(1441)], targetAction: s, targetData: d, forwardPath: h[l(2527)](1) }, sourceNodeId: p }, i[l(2028)], u), v; + return h[l(2710)] === 2 ? v = g.streamRequest({ action: s, data: u, sourceNodeId: m }, i.responseSchema, f) : v = g[l(1807)]({ action: l(715), data: { targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h[l(1387)](1) }, sourceNodeId: m }, i[l(992)], f), v; }; } }); } - [a(2113)]() { - const x = a; - return this[x(918)][x(2828)](this[x(1441)]); + [a(1273)]() { + return this[a(2976)].getTransportToNode(this.nodeId); } } -var as, rs, ss; -class Ws { +var ns, os, is; +class Bs { constructor(x) { - me(this, ss); - me(this, rs); - me(this, as); + me(this, is); + me(this, os); + me(this, ns); const t = a; - this[t(918)] = x, this[t(1642)] = x[t(1642)], this[t(589)] = x.broadcastManager; + this[t(2976)] = x, this[t(3220)] = x[t(3220)], this[t(484)] = x[t(484)]; } - [(ss = a(918), rs = a(1642), as = a(589), a(1663))]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { + [(is = a(2976), os = a(3220), ns = a(484), a(486))]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { const s = a; - this[s(589)][s(1923)](s(1401) + t, (n) => { + this[s(484)][s(1424)]("store:update:" + t, (n) => { const i = s; try { - n[i(999)] !== this[i(918)][i(1004)]() && r(n.stateUpdate); + n.sourceNodeId !== this[i(2976)].getCurrentNodeId() && r(n[i(2853)]); } catch (c) { - console[i(1493)](i(1317) + t + ":", c); + console[i(490)](i(1306) + t + ":", c); } }); } - initializeProducer({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { - const s = a, n = this[s(918)][s(1004)](), i = async (u, l = !1) => { - const f = s; - if (this[f(1227)]()) try { - await this.broadcastManager[f(1098)](f(1401) + t, { storeName: t, sourceNodeId: n, stateUpdate: u, isInitialState: l }); + [a(813)]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { + const s = a, n = this[s(2976)][s(1199)](), i = async (f, l = !1) => { + const d = s; + if (this[d(697)]()) try { + await this.broadcastManager.broadcast(d(2779) + t, { storeName: t, sourceNodeId: n, stateUpdate: f, isInitialState: l }); } catch (h) { - console[f(1493)]("[GraphStoreSynchronizer] Error broadcasting state update for " + t + ":", h); + console[d(490)](d(1302) + t + ":", h); } - }, c = x[s(2978)]((u) => { - i(u, !1); + }, c = x[s(1952)]((f) => { + i(f, !1); }); e(() => { - i(x[s(1480)](), !0); + i(x[s(1079)](), !0); }); - const d = s(2641) + t; - return this[s(1642)][s(2564)](d, async () => { - const u = s, l = x[u(1480)](); - return await i(l, !0), { success: !0 }; - }), this.broadcastManager[s(1923)]("__connection_established", async (u) => { + const u = s(1413) + t; + return this.actionManager[s(1474)](u, async () => { + const f = x.getState(); + return await i(f, !0), { success: !0 }; + }), this.broadcastManager[s(1424)](s(608), async (f) => { + const l = s; try { - (u.toNode === n || u.fromNode === n) && await i(x.getState(), !0); + (f[l(823)] === n || f[l(3235)] === n) && await i(x.getState(), !0); } catch { } }), () => { var l; - const u = s; - c(), (l = this[u(1642)].actionHandlers) == null || l[u(1239)](d); + const f = s; + c(), (l = this.actionManager[f(603)]) == null || l.delete(u); }; } - [a(1227)]() { + isTransportReady() { var t; const x = a; try { - const r = this.graphInstance[x(1170)], e = r && r.getConnectionCount() > 0, s = ((t = this.broadcastManager[x(1687)]) == null ? void 0 : t[x(2873)]) > 0; + const r = this[x(2976)][x(1255)], e = r && r.getConnectionCount() > 0, s = ((t = this.broadcastManager[x(2080)]) == null ? void 0 : t[x(846)]) > 0; return e || s; } catch { - return !!this[x(589)]; + return !!this.broadcastManager; } } - async [a(2165)](x, t) { - const r = a, e = this[r(918)][r(1004)](); - if (this.isTransportReady()) try { - await this[r(589)][r(1098)](r(1401) + t, { storeName: t, sourceNodeId: e, stateUpdate: x[r(1480)](), isInitialState: !0 }); + async [a(1823)](x, t) { + const r = a, e = this.graphInstance[r(1199)](); + if (this[r(697)]()) try { + await this[r(484)][r(1829)](r(2779) + t, { storeName: t, sourceNodeId: e, stateUpdate: x[r(1079)](), isInitialState: !0 }); } catch { } } } -function vo({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Ws(o), s = (i) => { - const c = K, d = x.getState(), u = { ...d, ...i }; - x[c(964)](u); +function bo({ graphInstance: o, store: x, name: t }) { + const r = a, e = new Bs(o), s = (i) => { + const c = K, u = x[c(1079)](), f = { ...u, ...i }; + x[c(738)](f); }, n = async () => { - const i = K, c = i(2641) + t; + const i = K, c = i(1413) + t; try { - const d = o.getNode(t); - d && d[i(1043)] && d.actions[c] && await d[i(1043)][c](); - } catch (d) { - console.warn("Failed to request initial state for " + t + ":", d); + const u = o.getNode(t); + u && u[i(2848)] && u[i(2848)][c] && await u[i(2848)][c](); + } catch (u) { + console.warn(i(1039) + t + ":", u); } }; - e[r(1663)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); + e[r(486)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); } -function wo({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Ws(o), s = async (i) => { +function go({ graphInstance: o, store: x, name: t }) { + const r = a, e = new Bs(o), s = async (i) => { }, n = (i) => { }; - return e[r(1348)]({ store: x, storeName: t, sendStateUpdate: s, onInitialStateRequested: n }); + return e[r(813)]({ store: x, storeName: t, sendStateUpdate: s, onInitialStateRequested: n }); } -var ns, os, is, cs; -class So { +var cs, us, fs; +class yo { constructor(x) { - me(this, cs, /* @__PURE__ */ new Map()); - me(this, is, /* @__PURE__ */ new Map()); - me(this, os, /* @__PURE__ */ new Set()); - me(this, ns); + me(this, "broadcastHandlers", /* @__PURE__ */ new Map()); + me(this, fs, /* @__PURE__ */ new Map()); + me(this, us, /* @__PURE__ */ new Set()); + me(this, cs); const t = a; - this[t(3008)] = x; + this[t(866)] = x; } - createGlobalDispatcherForType(x) { + [(fs = a(2269), us = a(2785), cs = a(866), a(2036))](x) { return (t) => { const r = K; - if (t && t[r(2630)] === this[r(3008)]) return; - const e = this[r(2333)][r(2620)](x); + if (t && t[r(2145)] === this.currentNodeId) return; + const e = this[r(2529)][r(674)](x); if (e) { const { __origin: s, forwarded: n, ...i } = t || {}; for (const c of e) try { c(i); - } catch (d) { - console[r(1493)]("Error in broadcast handler for " + x + ":", d); + } catch (u) { + console.error(r(3276) + x + ":", u); } } - !t.forwarded && this[r(2031)](x, t); + !t[r(1457)] && this.forwardBroadcast(x, t); }; } - async [(cs = a(2333), is = a(2108), os = a(1735), ns = a(3008), a(2031))](x, t) { + async forwardBroadcast(x, t) { const r = a; try { - const e = { ...t, forwarded: !0 }, s = [...Array.from(this[r(2108)][r(2323)]()), ...Array[r(2725)](this[r(1735)])], n = s[r(1429)]((i) => { + const e = { ...t, forwarded: !0 }, s = [...Array[r(2047)](this[r(2269)][r(3237)]()), ...Array.from(this[r(2785)])], n = s[r(1930)]((i) => { const c = r; - return i[c(766)]({ method: c(1301), params: { messageType: x, message: e } })[c(1508)]((d) => { - console.error(c(755) + x + ":", d); + return i[c(2487)]({ method: c(3183), params: { messageType: x, message: e } })[c(742)]((u) => { + console.error(c(1286) + x + ":", u); }); }); - await Promise[r(2264)](n); + await Promise[r(1096)](n); } catch (e) { - console[r(1493)](r(776), e); + console[r(490)](r(1721), e); } } - registerHandler(x, t) { + [a(1424)](x, t) { const r = a; - !this[r(2333)][r(2239)](x) && this[r(2333)][r(2454)](x, /* @__PURE__ */ new Set()), this.broadcastHandlers[r(2620)](x)[r(1604)](t); + !this.broadcastHandlers[r(2348)](x) && this[r(2529)][r(780)](x, /* @__PURE__ */ new Set()), this[r(2529)][r(674)](x).add(t); } setupTransportHandlers(x) { - this[a(2679)](x); + this[a(888)](x); } - setupGeneralBroadcastHandler(x) { - const t = a, r = S({ method: te(t(1301)), params: S({ messageType: g(), message: Te() }) }); - x[t(1977)](r, async (e) => { - const s = t, n = e.params[s(1988)]; - this[s(601)](n)(e[s(2863)][s(2732)]); + [a(888)](x) { + const t = a, r = S({ method: xe(t(3183)), params: S({ messageType: b(), message: ye() }) }); + x[t(1529)](r, async (e) => { + const s = t, n = e[s(1656)].messageType; + this.createGlobalDispatcherForType(n)(e[s(1656)][s(1044)]); }); } - addMiddleware(x, t) { + [a(2511)](x, t) { const r = a; - this.transports[r(2454)](x, t), this[r(2212)](t); + this.transports.set(x, t), this[r(1023)](t); } - [a(368)](x) { + [a(3004)](x) { const t = a; - this[t(2108)][t(1239)](x); + this.transports[t(875)](x); } - async [a(1098)](x, t) { - const r = a, e = [...Array.from(this[r(2108)][r(2323)]()), ...Array[r(2725)](this.mountedTransports)], s = e[r(1429)]((n) => { + async [a(1829)](x, t) { + const r = a, e = [...Array[r(2047)](this[r(2269)][r(3237)]()), ...Array.from(this[r(2785)])], s = e[r(1930)]((n) => { const i = r; - return n[i(766)]({ method: i(1301), params: { messageType: x, message: t } }); + return n.notification({ method: i(3183), params: { messageType: x, message: t } }); }); - await Promise.all(s); + await Promise[r(1096)](s); } - [a(1606)](x) { + mountTo(x) { const t = a; - this[t(1735)].add(x), this[t(2212)](x); + this[t(2785)][t(1580)](x), this[t(1023)](x); } - [a(2861)]() { + [a(822)]() { const x = a; - return Array[x(2725)](this[x(2333)][x(548)]()); + return Array.from(this[x(2529)][x(2123)]()); } - clear() { + [a(2376)]() { const x = a; - this[x(2333)].clear(), this.transports[x(2149)](), this[x(1735)].clear(); + this[x(2529)][x(2376)](), this[x(2269)].clear(), this.mountedTransports.clear(); } } -var ds, us, ls; -class ko { +var ls, ds, hs, ps; +class vo { constructor(x, t, r) { - me(this, "actionHandlers", /* @__PURE__ */ new Map()); - me(this, ls); - me(this, us); + me(this, ps, /* @__PURE__ */ new Map()); + me(this, hs); me(this, ds); + me(this, ls); const e = a; - this[e(1118)] = x, this.currentNodeId = t, this[e(2163)] = r; + this[e(1686)] = x, this[e(866)] = t, this[e(1538)] = r; } - [(ls = a(1118), us = a(3008), ds = a(2163), a(2651))](x, t) { - const r = a, e = this[r(1118)][r(2328)](this[r(3008)]); - if (!e) throw new Error(r(854) + this[r(3008)]); - const s = e[r(1043)][x]; - if (!s) throw new Error(r(2972) + String(x) + r(1295) + this.currentNodeId); - this[r(1881)](x, t, s), this[r(1351)][r(2454)](x, t); + [(ps = a(603), hs = a(1686), ds = a(866), ls = a(1538), a(2922))](x, t) { + const r = a, e = this[r(1686)][r(1316)](this[r(866)]); + if (!e) throw new Error(r(2645) + this.currentNodeId); + const s = e[r(2848)][x]; + if (!s) throw new Error(r(2539) + String(x) + " not found for node " + this[r(866)]); + this[r(1294)](x, t, s), this.actionHandlers[r(780)](x, t); } - validateHandlerType(x, t, r) { + [a(1294)](x, t, r) { r.stream; } - implementInternalAction(x, t) { - const r = a; - this[r(1351)][r(2454)](x, t); + [a(1474)](x, t) { + this[a(603)].set(x, t); } - [a(1606)](x) { + [a(2983)](x) { const t = a; - for (const [r, e] of this[t(1351)]) { - const s = this.definition[t(2328)](this[t(3008)]), n = s == null ? void 0 : s.actions[r]; - if (r[t(1904)]("__internal_") ? !1 : (n == null ? void 0 : n[t(880)]) === !0) { - const d = S({ action: te(r) }); - x.registerStreamRequestorHandler(d, async function* (u, l, f) { - const b = t, h = u[b(571)] || u, p = e(h, l, f); - if (p && typeof p === b(2517) && Symbol.asyncIterator in p) for await (const v of p) + for (const [r, e] of this[t(603)]) { + const s = this[t(1686)][t(1316)](this[t(866)]), n = s == null ? void 0 : s.actions[r]; + if (r[t(760)](t(2818)) ? !1 : (n == null ? void 0 : n[t(2932)]) === !0) { + const u = S({ action: xe(r) }); + x[t(3139)](u, async function* (f, l, d) { + const g = t, h = f[g(2663)] || f, m = e(h, l, d); + if (m && typeof m === g(1304) && Symbol[g(583)] in m) for await (const v of m) yield v === void 0 ? {} : v; else { - const v = await p; + const v = await m; yield v === void 0 ? {} : v; } }); } } - this[t(398)](x), this.registerDirectRequestHandlerGeneric(x); + this[t(943)](x), this[t(665)](x); } - [a(398)](x) { - const t = a, r = S({ action: te(t(1788)) }), e = this; - x[t(2638)](r, async function* (s, n, i) { - const c = t, d = s[c(571)] || s, { targetNodeId: u, targetAction: l, targetData: f, forwardPath: b } = d; - if (!b || b.length === 0) throw new Error(c(2415)); - const h = b[0], p = b[c(2527)](1); - if (p.length === 0 && h === e.currentNodeId) { - const v = e.actionHandlers[c(2620)](l); - if (!v) throw new Error("Action " + l + c(1244) + e[c(3008)]); - const k = v(f, n, i); - if (k && typeof k === c(2517) && Symbol.asyncIterator in k) for await (const P of k) + registerProxyForwardHandler(x) { + const t = a, r = S({ action: xe("__proxy_forward") }), e = this; + x[t(3139)](r, async function* (s, n, i) { + const c = t, u = s[c(2663)] || s, { targetNodeId: f, targetAction: l, targetData: d, forwardPath: g } = u; + if (!g || g[c(2710)] === 0) throw new Error(c(2939)); + const h = g[0], m = g[c(1387)](1); + if (m[c(2710)] === 0 && h === e[c(866)]) { + const v = e[c(603)][c(674)](l); + if (!v) throw new Error(c(2539) + l + c(2185) + e[c(866)]); + const k = v(d, n, i); + if (k && typeof k === c(1304) && Symbol[c(583)] in k) for await (const P of k) yield P === void 0 ? {} : P; else { const P = await k; @@ -2180,976 +2226,973 @@ class ko { } return; } - if (h === e.currentNodeId && p[c(2910)] > 0) { - const v = p[0], k = e[c(2163)](v); + if (h === e.currentNodeId && m.length > 0) { + const v = m[0], k = e[c(1538)](v); if (k) { - const P = await k[c(1729)]({ action: "__proxy_forward", data: { targetNodeId: u, targetAction: l, targetData: f, forwardPath: p } }, S({}), i); - for await (const N of P) - yield N === void 0 ? {} : N; + const P = await k[c(1807)]({ action: c(715), data: { targetNodeId: f, targetAction: l, targetData: d, forwardPath: m } }, S({}), i); + for await (const T of P) + yield T === void 0 ? {} : T; return; } - throw new Error(c(1249) + v + c(1449)); + throw new Error(c(2261) + v + c(791)); } - throw new Error(c(2820) + e[c(3008)] + c(2544) + b); + throw new Error(c(3160) + e[c(866)] + c(2452) + g); }); } - [a(2580)]() { + [a(2938)]() { const x = a; - return Array[x(2725)](this.actionHandlers[x(548)]()); + return Array[x(2047)](this[x(603)][x(2123)]()); } - [a(1002)](x) { - return this.actionHandlers.has(x); + [a(2412)](x) { + const t = a; + return this[t(603)][t(2348)](x); } getHandler(x) { - const t = a; - return this[t(1351)][t(2620)](x); + return this[a(603)].get(x); } - clear() { + [a(2376)]() { const x = a; - this[x(1351)][x(2149)](); + this[x(603)][x(2376)](); } - [a(1465)](x, t, r) { + [a(2888)](x, t, r) { } - [a(1589)](x) { - const t = a, r = S({ method: te(t(1896)), params: S({ action: g(), data: Te().optional() }) }), e = this; - x[t(921)](r, async (s, n) => { - const i = t, { action: c, data: d } = s[i(2863)]; - if (c === i(1788)) return await e[i(2559)](d, n); - const u = e.actionHandlers[i(2620)](c); - if (!u) throw new Error(i(2972) + c + " not found on node " + e[i(3008)]); - const l = u(d, n), f = await l; - return f === void 0 ? {} : f; + [a(665)](x) { + const t = a, r = S({ method: xe(t(1750)), params: S({ action: b(), data: ye()[t(2478)]() }) }), e = this; + x[t(1219)](r, async (s, n) => { + const i = t, { action: c, data: u } = s[i(1656)]; + if (c === "__proxy_forward") return await e.handleDirectProxyForward(u, n); + const f = e[i(603)][i(674)](c); + if (!f) throw new Error(i(2539) + c + " not found on node " + e[i(866)]); + const l = f(u, n), d = await l; + return d === void 0 ? {} : d; }); } - async [a(2559)](x, t) { + async [a(3141)](x, t) { const r = a, { targetNodeId: e, targetAction: s, targetData: n, forwardPath: i } = x; - if (!i || i[r(2910)] === 0) throw new Error(r(2415)); - const c = i[0], d = i[r(2527)](1); - if (d[r(2910)] === 0 && c === this[r(3008)]) { - const u = this.actionHandlers.get(s); - if (!u) throw new Error("Action " + s + " not found on node " + this[r(3008)]); - const l = u(n, t), f = await l; - return f === void 0 ? {} : f; + if (!i || i[r(2710)] === 0) throw new Error(r(2939)); + const c = i[0], u = i.slice(1); + if (u[r(2710)] === 0 && c === this[r(866)]) { + const f = this[r(603)][r(674)](s); + if (!f) throw new Error(r(2539) + s + r(2185) + this[r(866)]); + const l = f(n, t), d = await l; + return d === void 0 ? {} : d; } - if (c === this[r(3008)] && d[r(2910)] > 0) { - const u = d[0], l = this[r(2163)](u); - if (l) return await l[r(714)]({ method: r(1896), params: { action: r(1788), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: d } } }, Te()); - throw new Error("Cannot forward to node " + u + " - no connection available"); + if (c === this[r(866)] && u[r(2710)] > 0) { + const f = u[0], l = this[r(1538)](f); + if (l) return await l[r(494)]({ method: r(1750), params: { action: r(715), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: u } } }, ye()); + throw new Error(r(2261) + f + r(791)); } - throw new Error("Invalid proxy forwarding: current node " + this.currentNodeId + r(2544) + i); + throw new Error(r(3160) + this[r(866)] + " not in path " + i); } } -var fs, hs, ps; -class Po { +var ms; +class wo { constructor(x, t) { - me(this, ps); - me(this, hs); - me(this, fs, /* @__PURE__ */ new Set()); + me(this, "definition"); + me(this, "currentNodeId"); + me(this, ms, /* @__PURE__ */ new Set()); const r = a; - this[r(1118)] = x, this[r(3008)] = t; + this[r(1686)] = x, this[r(866)] = t; } markConnected(x) { - const t = a; - this[t(2194)][t(1604)](x); + this[a(968)].add(x); } - [(ps = a(1118), hs = a(3008), fs = a(2194), a(720))](x) { - this[a(2194)].delete(x); + [(ms = a(968), a(2743))](x) { + this[a(968)].delete(x); } - isConnected(x) { + [a(2324)](x) { const t = a; - return this[t(2194)][t(2239)](x); + return this[t(968)][t(2348)](x); } findPath(x, t) { const r = a; if (x === t) return [x]; const e = /* @__PURE__ */ new Set(), s = [{ nodeId: x, path: [x] }]; - for (; s[r(2910)] > 0; ) { + for (; s.length > 0; ) { const { nodeId: n, path: i } = s.shift(); - if (e[r(2239)](n)) continue; - e.add(n); - const c = this[r(1118)][r(877)](n); - for (const d of c) { - if (d === t) return [...i, d]; - !e.has(d) && s[r(816)]({ nodeId: d, path: [...i, d] }); + if (e[r(2348)](n)) continue; + e[r(1580)](n); + const c = this[r(1686)][r(710)](n); + for (const u of c) { + if (u === t) return [...i, u]; + !e[r(2348)](u) && s[r(3062)]({ nodeId: u, path: [...i, u] }); } } } - [a(1085)]() { + [a(719)]() { const x = a; - return Array[x(2725)](this[x(2194)]); + return Array[x(2047)](this[x(968)]); } - [a(2374)]() { - const x = a; - return this[x(2194)][x(2873)]; + getConnectionCount() { + return this[a(968)].size; } - [a(2579)]() { - const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this[x(3008)]]; - for (r[x(1604)](this[x(3008)]); e[x(2910)] > 0; ) { - const s = e[x(613)](), n = this[x(1118)][x(877)](s); + [a(798)]() { + const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this[x(866)]]; + for (r.add(this[x(866)]); e[x(2710)] > 0; ) { + const s = e[x(1263)](), n = this[x(1686)].getNeighbors(s); for (const i of n) - !r[x(2239)](i) && (r[x(1604)](i), (this[x(2194)][x(2239)](i) || this[x(2960)](i, r)) && (t[x(1604)](i), e[x(816)](i))); + !r[x(2348)](i) && (r[x(1580)](i), (this[x(968)][x(2348)](i) || this.canReachThroughConnectedNodes(i, r)) && (t[x(1580)](i), e[x(3062)](i))); } - return Array[x(2725)](t); + return Array[x(2047)](t); } - [a(2960)](x, t) { - const r = a, e = this[r(1231)](this[r(3008)], x); - if (!e || e[r(2910)] <= 1) return !1; + canReachThroughConnectedNodes(x, t) { + const r = a, e = this[r(1395)](this[r(866)], x); + if (!e || e[r(2710)] <= 1) return !1; for (let s = 1; s < e.length - 1; s++) - if (!this[r(2194)][r(2239)](e[s])) return !1; + if (!this[r(968)][r(2348)](e[s])) return !1; return !0; } - [a(2149)]() { + [a(2376)]() { const x = a; - this.connectedNodes[x(2149)](); + this.connectedNodes[x(2376)](); } } -var ms, bs, gs, ys, vs, ws, Ss; -class Io { +var bs, gs, ys, vs, ws, Ss, ks; +class So { constructor(x, t) { + me(this, ks); me(this, Ss); - me(this, ws); + me(this, ws, /* @__PURE__ */ new Map()); me(this, vs, /* @__PURE__ */ new Map()); - me(this, ys, /* @__PURE__ */ new Map()); + me(this, ys); me(this, gs); - me(this, bs); me(this, "connectionManager"); - me(this, ms, /* @__PURE__ */ new Map()); + me(this, bs, /* @__PURE__ */ new Map()); const r = a; - this[r(1118)] = x, this[r(3008)] = t, this[r(2423)](), this[r(589)] = new So(t), this[r(1642)] = new ko(x, t, (e) => this[r(1129)](e)), this[r(1170)] = new Po(x, t), this[r(1259)](); + this[r(1686)] = x, this[r(866)] = t, this[r(2181)](), this.broadcastManager = new yo(t), this[r(3220)] = new vo(x, t, (e) => this[r(1268)](e)), this[r(1255)] = new wo(x, t), this[r(1187)](); } - [(Ss = a(1118), ws = a(3008), vs = a(1971), ys = a(1224), gs = a(589), bs = a(1642), ms = a(2284), a(2423))]() { + initializeNodeStores() { const x = a; - for (const t of this[x(1118)].getNodeIds()) { - const r = this.definition[x(2328)](t); - if (r && r[x(2849)]) { - const e = this[x(1586)](r.store), s = Bn(() => e); - this[x(1971)][x(2454)](t, s); + for (const t of this[x(1686)][x(681)]()) { + const r = this[x(1686)].getNode(t); + if (r && r[x(872)]) { + const e = this[x(2716)](r.store), s = zn(() => e); + this[x(1019)][x(780)](t, s); } } } - getDefaultValuesFromSchema(x) { + [(ks = a(1686), Ss = a(866), ws = a(1019), vs = a(2936), ys = a(484), gs = a(3220), bs = a(1964), a(2716))](x) { const t = a; if (!x) return {}; try { - return x[t(1584)]({}); + return x[t(2774)]({}); } catch { - return this.manuallyExtractDefaults(x); + return this[t(867)](x); } } - [a(1803)](x) { + [a(867)](x) { const t = a; - if (!x || !x[t(602)]) return {}; - if (x[t(602)].type === t(2889)) { - const r = x[t(602)][t(2628)]; - return typeof r == "function" ? r() : r; + if (!x || !x[t(2590)]) return {}; + if (x[t(2590)].type === t(2485)) { + const r = x[t(2590)][t(2074)]; + return typeof r === t(1936) ? r() : r; } - if (x[t(602)][t(506)] === "object") { + if (x[t(2590)][t(2076)] === "object") { const r = {}; let e; try { - e = x[t(602)].shape; + e = x[t(2590)][t(1547)]; } catch { return {}; } - if (e) for (const [s, n] of Object[t(807)](e)) { - const i = this[t(1764)](n); + if (e) for (const [s, n] of Object[t(2634)](e)) { + const i = this[t(1836)](n); i !== void 0 && (r[s] = i); } return r; } return {}; } - [a(1764)](x) { + [a(1836)](x) { const t = a; if (x) try { - return x[t(1584)](void 0); + return x.parse(void 0); } catch { - return this[t(1803)](x); + return this[t(867)](x); } } - async [a(1747)](x, t) { + async [a(1645)](x, t) { const r = a; - if (!this.definition.hasEdge(this[r(3008)], x)) throw new Error(r(1432) + this[r(3008)] + " to " + x); - if (this[r(2284)][r(2239)](x)) throw new Error(r(481) + x); + if (!this[r(1686)][r(1070)](this[r(866)], x)) throw new Error("No edge defined from " + this[r(866)] + r(2327) + x); + if (this[r(1964)][r(2348)](x)) throw new Error(r(2077) + x); try { - this[r(2284)][r(2454)](x, t), this[r(1170)].markConnected(x), this[r(2890)](x, t), await this[r(2118)](x), await this.requestInitialStateForNode(x); + this[r(1964)][r(780)](x, t), this.connectionManager[r(726)](x), this[r(1991)](x, t), await this.syncStoresToNewConnection(x), await this[r(1594)](x); } catch (e) { throw this.cleanupConnection(x), e; } } - [a(1587)](x) { - this[a(3061)](x); + [a(3209)](x) { + this[a(2811)](x); } - async [a(2118)](x) { + async [a(618)](x) { const t = a; await new Promise((r) => setTimeout(r, 100)); - for (const [r, e] of this[t(1971)]) - if (r === this[t(3008)]) try { - await this.broadcastManager.broadcast(t(1401) + r, { storeName: r, sourceNodeId: this[t(3008)], stateUpdate: e[t(1480)](), isInitialState: !0 }); + for (const [r, e] of this[t(1019)]) + if (r === this[t(866)]) try { + await this[t(484)][t(1829)](t(2779) + r, { storeName: r, sourceNodeId: this[t(866)], stateUpdate: e[t(1079)](), isInitialState: !0 }); } catch { } try { - await this[t(589)][t(1098)](t(947), { fromNode: this.currentNodeId, toNode: x }); + await this[t(484)][t(1829)](t(608), { fromNode: this[t(866)], toNode: x }); } catch { } } - async requestInitialStateForNode(x) { + async [a(1594)](x) { const t = a; try { - const r = this[t(1170)][t(2579)](); + const r = this[t(1255)].getAllReachableNodes(); for (const e of r) try { - const s = "__internal_requestInitialState_" + e, n = this.getNode(e); - if (n && n.actions && n.actions[s]) { - const i = n[t(1043)][s]({}); - await Promise[t(538)]([i, new Promise((c) => setTimeout(c, 300))]); + const s = "__internal_requestInitialState_" + e, n = this[t(1316)](e); + if (n && n.actions && n[t(2848)][s]) { + const i = n[t(2848)][s]({}); + await Promise[t(3019)]([i, new Promise((c) => setTimeout(c, 300))]); } } catch (s) { - console.log(t(2383) + e + ":", s); + console[t(1635)](t(1039) + e + ":", s); } } catch (r) { - console[t(2613)](t(785) + x + ":", r); + console[t(1635)](t(1078) + x + ":", r); } } - [a(3061)](x) { - const t = a, r = this[t(2284)][t(2620)](x); - this[t(2284)][t(1239)](x), this[t(1170)][t(720)](x), this[t(589)][t(368)](x), r && r[t(749)](); + [a(2811)](x) { + const t = a, r = this.nodeTransports.get(x); + this[t(1964)][t(875)](x), this[t(1255)].markDisconnected(x), this[t(484)].removeMiddleware(x), r && r[t(2397)](); } - [a(2890)](x, t) { + [a(1991)](x, t) { const r = a; - if (!this[r(1971)][r(2620)](this[r(3008)])) throw new Error(r(1549) + this[r(3008)]); - this[r(1642)].mountTo(t), this[r(589)].addMiddleware(x, t); + if (!this[r(1019)][r(674)](this.currentNodeId)) throw new Error("Store not found for " + this[r(866)]); + this[r(3220)].mountTo(t), this[r(484)][r(2511)](x, t); } - [a(1259)]() { + [a(1187)]() { const x = a; - for (const [t, r] of this[x(1971)]) - t === this.currentNodeId ? wo({ graphInstance: this, store: r, name: t }) : vo({ graphInstance: this, store: r, name: t }); + for (const [t, r] of this[x(1019)]) + t === this[x(866)] ? go({ graphInstance: this, store: r, name: t }) : bo({ graphInstance: this, store: r, name: t }); } - getNode(x) { + [a(1316)](x) { const t = a; - if (!this[t(1224)][t(2239)](x)) { - const r = new yo(this, x); - this[t(1224)][t(2454)](x, r); + if (!this[t(2936)][t(2348)](x)) { + const r = new mo(this, x); + this[t(2936)][t(780)](x, r); } - return this[t(1224)][t(2620)](x); + return this.nodeProxies[t(674)](x); } - [a(1129)](x) { + [a(1268)](x) { const t = a; - return this[t(2284)][t(2620)](x); + return this[t(1964)][t(674)](x); } - [a(2828)](x) { - const t = a, r = this.nodeTransports[t(2620)](x); - if (r) return { transport: r, path: [this[t(3008)], x] }; - const e = this.findPathInternal(this[t(3008)], x); - if (e && e.length > 1) { - const s = e[1], n = this[t(2284)][t(2620)](s); + [a(960)](x) { + const t = a, r = this.nodeTransports[t(674)](x); + if (r) return { transport: r, path: [this[t(866)], x] }; + const e = this[t(1898)](this[t(866)], x); + if (e && e[t(2710)] > 1) { + const s = e[1], n = this[t(1964)][t(674)](s); if (n) return { transport: n, path: e }; } } - [a(1112)](x) { + getNodeStore(x) { const t = a; - return this[t(1971)][t(2620)](x); + return this[t(1019)][t(674)](x); } - get [a(2849)]() { - const x = a, t = this.nodeStores[x(2620)](this[x(3008)]); - if (!t) throw new Error("Store not found for current node " + this[x(3008)]); + get [a(872)]() { + const x = a, t = this[x(1019)][x(674)](this[x(866)]); + if (!t) throw new Error(x(3269) + this[x(866)]); return t; } - get [a(1043)]() { - const x = a, t = this.definition[x(2328)](this.currentNodeId); - if (!t) throw new Error(x(1294) + this.currentNodeId); + get [a(2848)]() { + const x = a, t = this.definition.getNode(this.currentNodeId); + if (!t) throw new Error(x(895) + this[x(866)]); return new Proxy({}, { get: (e, s) => { const n = x; if (typeof s != "string") return; - const i = t[n(1043)][s]; - if (!i) throw new Error(n(2972) + s + n(1994) + this[n(3008)]); - return (c, d) => { - const u = n, l = this[u(1642)][u(668)](s); - if (!l) throw new Error(u(2318) + s + u(598) + this[u(3008)]); - const f = { nodeId: this[u(3008)] }; - if (i[u(880)] === !0) { - const b = l(c, f, d); - return b && typeof b === u(2517) && Symbol.asyncIterator in b ? (async function* () { - for await (const h of b) + const i = t.actions[s]; + if (!i) throw new Error(n(2539) + s + " not found for current node " + this[n(866)]); + return (c, u) => { + const f = n, l = this[f(3220)][f(2369)](s); + if (!l) throw new Error(f(1261) + s + f(1398) + this[f(866)]); + const d = { nodeId: this[f(866)] }; + if (i[f(2932)] === !0) { + const g = l(c, d, u); + return g && typeof g == "object" && Symbol[f(583)] in g ? (async function* () { + for await (const h of g) yield h === void 0 ? {} : h; })() : (async function* () { - const h = await b; + const h = await g; yield h === void 0 ? {} : h; })(); } else return (async () => { - const b = u, h = l(c, f, d); - if (h && typeof h === b(2517) && Symbol[b(1306)] in h) { - const p = h[Symbol[b(1306)]](), v = await p[b(3016)](); - return v[b(2398)] === void 0 ? {} : v[b(2398)]; + const g = f, h = l(c, d, u); + if (h && typeof h === g(1304) && Symbol[g(583)] in h) { + const m = h[Symbol.asyncIterator](), v = await m[g(2507)](); + return v[g(2446)] === void 0 ? {} : v[g(2446)]; } else { - const p = await h; - return p === void 0 ? {} : p; + const m = await h; + return m === void 0 ? {} : m; } })(); }; } }); } - getDefinition() { - return this[a(1118)]; + [a(1857)]() { + return this.definition; } - [a(1004)]() { - return this.currentNodeId; + [a(1199)]() { + return this[a(866)]; } - [a(1817)](x) { + [a(2993)](x) { return this.getTransportToNode(x); } - [a(2651)](x, t) { + [a(2922)](x, t) { const r = a; - this[r(1642)][r(2651)](x, t); + this[r(3220)][r(2922)](x, t); } - [a(2019)]() { - const x = a, t = Array[x(2725)](this[x(2284)][x(548)]()); + destroy() { + const x = a, t = Array[x(2047)](this.nodeTransports[x(2123)]()); for (const r of t) this.cleanupConnection(r); - this.broadcastManager[x(2149)](), this[x(1642)][x(2149)](), this[x(1170)].clear(); + this[x(484)][x(2376)](), this.actionManager[x(2376)](), this[x(1255)][x(2376)](); } findPathInternal(x, t) { - const r = a; - return this[r(1170)][r(1231)](x, t); + return this.connectionManager.findPath(x, t); } - [a(1231)](x, t) { + findPath(x, t) { return this.findPathInternal(x, t); } - async [a(1098)](x, t) { - const r = a, e = { ...t, __origin: this[r(3008)] }; - return this.broadcastManager.broadcast(x, e); + async [a(1829)](x, t) { + const r = a, e = { ...t, __origin: this[r(866)] }; + return this[r(484)][r(1829)](x, e); } - [a(860)](x, t) { + [a(2691)](x, t) { const r = a; - this[r(589)][r(1923)](x, t); + this.broadcastManager[r(1424)](x, t); } } -function Eo(o) { - const x = new Vn(o); +function ko(o) { + const x = new Un(o); return { joinAs(t) { const r = K; - if (!x.getNode(t)) throw new Error("Node " + String(t) + r(2921)); - return new Io(x, t); + if (!x.getNode(t)) throw new Error("Node " + String(t) + r(941)); + return new So(x, t); }, getDefinition() { return o; }, getNodeIds() { return x.getNodeIds(); }, getNeighbors(t) { - return x[K(877)](t); + return x.getNeighbors(t); }, hasEdge(t, r) { - return x[K(923)](t, r); + return x[K(1070)](t, r); }, hasPath(t, r) { - return x[K(2949)](t, r); + return x[K(927)](t, r); }, findPath(t, r) { - return x[K(1231)](t, r); + return x[K(1395)](t, r); } }; } -const Da = { INTERCEPTOR_ERROR: "interceptor_error" }; -var ks, Ps, Is, Es; -class ja extends (Es = Error, Is = a(506), Ps = a(392), ks = a(489), Es) { +const ja = { INTERCEPTOR_ERROR: a(2512) }; +var Ps, Is, Es, Rs; +class Ma extends (Rs = Error, Es = a(2076), Is = a(2423), Ps = a(2116), Rs) { constructor(t, r, e, s) { const n = a; super(e); + me(this, Es); me(this, Is); me(this, Ps); - me(this, ks); - this[n(1907)] = "MiddlewareError", this[n(506)] = t, this[n(392)] = r, this[n(489)] = s; + this.name = n(2708), this.type = t, this[n(2423)] = r, this.originalError = s; } } -var Cs, Rs, Fs, Ns, qs, Ts, As, _s, Os, Ds; -class Co { +var Cs, _s, Fs, Ts, Ns, qs, As, Os; +class Po { constructor(x, t = {}) { - me(this, Ds); + me(this, "protocol"); me(this, "realTransport", null); me(this, Os); - me(this, _s, /* @__PURE__ */ new Map()); me(this, As, /* @__PURE__ */ new Map()); - me(this, Ts, /* @__PURE__ */ new Map()); + me(this, "notificationHandlers", /* @__PURE__ */ new Map()); me(this, qs, /* @__PURE__ */ new Map()); - me(this, Ns, []); + me(this, Ns, /* @__PURE__ */ new Map()); + me(this, Ts, []); me(this, Fs, []); - me(this, Rs, []); + me(this, _s, []); me(this, Cs, { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); const r = a; - this.protocol = x, this[r(961)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; + this[r(1601)] = x, this[r(2876)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; } - async [(Ds = a(2531), Os = a(961), _s = a(2919), As = a(2909), Ts = a(495), qs = a(1458), Ns = a(2939), Fs = a(2281), Rs = a(2270), Cs = a(1031), a(1747))](x) { + async [(Os = a(2876), As = a(1796), qs = a(945), Ns = a(2301), Ts = a(3262), Fs = a(2223), _s = a(2573), Cs = a(1677), a(1645))](x) { const t = a; - this[t(1461)] = x, x[t(1981)] = (r) => { - this[t(2307)](r); - }, x.onclose = () => { + this.realTransport = x, x.onmessage = (r) => { + this[K(2904)](r); + }, x[t(2235)] = () => { const r = t; - this.closeHandlers[r(1548)]((e) => e()); + this[r(2223)][r(2617)]((e) => e()); }, x.onerror = (r) => { const e = t; - this[e(2270)][e(1548)]((s) => s(r)); - }, await this.protocol[t(1747)](this); + this[e(2573)][e(2617)]((s) => s(r)); + }, await this[t(1601)][t(1645)](this); } - async [a(2307)](x) { + async [a(2904)](x) { const t = a; - this.log(t(825), t(2486), x); + this.log(t(3158), t(1948), x); try { - if (this[t(1038)](x) && await this[t(1919)](x) || this[t(2692)](x) && await this[t(1683)](x)) + if (this[t(3028)](x) && await this.handleIncomingRequest(x) || this[t(3216)](x) && await this[t(1169)](x)) return; - this[t(2939)][t(1548)]((r) => r(x)); + this[t(3262)][t(2617)]((r) => r(x)); } catch (r) { - this.stats.errors++, this[t(2613)](t(1493), t(2891), r), this[t(2939)][t(1548)]((e) => e(x)); + this[t(1677)][t(2800)]++, this.log("error", t(2175), r), this[t(3262)][t(2617)]((e) => e(x)); } } - async [a(1919)](x) { - const t = a, r = this[t(2919)].get(x.method); + async [a(1124)](x) { + const t = a, r = this[t(1796)][t(674)](x[t(2423)]); if (!r) return !1; try { - this[t(1031)][t(2901)]++; + this[t(1677)][t(3024)]++; const e = await r(x, {}); - return this[t(1461)] && "id" in x && await this[t(1461)].send({ jsonrpc: t(2658), id: x.id, result: e }), !0; + return this[t(1382)] && "id" in x && await this.realTransport[t(1838)]({ jsonrpc: t(2804), id: x.id, result: e }), !0; } catch (e) { - return this[t(1031)][t(2311)]++, this[t(1461)] && "id" in x && await this[t(1461)][t(1237)]({ jsonrpc: "2.0", id: x.id, error: { code: -32603, message: t(2827) + JSON.stringify(x[t(2863)]) + " " + e[t(2732)] } }), !0; + return this[t(1677)][t(2800)]++, this[t(1382)] && "id" in x && await this[t(1382)].send({ jsonrpc: t(2804), id: x.id, error: { code: -32603, message: t(3064) + JSON.stringify(x[t(1656)]) + " " + e[t(1044)] } }), !0; } } - async [a(1683)](x) { - const t = a, r = this[t(2909)].get(x[t(392)]); + async [a(1169)](x) { + const t = a, r = this[t(2973)][t(674)](x.method); if (!r) return !1; try { - return this[t(1031)][t(2755)]++, await r(x), !0; + return this.stats[t(635)]++, await r(x), !0; } catch (e) { - return this[t(1031)][t(2311)]++, this[t(2613)](t(1493), "Notification handler failed for " + x[t(392)] + ":", e), !0; + return this[t(1677)][t(2800)]++, this.log("error", t(2701) + x[t(2423)] + ":", e), !0; } } - async [a(1237)](x) { + async send(x) { const t = a; - this[t(2613)](t(825), t(2103), x); + this[t(1635)](t(3158), t(1478), x); try { - if (this[t(1038)](x)) { - const r = await this[t(726)](x); + if (this[t(3028)](x)) { + const r = await this[t(1282)](x); + if (r[t(3031)]) { + if (r[t(676)] === null) return; + r[t(676)] && (x = { ...r[t(676)], jsonrpc: "2.0" }, this[t(1677)].requestsIntercepted++); + } else if (this[t(2876)][t(1081)]) this[t(1635)](t(1114), t(1785) + x[t(2423)] + ":", r[t(490)]); + else throw r[t(490)]; + } + if (this[t(3216)](x)) { + const r = await this[t(1827)](x); if (r.success) { if (r.result === null) return; - r[t(2712)] && (x = { ...r.result, jsonrpc: t(2658) }, this[t(1031)].requestsIntercepted++); - } else if (this[t(961)][t(2605)]) this.log(t(405), t(2044) + x[t(392)] + ":", r[t(1493)]); + r[t(676)] && (x = { ...r[t(676)], jsonrpc: "2.0" }, this[t(1677)][t(1482)]++); + } else if (this[t(2876)].continueOnInterceptorError) this.log("warn", t(595) + x[t(2423)] + ":", r[t(490)]); else throw r.error; } - if (this.isNotification(x)) { - const r = await this[t(473)](x); - if (r[t(1472)]) { - if (r[t(2712)] === null) return; - r.result && (x = { ...r[t(2712)], jsonrpc: "2.0" }, this.stats[t(753)]++); - } else if (this[t(961)][t(2605)]) this[t(2613)](t(405), t(2745) + x.method + ":", r[t(1493)]); - else throw r[t(1493)]; - } - this[t(1461)] && await this.realTransport[t(1237)](x); + this.realTransport && await this[t(1382)][t(1838)](x); } catch (r) { - throw this[t(1031)][t(2311)]++, r; + throw this[t(1677)][t(2800)]++, r; } } async start() { const x = a; - this[x(1461)] && await this[x(1461)][x(817)](); + this[x(1382)] && await this[x(1382)][x(1392)](); } - async [a(1522)]() { + async [a(1489)]() { const x = a; - this.realTransport && await this[x(1461)][x(1522)](); + this[x(1382)] && await this[x(1382)][x(1489)](); } - set [a(1981)](x) { + set onmessage(x) { const t = a; - this[t(2939)] = [x]; + this[t(3262)] = [x]; } - set onclose(x) { + set [a(2235)](x) { const t = a; - this[t(2281)] = [x]; + this[t(2223)] = [x]; } - set [a(2900)](x) { - const t = a; - this[t(2270)] = [x]; + set [a(934)](x) { + this.errorHandlers = [x]; } - async [a(726)](x) { - const t = a, r = this[t(495)].get(x.method); + async [a(1282)](x) { + const t = a, r = this.outgoingRequestInterceptors.get(x.method); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this.withTimeout(r(x), this.options[t(2650)]) }; + return { success: !0, result: await this[t(582)](r(x), this.options[t(2164)]) }; } catch (e) { - return this[t(1031)][t(2311)]++, { success: !1, error: new ja(Da[t(1958)], x[t(392)], t(2945) + e[t(2732)], e) }; + return this[t(1677)].errors++, { success: !1, error: new Ma(ja[t(1257)], x[t(2423)], t(1748) + e[t(1044)], e) }; } } - async [a(473)](x) { - const t = a, r = this.outgoingNotificationInterceptors[t(2620)](x.method); + async executeOutgoingNotificationInterceptor(x) { + const t = a, r = this.outgoingNotificationInterceptors[t(674)](x.method); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this[t(658)](r(x), this[t(961)].interceptorTimeout) }; + return { success: !0, result: await this[t(582)](r(x), this[t(2876)][t(2164)]) }; } catch (e) { - return this[t(1031)].errors++, { success: !1, error: new ja(Da[t(1958)], x[t(392)], t(1570) + e[t(2732)], e) }; + return this[t(1677)][t(2800)]++, { success: !1, error: new Ma(ja[t(1257)], x[t(2423)], "Outgoing notification interceptor failed: " + e.message, e) }; } } - async [a(714)](x, t) { + async [a(494)](x, t) { const r = a; - return await this[r(2531)][r(714)](x, t, { timeout: 36e5 }); + return await this[r(1601)][r(494)](x, t, { timeout: 36e5 }); } - async [a(766)](x) { - const t = a; - return await this[t(2531)][t(766)](x); + async [a(2487)](x) { + return await this[a(1601)].notification(x); } - [a(921)](x, t) { - const r = a, e = x.shape.method.value; - this[r(2919)].set(e, t); + [a(1219)](x, t) { + const r = a, e = x[r(1547)][r(2423)][r(2446)]; + this[r(1796)][r(780)](e, t); } - [a(1977)](x, t) { - const r = a, e = x[r(1798)][r(392)][r(2398)]; - this[r(2909)][r(2454)](e, t); + [a(1529)](x, t) { + const r = a, e = x[r(1547)][r(2423)][r(2446)]; + this[r(2973)][r(780)](e, t); } - [a(889)](x, t) { - const r = a, e = x.shape.method[r(2398)]; - this[r(495)][r(2454)](e, t); + [a(2603)](x, t) { + const r = a, e = x[r(1547)][r(2423)][r(2446)]; + this[r(945)][r(780)](e, t); } setOutgoingNotificationInterceptor(x, t) { - const r = a, e = x[r(1798)][r(392)].value; - this[r(1458)].set(e, t); + const r = a, e = x[r(1547)].method[r(2446)]; + this[r(2301)][r(780)](e, t); } - [a(1903)](x) { + [a(2704)](x) { const t = a; - this[t(2919)][t(1239)](x); + this[t(1796)][t(875)](x); } - unsetNotificationHandler(x) { + [a(2121)](x) { const t = a; - this.notificationHandlers[t(1239)](x); + this.notificationHandlers[t(875)](x); } - [a(2046)](x) { - this.outgoingRequestInterceptors.delete(x); - } - [a(1297)](x) { + unsetOutgoingRequestInterceptor(x) { const t = a; - this.outgoingNotificationInterceptors[t(1239)](x); + this[t(945)][t(875)](x); } - [a(943)](x) { + unsetOutgoingNotificationInterceptor(x) { const t = a; - return this[t(2919)][t(2239)](x); + this.outgoingNotificationInterceptors[t(875)](x); + } + [a(928)](x) { + const t = a; + return this[t(1796)][t(2348)](x); } hasNotificationHandler(x) { - return this[a(2909)].has(x); - } - hasOutgoingRequestInterceptor(x) { - return this[a(495)].has(x); - } - [a(3060)](x) { const t = a; - return this[t(1458)][t(2239)](x); + return this[t(2973)][t(2348)](x); } - [a(2211)]() { - return { ...this[a(1031)] }; + [a(1540)](x) { + const t = a; + return this.outgoingRequestInterceptors[t(2348)](x); } - [a(2790)]() { + hasOutgoingNotificationInterceptor(x) { + const t = a; + return this[t(2301)][t(2348)](x); + } + [a(1903)]() { + return { ...this[a(1677)] }; + } + [a(2495)]() { + this.stats = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; + } + getProtocol() { + return this[a(1601)]; + } + cleanup() { const x = a; - this[x(1031)] = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; + this[x(1796)][x(2376)](), this[x(2973)][x(2376)](), this.outgoingRequestInterceptors[x(2376)](), this[x(2301)][x(2376)](); } - [a(1356)]() { - return this.protocol; - } - [a(749)]() { - const x = a; - this.requestHandlers[x(2149)](), this[x(2909)][x(2149)](), this[x(495)].clear(), this.outgoingNotificationInterceptors[x(2149)](); - } - [a(1038)](x) { + [a(3028)](x) { const t = a; - return x[t(2700)] === t(2658) && t(392) in x && "id" in x; + return x[t(505)] === "2.0" && t(2423) in x && "id" in x; } - [a(2692)](x) { + isNotification(x) { const t = a; - return x[t(2700)] === "2.0" && t(392) in x && !("id" in x); + return x[t(505)] === t(2804) && t(2423) in x && !("id" in x); } - async [a(658)](x, t) { + async withTimeout(x, t) { const r = a, e = new Promise((s, n) => { const i = K; - setTimeout(() => n(new Error(i(2796))), t); + setTimeout(() => n(new Error(i(2661))), t); }); - return await Promise[r(538)]([x, e]); + return await Promise[r(3019)]([x, e]); } - log(x, t, ...r) { + [a(1635)](x, t, ...r) { const e = a; - if (!this[e(961)].debug && x === e(825)) return; - const s = e(1939); + if (!this[e(2876)].debug && x === e(3158)) return; + const s = e(2043); switch (x) { - case e(825): - console.debug(s, t, ...r); + case "debug": + console[e(3158)](s, t, ...r); break; - case "info": - console[e(2247)](s, t, ...r); + case e(1241): + console[e(1241)](s, t, ...r); break; - case e(405): - console[e(405)](s, t, ...r); + case "warn": + console[e(1114)](s, t, ...r); break; - case e(1493): - console[e(1493)](s, t, ...r); + case e(490): + console[e(490)](s, t, ...r); break; } } } -S({ method: te(a(2472)), params: S({ requestId: g(), data: Te(), error: g()[a(2259)](), finished: ee() }) }), S({ method: te(a(2434)), params: S({ action: g(), data: Te() }) }), S({ method: te(a(1862)), params: S({ requestId: g() }) }); -const Ro = S({ method: te(a(2472)), params: S({ requestId: g(), data: Te(), error: g()[a(2259)](), finished: ee() }) }), Fo = S({ method: te("sdppp/streamRequest"), params: S({ action: g(), data: Te() }) }), No = S({ method: te("sdppp/abort"), params: S({ requestId: g() }) }); -var js; -class qo { +S({ method: xe(a(3145)), params: S({ requestId: b(), data: ye(), error: b()[a(2644)](), finished: Q() }) }), S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), S({ method: xe(a(3257)), params: S({ requestId: b() }) }); +const Io = S({ method: xe("sdppp/streamResponse"), params: S({ requestId: b(), data: ye(), error: b()[a(2644)](), finished: Q() }) }), Eo = S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), Ro = S({ method: xe(a(3257)), params: S({ requestId: b() }) }); +var Ds, js; +class Co { constructor() { - me(this, "queues", /* @__PURE__ */ new Map()); me(this, js, /* @__PURE__ */ new Map()); + me(this, Ds, /* @__PURE__ */ new Map()); } - [(js = a(455), a(816))](x) { - const t = a, { requestId: r } = x[t(2863)], e = this[t(1423)][t(2620)](r) || [], s = this[t(455)].get(r) || []; - s.length > 0 ? s[t(613)]()(x.params) : (e[t(816)](x[t(2863)]), this[t(1423)][t(2454)](r, e)); + [(js = a(3169), Ds = a(2530), a(3062))](x) { + const t = a, { requestId: r } = x[t(1656)], e = this[t(3169)].get(r) || [], s = this.waiters.get(r) || []; + s[t(2710)] > 0 ? s[t(1263)]()(x[t(1656)]) : (e[t(3062)](x.params), this[t(3169)][t(780)](r, e)); } - async [a(641)](x) { - const t = a, r = this.queues[t(2620)](x) || []; - return r[t(2910)] > 0 ? r.shift() : new Promise((e) => { - const s = t, n = this[s(455)].get(x) || []; - n[s(816)](e), this[s(455)][s(2454)](x, n); + async [a(2900)](x) { + const t = a, r = this[t(3169)].get(x) || []; + return r[t(2710)] > 0 ? r[t(1263)]() : new Promise((e) => { + const s = t, n = this[s(2530)][s(674)](x) || []; + n.push(e), this[s(2530)][s(780)](x, n); }); } - [a(749)](x) { + cleanup(x) { const t = a; - this[t(1423)][t(1239)](x), this[t(455)][t(1239)](x); + this.queues[t(875)](x), this[t(2530)][t(875)](x); } } -var Ms, Ls, $s, Us; -class To extends Co { +var Ms, Ls; +class _o extends Po { constructor(t, r = {}) { const e = a; super(t, r); - me(this, Us, /* @__PURE__ */ new Map()); - me(this, $s, 1); me(this, Ls, /* @__PURE__ */ new Map()); - me(this, Ms, new qo()); - this[e(724)](); + me(this, "requestIdSeq", 1); + me(this, Ms, /* @__PURE__ */ new Map()); + me(this, "notificationQueue", new Co()); + this[e(1119)](); } - [(Us = a(2215), $s = a(2197), Ls = a(2697), Ms = a(882), a(724))]() { + [(Ls = a(1670), Ms = a(1757), a(1119))]() { const t = a; - this[t(715)](), this.setupAbortHandler(), this[t(920)](); + this[t(3172)](), this[t(605)](), this[t(3059)](); } - [a(715)]() { + [a(3172)]() { const t = a; - this[t(1977)](Ro, async (r) => { + this[t(1529)](Io, async (r) => { const e = t; - this[e(882)][e(816)](r); + this[e(1233)][e(3062)](r); }); } - [a(408)]() { + [a(605)]() { const t = a; - this[t(921)](No, async (r, e) => { - const s = t, { requestId: n } = r.params, i = this[s(2697)][s(2620)](n); - return i && (i[s(1973)](), this[s(2697)][s(1239)](n)), { success: !0 }; + this[t(1219)](Ro, async (r, e) => { + const s = t, { requestId: n } = r[s(1656)], i = this.runningRequests[s(674)](n); + return i && (i[s(1158)](), this[s(1757)][s(875)](n)), { success: !0 }; }); } setupStreamRequestHandler() { const t = a; - this[t(921)](Fo, async (r, e) => { - const s = t, n = s(3045) + this[s(2197)]++, i = this[s(2215)].get(r.params.action); - if (!i) throw new Error("No handler for streamRequestor: " + r.params[s(362)]); + this[t(1219)](Eo, async (r, e) => { + const s = t, n = s(1464) + this[s(2832)]++, i = this[s(1670)][s(674)](r.params[s(1893)]); + if (!i) throw new Error(s(1378) + r[s(1656)].action); const c = new AbortController(); - return this[s(2697)][s(2454)](n, c), this[s(3052)](n, i, r[s(2863)], e, c), { requestId: n }; + return this[s(1757)][s(780)](n, c), this.executeHandlerAsync(n, i, r[s(1656)], e, c), { requestId: n }; }); } - async [a(3052)](t, r, e, s, n) { + async [a(3173)](t, r, e, s, n) { const i = a; try { - const c = r(e, s, n[i(2009)]); - for await (const d of c) { - if (n.signal[i(930)]) break; - await this.notification({ method: "sdppp/streamResponse", params: { requestId: t, data: d, error: null, finished: !1 } }); + const c = r(e, s, n[i(2111)]); + for await (const u of c) { + if (n[i(2111)][i(896)]) break; + await this[i(2487)]({ method: "sdppp/streamResponse", params: { requestId: t, data: u, error: null, finished: !1 } }); } - !n[i(2009)][i(930)] && await this[i(766)]({ method: i(2472), params: { requestId: t, data: null, error: null, finished: !0 } }); + !n.signal[i(896)] && await this.notification({ method: i(3145), params: { requestId: t, data: null, error: null, finished: !0 } }); } catch (c) { - !n[i(2009)][i(930)] && await this[i(766)]({ method: i(2472), params: { requestId: t, data: null, error: c[i(2732)], finished: !0 } }); + !n[i(2111)][i(896)] && await this[i(2487)]({ method: i(3145), params: { requestId: t, data: null, error: c.message, finished: !0 } }); } finally { - this[i(2697)][i(1239)](t); + this[i(1757)][i(875)](t); } } - [a(2638)](t, r) { + [a(3139)](t, r) { const e = a; - this.streamRequestorHandlers[e(2454)](t[e(1798)][e(362)][e(2398)], r); + this.streamRequestorHandlers[e(780)](t.shape[e(1893)].value, r); } - async [a(1729)](t, r, e) { + async streamRequest(t, r, e) { const s = a; - this[s(2752)](e); - const n = await this[s(1474)](t), i = this[s(588)](n), c = this.createStreamState(); - return this[s(1511)](i, c, n, e); + this[s(1435)](e); + const n = await this[s(1909)](t), i = this[s(1334)](n), c = this[s(3198)](); + return this[s(3007)](i, c, n, e); } - [a(2752)](t) { + [a(1435)](t) { const r = a; - if (t && t[r(930)]) throw new Error(r(2139)); + if (t && t.aborted) throw new Error(r(2353)); } - async [a(1474)](t) { + async sendStreamRequestorRequest(t) { const r = a; - return (await this[r(714)]({ method: r(2434), params: { action: t.action, data: t[r(571)] } }, S({ requestId: g() }))).requestId; + return (await this.request({ method: r(1916), params: { action: t[r(1893)], data: t[r(2663)] } }, S({ requestId: b() }))).requestId; } - initializeResponseQueue(t) { - return this[a(882)]; + [a(1334)](t) { + return this[a(1233)]; } - [a(1045)]() { + createStreamState() { return { finished: !1, error: null }; } - [a(1511)](t, r, e, s) { - const n = a, i = this; - return { async *[Symbol[n(1306)]]() { - const c = n; + [a(3007)](t, r, e, s) { + const n = this; + return { async *[Symbol.asyncIterator]() { + const i = K; try { - for (; !r[c(2708)] && !r[c(1493)]; ) { - if (s && s[c(930)]) - throw await i[c(714)]({ method: "sdppp/abort", params: { requestId: e } }, S({ success: ee() })), new Error(c(2706)); - const d = await t[c(641)](e); - if (d[c(1493)]) - throw r[c(1493)] = d[c(1493)], new Error(d.error); - if (d.finished) { + for (; !r[i(2310)] && !r[i(490)]; ) { + if (s && s[i(896)]) + throw await n.request({ method: i(3257), params: { requestId: e } }, S({ success: Q() })), new Error(i(572)); + const c = await t[i(2900)](e); + if (c[i(490)]) + throw r[i(490)] = c.error, new Error(c[i(490)]); + if (c[i(2310)]) { r.finished = !0; break; } - d[c(571)] !== null && (yield d.data); + c[i(2663)] !== null && (yield c.data); } } finally { - t[c(749)](e); + t[i(2397)](e); } } }; } - [a(2198)]() { - const t = a; - return this[t(2697)][t(2873)]; + [a(1037)]() { + return this.runningRequests.size; } - async [a(2781)](t) { - const r = a, e = this[r(2697)].get(t); - return e ? (e[r(1973)](), this[r(2697)][r(1239)](t), !0) : !1; + async [a(3161)](t) { + const r = a, e = this[r(1757)].get(t); + return e ? (e[r(1158)](), this[r(1757)].delete(t), !0) : !1; } - [a(1959)]() { + [a(3178)]() { const t = a; - for (const [r, e] of this[t(2697)]) - e[t(1973)](); - this[t(2697)].clear(); + for (const [r, e] of this.runningRequests) + e[t(1158)](); + this[t(1757)].clear(); } - [a(749)]() { + [a(2397)]() { const t = a; - super.cleanup(), this.abortAllRequests(), this[t(2215)][t(2149)](); + super[t(2397)](), this[t(3178)](), this[t(1670)][t(2376)](); } } -S({ id: g(), method: g(), params: Te()[a(1712)](), traceId: g()[a(1712)]() }), S({ id: g(), result: Te()[a(1712)](), error: S({ code: W(), message: g(), data: Te().optional() }).optional() }), S({ method: g(), params: Te().optional() }), S({ method: te("sdppp/streamRequest"), params: S({ action: g(), data: Te() }) }), S({ method: te(a(2472)), params: S({ requestId: g(), data: Te()[a(1712)](), error: g()[a(2259)]().optional(), finished: ee().default(!1) }) }), S({ method: te(a(1862)), params: S({ requestId: g() }) }), S({ method: te("sdppp/broadcast"), params: S({ messageType: g(), message: Te() }) }); -function Ks(o) { +S({ id: b(), method: b(), params: ye()[a(2478)](), traceId: b()[a(2478)]() }), S({ id: b(), result: ye()[a(2478)](), error: S({ code: W(), message: b(), data: ye().optional() })[a(2478)]() }), S({ method: b(), params: ye()[a(2478)]() }), S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), S({ method: xe(a(3145)), params: S({ requestId: b(), data: ye()[a(2478)](), error: b().nullable().optional(), finished: Q()[a(2485)](!1) }) }), S({ method: xe("sdppp/abort"), params: S({ requestId: b() }) }), S({ method: xe("sdppp/broadcast"), params: S({ messageType: b(), message: ye() }) }); +function Ws(o) { const x = a; - return o && o[x(2617)] && Object[x(560)][x(938)][x(1175)](o, x(2889)) ? o[x(2889)] : o; + return o && o.__esModule && Object[x(2587)][x(1315)][x(1522)](o, x(2485)) ? o[x(2485)] : o; } -const z0 = S({ leftDistance: W(), topDistance: W(), rightDistance: W(), bottomDistance: W(), width: W(), height: W() }), F0 = { name: g(), uiWeight: W() }, Ao = S({ ...F0, outputType: te("images"), options: S({ required: ee(), maxCount: W()[a(1712)](), maskMode: ee().optional() }) }), _o = S({ ...F0, outputType: te("masks"), options: S({ required: ee() }) }), Oo = S({ ...F0, outputType: te("string"), options: S({ required: ee() }) }), Do = S({ ...F0, outputType: te("boolean"), options: S({ required: ee() }) }), jo = S({ ...F0, outputType: te(a(1730)), options: S({ required: ee(), min: W().optional(), max: W()[a(1712)](), step: W().optional(), random: ee().optional(), slider: ee()[a(1712)]() }) }), Mo = S({ ...F0, outputType: te(a(2535)), options: S({ required: ee(), values: ve(g()), labels: ve(g())[a(1712)]() }) }), Lo = S({ ...F0, outputType: te(a(1270)), options: S({ required: ee(), values: ve(g()) }) }), $o = S({ ...F0, outputType: te(a(955)), options: S({ required: ee() }) }), Uo = Zs(a(2885), [Ao, _o, Oo, Do, jo, Mo, Lo, $o]), Ho = S({ id: g(), title: g(), widgets: ve(Uo), uiWeightSum: W() }), zo = S({ widgetableID: g(), widgetablePath: g(), nodes: De(g(), Ho), nodeIndexes: ve(g()), note: g()[a(1712)](), options: De(g(), Te()) }), Vo = S({ widgetableStructure: zo[a(2889)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: De(g(), ve(Te()))[a(2889)]({}), widgetableErrors: De(g(), g())[a(2889)]({}), queueSize: W()[a(2889)](0), lastError: g()[a(2889)](""), progress: W().default(0), executingNodeTitle: g()[a(2889)](""), executingNodeID: g()[a(2889)](""), graphProgress: W()[a(2889)](0), comfyUserToken: g()[a(2889)](""), comfyOrgLoggedIn: ee()[a(2889)](!1), comfyOrgAPIKey: g().default(""), comfyWSState: Ie([a(639), a(563)])[a(2889)](a(639)), lastRunTime: W()[a(2889)](0) }), Bo = S({ bannerData: Te()[a(1712)](), refreshable: ee()[a(2889)](!1), backwardable: ee()[a(2889)](!1), loginable: ee()[a(2889)](!1), runnable: ee()[a(2889)](!1), workBoundaries: De(W(), z0)[a(2889)]({}), workBoundaryMaxSizes: De(W(), W())[a(2889)]({}) }), Zo = S({ uname: g()[a(2889)](""), activeDocumentID: W().default(0), layers: ve(S({ id: W(), name: g(), identify: g() }))[a(2889)]([]), actions: ve(g())[a(2889)]([]), theme: g()[a(2889)]("kPanelBrightnessMediumGray"), sdpppX: De(g(), Te()).default({}), locale: Ie([a(2156), a(788)])[a(2889)](a(788)), comfyWebviewConnectStatus: Ie(["connecting", a(639), a(2593)])[a(2889)]("disconnected"), comfyWebviewLoadError: g()[a(2889)](""), comfyWebviewLoading: ee()[a(2889)](!1), comfyWebviewVersion: g()[a(2889)](""), comfyHTTPCode: W().default(200), comfyURL: g().default(""), sdkWebviewFocusing: ee().default(!1), sdkWebviewConnectStatus: Ie(["connecting", "connected", a(2593)])[a(2889)](a(2593)), isLogin: ee().default(!1), isGuest: ee()[a(2889)](!1), requestingLogin: ee().default(!1), loginMessage: g()[a(2889)](""), token: g().default(""), userInfo: De(g(), Te())[a(2889)]({}), taskLastRun: W()[a(2889)](0), canvasStateID: W()[a(1712)](), selectionStateID: g()[a(1712)](), selectionBoundary: z0[a(2259)]().optional() }), Wo = { setNodeTitle: { requestSchema: S({ node_id: g(), title: g() }), responseSchema: S({ success: ee() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: ee(), error: g()[a(1712)]() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: g() }), responseSchema: S({ success: ee() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: ee() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: g(), overwrite: ee()[a(1712)](), mimeType: g()[a(1712)](), dataBase64: g() }), responseSchema: S({ name: g() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: g()[a(1712)]() }), responseSchema: S({ comfyVersion: g(), hostVersion: g()[a(1712)]() }) } }, Ko = S({ workflows: ve(g()), error: g()[a(1712)]() }), Go = S({ success: ee(), nodeErrors: De(g())[a(1712)](), prompt_ids: ve(g()).optional(), images: ve(S({ url: g(), thumbnail: g() }))[a(1712)]() }), Jo = { setWidgetValue: { requestSchema: S({ values: ve(S({ nodeID: g(), widgetIndex: W(), value: De(g(), Te()).or(g()).or(W()).or(ee()).or(ve(Te())) })) }), responseSchema: S({ success: ee() }) }, openWorkflow: { requestSchema: S({ workflow_path: g(), reset: ee()[a(2889)](!1) }), responseSchema: S({ success: ee() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: De(Te()), workflow_path: g() }), responseSchema: S({ success: ee() }) }, listWorkflows: { requestSchema: S({ listMode: g()[a(1712)](), sdpppID: g().optional(), sdpppToken: g().optional() }), responseSchema: Ko }, saveWorkflow: { requestSchema: S({ workflow_path: g(), from_sid: g()[a(1712)]() }), responseSchema: S({ success: ee() }) }, run: { requestSchema: S({ size: W(), mode: Ie([a(2161), "api"])[a(2889)](a(2161))[a(1712)]() }), responseSchema: Go, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: ee() }) } }, Qo = { backward: { requestSchema: Hx(), responseSchema: S({ success: ee() }) }, refresh: { requestSchema: Hx(), responseSchema: S({ success: ee() }) }, run: { requestSchema: Hx(), responseSchema: S({ success: ee() }) } }, Xo = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), Yo = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), ei = { register: { requestSchema: Xo, responseSchema: S({}) }, login: { requestSchema: Yo, responseSchema: S({}) }, sendPassCode: { requestSchema: S({ phone: g()[a(1712)](), email: g()[a(1712)]() }), responseSchema: S({}) }, logout: { requestSchema: S({}), responseSchema: S({}) }, guestLogin: { requestSchema: S({}), responseSchema: S({}) }, openAuthingLoginDialog: { requestSchema: S({}), responseSchema: S({}) } }; -S({ resource: g().optional(), thumbnail: g().optional(), width: W()[a(1712)](), height: W()[a(1712)](), mimeType: g()[a(1712)](), source: g()[a(1712)](), error: g()[a(1712)]() }), S({ boundary: Ie([a(729), "curlayer", a(1950)]), content: Ie([a(729), "curlayer", a(1950)]).or(g()), imageSize: W(), imageQuality: W(), cropBySelection: Ie(["no", a(516), a(1580)]), layer_identify: g().nullable()[a(1712)]() }), S({ content: Ie(["canvas", a(2737), "selection"]), reverse: ee(), imageSize: W(), layer_identify: g().nullable()[a(1712)]() }), S({ selection: Ie([a(441), a(2682), a(1178), a(2492), "curlayer_canvas", a(1983), a(2774), "newdoc_canvas"]), url: g(), source: g(), cropBySelection: Ie(["no", a(516), a(1580)]) }); -const xi = { downloadImage: { requestSchema: S({ url: g() }), responseSchema: S({ thumbnail: g().optional(), resource: g().optional(), width: W()[a(1712)](), height: W().optional(), error: g()[a(1712)]() }) }, getThumbnail: { requestSchema: S({ resource: g(), maxSize: W()[a(1712)]() }), responseSchema: S({ thumbnail: g().optional(), width: W()[a(1712)](), height: W()[a(1712)](), error: g().optional() }) } }, ti = { manageGuides: { requestSchema: S({ action: Ie(["create", "clear"]), rect: z0[a(1712)]() }), responseSchema: S({ success: ee() }) }, getBoundary: { requestSchema: S({ type: Ie([a(2737), a(1950)]) }), responseSchema: z0 }, getImage: { requestSchema: S({ boundary: Ke([Ie([a(729), a(2737), a(1950)]), z0]), content: Ke([Ie([a(729), a(2737)]), g()]), imageSize: W(), imageQuality: W(), cropBySelection: Ie(["no", "positive", a(1580)]), SkipNonNormalLayer: ee(), layer_identify: g().nullable()[a(1712)]() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g().optional(), width: W()[a(1712)](), height: W().optional(), mimeType: g()[a(1712)](), source: g()[a(1712)](), error: g()[a(1712)]() }) }, getMask: { requestSchema: S({ boundary: Ke([Ie([a(729), a(2737), a(1950)]), z0]), content: Ie([a(729), "curlayer", "selection"]), reverse: ee(), imageSize: W(), layer_identify: g()[a(2259)]()[a(1712)]() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g().optional(), width: W()[a(1712)](), height: W()[a(1712)](), mimeType: g().optional(), source: g()[a(1712)](), error: g().optional() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: g()[a(2259)]() }) }, importImage: { requestSchema: S({ resource: g(), boundaryUri: g().nullable()[a(1712)](), type: Ie([a(729), a(2737), a(2762), a(759)]), sourceWidth: W()[a(1712)](), sourceHeight: W().optional(), maskUri: g()[a(2259)]().optional() }), responseSchema: S({ success: ee(), layers: ve(S({ identify: g() }))[a(1712)](), message: g()[a(1712)](), error: g()[a(1712)]() }) }, selectFromMaskUri: { requestSchema: S({ maskUri: g(), documentId: W().optional() }), responseSchema: S({ success: ee() }) }, selectFromBoundaryUri: { requestSchema: S({ boundaryUri: g(), documentId: W()[a(1712)]() }), responseSchema: S({ success: ee(), error: g()[a(1712)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: g(), maskResource: g(), invertMask: ee().optional() }), responseSchema: S({ resource: g(), thumbnail: g()[a(1712)](), width: W(), height: W(), mimeType: g() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: De(Te()).optional() }), responseSchema: S({ boundary: Ie([a(729), "curlayer", a(1950)]).optional(), cancelled: ee()[a(1712)]() }) }, selectImageSource: { requestSchema: S({ additionalData: De(Te())[a(1712)]() }), responseSchema: S({ action: Ie([a(1234), a(1956)])[a(1712)](), params: Te().optional(), cancelled: ee()[a(1712)]() }) }, selectContentSource: { requestSchema: S({ additionalData: De(Te())[a(1712)]() })[a(1712)](), responseSchema: S({ resource: g()[a(1712)](), fileName: g()[a(1712)](), mimeType: g()[a(1712)](), size: W()[a(1712)](), layerIdentify: g()[a(1712)](), cancelled: ee()[a(1712)]() }) } }, zx = S({ taskId: g(), taskName: g(), status: Ie([a(2188), a(686), a(2907), a(1413)]), currentStep: W()[a(1712)](), totalSteps: W()[a(1712)](), stepDescription: g()[a(1712)](), progressPercentage: W().min(0)[a(544)](100).optional(), startTime: g(), endTime: g().optional(), error: g()[a(1712)](), errorCode: g()[a(1712)](), result: Te()[a(1712)](), metadata: De(Te())[a(1712)]() }), Vx = S({ success: ee(), error: g()[a(1712)]() }), ai = { taskAdd: { requestSchema: zx, responseSchema: Vx }, taskUpdate: { requestSchema: zx[a(1883)]()[a(2914)]({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: zx[a(2327)]({ taskId: !0 }), responseSchema: Vx } }, ri = { log: { requestSchema: S({ level: Ie([a(2613), a(2247), a(405), a(1493)]), messages: ve(g()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: g() }), responseSchema: S({ error: g().optional() }) }, getStorage: { requestSchema: S({ key: g() }), responseSchema: S({ value: g(), error: g()[a(1712)]() }) }, setStorage: { requestSchema: S({ key: g(), value: g() }), responseSchema: S({ error: g().optional() }) }, removeStorage: { requestSchema: S({ key: g() }), responseSchema: S({ error: g()[a(1712)]() }) }, keyboardAction: { requestSchema: S({ keycode: g() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: g() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: g() }), responseSchema: S({ base64: g().optional(), mimeType: g()[a(1712)](), error: g()[a(1712)]() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: Ke([te("buffer"), te(a(2185)), te("resource")]), resource: Te(), fileName: g(), mimeType: g()[a(1712)](), resourceId: g()[a(1712)]() }), overwrite: ee()[a(1712)]().default(!0) }), responseSchema: S({ name: g() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: ve(g()).optional(), kind: Ie([a(2894), "file"])[a(1712)]() }).optional(), responseSchema: S({ cancelled: ee()[a(1712)](), resource: g().optional(), fileName: g().optional(), mimeType: g().optional(), size: W()[a(1712)](), error: g()[a(1712)]() }) }, proxiedFetch: { requestSchema: S({ url: g(), method: g()[a(1712)](), headers: De(g())[a(1712)](), body: Te()[a(1712)](), bodyType: Ie([a(1153), a(374), a(768)])[a(1712)]() }), responseSchema: S({ success: ee(), status: W().optional(), statusText: g()[a(1712)](), headers: De(g()).optional(), data: Te().optional(), error: g().optional() }) }, openaiImageEdit: { requestSchema: S({ apiKey: g(), baseURL: g(), imageToken: g(), prompt: g(), model: g() }), responseSchema: S({ success: ee(), imageUrl: g()[a(1712)](), apiTime: W()[a(1712)](), error: g().optional() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: g(), baseURL: g()[a(1712)](), imageInputs: ve(g())[a(1712)](), imageInput: g()[a(1712)](), imageInputType: Ie(["token", a(1276)]), prompt: g() }), responseSchema: S({ success: ee(), imageUrl: g().optional(), apiTime: W()[a(1712)](), error: g().optional() }) } }, si = Ke([g(), Ux(Uint8Array), Ux(ArrayBuffer), Ux(DataView)]), ni = S({ buffer: si, name: g()[a(2259)]()[a(1712)](), mime: g()[a(2259)]()[a(1712)](), width: W().nullable()[a(1712)](), height: W()[a(2259)]()[a(1712)](), thumbnail: g()[a(2259)]().optional(), meta: De(S0())[a(1712)]() }), oi = { "fileResource.createFromExternal": { requestSchema: S({ url: g(), fileName: g()[a(1712)]() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g()[a(1712)](), width: W()[a(1712)](), height: W()[a(1712)](), mime: g()[a(1712)](), mimeType: g()[a(1712)](), error: g()[a(1712)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: ve(S({ description: g()[a(1712)](), extensions: ve(g())[a(1712)]() }))[a(1712)]() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g().optional(), width: W()[a(1712)](), height: W()[a(1712)](), mime: g()[a(1712)](), error: g()[a(1712)]() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: ve(ni)[a(2310)](1) }), responseSchema: S({ resource: g().optional(), thumbnail: g().optional(), width: W()[a(1712)](), height: W().optional(), mime: g().optional(), error: g().optional() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: g(), boundaryUri: g()[a(1712)](), options: De(S0()).optional() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g()[a(1712)](), width: W()[a(1712)](), height: W()[a(1712)](), mime: g()[a(1712)](), error: g()[a(1712)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: g(), boundaryUri: g()[a(1712)](), options: De(S0()).optional() }), responseSchema: S({ resource: g().optional(), thumbnail: g().optional(), width: W()[a(1712)](), height: W()[a(1712)](), mime: g().optional(), error: g()[a(1712)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: g(), boundaryUri: g(), maskUri: g()[a(2259)]().optional(), options: De(S0())[a(1712)](), thumbnail: ee()[a(1712)]() }), responseSchema: S({ resource: g()[a(1712)](), thumbnail: g().optional(), width: W()[a(1712)](), height: W().optional(), mime: g()[a(1712)](), error: g()[a(1712)]() }) }, "fileResource.delete": { requestSchema: S({ resources: ve(g()) }), responseSchema: S({ error: g()[a(1712)]() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: g(), maxSize: W()[a(1712)]() }), responseSchema: S({ thumbnail: g()[a(1712)](), width: W()[a(1712)](), height: W()[a(1712)](), error: g()[a(1712)]() }) }, "fileResource.saveAs": { requestSchema: S({ resources: ve(g()) }), responseSchema: S({ error: g().optional() }) }, "boundary.normalize": { requestSchema: S({ boundary: g() }), responseSchema: S({ boundary: g().optional(), error: g()[a(1712)]() }) }, "layer.resolve": { requestSchema: S({ uri: g(), type: Ie([a(1525), a(2035)]) }), responseSchema: S({ uri: g().optional(), error: g()[a(1712)]() }) } }, ii = Eo({ nodes: { sdk: { store: Bo, actions: { ...Qo } }, uxp: { store: Zo, actions: { ...xi, ...oi, ...ri, ...ei, ...ai, ...ti } }, comfy: { store: Vo, actions: { ...Jo, ...Wo } } }, edges: [[a(1827), a(1014)], [a(978), a(1014)]] }), ke = ii[a(773)](a(978)); -globalThis[a(437)] = ke; -var fx = { exports: {} }, Bx, Ma; -function ci() { - if (Ma) return Bx; - Ma = 1; +const H0 = S({ leftDistance: W(), topDistance: W(), rightDistance: W(), bottomDistance: W(), width: W(), height: W() }), F0 = { name: b(), uiWeight: W() }, Fo = S({ ...F0, outputType: xe(a(3222)), options: S({ required: Q(), maxCount: W()[a(2478)](), maskMode: Q()[a(2478)]() }) }), To = S({ ...F0, outputType: xe(a(2050)), options: S({ required: Q() }) }), No = S({ ...F0, outputType: xe(a(1361)), options: S({ required: Q() }) }), qo = S({ ...F0, outputType: xe("boolean"), options: S({ required: Q() }) }), Ao = S({ ...F0, outputType: xe(a(2665)), options: S({ required: Q(), min: W().optional(), max: W().optional(), step: W().optional(), random: Q()[a(2478)](), slider: Q()[a(2478)]() }) }), Oo = S({ ...F0, outputType: xe(a(2968)), options: S({ required: Q(), values: we(b()), labels: we(b())[a(2478)]() }) }), Do = S({ ...F0, outputType: xe(a(2754)), options: S({ required: Q(), values: we(b()) }) }), jo = S({ ...F0, outputType: xe(a(2737)), options: S({ required: Q() }) }), Mo = Vs(a(1394), [Fo, To, No, qo, Ao, Oo, Do, jo]), Lo = S({ id: b(), title: b(), widgets: we(Mo), uiWeightSum: W() }), $o = S({ widgetableID: b(), widgetablePath: b(), nodes: qe(b(), Lo), nodeIndexes: we(b()), note: b()[a(2478)](), options: qe(b(), ye()) }), Uo = S({ widgetableStructure: $o[a(2485)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: qe(b(), we(ye()))[a(2485)]({}), widgetableErrors: qe(b(), b())[a(2485)]({}), queueSize: W()[a(2485)](0), lastError: b()[a(2485)](""), progress: W()[a(2485)](0), executingNodeTitle: b()[a(2485)](""), executingNodeID: b().default(""), graphProgress: W()[a(2485)](0), comfyUserToken: b()[a(2485)](""), comfyOrgLoggedIn: Q()[a(2485)](!1), comfyOrgAPIKey: b().default(""), comfyWSState: Pe([a(1880), a(1097)])[a(2485)](a(1880)), lastRunTime: W().default(0) }), zo = S({ bannerData: ye().optional(), refreshable: Q()[a(2485)](!1), backwardable: Q()[a(2485)](!1), loginable: Q()[a(2485)](!1), runnable: Q().default(!1), workBoundaries: qe(W(), H0)[a(2485)]({}), workBoundaryMaxSizes: qe(W(), W())[a(2485)]({}), isLogin: Q().default(!1), isGuest: Q()[a(2485)](!1), token: b()[a(2485)](""), refreshToken: b().default(""), userInfo: qe(b(), ye())[a(2485)]({}), loginMessage: b()[a(2485)](""), balance: W()[a(2644)]().default(null) }), Ho = S({ uname: b().default(""), activeDocumentID: W()[a(2485)](0), layers: we(S({ id: W(), name: b(), identify: b() }))[a(2485)]([]), actions: we(b())[a(2485)]([]), theme: b()[a(2485)](a(1155)), sdpppX: qe(b(), ye())[a(2485)]({}), locale: Pe([a(707), "en-US"])[a(2485)](a(2260)), comfyWebviewConnectStatus: Pe([a(1523), a(1880), a(833)])[a(2485)]("disconnected"), comfyWebviewLoadError: b()[a(2485)](""), comfyWebviewLoading: Q()[a(2485)](!1), comfyWebviewVersion: b()[a(2485)](""), comfyHTTPCode: W()[a(2485)](200), comfyURL: b().default(""), sdkWebviewFocusing: Q()[a(2485)](!1), sdkWebviewConnectStatus: Pe([a(1523), a(1880), "disconnected"])[a(2485)](a(833)), requestingLogin: Q()[a(2485)](!1), balance: W()[a(2644)]()[a(2485)](null), taskLastRun: W()[a(2485)](0), canvasStateID: W()[a(2478)](), selectionStateID: b().optional(), selectionBoundary: H0.nullable()[a(2478)]() }), Vo = { setNodeTitle: { requestSchema: S({ node_id: b(), title: b() }), responseSchema: S({ success: Q() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: Q(), error: b().optional() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: b() }), responseSchema: S({ success: Q() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: Q() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: b(), overwrite: Q()[a(2478)](), mimeType: b()[a(2478)](), dataBase64: b() }), responseSchema: S({ name: b() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: b()[a(2478)]() }), responseSchema: S({ comfyVersion: b(), hostVersion: b()[a(2478)]() }) } }, Bo = S({ workflows: we(b()), error: b()[a(2478)]() }), Wo = S({ success: Q(), nodeErrors: qe(b())[a(2478)](), prompt_ids: we(b())[a(2478)](), images: we(S({ url: b(), thumbnail: b() }))[a(2478)]() }), Zo = { setWidgetValue: { requestSchema: S({ values: we(S({ nodeID: b(), widgetIndex: W(), value: qe(b(), ye()).or(b()).or(W()).or(Q()).or(we(ye())) })) }), responseSchema: S({ success: Q() }) }, openWorkflow: { requestSchema: S({ workflow_path: b(), reset: Q()[a(2485)](!1) }), responseSchema: S({ success: Q() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: qe(ye()), workflow_path: b() }), responseSchema: S({ success: Q() }) }, listWorkflows: { requestSchema: S({ listMode: b()[a(2478)](), sdpppID: b()[a(2478)](), sdpppToken: b().optional() }), responseSchema: Bo }, saveWorkflow: { requestSchema: S({ workflow_path: b(), from_sid: b()[a(2478)]() }), responseSchema: S({ success: Q() }) }, run: { requestSchema: S({ size: W(), mode: Pe([a(2012), a(706)])[a(2485)](a(2012)).optional() }), responseSchema: Wo, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: Q() }) } }, Ko = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Go = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Jo = { backward: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, refresh: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, run: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, authLogin: { requestSchema: Ko, responseSchema: S({ token: b(), refreshToken: b()[a(2478)](), userInfo: ye()[a(2478)]() }) }, authRegister: { requestSchema: Go, responseSchema: S({ success: Q() }) }, authSendPassCode: { requestSchema: S({ phone: b()[a(2478)](), email: b()[a(2478)]() }), responseSchema: S({ success: Q() }) }, authGetUserProfile: { requestSchema: S({ token: b() }), responseSchema: S({ userInfo: ye() }) }, authLogout: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, authLoginByQRCode: { requestSchema: S({ sessionId: b().optional() }), responseSchema: S({ sessionId: b(), qrcodeURL: b(), status: Pe([a(782), a(793), a(3031), a(488), a(2910), a(490)]), token: b()[a(2478)](), refreshToken: b().optional(), userInfo: ye()[a(2478)]() }) }, fetchBalance: { requestSchema: J0(), responseSchema: S({ balance: W().nullable() }) } }; +S({ resource: b().optional(), thumbnail: b().optional(), width: W()[a(2478)](), height: W()[a(2478)](), mimeType: b().optional(), source: b()[a(2478)](), error: b()[a(2478)]() }), S({ boundary: Pe([a(1929), "curlayer", a(2363)]), content: Pe([a(1929), a(3022), a(2363)]).or(b()), imageSize: W(), imageQuality: W(), cropBySelection: Pe(["no", "positive", "negative"]), layer_identify: b().nullable()[a(2478)]() }), S({ content: Pe([a(1929), a(3022), "selection"]), reverse: Q(), imageSize: W(), layer_identify: b()[a(2644)]()[a(2478)]() }), S({ selection: Pe([a(1846), a(1051), a(2829), a(767), a(2799), a(2391), "curlayer_selection", a(1846)]), url: b(), source: b(), cropBySelection: Pe(["no", a(2797), a(2134)]) }); +const Qo = { downloadImage: { requestSchema: S({ url: b() }), responseSchema: S({ thumbnail: b()[a(2478)](), resource: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), error: b()[a(2478)]() }) }, getThumbnail: { requestSchema: S({ resource: b(), maxSize: W()[a(2478)]() }), responseSchema: S({ thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W().optional(), error: b()[a(2478)]() }) } }, Xo = { pptaskRun: { requestSchema: S({ locator: b(), payload: qe(b(), ye()).optional(), platformConfig: qe(b(), ye()).optional(), context: qe(b(), ye()).optional(), schema: qe(b(), ye())[a(2478)]() }), responseSchema: Ve([S({ ok: xe(!0), taskId: b(), result: ye() }), S({ ok: xe(!1), taskId: b()[a(2478)](), error: S({ message: b(), code: Ve([b(), W()])[a(2478)](), payload: ye()[a(2478)]() }) })]) }, pptaskCancel: { requestSchema: S({ taskId: b() }), responseSchema: S({ cancelled: Q(), error: b()[a(2478)]() }) } }, Yo = { manageGuides: { requestSchema: S({ action: Pe([a(1602), a(2376)]), rect: H0[a(2478)]() }), responseSchema: S({ success: Q() }) }, getBoundary: { requestSchema: S({ type: Pe([a(3022), a(2363)]) }), responseSchema: H0 }, getImage: { requestSchema: S({ boundary: Ve([Pe([a(1929), a(3022), "selection"]), H0]), content: Ve([Pe([a(1929), "curlayer"]), b()]), imageSize: W(), imageQuality: W(), cropBySelection: Pe(["no", a(2797), a(2134)]), SkipNonNormalLayer: Q(), layer_identify: b()[a(2644)]().optional() }), responseSchema: S({ resource: b().optional(), thumbnail: b().optional(), width: W()[a(2478)](), height: W()[a(2478)](), mimeType: b()[a(2478)](), source: b()[a(2478)](), error: b().optional() }) }, getMask: { requestSchema: S({ boundary: Ve([Pe([a(1929), a(3022), a(2363)]), H0]), content: Pe([a(1929), a(3022), a(2363)]), reverse: Q(), imageSize: W(), layer_identify: b()[a(2644)]()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b().optional(), width: W().optional(), height: W()[a(2478)](), mimeType: b()[a(2478)](), source: b()[a(2478)](), error: b()[a(2478)]() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: b().nullable() }) }, importImage: { requestSchema: S({ resource: b(), boundaryUri: b()[a(2644)]().optional(), type: Pe([a(1929), a(3022), a(2295), "smartobject"]), sourceWidth: W()[a(2478)](), sourceHeight: W()[a(2478)](), maskUri: b()[a(2644)]()[a(2478)]() }), responseSchema: S({ success: Q(), layers: we(S({ identify: b() }))[a(2478)](), message: b()[a(2478)](), error: b()[a(2478)]() }) }, selectFromMaskUri: { requestSchema: S({ maskUri: b(), documentId: W().optional() }), responseSchema: S({ success: Q() }) }, selectFromBoundaryUri: { requestSchema: S({ boundaryUri: b(), documentId: W()[a(2478)]() }), responseSchema: S({ success: Q(), error: b()[a(2478)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: b(), maskResource: b(), invertMask: Q().optional() }), responseSchema: S({ resource: b(), thumbnail: b()[a(2478)](), width: W(), height: W(), mimeType: b() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }), responseSchema: S({ boundary: Pe([a(1929), a(3022), a(2363)])[a(2478)](), cancelled: Q()[a(2478)]() }) }, selectImageSource: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }), responseSchema: S({ action: Pe([a(1377), a(533)])[a(2478)](), params: ye()[a(2478)](), cancelled: Q()[a(2478)]() }) }, selectContentSource: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }).optional(), responseSchema: S({ resource: b().optional(), fileName: b()[a(2478)](), mimeType: b()[a(2478)](), size: W()[a(2478)](), layerIdentify: b()[a(2478)](), cancelled: Q()[a(2478)]() }) } }, Hx = S({ taskId: b(), taskName: b(), status: Pe([a(2018), a(2312), "failed", a(1287)]), currentStep: W()[a(2478)](), totalSteps: W()[a(2478)](), stepDescription: b()[a(2478)](), progressPercentage: W()[a(521)](0).max(100)[a(2478)](), startTime: b(), endTime: b()[a(2478)](), error: b()[a(2478)](), errorCode: b()[a(2478)](), result: ye()[a(2478)](), metadata: qe(ye())[a(2478)]() }), Vx = S({ success: Q(), error: b()[a(2478)]() }), ei = { taskAdd: { requestSchema: Hx, responseSchema: Vx }, taskUpdate: { requestSchema: Hx[a(537)]()[a(2438)]({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: Hx[a(3117)]({ taskId: !0 }), responseSchema: Vx } }, xi = { log: { requestSchema: S({ level: Pe([a(1635), a(1241), "warn", a(490)]), messages: we(b()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: b() }), responseSchema: S({ error: b().optional() }) }, getStorage: { requestSchema: S({ key: b() }), responseSchema: S({ value: b(), error: b()[a(2478)]() }) }, setStorage: { requestSchema: S({ key: b(), value: b() }), responseSchema: S({ error: b().optional() }) }, removeStorage: { requestSchema: S({ key: b() }), responseSchema: S({ error: b()[a(2478)]() }) }, keyboardAction: { requestSchema: S({ keycode: b() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: b() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: b() }), responseSchema: S({ base64: b()[a(2478)](), mimeType: b()[a(2478)](), error: b()[a(2478)]() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: Ve([xe(a(1419)), xe(a(1818)), xe(a(2988))]), resource: ye(), fileName: b(), mimeType: b()[a(2478)](), resourceId: b().optional() }), overwrite: Q().optional()[a(2485)](!0) }), responseSchema: S({ name: b() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: we(b()).optional(), kind: Pe([a(705), a(1137)])[a(2478)]() })[a(2478)](), responseSchema: S({ cancelled: Q()[a(2478)](), resource: b()[a(2478)](), fileName: b()[a(2478)](), mimeType: b()[a(2478)](), size: W()[a(2478)](), error: b()[a(2478)]() }) }, proxiedFetch: { requestSchema: S({ url: b(), method: b()[a(2478)](), headers: qe(b())[a(2478)](), body: ye()[a(2478)](), bodyType: Pe([a(1207), a(2962), a(2078)])[a(2478)]() }), responseSchema: S({ success: Q(), status: W().optional(), statusText: b().optional(), headers: qe(b())[a(2478)](), data: ye()[a(2478)](), error: b().optional() }) }, openaiImageEdit: { requestSchema: S({ apiKey: b(), baseURL: b(), imageToken: b(), prompt: b(), model: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2478)](), apiTime: W().optional(), error: b().optional() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: b(), baseURL: b()[a(2478)](), imageInputs: we(b())[a(2478)](), imageInput: b().optional(), imageInputType: Pe([a(1818), "base64"]), prompt: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2478)](), apiTime: W()[a(2478)](), error: b()[a(2478)]() }) } }, ti = Ve([b(), zx(Uint8Array), zx(ArrayBuffer), zx(DataView)]), ai = S({ buffer: ti, name: b()[a(2644)]()[a(2478)](), mime: b()[a(2644)]().optional(), width: W().nullable()[a(2478)](), height: W()[a(2644)]()[a(2478)](), thumbnail: b()[a(2644)]()[a(2478)](), meta: qe(k0())[a(2478)]() }), ri = { "fileResource.createFromExternal": { requestSchema: S({ url: b(), fileName: b()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), mimeType: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: we(S({ description: b()[a(2478)](), extensions: we(b()).optional() }))[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: we(ai).min(1) }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W().optional(), height: W()[a(2478)](), mime: b()[a(2478)](), error: b().optional() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: b(), boundaryUri: b()[a(2478)](), options: qe(k0())[a(2478)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W().optional(), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: b(), boundaryUri: b()[a(2478)](), options: qe(k0())[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: b(), boundaryUri: b(), maskUri: b()[a(2644)]()[a(2478)](), options: qe(k0()).optional(), thumbnail: Q()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.delete": { requestSchema: S({ resources: we(b()) }), responseSchema: S({ error: b()[a(2478)]() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: b(), maxSize: W()[a(2478)]() }), responseSchema: S({ thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.saveAs": { requestSchema: S({ resources: we(b()) }), responseSchema: S({ error: b()[a(2478)]() }) }, "boundary.normalize": { requestSchema: S({ boundary: b() }), responseSchema: S({ boundary: b().optional(), error: b()[a(2478)]() }) }, "layer.resolve": { requestSchema: S({ uri: b(), type: Pe([a(3170), a(994)]) }), responseSchema: S({ uri: b()[a(2478)](), error: b()[a(2478)]() }) } }, si = ko({ nodes: { sdk: { store: zo, actions: { ...Jo } }, uxp: { store: Ho, actions: { ...Qo, ...ri, ...Xo, ...xi, ...ei, ...Yo } }, comfy: { store: Uo, actions: { ...Zo, ...Vo } } }, edges: [[a(2422), a(2062)], ["comfy", a(2062)]] }), Ie = si[a(1456)]("comfy"); +globalThis[a(1790)] = Ie; +var hx = { exports: {} }, Bx, La; +function ni() { + if (La) return Bx; + La = 1; var o = 1e3, x = o * 60, t = x * 60, r = t * 24, e = r * 7, s = r * 365.25; - Bx = function(u, l) { - const f = K; + Bx = function(f, l) { + const d = K; l = l || {}; - var b = typeof u; - if (b === "string" && u[f(2910)] > 0) return n(u); - if (b === f(1730) && isFinite(u)) return l[f(1775)] ? c(u) : i(u); - throw new Error(f(2390) + JSON.stringify(u)); + var g = typeof f; + if (g === "string" && f.length > 0) return n(f); + if (g === d(2665) && isFinite(f)) return l[d(1649)] ? c(f) : i(f); + throw new Error(d(2889) + JSON.stringify(f)); }; - function n(u) { + function n(f) { const l = K; - if (u = String(u), !(u[l(2910)] > 100)) { - var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u); - if (f) { - var b = parseFloat(f[1]), h = (f[2] || "ms")[l(2071)](); + if (f = String(f), !(f[l(2710)] > 100)) { + var d = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f); + if (d) { + var g = parseFloat(d[1]), h = (d[2] || "ms")[l(1945)](); switch (h) { - case l(1265): - case "year": - case l(522): + case l(935): + case l(2342): + case "yrs": case "yr": case "y": - return b * s; - case l(2912): - case l(1942): + return g * s; + case l(3086): + case l(3125): case "w": - return b * e; - case l(1876): - case l(1776): + return g * e; + case l(2518): + case l(1332): case "d": - return b * r; - case l(1084): - case l(2772): - case l(1645): + return g * r; + case "hours": + case l(2668): + case l(3219): case "hr": case "h": - return b * t; - case l(700): - case l(2785): - case "mins": - case l(2310): + return g * t; + case l(504): + case l(2064): + case l(2923): + case "min": case "m": - return b * x; - case l(1217): - case "second": - case "secs": - case "sec": + return g * x; + case l(645): + case l(1708): + case l(2481): + case l(2553): case "s": - return b * o; - case l(1445): - case l(1262): - case "msecs": - case l(1630): + return g * o; + case l(1324): + case l(2103): + case l(646): + case "msec": case "ms": - return b; + return g; default: return; } } } } - function i(u) { + function i(f) { const l = K; - var f = Math.abs(u); - return f >= r ? Math[l(1987)](u / r) + "d" : f >= t ? Math[l(1987)](u / t) + "h" : f >= x ? Math.round(u / x) + "m" : f >= o ? Math[l(1987)](u / o) + "s" : u + "ms"; + var d = Math.abs(f); + return d >= r ? Math.round(f / r) + "d" : d >= t ? Math[l(2607)](f / t) + "h" : d >= x ? Math[l(2607)](f / x) + "m" : d >= o ? Math[l(2607)](f / o) + "s" : f + "ms"; } - function c(u) { + function c(f) { const l = K; - var f = Math.abs(u); - return f >= r ? d(u, f, r, l(1776)) : f >= t ? d(u, f, t, l(2772)) : f >= x ? d(u, f, x, l(2785)) : f >= o ? d(u, f, o, l(1156)) : u + " ms"; + var d = Math[l(2592)](f); + return d >= r ? u(f, d, r, l(1332)) : d >= t ? u(f, d, t, l(2668)) : d >= x ? u(f, d, x, l(2064)) : d >= o ? u(f, d, o, l(1708)) : f + l(2445); } - function d(u, l, f, b) { + function u(f, l, d, g) { const h = K; - var p = l >= f * 1.5; - return Math[h(1987)](u / f) + " " + b + (p ? "s" : ""); + var m = l >= d * 1.5; + return Math[h(2607)](f / d) + " " + g + (m ? "s" : ""); } return Bx; } -var Zx, La; -function di() { - if (La) return Zx; - La = 1; +var Wx, $a; +function oi() { + if ($a) return Wx; + $a = 1; function o(x) { const t = K; - e[t(825)] = e, e[t(2889)] = e, e[t(2480)] = u, e[t(2470)] = c, e[t(2508)] = n, e[t(2106)] = d, e[t(2299)] = ci(), e[t(2019)] = l, Object.keys(x)[t(1548)]((f) => { - e[f] = x[f]; - }), e[t(2426)] = [], e[t(2716)] = [], e[t(927)] = {}; - function r(f) { - const b = t; + e.debug = e, e[t(2485)] = e, e[t(1077)] = f, e[t(1692)] = c, e[t(2635)] = n, e[t(3045)] = u, e[t(3218)] = ni(), e[t(2820)] = l, Object[t(2123)](x)[t(2617)]((d) => { + e[d] = x[d]; + }), e.names = [], e[t(1530)] = [], e[t(1636)] = {}; + function r(d) { + const g = t; let h = 0; - for (let p = 0; p < f.length; p++) - h = (h << 5) - h + f.charCodeAt(p), h |= 0; - return e.colors[Math[b(553)](h) % e[b(2098)][b(2910)]]; + for (let m = 0; m < d.length; m++) + h = (h << 5) - h + d[g(901)](m), h |= 0; + return e[g(2980)][Math[g(2592)](h) % e[g(2980)].length]; } e.selectColor = r; - function e(f) { - const b = t; - let h, p = null, v, k; - function P(...N) { - const T = K; - if (!P[T(2106)]) return; - const C = P, I = Number(/* @__PURE__ */ new Date()), R = I - (h || I); - C[T(1469)] = R, C[T(2443)] = h, C[T(2500)] = I, h = I, N[0] = e[T(2480)](N[0]), typeof N[0] !== T(1443) && N[T(2532)]("%O"); - let O = 0; - N[0] = N[0][T(1840)](/%([a-zA-Z%])/g, (M, F) => { - const q = T; + function e(d) { + const g = t; + let h, m = null, v, k; + function P(...T) { + const q = K; + if (!P.enabled) return; + const R = P, E = Number(/* @__PURE__ */ new Date()), C = E - (h || E); + R[q(1885)] = C, R[q(1426)] = h, R[q(1879)] = E, h = E, T[0] = e[q(1077)](T[0]), typeof T[0] !== q(1361) && T[q(1162)]("%O"); + let A = 0; + T[0] = T[0][q(1521)](/%([a-zA-Z%])/g, (M, _) => { + const N = q; if (M === "%%") return "%"; - O++; - const H = e[q(927)][F]; - if (typeof H == "function") { - const L = N[O]; - M = H[q(1175)](C, L), N[q(1571)](O, 1), O--; + A++; + const z = e.formatters[_]; + if (typeof z == "function") { + const U = T[A]; + M = z[N(1522)](R, U), T.splice(A, 1), A--; } return M; - }), e[T(2385)][T(1175)](C, N), (C[T(2613)] || e.log).apply(C, N); + }), e[q(2425)][q(1522)](R, T), (R[q(1635)] || e[q(1635)])[q(2692)](R, T); } - return P[b(1979)] = f, P.useColors = e[b(1307)](), P.color = e[b(2848)](f), P[b(1393)] = s, P[b(2019)] = e[b(2019)], Object[b(1171)](P, "enabled", { enumerable: !0, configurable: !1, get: () => { - const N = b; - return p !== null ? p : (v !== e[N(2689)] && (v = e.namespaces, k = e.enabled(f)), k); - }, set: (N) => { - p = N; - } }), typeof e[b(2993)] === b(2855) && e[b(2993)](P), P; + return P.namespace = d, P[g(625)] = e[g(625)](), P[g(1400)] = e.selectColor(d), P[g(919)] = s, P[g(2820)] = e[g(2820)], Object[g(2796)](P, g(3045), { enumerable: !0, configurable: !1, get: () => { + const T = g; + return m !== null ? m : (v !== e[T(2470)] && (v = e[T(2470)], k = e.enabled(d)), k); + }, set: (T) => { + m = T; + } }), typeof e[g(1775)] === g(1936) && e[g(1775)](P), P; } - function s(f, b) { - const h = t, p = e(this[h(1979)] + (typeof b > "u" ? ":" : b) + f); - return p[h(2613)] = this[h(2613)], p; + function s(d, g) { + const h = t, m = e(this.namespace + (typeof g === h(993) ? ":" : g) + d); + return m[h(1635)] = this[h(1635)], m; } - function n(f) { - const b = t; - e.save(f), e[b(2689)] = f, e[b(2426)] = [], e[b(2716)] = []; - const h = (typeof f == "string" ? f : "")[b(1823)]()[b(1840)](/\s+/g, ",")[b(1389)](",")[b(2951)](Boolean); - for (const p of h) - p[0] === "-" ? e[b(2716)][b(816)](p[b(2527)](1)) : e[b(2426)][b(816)](p); + function n(d) { + const g = t; + e[g(921)](d), e[g(2470)] = d, e.names = [], e[g(1530)] = []; + const h = (typeof d == "string" ? d : "")[g(2337)]().replace(/\s+/g, ",").split(",").filter(Boolean); + for (const m of h) + m[0] === "-" ? e[g(1530)][g(3062)](m[g(1387)](1)) : e[g(2292)].push(m); } - function i(f, b) { + function i(d, g) { const h = t; - let p = 0, v = 0, k = -1, P = 0; - for (; p < f[h(2910)]; ) - if (v < b[h(2910)] && (b[v] === f[p] || b[v] === "*")) b[v] === "*" ? (k = v, P = p, v++) : (p++, v++); - else if (k !== -1) v = k + 1, P++, p = P; + let m = 0, v = 0, k = -1, P = 0; + for (; m < d[h(2710)]; ) + if (v < g.length && (g[v] === d[m] || g[v] === "*")) g[v] === "*" ? (k = v, P = m, v++) : (m++, v++); + else if (k !== -1) v = k + 1, P++, m = P; else return !1; - for (; v < b.length && b[v] === "*"; ) + for (; v < g.length && g[v] === "*"; ) v++; - return v === b[h(2910)]; + return v === g.length; } function c() { - const f = t, b = [...e[f(2426)], ...e[f(2716)].map((h) => "-" + h)][f(952)](","); - return e[f(2508)](""), b; + const d = t, g = [...e[d(2292)], ...e[d(1530)][d(1930)]((h) => "-" + h)].join(","); + return e.enable(""), g; } - function d(f) { - const b = t; - for (const h of e[b(2716)]) - if (i(f, h)) return !1; - for (const h of e[b(2426)]) - if (i(f, h)) return !0; + function u(d) { + const g = t; + for (const h of e[g(1530)]) + if (i(d, h)) return !1; + for (const h of e[g(2292)]) + if (i(d, h)) return !0; return !1; } - function u(f) { - const b = t; - return f instanceof Error ? f[b(2491)] || f.message : f; + function f(d) { + const g = t; + return d instanceof Error ? d[g(2101)] || d[g(1044)] : d; } function l() { - console.warn(t(1018)); + const d = t; + console[d(1114)](d(2667)); } - return e[t(2508)](e.load()), e; + return e[t(2635)](e[t(1429)]()), e; } - return Zx = o, Zx; + return Wx = o, Wx; } -var $a; -function ui() { +var Ua; +function ii() { const o = a; - return $a || ($a = 1, (function(x, t) { - const r = o; - t[r(2385)] = s, t[r(1071)] = n, t[r(1758)] = i, t[r(1307)] = e, t.storage = c(), t[r(2019)] = /* @__PURE__ */ (() => { - let u = !1; + return Ua ? hx.exports : (Ua = 1, (function(x, t) { + const r = K; + t[r(2425)] = s, t[r(921)] = n, t[r(1429)] = i, t[r(625)] = e, t[r(1576)] = c(), t.destroy = /* @__PURE__ */ (() => { + let f = !1; return () => { const l = K; - !u && (u = !0, console.warn(l(1018))); + !f && (f = !0, console[l(1114)](l(2667))); }; - })(), t.colors = ["#0000CC", "#0000FF", r(1799), r(786), r(2769), r(2225), r(439), r(1433), "#00CC00", r(3004), r(2903), r(411), "#00CCCC", r(1503), r(1933), r(468), r(2142), r(652), "#3366CC", r(1551), r(2040), r(1835), r(792), r(1274), r(1253), r(2011), "#33CCCC", r(513), "#6600CC", r(2227), r(2350), r(1603), r(537), r(401), r(1384), r(2578), "#9933CC", r(1514), r(1845), "#99CC33", "#CC0000", "#CC0033", r(1830), r(2038), "#CC00CC", r(2648), "#CC3300", r(887), r(644), r(679), "#CC33CC", r(1751), "#CC6600", "#CC6633", r(1442), "#CC9933", r(490), r(2045), "#FF0000", r(2629), r(1618), r(676), r(2430), "#FF00FF", "#FF3300", r(2844), r(1228), r(580), r(1366), "#FF33FF", r(2413), r(1267), r(1945), r(1213), "#FFCC00", r(1782)]; + })(), t[r(2980)] = ["#0000CC", "#0000FF", r(2060), r(1986), r(1104), r(3223), "#0099CC", r(2352), r(2233), "#00CC33", "#00CC66", "#00CC99", r(2950), r(1278), r(2030), r(848), r(1992), r(2659), r(1950), r(2028), r(2370), "#3399FF", r(2357), r(591), "#33CC66", r(2037), r(1847), r(1174), r(3206), r(2396), "#6633CC", r(2155), r(999), r(2622), r(2776), r(485), r(1511), r(2271), "#99CC00", "#99CC33", r(2170), r(502), "#CC0066", r(515), "#CC00CC", r(748), r(2621), r(2016), r(2803), r(2350), r(1801), r(3115), r(1820), "#CC6633", r(2361), "#CC9933", "#CCCC00", "#CCCC33", r(3185), r(1955), r(3042), r(2712), r(3096), r(1080), r(1768), "#FF3333", r(3250), r(889), r(686), r(854), "#FF6600", r(1958), r(580), r(2568), r(3153), "#FFCC33"]; function e() { - const u = r; - if (typeof window !== u(1691) && window[u(475)] && (window[u(475)][u(506)] === "renderer" || window[u(475)][u(2982)])) return !0; - if (typeof navigator < "u" && navigator.userAgent && navigator[u(1700)][u(2071)]().match(/(edge|trident)\/(\d+)/)) return !1; + const f = r; + if (typeof window !== f(993) && window[f(2383)] && (window[f(2383)][f(2076)] === "renderer" || window[f(2383)][f(2985)])) return !0; + if (typeof navigator !== f(993) && navigator.userAgent && navigator[f(2444)][f(1945)]()[f(2314)](/(edge|trident)\/(\d+)/)) return !1; let l; - return typeof document < "u" && document[u(2377)] && document[u(2377)][u(1692)] && document[u(2377)].style[u(2923)] || typeof window !== u(1691) && window[u(1505)] && (window[u(1505)][u(1325)] || window.console[u(1951)] && window[u(1505)].table) || typeof navigator < "u" && navigator[u(1700)] && (l = navigator.userAgent.toLowerCase()[u(742)](/firefox\/(\d+)/)) && parseInt(l[1], 10) >= 31 || typeof navigator < "u" && navigator[u(1700)] && navigator[u(1700)][u(2071)]()[u(742)](/applewebkit\/(\d+)/); + return typeof document !== f(993) && document[f(862)] && document[f(862)][f(2359)] && document[f(862)].style[f(558)] || typeof window !== f(993) && window[f(2433)] && (window.console[f(1310)] || window.console[f(1343)] && window[f(2433)][f(814)]) || typeof navigator !== f(993) && navigator.userAgent && (l = navigator[f(2444)][f(1945)]()[f(2314)](/firefox\/(\d+)/)) && parseInt(l[1], 10) >= 31 || typeof navigator !== f(993) && navigator.userAgent && navigator[f(2444)][f(1945)]()[f(2314)](/applewebkit\/(\d+)/); } - function s(u) { + function s(f) { const l = r; - if (u[0] = (this[l(1307)] ? "%c" : "") + this[l(1979)] + (this.useColors ? l(1991) : " ") + u[0] + (this[l(1307)] ? l(1040) : " ") + "+" + x[l(982)][l(2299)](this[l(1469)]), !this.useColors) return; - const f = l(2379) + this.color; - u.splice(1, 0, f, l(2810)); - let b = 0, h = 0; - u[0][l(1840)](/%[a-zA-Z%]/g, (p) => { - p !== "%%" && (b++, p === "%c" && (h = b)); - }), u[l(1571)](h, 0, f); + if (f[0] = (this.useColors ? "%c" : "") + this[l(1190)] + (this[l(625)] ? l(2061) : " ") + f[0] + (this[l(625)] ? "%c " : " ") + "+" + x.exports[l(3218)](this[l(1885)]), !this.useColors) return; + const d = "color: " + this[l(1400)]; + f[l(2881)](1, 0, d, l(2902)); + let g = 0, h = 0; + f[0][l(1521)](/%[a-zA-Z%]/g, (m) => { + m !== "%%" && (g++, m === "%c" && (h = g)); + }), f.splice(h, 0, d); } - t[r(2613)] = console[r(825)] || console[r(2613)] || (() => { + t[r(1635)] = console.debug || console[r(1635)] || (() => { }); - function n(u) { + function n(f) { const l = r; try { - u ? t[l(1169)][l(393)](l(825), u) : t[l(1169)].removeItem(l(825)); + f ? t[l(1576)][l(1542)](l(3158), f) : t[l(1576)].removeItem(l(3158)); } catch { } } function i() { - const u = r; + const f = r; let l; try { - l = t.storage[u(2984)](u(825)) || t[u(1169)][u(2984)](u(669)); + l = t[f(1576)][f(2215)](f(3158)) || t[f(1576)][f(2215)](f(2869)); } catch { } - return !l && typeof process < "u" && u(2665) in process && (l = process[u(2665)].DEBUG), l; + return !l && typeof process !== f(993) && f(740) in process && (l = process[f(740)][f(2869)]), l; } function c() { try { @@ -3157,1200 +3200,1205 @@ function ui() { } catch { } } - x[r(982)] = di()(t); - const { formatters: d } = x[r(982)]; - d.j = function(u) { + x[r(732)] = oi()(t); + const { formatters: u } = x.exports; + u.j = function(f) { const l = r; try { - return JSON.stringify(u); - } catch (f) { - return l(1485) + f[l(2732)]; + return JSON[l(1031)](f); + } catch (d) { + return l(1611) + d.message; } }; - })(fx, fx.exports)), fx[o(982)]; + })(hx, hx[o(732)]), hx[o(732)]); } -var li = ui(); -const Gs = Ks(li); -Gs.enable("*"); -function fi(o, x) { - const t = a, r = Gs(o), e = (s, n) => async function(...i) { +var ci = ii(); +const Zs = Ws(ci); +Zs[a(2635)]("*"); +function ui(o, x) { + const t = a, r = Zs(o), e = (s, n) => async function(...i) { try { await x({ level: s, messages: i }); } catch { } }; - return r[t(2613)] = e("log"), r; + return r[t(1635)] = e(t(1635)), r; } -const ox = fi(a(916), async ({ level: o, messages: x }) => { - const t = a, { mcpMesh: r } = await Promise[t(510)]().then(() => od); - await r.getNode("uxp")[t(1043)][t(2613)]({ level: o, messages: x }); -}), hi = { "preview.show": a(839), "gateway.select_ai_service": a(479), "provider.select.title": a(2699), "provider.comfyui.description": a(3011), "provider.replicate.description": a(2134), "provider.runninghub.description": "模型物美价廉,海量社区应用", "provider.google.description": "OpenAI/Google 格式API", "task.waiting_upload": a(1124), "task.creating_task": a(690), "task.running_duration": a(3059), "task.cancelled": a(2059), "task.cancel_failed": a(2695), "task.default_name": a(2792), "comfy.connect": "连接", "comfy.load_failed": a(421), "comfy.loading": a(2968), "comfy.channel_connecting": a(991), "comfy.server_reconnecting": a(2587), "comfy.version_mismatch": a(843), "comfy.cloud_recommend": a(631), "comfy.your_workflows": a(2467), "comfy.refresh_workflows": a(1344), "comfy.queue_progress": "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(2249), "comfy.stop_auto_run": a(1634), "comfy.start_auto_run": a(1425), "comfy.auto_run_status": a(2174), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2412), "comfy_simple.refreshing_preview": "刷新图片中", "comfy.select_workflow": "选择工作流", "comfy.task.name": a(2856), "comfy.error.task_cancelled": a(2059), "comfy.task.processing_progress": a(881), "comfy.help_tooltip": a(1450), "comfy.no_workflow_selected": a(933), "comfy_simple.missing_url": a(1633), "comfy_simple.loading_webview": a(541), "comfy_simple.http_error": a(2177), "comfy_simple.wait_connect": "等待 ComfyUI 连接完成…", "comfy_simple.loading": "工作流打开中", "comfy_simple.connection_required": "ComfyUI 未就绪", "comfy_simple.preview_empty": a(678), "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": "X10", "comfy_simple.prompt_templates.manage_tooltip": a(2411), "comfy_simple.prompt_templates.button": a(2866), "comfy_simple.prompt_templates.save_error": a(581), "comfy_simple.prompt_templates.missing_key": a(1897), "comfy_simple.prompt_templates.missing_value": "请填写提示词内容。", "comfy_simple.prompt_templates.duplicate_key": "模板名称已存在。", "comfy_simple.prompt_templates.save_success": "模板已保存。", "comfy_simple.prompt_templates.delete_confirm_title": a(694), "comfy_simple.prompt_templates.delete_confirm_content": a(1559), "comfy_simple.prompt_templates.delete_success": a(1550), "comfy_simple.prompt_templates.add_title": a(2652), "comfy_simple.prompt_templates.edit_title": a(2680), "comfy_simple.prompt_templates.modal_title": a(1534), "comfy_simple.prompt_templates.description": a(2207), "comfy_simple.prompt_templates.add_button": a(383), "comfy_simple.prompt_templates.name_placeholder": a(2497), "comfy_simple.prompt_templates.value_placeholder": a(890), "comfy_simple.fallback.title": a(2473), "comfy_simple.fallback.button": a(2473), "comfy_simple.prompt_templates.positive_label": "正面提示词", "comfy_simple.prompt_templates.negative_label": "负面提示词", "comfy_simple.prompt_templates.negative_placeholder": a(2477), "comfy_simple.prompt_templates.negative_empty": a(1095), "comfy_simple.prompt_templates.default_section": a(2338), "comfy_simple.prompt_templates.default_empty": a(1759), "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": a(703), "comfy_simple.prompt_templates.custom_empty": "还没有自定义模板。", "comfy_simple.prompt_templates.applied_success": "模板已应用。", "comfy_simple.prompt_templates.applied_failed": a(2093), "comfy_simple.prompt_templates.apply_unavailable": a(2710), "comfy_simple.prompt_templates.apply_failed_missing_binding": "无法写入{{part}}提示词:未找到对应控件。", "comfy_simple.prompt_templates.apply_failed_caller_unavailable": "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "comfy_simple.prompt_templates.apply_failed_set_error": a(1813), "common.delete": "删除", "comfy_simple.preview_click_to_send": "点击发送(Shift-点击新建文档)", "comfy_simple.workflow_select.empty": a(2991), "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": "已选择", "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": a(1028), "comfy_simple.workflow_select.members_only": a(789), "boundary.title": "输入设置", "boundary.tooltip": a(1212), "boundary.current_canvas": "整个画布", "boundary.current_layer": a(2394), "boundary.current_selection": a(1676), "boundary.set_as_canvas": a(2160), "boundary.set_as_layer": a(1042), "boundary.set_as_selection": a(2561), "http.404": "SDPPP可能未安装或和插件版本不匹配 (404)", "http.401": a(1007), "http.403": a(642), "http.408": a(2798), "http.500": a(503), "http.501": a(2462), "http.502": a(2241), "http.503": "服务不可用 (503)", "http.504": a(492), "http.unknown": a(1722), "runninghub.get_apikey": a(2419), "runninghub.apikey_placeholder": a(948), "runninghub.app_id": a(1455), "runninghub.webapp_id_placeholder": "此处粘贴 WebApp ID", "runninghub.open_app": "按回车打开应用: {{appName}}", "runninghub.execute": "执行", "runninghub.running": a(1831), "runninghub.rh_coins": "RH币:", "runninghub.current_tasks": a(3064), "runninghub.help_tooltip": "使用教程", "runninghub.stop_all": a(2683), "runninghub.status.waiting": a(779), "runninghub.status.running": a(2932), "runninghub.status.failed": a(629), "runninghub.status.success": a(1430), "image.auto_refetch": "自动从PS重新获取", "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": "获取结果失败: {{error}}", "runninghub.error.task_failed": a(2351), "runninghub.error.task_incomplete": a(2872), "runninghub.error.account_status_http": a(1420), "runninghub.error.account_status_reason_unknown": a(1247), "runninghub.error.account_status_failed": a(830), "runninghub.error.form_data_http": a(2963), "runninghub.error.form_data_reason_unknown": "获取表单数据失败", "runninghub.error.form_data_failed": a(1132), "runninghub.error.node_info_missing": "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "runninghub.error.run_http": a(2453), "runninghub.error.run_reason_default": "任务执行失败", "runninghub.error.run_failed": "run API 调用失败 - {{reason}}", "runninghub.error.status_http": a(1204), "runninghub.error.status_reason_unknown": a(1353), "runninghub.error.status_failed": "status API 调用失败 - {{reason}}", "runninghub.error.outputs_http": a(2240), "runninghub.error.outputs_failed": a(501), "runninghub.task.title": a(1036), "runninghub.error.upload_http": a(2455), "runninghub.error.upload_reason_unknown": "文件上传失败", "runninghub.error.upload_failed": "uploadImage API 调用失败 - {{reason}}", "customapi.error.no_image_returned": a(2052), "customapi.error.openai_api": "OpenAI API 错误", "customapi.error.input_required": a(1838), "customapi.error.generation_failed": a(2107), "customapi.task.name.google": a(2322), "customapi.task.name.openai": "OpenAI - 图片编辑", "customapi.error.unsupported_image_input": a(2141), "replicate.get_apikey": a(1779), "replicate.apikey_placeholder": "请输入您的Replicate API Key", "replicate.execute": "执行", "replicate.model_placeholder": a(774), "replicate.help_tooltip": a(1450), "replicate.loading": a(1926), "replicate.running": a(1831), "replicate.stop": "停止", "liblib.get_apikey": a(586), "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(2286), "common.loading": "加载中...", "common.error": "错误", "common.error.unknown": a(2671), "common.error.task_creation_aborted": "任务创建已中止", "common.error.status_check_aborted": a(740), "common.error.result_fetch_aborted": a(2275), "common.error.upload_aborted": "上传已中止", "common.success": "成功", "common.failed": "失败", "common.generating": a(1785), "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": a(1283), "upload_pass.error.unsupported_type": "不支持的上传类型:{{type}}", "upload_pass.error.uploader_missing": a(2998), webviewInForeground: a(1021), webviewInForeground2: "点我恢复", "auth.login_success": "登录成功", "auth.username_label": a(2449), "auth.email_label": a(1644), "auth.logout": a(2458), "auth.login_required": a(2172), "image.send.select_position": "请选择要发送图像的位置", "image.send.sending": a(1131), "image.layer.new": a(2505), "image.layer.current": a(2394), "image.layer.fit_to_current": "适配至当前图层", "image.layer.fit_to_selection": a(2808), "image.layer.fit_to_canvas": a(487), "image.shortcut_auth_required": a(1047), "image.shortcut_focus_required": a(2001), "image.get.select_image": a(1946), "image.get.entire_canvas": a(1285), "image.get.canvas": "画布", "image.get.current_layer": "当前图层", "image.get.current_layer_bounds": "仅当前图层范围", "image.get.selection_bounds": a(1815), "image.get.canvas_bounds": a(461), "image.crop_by_selection": a(2135), "image.limit_size": a(2081), "image.crop.none": a(1842), "image.crop.inpaint": a(1365), "image.crop.outpaint": a(1658), "image.send_all": a(2173), "image.save_all": "保存所有", "image.save_current": "保存当前", "image.delete_current": "删除当前", "image.more_actions": a(1322), "image.jump_to_last": a(1088), "image.clear_all": a(2875), "image.send_to_ps": a(1657), "image.download": "下载", "image.copy": "复制", "image.sending": "正在发送...", "image.sending_all": "正在发送所有图片...", "mask.get.select_mask": a(2363), "mask.selection": "选区", "mask.current_layer_bounds": a(993), "mask.all": "全部", "mask.selection_exclude": a(1062), "mask.current_layer_exclude": a(666), "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(617), "work_boundary.error.empty_selection_mask": "选区遮罩为空", "work_boundary.error.primary_resource_missing": a(1314), "work_boundary.error.mask_resource_missing": a(1786), "work_boundary.error.mask_apply_empty": a(2983), "document {{0}} not found": "找不到文档: {{0}}", "create document for preview": "创建预览文档", "resize document for preview": "调整预览文档尺寸", "create document for sent images": a(2730), "show sent images": a(2826), "create layer failed": a(1821), "layer not found {{0}}": a(1072), "layer not found: {{0}}": a(1072), "layer {{0}} is not a group": a(632), "no linked layer for {{0}}": a(2124), "no first related layer in {{0}}": a(2707), "merge group failed": a(2312), "get content of layer {{0}}": "获取图层 {{0}} 的内容", "get layer info": "获取图层信息", "get_layer_info: layer_identify required": a(1895), "get pixel of {{0}} failed": a(1255), "get selection failed": a(2938), "invalid name: {{0}}": a(549), "desire bounds is null": a(2627), "intersect or scaledDesire is null": a(1554), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": "sdppp 选中图层", "run Photoshop Action": a(2715), "Action {{0}} not found": a(2291), "Action set {{0}} not found": "ActionSet {{0}} 未找到", "set text to layer": a(2777), "ComfyManager not found, cannot reboot": a(539), "Failed to reboot ComfyUI": a(1232), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(2394), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": a(1075), "image.upload.syncing": a(363), "image.upload.no_images": "暂无图片", "image.upload.error": a(2205), "image.upload.tooltip.more_options_hint": a(643), "image.upload.tooltip.alt.crop": a(2944), "image.upload.tooltip.alt.reverse": a(453), "image.upload.tooltip.image.canvas": a(2476), "image.upload.tooltip.image.curlayer": "从 当前图层 获取图像", "image.upload.tooltip.mask.curlayer": a(1844), "image.upload.tooltip.mask.selection": a(1846), "image.upload.tooltip.mask.canvas": a(2384), "image.upload.tooltip.cut_action": a(2349), "image.upload.tooltip.scan_action": a(1467), "image.upload.tooltip.autosync.on": a(3056), "image.upload.tooltip.autosync.off": a(1944), "image.upload.tooltip.sync_action": a(1140), "image.upload.autosync.fetching": a(499), "image.upload.autosync.status.enabled": a(2660), "image.upload.autosync.status.disabled": a(1182), "image.upload.tooltip.current.canvas": a(1150), "image.upload.tooltip.current.layer": a(1238), "image.upload.tooltip.current.layer_named": "当前选项:图层 {{layerName}}", "image.upload.tooltip.current.file": a(1019), "image.upload.retry": "重试", "image.pack.local.button": a(2422), "image.pack.local.empty": "暂无图片", "image.auto_send_enabled": "自动填入画布开启", "image.auto_send_disabled": a(2717), "image.upload.primary.auto": "自动取图中…", "image.upload.primary.manual": a(2913), "image.upload.primary.hint": "该节点默认继承当前图层与遮罩", "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": a(1828), "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": a(884), "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": a(1020), "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(1378), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(2394), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": a(2553), "image.upload.primary.advanced.boundary.curlayer": a(2206), "image.upload.primary.advanced.boundary.selection": a(2615), "image.upload.primary.advanced.boundary.primary": a(1886), "image.upload.source.file.tooltip": a(1368), "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": a(2091), "image.upload.source.canvas.tooltip": a(1240), "image.upload.dropHint": a(1333), "image.upload.tooltip.clear_action": "清空选择", "image.upload.status.layer.short_named": a(787), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": "本地文件", "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": a(1666), "image.upload.status.file.resetHint": a(1490), "image.upload.status.mask.resetHint": "点击恢复默认遮罩", "image.upload.status.mask.modified": a(597), "image.upload.status.boundary.resetHint": "点击恢复默认边界", "image.upload.status.boundary.modified": a(2653), "image.upload.status.boundary.docMismatch": a(2583), "image.upload.mask.button": a(863), "image.upload.mask.selection": a(863), "image.upload.mask.layer": a(1992), "image.upload.remove_slot": a(885), "image.upload.add_slot": a(1878), "video.local.button": a(2536), "video.local.empty": a(2878), "video.local.remove": "清除视频", "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": a(1489), "source.ps_mask": "PS遮罩", "source.canvas": a(1285), "source.current_layer": a(2394), "source.selection": "选区", "source.quality_percent": a(1921), "source.crop.positive": "正向裁剪", "source.crop.negative": "反向裁剪", "source.reverse": "反转", "send_images.create_document": a(1533), "send_images.create_document_failed": a(1184), "photoshop.no_active_document": a(754), "photoshop.rectangle_coordinates_required": a(2999), "photoshop.create_guide_frame": a(2744), "photoshop.clear_guide_frame": a(764), "photoshop.invalid_action": "无效操作: {{action}}", "photoshop.file_not_found": a(1349), "photoshop.failed_to_open_file_as_document": "无法将文件作为文档打开: {{path}}", "photoshop.invalid_boundary": a(2133), "photoshop.failed_to_open_image_file": "无法打开图像文件: {{error}}", "photoshop.open_images_from_file": a(1470), "photoshop.failed_to_create_document_from_file": a(2934), "google.field.image_input": "输入图像", "google.field.prompt": "提示词", "google.field.batch_count": "批次数量", "google.field.images_per_batch": a(1219), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": "生成中", "google.apikey_placeholder": a(2723), "google.baseurl_placeholder": a(919), "google.get_apikey": "获取 API Key", "google.help_tooltip": a(1320), "google.model_name": a(1059), "google.model_label": "模型", "google.model_placeholder": a(1894), "google.stop": "停止", "google.loading": a(1926), "google.generating": a(1785), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": a(2852), "image.import_as_newdoc": a(2201), "image.boundary": "边界", "image.import_tip": "按住 Shift 键以新文档方式导入", "image.import_selection_button": a(1466), "image.import_auto_hint": "Shift 点击或右键可切换自动发送", "image.import_selection_hint": a(419), "auth.guest_login_success": a(691), "boundary.canvas": "画布", "boundary.select_boundary": a(909), "boundary.selection": "选区", "boundary.max_size": a(798), "boundary.max_size_error": a(2501), "boundary.max_size_hint": "留空表示不限", "boundary.max_size_placeholder": a(959), "boundary.no_limit": "不限", "boundary.image_quality": a(1631), "boundary.image_quality_required": "请输入质量百分比", "boundary.image_quality_range": "范围 1-100", "boundary.preview_main_image": a(2155), "boundary.preview_select": a(546), "boundary.preview_alt": a(2933), "boundary.preview_placeholder": a(1952), "boundary.settings": a(2414), "convert widget {0} failed:": a(1870), "document {0} not found": "未找到文档 {0}", "image.document.new": a(3006), "image.layer.smart_object": a(1709), "layer not found {0}": a(1966), "photoshop.invalid_boundary_type": a(908), "photoshop.no_active_layer": a(2880), "dialog.image_source.title": a(1600), "dialog.image_source.primary_canvas": a(497), "dialog.image_source.primary_curlayer": a(1280), "dialog.image_source.canvas_canvas": a(2339), "dialog.image_source.canvas_curlayer": a(2213), "dialog.image_source.curlayer_canvas": "以当前图层边界获取画布", "dialog.image_source.curlayer_curlayer": a(1616), "dialog.image_source.local_file": a(1378), "dialog.simple_source.title": a(1199), "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": a(2394), "dialog.simple_source.local_file": a(682), "dialog.simple_source.no_active_layer": "当前没有可用图层", "dialog.simple_source.pick_error": a(1008) }, pi = { "preview.show": "Show Preview ({{count}} images)", "gateway.select_ai_service": a(2851), "provider.select.title": a(2589), "provider.comfyui.description": a(2428), "provider.replicate.description": "Cloud-based model service platform", "provider.runninghub.description": a(1426), "provider.google.description": a(907), "task.waiting_upload": "Waiting for image upload...", "task.creating_task": a(757), "task.running_duration": a(994), "task.cancelled": a(2287), "task.cancel_failed": a(2202), "task.default_name": a(962), "comfy.connect": a(2868), "comfy.load_failed": a(2002), "comfy.loading": a(897), "comfy.channel_connecting": a(1829), "comfy.server_reconnecting": a(2370), "comfy.version_mismatch": a(3057), "comfy.cloud_recommend": a(934), "comfy.your_workflows": a(599), "comfy.refresh_workflows": a(699), "comfy.queue_progress": "(Queue:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": a(470), "comfy.refresh": a(1619), "comfy.stop_cancel_all": "Stop and cancel all", "comfy.stop_auto_run": a(3002), "comfy.start_auto_run": "Auto run after canvas change", "comfy.auto_run_status": a(2442), "comfy.run": a(3049), "comfy.back": a(2567), "comfy.uploading": a(1576), "comfy_simple.refreshing_preview": a(2678), "comfy.select_workflow": a(1778), "comfy.task.name": a(2856), "comfy.error.task_cancelled": a(2287), "comfy.task.processing_progress": a(892), "comfy.help_tooltip": a(1702), "comfy.no_workflow_selected": a(2956), "comfy_simple.missing_url": a(1157), "comfy_simple.loading_webview": a(1670), "comfy_simple.http_error": "Failed to connect to ComfyUI (HTTP {{code}})", "comfy_simple.wait_connect": a(1385), "comfy_simple.loading": a(1605), "comfy_simple.connection_required": a(1162), "comfy_simple.preview_empty": a(2100), "comfy_simple.progress.idle": a(671), "comfy_simple.auto_run": "Auto", "comfy_simple.workflow_quick": a(928), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": "X10", "comfy_simple.prompt_templates.manage_tooltip": a(1863), "comfy_simple.prompt_templates.button": a(2450), "comfy_simple.prompt_templates.save_error": a(1811), "comfy_simple.prompt_templates.missing_key": a(1027), "comfy_simple.prompt_templates.missing_value": a(985), "comfy_simple.prompt_templates.duplicate_key": a(706), "comfy_simple.prompt_templates.save_success": a(681), "comfy_simple.prompt_templates.delete_confirm_title": a(1473), "comfy_simple.prompt_templates.delete_confirm_content": a(802), "comfy_simple.prompt_templates.delete_success": a(2371), "comfy_simple.prompt_templates.add_title": a(1879), "comfy_simple.prompt_templates.edit_title": a(1740), "comfy_simple.prompt_templates.modal_title": "Prompt Templates", "comfy_simple.prompt_templates.description": a(649), "comfy_simple.prompt_templates.add_button": a(1752), "comfy_simple.prompt_templates.name_placeholder": a(708), "comfy_simple.prompt_templates.value_placeholder": a(2186), "comfy_simple.fallback.title": "More Settings", "comfy_simple.fallback.button": a(932), "comfy_simple.prompt_templates.positive_label": a(677), "comfy_simple.prompt_templates.negative_label": a(1102), "comfy_simple.prompt_templates.negative_placeholder": "Negative prompt content", "comfy_simple.prompt_templates.negative_empty": "Empty", "comfy_simple.prompt_templates.default_section": a(2004), "comfy_simple.prompt_templates.default_empty": "No default templates available.", "comfy_simple.prompt_templates.default_tag": a(1405), "comfy_simple.prompt_templates.custom_section": a(1108), "comfy_simple.prompt_templates.custom_empty": "No custom templates yet.", "comfy_simple.prompt_templates.applied_success": a(1168), "comfy_simple.prompt_templates.applied_failed": a(2336), "comfy_simple.prompt_templates.apply_unavailable": "Applying templates is unavailable right now.", "comfy_simple.prompt_templates.apply_failed_missing_binding": a(1160), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(655), "comfy_simple.prompt_templates.apply_failed_set_error": a(1640), "common.delete": "Delete", "comfy_simple.preview_click_to_send": "Click to send (Shift-click creates new document)", "comfy_simple.workflow_select.empty": a(2353), "comfy_simple.workflow_select.select": a(796), "comfy_simple.workflow_select.selected": a(1874), "comfy_simple.workflow_select.current": a(2941), "comfy_simple.workflow_select.load_failed": a(709), "comfy_simple.workflow_select.members_only": a(1282), "boundary.title": a(2603), "boundary.tooltip": a(808), "boundary.current_canvas": "Entire Canvas", "boundary.current_layer": a(723), "boundary.current_selection": a(2021), "boundary.set_as_canvas": a(1611), "boundary.set_as_layer": "Set as Current Layer", "boundary.set_as_selection": a(2026), "http.404": a(2825), "http.401": "Unauthorized (401)", "http.403": "Forbidden (403)", "http.408": "Request timeout (408)", "http.500": "Server error (500)", "http.501": "Not implemented (501)", "http.502": a(1436), "http.503": "Service unavailable (503)", "http.504": a(976), "http.unknown": "Unknown error ({{code}})", "runninghub.get_apikey": a(606), "runninghub.apikey_placeholder": a(1653), "runninghub.app_id": "App ID:", "runninghub.webapp_id_placeholder": a(1858), "runninghub.open_app": a(1871), "runninghub.execute": a(2928), "runninghub.running": "Running...", "runninghub.rh_coins": a(2967), "runninghub.current_tasks": a(1677), "runninghub.help_tooltip": a(1702), "runninghub.stop_all": a(1376), "runninghub.status.waiting": a(1855), "runninghub.status.running": a(2811), "runninghub.status.failed": a(2032), "runninghub.status.success": "Success", "image.auto_refetch": "Auto repick from PS", "local_resource.selection.images": a(1371), "runninghub.error.get_result_failed": a(2714), "runninghub.error.task_failed": a(628), "runninghub.error.task_incomplete": a(2300), "runninghub.error.account_status_http": a(414), "runninghub.error.account_status_reason_unknown": a(809), "runninghub.error.account_status_failed": "getAccountStatus API failed - {{reason}}", "runninghub.error.form_data_http": a(2435), "runninghub.error.form_data_reason_unknown": a(1197), "runninghub.error.form_data_failed": a(1310), "runninghub.error.node_info_missing": a(2676), "runninghub.error.run_http": a(2366), "runninghub.error.run_reason_default": "Task execution failed", "runninghub.error.run_failed": "run API failed - {{reason}}", "runninghub.error.status_http": a(1814), "runninghub.error.status_reason_unknown": a(3024), "runninghub.error.status_failed": a(1608), "runninghub.error.outputs_http": a(683), "runninghub.error.outputs_failed": a(1734), "runninghub.task.title": "RunningHub - {{webappId}}", "runninghub.error.upload_http": a(2396), "runninghub.error.upload_reason_unknown": a(2280), "runninghub.error.upload_failed": a(1917), "customapi.error.no_image_returned": "No image returned", "customapi.error.openai_api": a(1509), "customapi.error.input_required": a(1194), "customapi.error.generation_failed": a(1667), "customapi.task.name.google": a(2754), "customapi.task.name.openai": a(2946), "customapi.error.unsupported_image_input": a(1093), "replicate.get_apikey": a(2514), "replicate.apikey_placeholder": "Enter your Replicate API Key", "replicate.execute": "Execute", "replicate.model_placeholder": "Paste your model name", "replicate.help_tooltip": a(1702), "replicate.loading": a(1144), "replicate.running": a(2843), "replicate.stop": "Stop", "liblib.get_apikey": a(663), "liblib.execute": a(2928), "common.close": a(1901), "common.save": a(470), "common.save_and_run": a(1091), "common.loading": a(1144), "common.error": a(429), "common.error.unknown": a(1412), "common.error.task_creation_aborted": "Task creation aborted", "common.error.status_check_aborted": a(2669), "common.error.result_fetch_aborted": "Result fetch aborted", "common.error.upload_aborted": a(1688), "common.success": a(1165), "common.failed": a(2032), "common.generating": a(1e3), "common.cancel": a(1833), "common.confirm": a(1334), "common.options": a(2246), "common.options_separator": a(659), "upload_pass.error.unsupported_type": "Unsupported upload type: {{type}}", "upload_pass.error.uploader_missing": a(1856), webviewInForeground: "PS shortcuts may be blocked by plugin...", webviewInForeground2: a(2466), "auth.login_success": a(540), "auth.username_label": a(1024), "auth.email_label": a(2639), "auth.logout": a(2319), "auth.login_required": "Please login to use the plugin", "image.send.select_position": a(664), "image.send.sending": a(420), "image.layer.new": "New Layer", "image.layer.current": "Current Layer", "image.layer.fit_to_current": "Fit to current layer", "image.layer.fit_to_selection": a(2950), "image.layer.fit_to_canvas": a(1769), "image.shortcut_auth_required": a(998), "image.shortcut_focus_required": "Plugin window focused required to use keyboard shortcut", "image.get.select_image": a(3058), "image.get.entire_canvas": "Entire Canvas", "image.get.canvas": a(1015), "image.get.current_layer": a(723), "image.get.current_layer_bounds": "Current layer bounds only", "image.get.selection_bounds": "Selection bounds only", "image.get.canvas_bounds": "Canvas bounds", "image.crop_by_selection": a(2077), "image.limit_size": a(2599), "image.crop.none": a(2278), "image.crop.inpaint": a(2382), "image.crop.outpaint": a(1051), "image.send_all": "Send all", "image.save_all": "Save all", "image.save_current": a(2262), "image.delete_current": a(2257), "image.more_actions": a(858), "image.jump_to_last": a(2341), "image.clear_all": "Clear all", "image.send_to_ps": "Send to PS", "image.download": "Download", "image.copy": a(660), "image.sending": a(387), "image.sending_all": a(743), "mask.get.select_mask": a(1635), "mask.selection": "Selection", "mask.current_layer_bounds": "Current layer bounds", "mask.all": a(886), "mask.selection_exclude": "Exclude selection", "mask.current_layer_exclude": a(2175), "mask.empty": a(893), "widgetable.photoshop.deprecated_node": "SDPPP 2.0 no longer needs this node", "work_boundary.error.empty_selection_mask": a(446), "work_boundary.error.primary_resource_missing": a(2484), "work_boundary.error.mask_resource_missing": a(557), "work_boundary.error.mask_apply_empty": a(451), "document {{0}} not found": a(2378), "create document for preview": a(2927), "resize document for preview": a(2634), "create document for sent images": "Create document for sent images", "show sent images": "Show sent images", "create layer failed": a(578), "layer not found {{0}}": a(1481), "layer not found: {{0}}": a(979), "layer {{0}} is not a group": a(2971), "no linked layer for {{0}}": "No linked layer for {{0}}", "no first related layer in {{0}}": a(697), "merge group failed": a(1573), "get content of layer {{0}}": "Get content of layer {{0}}", "get layer info": a(1097), "get_layer_info: layer_identify required": a(3069), "get pixel of {{0}} failed": a(1434), "get selection failed": a(1399), "invalid name: {{0}}": a(607), "desire bounds is null": a(1245), "intersect or scaledDesire is null": a(2525), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(2800), "select layer": a(1358), "run Photoshop Action": "Run Photoshop Action", "Action {{0}} not found": a(1117), "Action set {{0}} not found": a(2741), "set text to layer": a(2817), "ComfyManager not found, cannot reboot": a(2029), "Failed to reboot ComfyUI": a(1911), "image.upload.from_canvas": a(1015), "image.upload.from_curlayer": "Current Layer", "image.upload.from_selection": a(2840), "image.upload.from_harddisk": a(853), "image.upload.clear": a(1774), "image.upload.uploading": "Uploading, if the image too large, may be lag...", "image.upload.syncing": "Syncing assets", "image.upload.no_images": a(1746), "image.upload.error": a(929), "image.upload.tooltip.alt.crop": "+Alt crop by selection", "image.upload.tooltip.alt.reverse": a(2125), "image.upload.tooltip.image.canvas": "Get image from Canvas", "image.upload.tooltip.image.curlayer": a(2713), "image.upload.tooltip.mask.canvas": a(1974), "image.upload.tooltip.mask.curlayer": a(1454), "image.upload.tooltip.mask.selection": "Get mask from Selection", "image.upload.tooltip.cut_action": a(627), "image.upload.tooltip.scan_action": a(1078), "image.upload.tooltip.autosync.on": "Auto Sync: on", "image.upload.tooltip.autosync.off": a(2084), "image.upload.tooltip.sync_action": "Sync current content", "image.upload.tooltip.more_options_hint": a(1487), "image.upload.tooltip.current.canvas": "Current selection: Canvas", "image.upload.tooltip.current.layer": a(2746), "image.upload.tooltip.current.layer_named": a(2543), "image.upload.tooltip.current.file": "Current option: File", "image.upload.autosync.fetching": a(1969), "image.upload.autosync.status.enabled": "Auto sync in progress…", "image.upload.autosync.status.disabled": "Auto sync is off", "image.upload.retry": a(1139), "image.pack.local.button": "Local image pack", "image.pack.local.empty": a(834), "image.auto_send_enabled": a(2504), "image.auto_send_disabled": a(2432), "image.upload.primary.auto": a(1969), "image.upload.primary.manual": "Get Image", "image.upload.primary.cut": a(469), "image.upload.primary.scan": a(2696), "image.upload.primary.hint": a(583), "image.upload.primary.hint.line1": a(1704), "image.upload.primary.hint.line2": a(673), "workflow.output.destination.title": a(1025), "workflow.output.destination.canvas": a(2874), "image.upload.primary.advanced": "Advanced selection", "image.upload.primary.advanced.modify": a(1352), "image.upload.primary.advanced.reset": a(2747), "image.upload.primary.advanced.local_file": a(2392), "image.upload.primary.advanced.content.canvas": a(1015), "image.upload.primary.advanced.content.curlayer": a(2548), "image.upload.primary.advanced.content.selection": a(2840), "image.upload.primary.advanced.boundary.canvas": a(637), "image.upload.primary.advanced.boundary.curlayer": a(2853), "image.upload.primary.advanced.boundary.selection": a(2758), "image.upload.primary.advanced.boundary.primary": a(1409), "image.upload.mode.file.label": a(2990), "image.upload.mode.layer.label": a(2819), "image.upload.mode.canvas.label": a(1015), "image.upload.source.file.tooltip": "Upload from disk", "image.upload.source.layer.tooltip": a(1905), "image.upload.source.canvas.tooltip": a(619), "image.upload.dropHint": "Drag images here and release to upload", "image.upload.tooltip.clear_action": a(1482), "image.upload.status.layer.short_named": "Layer {{layerName}}", "image.upload.status.layer.short": a(2819), "image.upload.status.file.short": a(2392), "image.upload.status.canvas.short": "Canvas", "image.upload.status.file.active": a(2743), "image.upload.status.file.resetHint": "Click to remove local file", "image.upload.status.mask.resetHint": a(3062), "image.upload.status.mask.modified": a(2908), "image.upload.status.boundary.resetHint": a(2222), "image.upload.status.boundary.modified": a(1324), "image.upload.status.boundary.docMismatch": a(2538), "image.upload.mask.button": "Selection mask", "image.upload.mask.selection": a(1477), "image.upload.mask.layer": a(1859), "image.upload.remove_slot": a(2268), "image.upload.add_slot": "Add slot", "video.local.button": a(2917), "video.local.empty": a(2759), "video.local.remove": "Remove video", "source.source": a(721), "source.content": "Content", "source.boundary": a(1714), "source.mask": a(2111), "source.disk": a(853), "source.remote": a(2622), "source.unknown": a(900), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": "Canvas", "source.current_layer": a(1893), "source.selection": a(2840), "source.quality_percent": a(1009), "source.crop.positive": a(2761), "source.crop.negative": a(480), "source.reverse": a(1523), "send_images.create_document": a(1475), "send_images.create_document_failed": a(2835), "photoshop.no_active_document": a(2684), "photoshop.rectangle_coordinates_required": a(2431), "photoshop.create_guide_frame": a(2575), "photoshop.clear_guide_frame": "Clear guide frame", "photoshop.invalid_action": a(1999), "photoshop.file_not_found": a(484), "photoshop.failed_to_open_file_as_document": a(2171), "photoshop.invalid_boundary": "Invalid boundary: left must be less than right, top must be less than bottom", "photoshop.failed_to_open_image_file": a(2292), "photoshop.open_images_from_file": "Open images from file", "photoshop.failed_to_create_document_from_file": a(1218), "google.field.image_input": a(477), "google.field.prompt": a(1537), "google.field.batch_count": a(2736), "google.field.images_per_batch": a(633), "google.status.success": a(1165), "google.status.failed": a(2032), "google.status.generating": a(365), "google.apikey_placeholder": a(2925), "google.get_apikey": a(783), "google.baseurl_placeholder": "Base URL", "google.help_tooltip": "Google Gemini Image Generator", "google.model_name": a(2030), "google.model_label": a(841), "google.model_placeholder": a(2236), "google.stop": a(2814), "google.loading": a(1144), "google.generating": "Generating...", "google.generate": a(1370), "image.auto_toggle": "AUTO", "image.import_as_smartobject": a(2646), "image.import_as_newdoc": a(1083), "image.boundary": "Boundary", "image.import_tip": a(2763), "image.import_selection_button": a(989), "image.import_auto_hint": a(1211), "image.import_selection_hint": "Use current selection boundary", "auth.guest_login_success": a(638), "boundary.canvas": a(1015), "boundary.select_boundary": "Select boundary", "boundary.selection": "Selection", "boundary.max_size": a(1510), "boundary.max_size_error": a(1057), "boundary.max_size_hint": "Leave empty for no limit", "boundary.max_size_placeholder": a(718), "boundary.no_limit": "No limit", "boundary.image_quality": a(2255), "boundary.image_quality_required": "Enter a quality percentage", "boundary.image_quality_range": a(1659), "boundary.preview_main_image": a(1539), "boundary.preview_select": a(466), "boundary.preview_alt": a(528), "boundary.preview_placeholder": "Click to use current selection", "boundary.settings": "Adjust input settings", "convert widget {0} failed:": a(1391), "document {0} not found": a(514), "image.document.new": a(1176), "image.layer.smart_object": a(1101), "layer not found {0}": a(2749), "photoshop.invalid_boundary_type": a(616), "photoshop.no_active_layer": a(2395), "dialog.image_source.title": "Select Image Source", "dialog.image_source.primary_canvas": a(2260), "dialog.image_source.primary_curlayer": a(3017), "dialog.image_source.canvas_canvas": a(2555), "dialog.image_source.canvas_curlayer": "Fetch current layer with canvas boundary", "dialog.image_source.curlayer_canvas": a(950), "dialog.image_source.curlayer_curlayer": a(956), "dialog.image_source.local_file": a(1103), "dialog.simple_source.title": a(1773), "dialog.simple_source.canvas": a(1015), "dialog.simple_source.current_layer": a(723), "dialog.simple_source.local_file": a(396), "dialog.simple_source.no_active_layer": "No active layer available", "dialog.simple_source.pick_error": a(1572) }, be = (o) => typeof o === a(1443), J0 = () => { +const ix = ui("mesh:comfy", async ({ level: o, messages: x }) => { + const t = a, { mcpMesh: r } = await Promise.resolve()[t(2517)](() => ru); + await r[t(1316)](t(2062))[t(2848)][t(1635)]({ level: o, messages: x }); +}), fi = { "preview.show": "显示预览框 ({{count}}张图片)", "gateway.select_ai_service": a(1321), "provider.select.title": a(851), "provider.comfyui.description": a(1496), "provider.replicate.description": "海量模型,稳定服务", "provider.runninghub.description": a(2736), "provider.google.description": a(1756), "provider.sdppp_sponsor.description": a(2044), "task.waiting_upload": "正在等待图片上传...", "task.creating_task": a(2506), "task.running_duration": a(970), "task.cancelled": a(2802), "task.cancel_failed": a(2305), "task.default_name": a(2362), "comfy.connect": "连接", "comfy.load_failed": "ComfyUI加载失败,HTTP状态码:{{code}}", "comfy.loading": a(1481), "comfy.channel_connecting": "通道连接中...", "comfy.server_reconnecting": a(1780), "comfy.version_mismatch": a(3203), "comfy.cloud_recommend": a(3196), "comfy.your_workflows": "你的工作流", "comfy.refresh_workflows": "刷新工作流列表", "comfy.queue_progress": a(2405), "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(2728), "comfy.stop_auto_run": a(1714), "comfy.start_auto_run": a(2118), "comfy.auto_run_status": a(865), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2190), "comfy_simple.refreshing_preview": "刷新图片中", "comfy.select_workflow": "选择工作流", "comfy.task.name": a(786), "comfy.error.task_cancelled": a(2802), "comfy.task.processing_progress": a(1743), "comfy.help_tooltip": a(682), "comfy.no_workflow_selected": "未选择工作流", "comfy_simple.missing_url": a(796), "comfy_simple.loading_webview": a(1906), "comfy_simple.http_error": "连接 ComfyUI 失败(HTTP {{code}})", "comfy_simple.wait_connect": a(634), "comfy_simple.loading": a(564), "comfy_simple.connection_required": a(897), "comfy_simple.preview_empty": a(1901), "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(1455), "comfy_simple.prompt_templates.manage_tooltip": a(1384), "comfy_simple.prompt_templates.button": a(1642), "comfy_simple.prompt_templates.save_error": a(737), "comfy_simple.prompt_templates.missing_key": a(1904), "comfy_simple.prompt_templates.missing_value": a(1971), "comfy_simple.prompt_templates.duplicate_key": "模板名称已存在。", "comfy_simple.prompt_templates.save_success": "模板已保存。", "comfy_simple.prompt_templates.delete_confirm_title": a(540), "comfy_simple.prompt_templates.delete_confirm_content": "确定要删除此模板吗?", "comfy_simple.prompt_templates.delete_success": a(3076), "comfy_simple.prompt_templates.add_title": a(1089), "comfy_simple.prompt_templates.edit_title": a(2757), "comfy_simple.prompt_templates.modal_title": "提示词模板", "comfy_simple.prompt_templates.description": a(820), "comfy_simple.prompt_templates.add_button": a(2625), "comfy_simple.prompt_templates.name_placeholder": a(3131), "comfy_simple.prompt_templates.value_placeholder": a(2053), "comfy_simple.fallback.title": a(930), "comfy_simple.fallback.button": a(930), "comfy_simple.prompt_templates.positive_label": a(2102), "comfy_simple.prompt_templates.negative_label": a(1841), "comfy_simple.prompt_templates.negative_placeholder": a(2696), "comfy_simple.prompt_templates.negative_empty": a(2699), "comfy_simple.prompt_templates.default_section": a(2930), "comfy_simple.prompt_templates.default_empty": "暂无默认模板。", "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": a(1447), "comfy_simple.prompt_templates.custom_empty": a(2285), "comfy_simple.prompt_templates.applied_success": a(3211), "comfy_simple.prompt_templates.applied_failed": a(2057), "comfy_simple.prompt_templates.apply_unavailable": a(3030), "comfy_simple.prompt_templates.apply_failed_missing_binding": "无法写入{{part}}提示词:未找到对应控件。", "comfy_simple.prompt_templates.apply_failed_caller_unavailable": "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "comfy_simple.prompt_templates.apply_failed_set_error": a(2492), "common.delete": "删除", "comfy_simple.preview_click_to_send": a(1325), "comfy_simple.workflow_select.empty": a(2317), "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": a(1720), "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": "获取工作流列表失败。", "comfy_simple.workflow_select.members_only": a(1737), "boundary.title": a(3100), "boundary.tooltip": a(2893), "boundary.current_canvas": "整个画布", "boundary.current_layer": "当前图层", "boundary.current_selection": "当前选区", "boundary.set_as_canvas": "设为画布", "boundary.set_as_layer": a(2561), "boundary.set_as_selection": "设为当前选区", "http.404": a(2740), "http.401": a(1937), "http.403": "禁止访问 (403)", "http.408": a(3273), "http.500": "服务器错误 (500)", "http.501": "未实现 (501)", "http.502": a(1722), "http.503": a(2826), "http.504": a(552), "http.unknown": a(881), "runninghub.get_apikey": a(2601), "runninghub.apikey_placeholder": a(1905), "runninghub.app_id": "应用ID:", "runninghub.webapp_id_placeholder": "此处粘贴 WebApp ID", "runninghub.open_app": "按回车打开应用: {{appName}}", "runninghub.execute": "执行", "runninghub.running": "运行中...", "runninghub.rh_coins": a(561), "runninghub.current_tasks": a(1597), "runninghub.help_tooltip": "使用教程", "runninghub.stop_all": "停止全部", "runninghub.status.waiting": a(2926), "runninghub.status.running": a(2153), "runninghub.status.failed": "执行失败", "runninghub.status.success": a(3021), "image.auto_refetch": "自动从PS重新获取", "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": a(1665), "runninghub.error.task_failed": a(1239), "runninghub.error.task_incomplete": a(2202), "runninghub.error.account_status_http": a(1410), "runninghub.error.account_status_reason_unknown": a(845), "runninghub.error.account_status_failed": a(751), "runninghub.error.form_data_http": a(3032), "runninghub.error.form_data_reason_unknown": a(3149), "runninghub.error.form_data_failed": a(1105), "runninghub.error.node_info_missing": a(1182), "runninghub.error.run_http": a(2211), "runninghub.error.run_reason_default": a(2459), "runninghub.error.run_failed": a(3199), "runninghub.error.status_http": a(2400), "runninghub.error.status_reason_unknown": a(724), "runninghub.error.status_failed": a(856), "runninghub.error.outputs_http": a(546), "runninghub.error.outputs_failed": a(3152), "runninghub.task.title": a(1877), "runninghub.error.upload_http": a(1938), "runninghub.error.upload_reason_unknown": "文件上传失败", "runninghub.error.upload_failed": "uploadImage API 调用失败 - {{reason}}", "runninghub.error.services_unavailable": a(1251), "customapi.error.no_image_returned": a(543), "customapi.error.openai_api": a(1176), "customapi.error.input_required": a(2287), "customapi.error.generation_failed": a(553), "customapi.error.model_required": "请输入模型名称", "customapi.task.name.google": "Google Gemini - 图片生成", "customapi.task.name.openai": "OpenAI - 图片编辑", "customapi.error.unsupported_image_input": "不支持的图像输入类型", "replicate.get_apikey": a(3011), "replicate.apikey_placeholder": a(1875), "replicate.execute": "执行", "replicate.model_placeholder": "粘贴你的模型名称", "replicate.help_tooltip": a(682), "replicate.loading": a(795), "replicate.running": a(670), "replicate.stop": "停止", "replicate.error.result_fetch_failed": a(1713), "liblib.get_apikey": a(1276), "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(784), "common.loading": a(795), "common.list_separator": "、", "common.error": "错误", "common.error.unknown": "未知错误", "common.error.task_creation_aborted": a(2745), "common.error.status_check_aborted": "状态检查已中止", "common.error.result_fetch_aborted": a(3166), "common.error.upload_aborted": "上传已中止", "common.success": "成功", "common.failed": "失败", "common.generating": a(948), "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": "=== 选项 ===", "upload_pass.error.unsupported_type": "不支持的上传类型:{{type}}", "upload_pass.error.uploader_missing": a(2083), webviewInForeground: "插件可能正在拦截 PS 快捷键... ", webviewInForeground2: a(1968), "auth.login_success": a(2872), "auth.username_label": "用户名: {{username}}", "auth.email_label": a(2623), "auth.logout": a(2065), "auth.login_required": a(1811), "image.send.select_position": a(1963), "image.send.sending": a(1301), "image.layer.new": "新图层", "image.layer.current": a(1632), "image.layer.fit_to_current": a(524), "image.layer.fit_to_selection": a(3190), "image.layer.fit_to_canvas": "适配至画布", "image.shortcut_auth_required": "快捷键选图功能仅登陆后可用", "image.shortcut_focus_required": a(1819), "image.get.select_image": a(3088), "image.get.entire_canvas": a(1449), "image.get.canvas": "画布", "image.get.current_layer": a(1632), "image.get.current_layer_bounds": a(1183), "image.get.selection_bounds": a(1422), "image.get.canvas_bounds": a(1890), "image.crop_by_selection": a(2045), "image.limit_size": a(653), "image.crop.none": a(1202), "image.crop.inpaint": a(1678), "image.crop.outpaint": "正向裁剪(Outpaint)", "image.send_all": "发送所有", "image.save_all": a(915), "image.save_current": "保存当前", "image.delete_current": a(853), "image.more_actions": a(1283), "image.jump_to_last": a(3271), "image.clear_all": a(492), "image.send_to_ps": a(2862), "image.download": "下载", "image.copy": "复制", "image.sending": "正在发送...", "image.sending_all": a(2652), "mask.get.select_mask": "请选择要获取的遮罩", "mask.selection": "选区", "mask.current_layer_bounds": a(1053), "mask.all": "全部", "mask.selection_exclude": "选区除外", "mask.current_layer_exclude": "当前图层除外", "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(2915), "work_boundary.error.empty_selection_mask": a(2440), "work_boundary.error.primary_resource_missing": a(1830), "work_boundary.error.mask_resource_missing": a(3200), "work_boundary.error.mask_apply_empty": a(1528), "document {{0}} not found": a(3e3), "create document for preview": a(2296), "resize document for preview": a(1232), "create document for sent images": a(1475), "show sent images": "显示发送的图片", "create layer failed": "创建图层失败", "layer not found {{0}}": a(2388), "layer not found: {{0}}": "找不到图层: {{0}}", "layer {{0}} is not a group": a(555), "no linked layer for {{0}}": a(2039), "no first related layer in {{0}}": "组 {{0}} 中没有第一个相关图层", "merge group failed": "合并组失败", "get content of layer {{0}}": a(566), "get layer info": a(2660), "get_layer_info: layer_identify required": a(2747), "get pixel of {{0}} failed": "获取像素失败: {{0}}", "get selection failed": a(863), "invalid name: {{0}}": a(1006), "desire bounds is null": a(1993), "intersect or scaledDesire is null": a(2961), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": "sdppp 选中图层", "run Photoshop Action": a(2216), "Action {{0}} not found": a(1503), "Action set {{0}} not found": a(739), "set text to layer": a(909), "ComfyManager not found, cannot reboot": a(1787), "Failed to reboot ComfyUI": a(536), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(1632), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": a(983), "image.upload.syncing": "素材同步中", "image.upload.no_images": a(2748), "image.upload.error": a(1180), "image.upload.tooltip.more_options_hint": a(2514), "image.upload.tooltip.alt.crop": a(985), "image.upload.tooltip.alt.reverse": a(949), "image.upload.tooltip.image.canvas": "从 画布 获取图像", "image.upload.tooltip.image.curlayer": "从 当前图层 获取图像", "image.upload.tooltip.mask.curlayer": "从 当前图层 获取遮罩", "image.upload.tooltip.mask.selection": a(826), "image.upload.tooltip.mask.canvas": "从 画布 获取遮罩", "image.upload.tooltip.cut_action": a(1344), "image.upload.tooltip.scan_action": `获取图像 & +限制图像范围`, "image.upload.tooltip.autosync.on": a(1886), "image.upload.tooltip.autosync.off": "自动同步: 关闭", "image.upload.tooltip.sync_action": a(1553), "image.upload.autosync.fetching": a(2914), "image.upload.autosync.status.enabled": a(3075), "image.upload.autosync.status.disabled": a(2890), "image.upload.tooltip.current.canvas": a(2288), "image.upload.tooltip.current.layer": a(2815), "image.upload.tooltip.current.layer_named": a(1871), "image.upload.tooltip.current.file": "当前选项:文件", "image.upload.retry": "重试", "image.pack.local.button": a(2505), "image.pack.local.empty": a(2748), "image.auto_send_enabled": a(922), "image.auto_send_disabled": a(1198), "image.upload.primary.auto": "自动取图中…", "image.upload.primary.manual": a(1525), "image.upload.primary.hint": "该节点默认继承当前图层与遮罩", "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": "本节点默认继承:", "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": "输出至:", "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": a(2082), "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(2139), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(1632), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": a(1372), "image.upload.primary.advanced.boundary.curlayer": a(917), "image.upload.primary.advanced.boundary.selection": a(685), "image.upload.primary.advanced.boundary.primary": a(2132), "image.upload.source.file.tooltip": a(720), "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": a(2148), "image.upload.source.canvas.tooltip": a(2965), "image.upload.dropHint": a(2017), "image.upload.tooltip.clear_action": a(1593), "image.upload.status.layer.short_named": a(2402), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": "本地文件", "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": "正在使用本地文件", "image.upload.status.file.resetHint": a(1437), "image.upload.status.mask.resetHint": a(1060), "image.upload.status.mask.modified": "已添加遮罩", "image.upload.status.boundary.resetHint": "点击恢复默认边界", "image.upload.status.boundary.modified": a(2494), "image.upload.status.boundary.docMismatch": a(2096), "image.upload.mask.button": a(2685), "image.upload.mask.selection": a(2685), "image.upload.mask.layer": "图层遮罩", "image.upload.remove_slot": "移除槽位", "image.upload.add_slot": a(736), "video.local.button": a(1388), "video.local.empty": a(1732), "video.local.remove": "清除视频", "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": a(1694), "source.ps_mask": "PS遮罩", "source.canvas": "整个画布", "source.current_layer": a(1632), "source.selection": "选区", "source.quality_percent": a(1689), "source.crop.positive": a(3020), "source.crop.negative": a(838), "source.reverse": "反转", "send_images.create_document": a(1470), "send_images.create_document_failed": a(906), "photoshop.no_active_document": a(2455), "photoshop.rectangle_coordinates_required": a(2110), "photoshop.create_guide_frame": a(1212), "photoshop.clear_guide_frame": a(997), "photoshop.invalid_action": a(1806), "photoshop.file_not_found": a(1047), "photoshop.failed_to_open_file_as_document": a(733), "photoshop.invalid_boundary": a(1258), "photoshop.failed_to_open_image_file": a(1185), "photoshop.open_images_from_file": a(511), "photoshop.failed_to_create_document_from_file": a(587), "google.field.image_input": "输入图像", "google.field.prompt": a(1642), "google.field.batch_count": a(601), "google.field.images_per_batch": a(3265), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": "生成中", "google.apikey_placeholder": a(1211), "google.baseurl_placeholder": "基础 URL", "google.get_apikey": a(1788), "google.help_tooltip": a(3073), "google.model_name": a(1129), "google.model_label": "模型", "google.model_placeholder": a(1701), "google.stop": "停止", "google.loading": a(795), "google.generating": a(948), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": a(2606), "image.import_as_newdoc": a(3233), "image.boundary": "边界", "image.import_tip": a(2725), "image.import_selection_button": a(2687), "image.import_auto_hint": a(1745), "image.import_selection_hint": "使用当前选区边界", "auth.guest_login_success": a(532), "boundary.canvas": "画布", "boundary.select_boundary": a(1771), "boundary.selection": "选区", "boundary.max_size": a(967), "boundary.max_size_error": a(1409), "boundary.max_size_hint": "留空表示不限", "boundary.max_size_placeholder": a(972), "boundary.no_limit": "不限", "boundary.image_quality": a(2552), "boundary.image_quality_required": a(2891), "boundary.image_quality_range": "范围 1-100", "boundary.preview_main_image": "输出区域", "boundary.preview_select": a(1923), "boundary.preview_alt": "边界预览", "boundary.preview_placeholder": a(2374), "boundary.settings": "调整输入设置", "convert widget {0} failed:": a(1548), "document {0} not found": a(1027), "image.document.new": a(1432), "image.layer.smart_object": a(1466), "layer not found {0}": "未找到图层 {0}", "photoshop.invalid_boundary_type": "无效的边界类型: {{type}}", "photoshop.no_active_layer": a(2934), "auth.login_hint": "请点击右上角登录后使用。", "task.running": a(670), "task.execute": "运行", "task.stop": "停止", "task.importing_image": a(2562), "task.error.send_image_failed": a(1799), "task.error.failed_status": a(2997), "taskrouter.template_placeholder": a(519), "taskrouter.balance": "赞助分", "taskrouter.recharge": a(2264), "taskrouter.refresh_balance": a(2229), "taskrouter.no_schema": "请先选择应用", "taskrouter.config.base_url": a(1833), "taskrouter.config.supabase_url": "Supabase URL", "taskrouter.config.supabase_anon_key": "Supabase 匿名密钥", "taskrouter.error.remote_config_missing": "缺少 TaskRouter 远端配置:{{missing}}。请检查远端配置后重试。", "taskrouter.error.client_missing": "TaskRouter 客户端未初始化", "taskrouter.error.template_missing": a(2378), "taskrouter.error.upload_provider_incompatible": a(1984), "taskrouter.error.deferred_upload_failed": a(1099), "taskrouter.error.upload_control_unsupported": a(2943), "taskrouter.error.upload_resource_missing": "缺少可上传的资源", "taskrouter.error.tenant_unresolved": a(890), "taskrouter.error.supabase_session_failed": a(714), "taskrouter.status.preparing": a(1595), "taskrouter.status.uploading": a(1421), "taskrouter.status.validating": a(1178), "taskrouter.status.creating": a(2506), "taskrouter.tab.editor": "运行", "taskrouter.tab.history": a(1907), "taskrouter.history.importing": "正在导入历史图片...", "taskrouter.history.send_failed_resource": a(1736), "taskrouter.history.send_failed_identifier": a(1724), "taskrouter.history.send_success": "图片已导入到画布", "taskrouter.history.select_prompt": a(2097), "taskrouter.history.duration_prefix": "耗时", "taskrouter.history.duration_unit": "秒", "taskrouter.history.createdAt": a(1626), "taskrouter.history.charge": a(2242), "taskrouter.history.charge_value": "-{{value}}积分", "taskrouter.history.images": "输出预览", "taskrouter.history.retry": a(1458), "taskrouter.history.id": "任务 ID", "taskrouter.history.message": a(752), "taskrouter.history.no_images": a(2654), "taskrouter.history.client_missing": a(2259), "taskrouter.history.limit_notice": "当前版本限制获取最近10条", "taskrouter.history.refresh": "刷新", "taskrouter.history.detail_title": a(522), "taskrouter.history.loading": a(1539), "taskrouter.history.empty": a(713), "taskrouter.history.started_at_label": "开始时间", "taskrouter.history.status.pending": "排队中", "taskrouter.history.status.running": a(2192), "taskrouter.history.status.completed": a(2210), "taskrouter.history.status.failed": "失败", "taskrouter.history.status.cancelled": a(2311), "plugin.menu.view_logs": a(3103), "plugin.log.saved": `日志已保存到文件: {{path}} + + +`, "plugin.log.save_failed": a(2719), "dialog.image_source.title": a(722), "dialog.image_source.primary_canvas": a(1376), "dialog.image_source.primary_curlayer": a(2764), "dialog.image_source.canvas_canvas": a(1981), "dialog.image_source.canvas_curlayer": a(3208), "dialog.image_source.curlayer_canvas": "以当前图层边界获取画布", "dialog.image_source.curlayer_curlayer": a(2613), "dialog.image_source.local_file": a(2139), "dialog.simple_source.title": a(1784), "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": a(1632), "dialog.simple_source.local_file": a(1726), "dialog.simple_source.no_active_layer": "当前没有可用图层", "dialog.simple_source.pick_error": a(1170) }, li = { "preview.show": a(626), "gateway.select_ai_service": "Please select AI service", "provider.select.title": "Select AI Service Provider", "provider.comfyui.description": a(734), "provider.replicate.description": a(1453), "provider.runninghub.description": a(1320), "provider.google.description": a(1782), "provider.sdppp_sponsor.description": a(1473), "task.waiting_upload": a(2199), "task.creating_task": "Creating task...", "task.running_duration": "Running for {{duration}} secs, {{message}}", "task.cancelled": a(2239), "task.cancel_failed": a(2619), "task.default_name": a(2467), "comfy.connect": a(1661), "comfy.load_failed": "ComfyUI failed to load, HTTP status code: {{code}}", "comfy.loading": a(1501), "comfy.channel_connecting": a(2351), "comfy.server_reconnecting": a(3041), "comfy.version_mismatch": "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "comfy.cloud_recommend": a(2944), "comfy.your_workflows": a(2029), "comfy.refresh_workflows": a(3035), "comfy.queue_progress": a(2094), "comfy.save": "Save", "comfy.refresh": a(771), "comfy.stop_cancel_all": a(2339), "comfy.stop_auto_run": a(2503), "comfy.start_auto_run": "Auto run after canvas change", "comfy.auto_run_status": a(1683), "comfy.run": "Run", "comfy.back": a(1055), "comfy.uploading": a(3174), "comfy_simple.refreshing_preview": a(2633), "comfy.select_workflow": a(1619), "comfy.task.name": a(786), "comfy.error.task_cancelled": a(2239), "comfy.task.processing_progress": a(1439), "comfy.help_tooltip": a(1659), "comfy.no_workflow_selected": a(1908), "comfy_simple.missing_url": a(2741), "comfy_simple.loading_webview": a(1112), "comfy_simple.http_error": a(2676), "comfy_simple.wait_connect": a(1072), "comfy_simple.loading": a(2885), "comfy_simple.connection_required": a(1468), "comfy_simple.preview_empty": a(2075), "comfy_simple.progress.idle": a(1208), "comfy_simple.auto_run": a(1416), "comfy_simple.workflow_quick": a(1491), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(1455), "comfy_simple.prompt_templates.manage_tooltip": a(1524), "comfy_simple.prompt_templates.button": a(3057), "comfy_simple.prompt_templates.save_error": a(1229), "comfy_simple.prompt_templates.missing_key": a(579), "comfy_simple.prompt_templates.missing_value": a(2955), "comfy_simple.prompt_templates.duplicate_key": "Template name already exists.", "comfy_simple.prompt_templates.save_success": a(1817), "comfy_simple.prompt_templates.delete_confirm_title": a(1004), "comfy_simple.prompt_templates.delete_confirm_content": a(2313), "comfy_simple.prompt_templates.delete_success": a(947), "comfy_simple.prompt_templates.add_title": a(1669), "comfy_simple.prompt_templates.edit_title": a(1401), "comfy_simple.prompt_templates.modal_title": a(3256), "comfy_simple.prompt_templates.description": a(3027), "comfy_simple.prompt_templates.add_button": a(1336), "comfy_simple.prompt_templates.name_placeholder": a(3080), "comfy_simple.prompt_templates.value_placeholder": "Prompt content", "comfy_simple.fallback.title": a(1858), "comfy_simple.fallback.button": "More Settings", "comfy_simple.prompt_templates.positive_label": a(567), "comfy_simple.prompt_templates.negative_label": "Negative Prompt", "comfy_simple.prompt_templates.negative_placeholder": a(2906), "comfy_simple.prompt_templates.negative_empty": a(2987), "comfy_simple.prompt_templates.default_section": "Default Templates", "comfy_simple.prompt_templates.default_empty": a(3195), "comfy_simple.prompt_templates.default_tag": "Default", "comfy_simple.prompt_templates.custom_section": a(1604), "comfy_simple.prompt_templates.custom_empty": a(2642), "comfy_simple.prompt_templates.applied_success": "Template applied.", "comfy_simple.prompt_templates.applied_failed": a(2435), "comfy_simple.prompt_templates.apply_unavailable": a(1941), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(1e3), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(1940), "comfy_simple.prompt_templates.apply_failed_set_error": "Failed to update the {{part}} prompt. Please try again.", "common.delete": a(2723), "comfy_simple.preview_click_to_send": a(1216), "comfy_simple.workflow_select.empty": a(2544), "comfy_simple.workflow_select.select": "Select", "comfy_simple.workflow_select.selected": a(2195), "comfy_simple.workflow_select.current": a(2104), "comfy_simple.workflow_select.load_failed": a(2418), "comfy_simple.workflow_select.members_only": a(2454), "boundary.title": a(924), "boundary.tooltip": a(2875), "boundary.current_canvas": "Entire Canvas", "boundary.current_layer": a(887), "boundary.current_selection": a(3108), "boundary.set_as_canvas": a(1431), "boundary.set_as_layer": a(996), "boundary.set_as_selection": a(3099), "http.404": a(510), "http.401": a(2302), "http.403": a(550), "http.408": a(2024), "http.500": a(1085), "http.501": a(3050), "http.502": "Gateway error (502)", "http.503": a(1446), "http.504": "Gateway timeout (504)", "http.unknown": "Unknown error ({{code}})", "runninghub.get_apikey": a(1147), "runninghub.apikey_placeholder": "Enter your RunningHub API Key", "runninghub.app_id": a(1210), "runninghub.webapp_id_placeholder": "Paste WebApp ID here", "runninghub.open_app": a(773), "runninghub.execute": "Execute", "runninghub.running": a(2658), "runninghub.rh_coins": a(1487), "runninghub.current_tasks": a(658), "runninghub.help_tooltip": a(1659), "runninghub.stop_all": a(2087), "runninghub.status.waiting": a(2245), "runninghub.status.running": a(982), "runninghub.status.failed": "Failed", "runninghub.status.success": a(1584), "image.auto_refetch": "Auto repick from PS", "local_resource.selection.images": a(2042), "runninghub.error.get_result_failed": "Failed to get result: {{error}}", "runninghub.error.task_failed": a(2753), "runninghub.error.task_incomplete": a(778), "runninghub.error.account_status_http": "getAccountStatus API failed - HTTP error! status: {{status}}", "runninghub.error.account_status_reason_unknown": a(3087), "runninghub.error.account_status_failed": a(3283), "runninghub.error.form_data_http": a(3192), "runninghub.error.form_data_reason_unknown": "Failed to fetch form data", "runninghub.error.form_data_failed": a(3010), "runninghub.error.node_info_missing": a(2e3), "runninghub.error.run_http": a(2814), "runninghub.error.run_reason_default": a(500), "runninghub.error.run_failed": a(2140), "runninghub.error.status_http": a(1351), "runninghub.error.status_reason_unknown": "Failed to get task status", "runninghub.error.status_failed": a(3177), "runninghub.error.outputs_http": "outputs API failed - HTTP error! status: {{status}}", "runninghub.error.outputs_failed": a(563), "runninghub.task.title": a(1877), "runninghub.error.upload_http": a(1309), "runninghub.error.upload_reason_unknown": a(1290), "runninghub.error.upload_failed": a(1765), "runninghub.error.services_unavailable": a(2484), "customapi.error.no_image_returned": a(2880), "customapi.error.openai_api": "OpenAI API error", "customapi.error.input_required": "Image input and prompt are required", "customapi.error.generation_failed": a(2392), "customapi.error.model_required": a(1990), "customapi.task.name.google": a(864), "customapi.task.name.openai": a(2591), "customapi.error.unsupported_image_input": a(2354), "replicate.get_apikey": a(2385), "replicate.apikey_placeholder": a(2247), "replicate.execute": a(2447), "replicate.model_placeholder": a(2091), "replicate.help_tooltip": a(1659), "replicate.loading": a(499), "replicate.running": "Running...", "replicate.stop": a(1977), "replicate.error.result_fetch_failed": a(1697), "liblib.get_apikey": a(1587), "liblib.execute": a(2447), "common.close": "Close", "common.save": a(959), "common.save_and_run": a(2499), "common.loading": a(499), "common.list_separator": ", ", "common.error": "Error", "common.error.unknown": a(1217), "common.error.task_creation_aborted": a(2081), "common.error.status_check_aborted": a(2025), "common.error.result_fetch_aborted": a(712), "common.error.upload_aborted": a(969), "common.success": a(1584), "common.failed": a(708), "common.generating": a(1520), "common.cancel": "Cancel", "common.confirm": a(914), "common.options": a(907), "common.options_separator": a(3119), "upload_pass.error.unsupported_type": a(1417), "upload_pass.error.uploader_missing": a(1234), webviewInForeground: a(1484), webviewInForeground2: a(716), "auth.login_success": a(2434), "auth.username_label": a(1664), "auth.email_label": a(1128), "auth.logout": a(1617), "auth.login_required": a(2954), "image.send.select_position": "Please select the position to send image", "image.send.sending": a(3187), "image.layer.new": a(976), "image.layer.current": a(887), "image.layer.fit_to_current": a(1235), "image.layer.fit_to_selection": "Fit to selection", "image.layer.fit_to_canvas": a(2463), "image.shortcut_auth_required": a(1460), "image.shortcut_focus_required": a(2158), "image.get.select_image": "Please select the image to get", "image.get.entire_canvas": a(2760), "image.get.canvas": a(2032), "image.get.current_layer": a(887), "image.get.current_layer_bounds": a(1607), "image.get.selection_bounds": a(3167), "image.get.canvas_bounds": a(3229), "image.crop_by_selection": a(1322), "image.limit_size": a(2879), "image.crop.none": a(869), "image.crop.inpaint": a(944), "image.crop.outpaint": a(912), "image.send_all": a(1340), "image.save_all": a(656), "image.save_current": a(2294), "image.delete_current": a(3136), "image.more_actions": a(3184), "image.jump_to_last": "Jump to last", "image.clear_all": a(3251), "image.send_to_ps": a(3268), "image.download": "Download", "image.copy": a(2114), "image.sending": "Sending...", "image.sending_all": a(1237), "mask.get.select_mask": a(2004), "mask.selection": a(1393), "mask.current_layer_bounds": "Current layer bounds", "mask.all": a(2409), "mask.selection_exclude": a(3140), "mask.current_layer_exclude": a(1492), "mask.empty": a(2987), "widgetable.photoshop.deprecated_node": "SDPPP 2.0 no longer needs this node", "work_boundary.error.empty_selection_mask": a(2843), "work_boundary.error.primary_resource_missing": "Primary image resource is missing", "work_boundary.error.mask_resource_missing": a(1914), "work_boundary.error.mask_apply_empty": a(1746), "document {{0}} not found": a(1033), "create document for preview": "Create document for preview", "resize document for preview": a(620), "create document for sent images": "Create document for sent images", "show sent images": a(2628), "create layer failed": "Create layer failed", "layer not found {{0}}": a(530), "layer not found: {{0}}": "Layer not found: {{0}}", "layer {{0}} is not a group": a(691), "no linked layer for {{0}}": "No linked layer for {{0}}", "no first related layer in {{0}}": a(2921), "merge group failed": a(2186), "get content of layer {{0}}": "Get content of layer {{0}}", "get layer info": a(2713), "get_layer_info: layer_identify required": a(2791), "get pixel of {{0}} failed": a(3066), "get selection failed": a(1428), "invalid name: {{0}}": a(3180), "desire bounds is null": a(630), "intersect or scaledDesire is null": a(756), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(2404), "select layer": a(779), "run Photoshop Action": a(3132), "Action {{0}} not found": a(1011), "Action set {{0}} not found": "Action set {{0}} was not found", "set text to layer": a(2959), "ComfyManager not found, cannot reboot": a(1706), "Failed to reboot ComfyUI": a(1944), "image.upload.from_canvas": a(2032), "image.upload.from_curlayer": a(887), "image.upload.from_selection": a(1393), "image.upload.from_harddisk": "Disk", "image.upload.clear": a(1213), "image.upload.uploading": a(1761), "image.upload.syncing": "Syncing assets", "image.upload.no_images": a(3107), "image.upload.error": "Upload failed, please try again", "image.upload.tooltip.alt.crop": a(2762), "image.upload.tooltip.alt.reverse": a(781), "image.upload.tooltip.image.canvas": "Get image from Canvas", "image.upload.tooltip.image.curlayer": "Get image from Current Layer", "image.upload.tooltip.mask.canvas": "Get mask from Canvas", "image.upload.tooltip.mask.curlayer": a(2650), "image.upload.tooltip.mask.selection": a(2228), "image.upload.tooltip.cut_action": `Get image & +Crop selection mask`, "image.upload.tooltip.scan_action": a(565), "image.upload.tooltip.autosync.on": a(2835), "image.upload.tooltip.autosync.off": a(2131), "image.upload.tooltip.sync_action": a(874), "image.upload.tooltip.more_options_hint": "Hold Shift for more options; Ctrl for single fetch", "image.upload.tooltip.current.canvas": a(2274), "image.upload.tooltip.current.layer": "Current selection: Layer", "image.upload.tooltip.current.layer_named": "Current selection: Layer {{layerName}}", "image.upload.tooltip.current.file": "Current option: File", "image.upload.autosync.fetching": a(1839), "image.upload.autosync.status.enabled": a(1150), "image.upload.autosync.status.disabled": a(797), "image.upload.retry": "Retry", "image.pack.local.button": a(2550), "image.pack.local.empty": a(2497), "image.auto_send_enabled": a(1681), "image.auto_send_disabled": a(3116), "image.upload.primary.auto": a(1839), "image.upload.primary.manual": a(2527), "image.upload.primary.cut": a(2778), "image.upload.primary.scan": a(675), "image.upload.primary.hint": a(2332), "image.upload.primary.hint.line1": a(1988), "image.upload.primary.hint.line2": a(2858), "workflow.output.destination.title": a(1967), "workflow.output.destination.canvas": a(1244), "image.upload.primary.advanced": a(1352), "image.upload.primary.advanced.modify": a(641), "image.upload.primary.advanced.reset": a(1337), "image.upload.primary.advanced.local_file": a(1549), "image.upload.primary.advanced.content.canvas": a(2032), "image.upload.primary.advanced.content.curlayer": a(1059), "image.upload.primary.advanced.content.selection": a(1393), "image.upload.primary.advanced.boundary.canvas": a(1459), "image.upload.primary.advanced.boundary.curlayer": a(1184), "image.upload.primary.advanced.boundary.selection": "Selection boundary", "image.upload.primary.advanced.boundary.primary": "Primary boundary", "image.upload.mode.file.label": "File", "image.upload.mode.layer.label": a(830), "image.upload.mode.canvas.label": a(2032), "image.upload.source.file.tooltip": a(3171), "image.upload.source.layer.tooltip": "Use current layer", "image.upload.source.canvas.tooltip": a(3270), "image.upload.dropHint": a(2576), "image.upload.tooltip.clear_action": a(1076), "image.upload.status.layer.short_named": a(1436), "image.upload.status.layer.short": a(830), "image.upload.status.file.short": a(1549), "image.upload.status.canvas.short": a(2032), "image.upload.status.file.active": a(1849), "image.upload.status.file.resetHint": "Click to remove local file", "image.upload.status.mask.resetHint": a(1139), "image.upload.status.mask.modified": a(844), "image.upload.status.boundary.resetHint": "Click to restore default boundary", "image.upload.status.boundary.modified": a(1069), "image.upload.status.boundary.docMismatch": a(1824), "image.upload.mask.button": a(2790), "image.upload.mask.selection": a(2790), "image.upload.mask.layer": a(3072), "image.upload.remove_slot": a(3095), "image.upload.add_slot": "Add slot", "video.local.button": "Local video", "video.local.empty": a(894), "video.local.remove": "Remove video", "source.source": a(3074), "source.content": a(1506), "source.boundary": a(629), "source.mask": "Mask", "source.disk": a(2975), "source.remote": "Remote", "source.unknown": "Unknown", "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": a(2032), "source.current_layer": "CurLayer", "source.selection": a(1393), "source.quality_percent": "Quality {{percent}}%", "source.crop.positive": "Positive Crop", "source.crop.negative": a(1536), "source.reverse": a(2471), "send_images.create_document": "Create document", "send_images.create_document_failed": a(2558), "photoshop.no_active_document": "No active document", "photoshop.rectangle_coordinates_required": a(644), "photoshop.create_guide_frame": a(2224), "photoshop.clear_guide_frame": "Clear guide frame", "photoshop.invalid_action": a(2297), "photoshop.file_not_found": a(1759), "photoshop.failed_to_open_file_as_document": a(2026), "photoshop.invalid_boundary": a(3025), "photoshop.failed_to_open_image_file": "Failed to open image file: {{error}}", "photoshop.open_images_from_file": a(2355), "photoshop.failed_to_create_document_from_file": a(589), "google.field.image_input": a(1462), "google.field.prompt": a(1172), "google.field.batch_count": a(783), "google.field.images_per_batch": a(2805), "google.status.success": a(1584), "google.status.failed": a(708), "google.status.generating": a(581), "google.apikey_placeholder": a(1532), "google.get_apikey": a(2788), "google.baseurl_placeholder": a(1347), "google.help_tooltip": a(1516), "google.model_name": a(2203), "google.model_label": "Model", "google.model_placeholder": a(2431), "google.stop": "Stop", "google.loading": "Loading...", "google.generating": "Generating...", "google.generate": a(1783), "image.auto_toggle": a(2419), "image.import_as_smartobject": a(2143), "image.import_as_newdoc": a(2819), "image.boundary": a(2994), "image.import_tip": "Hold Shift key to import as new document", "image.import_selection_button": a(2441), "image.import_auto_hint": "Shift-click or right-click to toggle auto send", "image.import_selection_hint": "Use current selection boundary", "auth.guest_login_success": a(1902), "boundary.canvas": a(2032), "boundary.select_boundary": "Select boundary", "boundary.selection": a(1393), "boundary.max_size": a(1725), "boundary.max_size_error": a(2482), "boundary.max_size_hint": a(1979), "boundary.max_size_placeholder": a(1979), "boundary.no_limit": a(2705), "boundary.image_quality": "Image quality (%)", "boundary.image_quality_required": a(3224), "boundary.image_quality_range": a(2073), "boundary.preview_main_image": a(1024), "boundary.preview_select": a(611), "boundary.preview_alt": a(1058), "boundary.preview_placeholder": a(2099), "boundary.settings": a(1342), "convert widget {0} failed:": "Failed to convert widget {0}:", "document {0} not found": a(1755), "image.document.new": "New Document", "image.layer.smart_object": a(1913), "layer not found {0}": a(975), "photoshop.invalid_boundary_type": a(571), "photoshop.no_active_layer": a(2112), "auth.login_hint": a(933), "task.running": a(2658), "task.execute": a(1596), "task.stop": a(1977), "task.importing_image": a(2548), "task.error.send_image_failed": "Failed to send image {{index}}: {{error}}", "task.error.failed_status": a(3247), "taskrouter.template_placeholder": a(3058), "taskrouter.balance": "Sponsor Points", "taskrouter.recharge": a(677), "taskrouter.refresh_balance": "Refresh balance", "taskrouter.no_schema": a(1850), "taskrouter.config.base_url": a(2023), "taskrouter.config.supabase_url": a(1727), "taskrouter.config.supabase_anon_key": a(3188), "taskrouter.error.remote_config_missing": "Missing TaskRouter remote config: {{missing}}. Please check the remote config and try again.", "taskrouter.error.client_missing": "TaskRouter client is not initialized", "taskrouter.error.template_missing": a(1927), "taskrouter.error.upload_provider_incompatible": a(560), "taskrouter.error.deferred_upload_failed": a(2428), "taskrouter.error.upload_control_unsupported": a(955), "taskrouter.error.upload_resource_missing": a(946), "taskrouter.error.tenant_unresolved": a(2831), "taskrouter.error.supabase_session_failed": "Failed to get Supabase session: {{error}}", "taskrouter.status.preparing": a(1404), "taskrouter.status.uploading": "Uploading images...", "taskrouter.status.validating": a(2742), "taskrouter.status.creating": "Creating task...", "taskrouter.tab.editor": "Run", "taskrouter.tab.history": "History", "taskrouter.history.importing": a(1018), "taskrouter.history.send_failed_resource": a(1222), "taskrouter.history.send_failed_identifier": "Invalid resource identifier", "taskrouter.history.send_success": a(950), "taskrouter.history.select_prompt": a(2263), "taskrouter.history.duration_prefix": a(1113), "taskrouter.history.duration_unit": a(2553), "taskrouter.history.createdAt": a(2897), "taskrouter.history.charge": a(1296), "taskrouter.history.charge_value": a(1223), "taskrouter.history.images": a(1888), "taskrouter.history.retry": a(1127), "taskrouter.history.id": a(1920), "taskrouter.history.message": "Message", "taskrouter.history.no_images": a(1655), "taskrouter.history.client_missing": a(1895), "taskrouter.history.limit_notice": a(1667), "taskrouter.history.refresh": "Refresh", "taskrouter.history.detail_title": a(3189), "taskrouter.history.loading": "Loading history tasks...", "taskrouter.history.empty": a(590), "taskrouter.history.started_at_label": "Started At", "taskrouter.history.status.pending": a(2177), "taskrouter.history.status.running": a(982), "taskrouter.history.status.completed": "Completed", "taskrouter.history.status.failed": "Failed", "taskrouter.history.status.cancelled": "Cancelled", "plugin.menu.view_logs": "View Logs", "plugin.log.saved": a(1052), "plugin.log.save_failed": a(1350), "dialog.image_source.title": a(1148), "dialog.image_source.primary_canvas": a(1373), "dialog.image_source.primary_curlayer": a(3142), "dialog.image_source.canvas_canvas": "Fetch canvas with canvas boundary", "dialog.image_source.canvas_curlayer": a(1364), "dialog.image_source.curlayer_canvas": a(531), "dialog.image_source.curlayer_curlayer": "Fetch current layer with current-layer boundary", "dialog.image_source.local_file": a(878), "dialog.simple_source.title": a(551), "dialog.simple_source.canvas": a(2032), "dialog.simple_source.current_layer": "Current Layer", "dialog.simple_source.local_file": "Choose File", "dialog.simple_source.no_active_layer": a(619), "dialog.simple_source.pick_error": a(2508) }, be = (o) => typeof o === a(1361), Q0 = () => { const o = a; let x, t; const r = new Promise((e, s) => { x = e, t = s; }); - return r[o(510)] = x, r[o(1056)] = t, r; -}, Ua = (o) => o == null ? "" : "" + o, mi = (o, x, t) => { - o[a(1548)]((e) => { - x[e] && (t[e] = x[e]); + return r[o(2457)] = x, r.reject = t, r; +}, za = (o) => o == null ? "" : "" + o, di = (o, x, t) => { + o.forEach((r) => { + x[r] && (t[r] = x[r]); }); -}, bi = /###/g, Ha = (o) => o && o[a(1316)](a(656)) > -1 ? o[a(1840)](bi, ".") : o, za = (o) => !o || be(o), Y0 = (o, x, t) => { - const r = a, e = be(x) ? x[r(1389)](".") : x; +}, hi = /###/g, Ha = (o) => o && o.indexOf(a(668)) > -1 ? o[a(1521)](hi, ".") : o, Va = (o) => !o || be(o), ex = (o, x, t) => { + const r = a, e = be(x) ? x[r(3263)](".") : x; let s = 0; - for (; s < e[r(2910)] - 1; ) { - if (za(o)) return {}; + for (; s < e[r(2710)] - 1; ) { + if (Va(o)) return {}; const n = Ha(e[s]); - !o[n] && t && (o[n] = new t()), Object[r(560)][r(938)][r(1175)](o, n) ? o = o[n] : o = {}, ++s; + !o[n] && t && (o[n] = new t()), Object[r(2587)][r(1315)][r(1522)](o, n) ? o = o[n] : o = {}, ++s; } - return za(o) ? {} : { obj: o, k: Ha(e[s]) }; -}, Va = (o, x, t) => { - const r = a, { obj: e, k: s } = Y0(o, x, Object); - if (e !== void 0 || x[r(2910)] === 1) { + return Va(o) ? {} : { obj: o, k: Ha(e[s]) }; +}, Ba = (o, x, t) => { + const r = a, { obj: e, k: s } = ex(o, x, Object); + if (e !== void 0 || x[r(2710)] === 1) { e[s] = t; return; } - let n = x[x[r(2910)] - 1], i = x[r(2527)](0, x.length - 1), c = Y0(o, i, Object); - for (; c[r(2554)] === void 0 && i.length; ) - n = i[i[r(2910)] - 1] + "." + n, i = i[r(2527)](0, i.length - 1), c = Y0(o, i, Object), c != null && c[r(2554)] && typeof c[r(2554)][c.k + "." + n] < "u" && (c[r(2554)] = void 0); - c[r(2554)][c.k + "." + n] = t; -}, gi = (o, x, t, r) => { - const e = a, { obj: s, k: n } = Y0(o, x, Object); - s[n] = s[n] || [], s[n][e(816)](t); -}, Cx = (o, x) => { - const t = a, { obj: r, k: e } = Y0(o, x); - if (r && Object[t(560)].hasOwnProperty.call(r, e)) + let n = x[x[r(2710)] - 1], i = x[r(1387)](0, x[r(2710)] - 1), c = ex(o, i, Object); + for (; c[r(2147)] === void 0 && i.length; ) + n = i[i[r(2710)] - 1] + "." + n, i = i[r(1387)](0, i[r(2710)] - 1), c = ex(o, i, Object), c != null && c[r(2147)] && typeof c[r(2147)][c.k + "." + n] < "u" && (c[r(2147)] = void 0); + c.obj[c.k + "." + n] = t; +}, pi = (o, x, t, r) => { + const e = a, { obj: s, k: n } = ex(o, x, Object); + s[n] = s[n] || [], s[n][e(3062)](t); +}, _x = (o, x) => { + const t = a, { obj: r, k: e } = ex(o, x); + if (r && Object[t(2587)][t(1315)].call(r, e)) return r[e]; -}, yi = (o, x, t) => { - const r = Cx(o, t); - return r !== void 0 ? r : Cx(x, t); -}, Js = (o, x, t) => { - const r = a; - for (const e in x) - e !== r(888) && e !== "constructor" && (e in o ? be(o[e]) || o[e] instanceof String || be(x[e]) || x[e] instanceof String ? t && (o[e] = x[e]) : Js(o[e], x[e], t) : o[e] = x[e]); +}, mi = (o, x, t) => { + const r = _x(o, t); + return r !== void 0 ? r : _x(x, t); +}, Ks = (o, x, t) => { + for (const r in x) + r !== "__proto__" && r !== "constructor" && (r in o ? be(o[r]) || o[r] instanceof String || be(x[r]) || x[r] instanceof String ? t && (o[r] = x[r]) : Ks(o[r], x[r], t) : o[r] = x[r]); return o; -}, U0 = (o) => o[a(1840)](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, a(2802)); -var vi = { "&": a(2838), "<": a(1718), ">": a(1299), '"': a(593), "'": "'", "/": "/" }; -const wi = (o) => { - const x = a; - return be(o) ? o[x(1840)](/[&<>"'\/]/g, (t) => vi[t]) : o; -}; -class Si { +}, U0 = (o) => o[a(1521)](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); +var bi = { "&": a(932), "<": "<", ">": ">", '"': a(2886), "'": a(963), "/": a(1331) }; +const gi = (o) => be(o) ? o.replace(/[&<>"'\/]/g, (x) => bi[x]) : o; +class yi { constructor(x) { const t = a; - this[t(975)] = x, this.regExpMap = /* @__PURE__ */ new Map(), this[t(463)] = []; + this[t(2772)] = x, this[t(1132)] = /* @__PURE__ */ new Map(), this[t(2861)] = []; } getRegExp(x) { - const t = a, r = this[t(2335)][t(2620)](x); + const t = a, r = this.regExpMap[t(674)](x); if (r !== void 0) return r; const e = new RegExp(x); - return this[t(463)][t(2910)] === this[t(975)] && this[t(2335)][t(1239)](this[t(463)][t(613)]()), this.regExpMap[t(2454)](x, e), this[t(463)][t(816)](x), e; + return this[t(2861)][t(2710)] === this.capacity && this.regExpMap.delete(this[t(2861)][t(1263)]()), this.regExpMap[t(780)](x, e), this[t(2861)][t(3062)](x), e; } } -const ki = [" ", ",", "?", "!", ";"], Pi = new Si(20), Ii = (o, x, t) => { +const vi = [" ", ",", "?", "!", ";"], wi = new yi(20), Si = (o, x, t) => { const r = a; x = x || "", t = t || ""; - const e = ki.filter((i) => x[r(1316)](i) < 0 && t[r(1316)](i) < 0); - if (e[r(2910)] === 0) return !0; - const s = Pi[r(2325)]("(" + e[r(1429)]((i) => i === "?" ? "\\?" : i)[r(952)]("|") + ")"); - let n = !s[r(2266)](o); + const e = vi[r(2581)]((i) => x[r(2436)](i) < 0 && t.indexOf(i) < 0); + if (e.length === 0) return !0; + const s = wi[r(2907)]("(" + e[r(1930)]((i) => i === "?" ? "\\?" : i)[r(1592)]("|") + ")"); + let n = !s[r(2346)](o); if (!n) { const i = o.indexOf(t); - i > 0 && !s[r(2266)](o.substring(0, i)) && (n = !0); + i > 0 && !s[r(2346)](o[r(672)](0, i)) && (n = !0); } return n; }, Jt = (o, x, t = ".") => { const r = a; if (!o) return; if (o[x]) - return Object[r(560)][r(938)].call(o, x) ? o[x] : void 0; - const e = x[r(1389)](t); + return Object[r(2587)][r(1315)][r(1522)](o, x) ? o[x] : void 0; + const e = x.split(t); let s = o; - for (let n = 0; n < e.length; ) { - if (!s || typeof s !== r(2517)) return; + for (let n = 0; n < e[r(2710)]; ) { + if (!s || typeof s !== r(1304)) return; let i, c = ""; - for (let d = n; d < e[r(2910)]; ++d) - if (d !== n && (c += t), c += e[d], i = s[c], i !== void 0) { - if ([r(1443), r(1730), r(1964)].indexOf(typeof i) > -1 && d < e[r(2910)] - 1) continue; - n += d - n + 1; + for (let u = n; u < e[r(2710)]; ++u) + if (u !== n && (c += t), c += e[u], i = s[c], i !== void 0) { + if (["string", "number", r(3106)].indexOf(typeof i) > -1 && u < e[r(2710)] - 1) continue; + n += u - n + 1; break; } s = i; } return s; -}, sx = (o) => o == null ? void 0 : o[a(1840)]("_", "-"), Ei = { type: a(3053), log(o) { +}, nx = (o) => o == null ? void 0 : o[a(1521)]("_", "-"), ki = { type: a(2303), log(o) { const x = a; - this.output(x(2613), o); + this[x(1121)](x(1635), o); }, warn(o) { const x = a; - this[x(1717)](x(405), o); + this[x(1121)](x(1114), o); }, error(o) { - const x = a; - this[x(1717)](x(1493), o); + this.output("error", o); }, output(o, x) { var t, r; (r = (t = console == null ? void 0 : console[o]) == null ? void 0 : t.apply) == null || r.call(t, console, x); } }; -class Rx { +class Fx { constructor(x, t = {}) { - this[a(2993)](x, t); + this[a(1775)](x, t); } - [a(2993)](x, t = {}) { + [a(1775)](x, t = {}) { const r = a; - this[r(2159)] = t.prefix || r(1362), this[r(3053)] = x || Ei, this[r(961)] = t, this.debug = t[r(825)]; + this.prefix = t[r(632)] || r(3182), this.logger = x || ki, this[r(2876)] = t, this.debug = t[r(3158)]; } - [a(2613)](...x) { + [a(1635)](...x) { const t = a; - return this.forward(x, t(2613), "", !0); + return this.forward(x, t(1635), "", !0); } - warn(...x) { + [a(1114)](...x) { const t = a; - return this[t(2195)](x, t(405), "", !0); + return this[t(1494)](x, t(1114), "", !0); } - [a(1493)](...x) { - return this[a(2195)](x, "error", ""); + [a(490)](...x) { + return this[a(1494)](x, "error", ""); } - [a(413)](...x) { + [a(1925)](...x) { const t = a; - return this[t(2195)](x, t(405), t(819), !0); + return this.forward(x, t(1114), t(1090), !0); } - [a(2195)](x, t, r, e) { - return e && !this[a(825)] ? null : (be(x[0]) && (x[0] = "" + r + this.prefix + " " + x[0]), this.logger[t](x)); + [a(1494)](x, t, r, e) { + const s = a; + return e && !this[s(3158)] ? null : (be(x[0]) && (x[0] = "" + r + this[s(632)] + " " + x[0]), this[s(2303)][t](x)); } - [a(1468)](x) { + [a(1602)](x) { const t = a; - return new Rx(this[t(3053)], { prefix: this[t(2159)] + ":" + x + ":", ...this.options }); + return new Fx(this[t(2303)], { prefix: this[t(632)] + ":" + x + ":", ...this[t(2876)] }); } - [a(1022)](x) { + [a(2472)](x) { const t = a; - return x = x || this[t(961)], x[t(2159)] = x[t(2159)] || this.prefix, new Rx(this.logger, x); + return x = x || this.options, x[t(632)] = x[t(632)] || this[t(632)], new Fx(this[t(2303)], x); } } -var f0 = new Rx(); +var d0 = new Fx(); class Ax { constructor() { const x = a; - this[x(1248)] = {}; + this[x(2279)] = {}; } on(x, t) { const r = a; - return x[r(1389)](" ")[r(1548)]((e) => { + return x.split(" ")[r(2617)]((e) => { const s = r; - this[s(1248)][e] || (this[s(1248)][e] = /* @__PURE__ */ new Map()); - const n = this.observers[e][s(2620)](t) || 0; - this[s(1248)][e][s(2454)](t, n + 1); + this.observers[e] || (this[s(2279)][e] = /* @__PURE__ */ new Map()); + const n = this[s(2279)][e].get(t) || 0; + this[s(2279)][e][s(780)](t, n + 1); }), this; } - [a(1495)](x, t) { + [a(2854)](x, t) { const r = a; - if (this[r(1248)][x]) { + if (this[r(2279)][x]) { if (!t) { - delete this[r(1248)][x]; + delete this[r(2279)][x]; return; } - this[r(1248)][x][r(1239)](t); + this[r(2279)][x][r(875)](t); } } - [a(1452)](x, ...t) { + [a(2256)](x, ...t) { const r = a; - this[r(1248)][x] && Array.from(this[r(1248)][x].entries())[r(1548)](([s, n]) => { + this[r(2279)][x] && Array[r(2047)](this[r(2279)][x].entries())[r(2617)](([s, n]) => { for (let i = 0; i < n; i++) s(...t); - }), this[r(1248)]["*"] && Array[r(2725)](this.observers["*"][r(807)]())[r(1548)](([s, n]) => { + }), this[r(2279)]["*"] && Array[r(2047)](this[r(2279)]["*"][r(2634)]())[r(2617)](([s, n]) => { for (let i = 0; i < n; i++) s.apply(s, [x, ...t]); }); } } -class Ba extends Ax { - constructor(x, t = { ns: [a(2191)], defaultNS: "translation" }) { +class Wa extends Ax { + constructor(x, t = { ns: [a(1650)], defaultNS: a(1650) }) { const r = a; - super(), this[r(571)] = x || {}, this.options = t, this[r(961)][r(3040)] === void 0 && (this[r(961)][r(3040)] = "."), this.options[r(1281)] === void 0 && (this[r(961)].ignoreJSONStructure = !0); + super(), this[r(2663)] = x || {}, this[r(2876)] = t, this[r(2876)][r(1200)] === void 0 && (this[r(2876)][r(1200)] = "."), this.options.ignoreJSONStructure === void 0 && (this[r(2876)][r(2358)] = !0); } - addNamespaces(x) { + [a(1654)](x) { const t = a; - this[t(961)].ns[t(1316)](x) < 0 && this[t(961)].ns[t(816)](x); + this[t(2876)].ns.indexOf(x) < 0 && this[t(2876)].ns[t(3062)](x); } - removeNamespaces(x) { - const t = a, r = this.options.ns[t(1316)](x); - r > -1 && this[t(961)].ns.splice(r, 1); + [a(667)](x) { + const t = a, r = this[t(2876)].ns[t(2436)](x); + r > -1 && this[t(2876)].ns.splice(r, 1); } - [a(2305)](x, t, r, e = {}) { - var u, l; - const s = a, n = e.keySeparator !== void 0 ? e[s(3040)] : this[s(961)].keySeparator, i = e.ignoreJSONStructure !== void 0 ? e[s(1281)] : this.options.ignoreJSONStructure; + [a(824)](x, t, r, e = {}) { + var f, l; + const s = a, n = e[s(1200)] !== void 0 ? e[s(1200)] : this[s(2876)][s(1200)], i = e[s(2358)] !== void 0 ? e.ignoreJSONStructure : this[s(2876)].ignoreJSONStructure; let c; - x[s(1316)](".") > -1 ? c = x[s(1389)](".") : (c = [x, t], r && (Array[s(2573)](r) ? c[s(816)](...r) : be(r) && n ? c[s(816)](...r[s(1389)](n)) : c.push(r))); - const d = Cx(this[s(571)], c); - return !d && !t && !r && x.indexOf(".") > -1 && (x = c[0], t = c[1], r = c[s(2527)](2)[s(952)](".")), d || !i || !be(r) ? d : Jt((l = (u = this[s(571)]) == null ? void 0 : u[x]) == null ? void 0 : l[t], r, n); + x.indexOf(".") > -1 ? c = x.split(".") : (c = [x, t], r && (Array[s(3255)](r) ? c[s(3062)](...r) : be(r) && n ? c.push(...r[s(3263)](n)) : c[s(3062)](r))); + const u = _x(this[s(2663)], c); + return !u && !t && !r && x.indexOf(".") > -1 && (x = c[0], t = c[1], r = c[s(1387)](2)[s(1592)](".")), u || !i || !be(r) ? u : Jt((l = (f = this[s(2663)]) == null ? void 0 : f[x]) == null ? void 0 : l[t], r, n); } - addResource(x, t, r, e, s = { silent: !1 }) { - const n = a, i = s[n(3040)] !== void 0 ? s[n(3040)] : this[n(961)][n(3040)]; + [a(507)](x, t, r, e, s = { silent: !1 }) { + const n = a, i = s[n(1200)] !== void 0 ? s[n(1200)] : this.options.keySeparator; let c = [x, t]; - r && (c = c.concat(i ? r[n(1389)](i) : r)), x.indexOf(".") > -1 && (c = x.split("."), e = t, t = c[1]), this[n(2616)](t), Va(this[n(571)], c, e), s.silent || this[n(1452)](n(2148), x, t, r, e); + r && (c = c[n(2700)](i ? r[n(3263)](i) : r)), x[n(2436)](".") > -1 && (c = x[n(3263)]("."), e = t, t = c[1]), this[n(1654)](t), Ba(this[n(2663)], c, e), s[n(938)] || this[n(2256)]("added", x, t, r, e); } - [a(667)](x, t, r, e = { silent: !1 }) { + addResources(x, t, r, e = { silent: !1 }) { const s = a; for (const n in r) - (be(r[n]) || Array.isArray(r[n])) && this[s(1202)](x, t, n, r[n], { silent: !0 }); - e.silent || this[s(1452)](s(2148), x, t, r); + (be(r[n]) || Array[s(3255)](r[n])) && this[s(507)](x, t, n, r[n], { silent: !0 }); + e[s(938)] || this.emit("added", x, t, r); } - [a(474)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { + [a(607)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { const i = a; let c = [x, t]; - x[i(1316)](".") > -1 && (c = x[i(1389)]("."), e = r, r = t, t = c[1]), this.addNamespaces(t); - let d = Cx(this[i(571)], c) || {}; - n[i(2515)] || (r = JSON[i(1584)](JSON.stringify(r))), e ? Js(d, r, s) : d = { ...d, ...r }, Va(this.data, c, d), n[i(1902)] || this.emit(i(2148), x, t, r); + x[i(2436)](".") > -1 && (c = x.split("."), e = r, r = t, t = c[1]), this[i(1654)](t); + let u = _x(this[i(2663)], c) || {}; + n[i(1469)] || (r = JSON[i(2774)](JSON.stringify(r))), e ? Ks(u, r, s) : u = { ...u, ...r }, Ba(this[i(2663)], c, u), n[i(938)] || this[i(2256)]("added", x, t, r); } - [a(2726)](x, t) { + [a(855)](x, t) { const r = a; - this[r(1340)](x, t) && delete this.data[x][t], this[r(2655)](t), this[r(1452)](r(1377), x, t); + this[r(1203)](x, t) && delete this[r(2663)][x][t], this.removeNamespaces(t), this[r(2256)](r(1226), x, t); } hasResourceBundle(x, t) { - return this[a(2305)](x, t) !== void 0; + return this[a(824)](x, t) !== void 0; } - getResourceBundle(x, t) { + [a(2948)](x, t) { const r = a; - return t || (t = this.options[r(2094)]), this[r(2305)](x, t); + return t || (t = this[r(2876)][r(1589)]), this.getResource(x, t); } - [a(3051)](x) { - return this[a(571)][x]; + [a(790)](x) { + return this[a(2663)][x]; } - [a(2272)](x) { - const t = a, r = this[t(3051)](x); - return !!(r && Object[t(548)](r) || [])[t(1801)]((s) => r[s] && Object[t(548)](r[s])[t(2910)] > 0); + [a(3068)](x) { + const t = a, r = this[t(790)](x); + return !!(r && Object[t(2123)](r) || []).find((s) => r[s] && Object[t(2123)](r[s])[t(2710)] > 0); } - [a(1613)]() { - return this[a(571)]; + [a(1363)]() { + return this[a(2663)]; } } -var Qs = { processors: {}, addPostProcessor(o) { +var Gs = { processors: {}, addPostProcessor(o) { const x = a; - this.processors[o[x(1907)]] = o; + this[x(3234)][o[x(2641)]] = o; }, handle(o, x, t, r, e) { const s = a; - return o[s(1548)]((n) => { + return o[s(2617)]((n) => { var c; - x = ((c = this[s(945)][n]) == null ? void 0 : c.process(x, t, r, e)) ?? x; + const i = s; + x = ((c = this[i(3234)][n]) == null ? void 0 : c[i(2383)](x, t, r, e)) ?? x; }), x; } }; -const Xs = Symbol(a(636)); -function Ci() { - const o = a, x = [], t = Object[o(1468)](null); +const Js = Symbol("i18next/PATH_KEY"); +function Pi() { + const o = a, x = [], t = Object[o(1602)](null); let r; - return t.get = (e, s) => { + return t[o(674)] = (e, s) => { var i; const n = o; - return (i = r == null ? void 0 : r[n(1226)]) == null || i.call(r), s === Xs ? x : (x.push(s), r = Proxy[n(1439)](e, t), r[n(2169)]); - }, Proxy.revocable(Object[o(1468)](null), t).proxy; + return (i = r == null ? void 0 : r[n(1002)]) == null || i.call(r), s === Js ? x : (x.push(s), r = Proxy[n(1205)](e, t), r[n(1355)]); + }, Proxy[o(1205)](Object[o(1602)](null), t)[o(1355)]; } function Qt(o, x) { - const t = a, { [Xs]: r } = o(Ci()); - return r.join((x == null ? void 0 : x[t(3040)]) ?? "."); + const t = a, { [Js]: r } = o(Pi()); + return r[t(1592)]((x == null ? void 0 : x[t(1200)]) ?? "."); } -const Za = {}, Wx = (o) => !be(o) && typeof o !== a(1964) && typeof o != "number"; -class Fx extends Ax { +const Za = {}, Zx = (o) => !be(o) && typeof o !== a(3106) && typeof o !== a(2665); +class Tx extends Ax { constructor(x, t = {}) { const r = a; - super(), mi(["resourceStore", r(1484), r(2010), "interpolator", r(559), r(1216), r(3039)], x, this), this[r(961)] = t, this[r(961)][r(3040)] === void 0 && (this[r(961)][r(3040)] = "."), this[r(3053)] = f0[r(1468)](r(2506)); + super(), di([r(3082), r(1476), "pluralResolver", r(1896), r(1577), r(911), r(2254)], x, this), this.options = t, this.options[r(1200)] === void 0 && (this[r(2876)][r(1200)] = "."), this.logger = d0[r(1602)](r(1781)); } - [a(1355)](x) { - const t = a; - x && (this[t(2621)] = x); + [a(759)](x) { + x && (this.language = x); } - [a(1193)](x, t = { interpolation: {} }) { + exists(x, t = { interpolation: {} }) { const r = a, e = { ...t }; if (x == null) return !1; - const s = this[r(510)](x, e); - if ((s == null ? void 0 : s[r(873)]) === void 0) return !1; - const n = Wx(s[r(873)]); - return !(e.returnObjects === !1 && n); + const s = this[r(2457)](x, e); + if ((s == null ? void 0 : s[r(2475)]) === void 0) return !1; + const n = Zx(s.res); + return !(e[r(984)] === !1 && n); } - extractFromKey(x, t) { + [a(827)](x, t) { const r = a; - let e = t[r(2244)] !== void 0 ? t[r(2244)] : this.options[r(2244)]; + let e = t.nsSeparator !== void 0 ? t.nsSeparator : this[r(2876)][r(1707)]; e === void 0 && (e = ":"); - const s = t[r(3040)] !== void 0 ? t[r(3040)] : this[r(961)].keySeparator; - let n = t.ns || this[r(961)][r(2094)] || []; - const i = e && x[r(1316)](e) > -1, c = !this[r(961)][r(2082)] && !t[r(3040)] && !this.options[r(2845)] && !t[r(2244)] && !Ii(x, e, s); + const s = t[r(1200)] !== void 0 ? t[r(1200)] : this.options[r(1200)]; + let n = t.ns || this.options[r(1589)] || []; + const i = e && x[r(2436)](e) > -1, c = !this.options[r(1204)] && !t[r(1200)] && !this.options[r(1354)] && !t[r(1707)] && !Si(x, e, s); if (i && !c) { - const d = x.match(this.interpolator[r(3018)]); - if (d && d[r(2910)] > 0) return { key: x, namespaces: be(n) ? [n] : n }; - const u = x[r(1389)](e); - (e !== s || e === s && this[r(961)].ns[r(1316)](u[0]) > -1) && (n = u[r(613)]()), x = u.join(s); + const u = x[r(2314)](this[r(1896)].nestingRegexp); + if (u && u[r(2710)] > 0) return { key: x, namespaces: be(n) ? [n] : n }; + const f = x[r(3263)](e); + (e !== s || e === s && this[r(2876)].ns[r(2436)](f[0]) > -1) && (n = f[r(1263)]()), x = f[r(1592)](s); } return { key: x, namespaces: be(n) ? [n] : n }; } - [a(872)](x, t, r) { + [a(1543)](x, t, r) { const e = a; - let s = typeof t === e(2517) ? { ...t } : t; - if (typeof s != "object" && this.options[e(2401)] && (s = this[e(961)][e(2401)](arguments)), typeof s === e(2517) && (s = { ...s }), s || (s = {}), x == null) return ""; - typeof x === e(2855) && (x = Qt(x, { ...this[e(961)], ...s })), Array[e(2573)](x) || (x = [String(x)]); - const n = s[e(596)] !== void 0 ? s.returnDetails : this[e(961)][e(596)], i = s[e(3040)] !== void 0 ? s.keySeparator : this[e(961)][e(3040)], { key: c, namespaces: d } = this[e(2109)](x[x[e(2910)] - 1], s), u = d[d[e(2910)] - 1]; - let l = s.nsSeparator !== void 0 ? s[e(2244)] : this[e(961)][e(2244)]; + let s = typeof t === e(1304) ? { ...t } : t; + if (typeof s !== e(1304) && this[e(2876)].overloadTranslationOptionHandler && (s = this[e(2876)][e(2556)](arguments)), typeof s === e(1304) && (s = { ...s }), s || (s = {}), x == null) return ""; + typeof x == "function" && (x = Qt(x, { ...this[e(2876)], ...s })), Array[e(3255)](x) || (x = [String(x)]); + const n = s[e(1766)] !== void 0 ? s[e(1766)] : this[e(2876)].returnDetails, i = s[e(1200)] !== void 0 ? s.keySeparator : this[e(2876)][e(1200)], { key: c, namespaces: u } = this[e(827)](x[x[e(2710)] - 1], s), f = u[u.length - 1]; + let l = s[e(1707)] !== void 0 ? s.nsSeparator : this[e(2876)].nsSeparator; l === void 0 && (l = ":"); - const f = s[e(1581)] || this[e(2621)], b = s[e(1516)] || this[e(961)][e(1516)]; - if ((f == null ? void 0 : f[e(2071)]()) === e(1223)) - return b ? n ? { res: "" + u + l + c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: u, usedParams: this[e(418)](s) } : "" + u + l + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: u, usedParams: this.getUsedParamsDetails(s) } : c; - const h = this[e(510)](x, s); - let p = h == null ? void 0 : h.res; - const v = (h == null ? void 0 : h.usedKey) || c, k = (h == null ? void 0 : h[e(2200)]) || c, P = ["[object Number]", e(736), e(1067)], N = s.joinArrays !== void 0 ? s[e(542)] : this[e(961)].joinArrays, T = !this[e(1216)] || this.i18nFormat[e(2357)], C = s[e(2285)] !== void 0 && !be(s[e(2285)]), I = Fx[e(400)](s), R = C ? this.pluralResolver[e(3036)](f, s[e(2285)], s) : "", O = s[e(2496)] && C ? this[e(2010)].getSuffix(f, s[e(2285)], { ordinal: !1 }) : "", D = C && !s[e(2496)] && s[e(2285)] === 0, M = D && s[e(2628) + this[e(961)][e(2818)] + "zero"] || s[e(2628) + R] || s[e(2628) + O] || s[e(2628)]; - let F = p; - T && !p && I && (F = M); - const q = Wx(F), H = Object[e(560)].toString.apply(F); - if (T && F && q && P[e(1316)](H) < 0 && !(be(N) && Array.isArray(F))) { - if (!s[e(2896)] && !this[e(961)][e(2896)]) { - !this.options[e(1343)] && this[e(3053)][e(405)](e(1743)); - const L = this[e(961)][e(1343)] ? this[e(961)][e(1343)](v, F, { ...s, ns: d }) : e(1086) + c + " (" + this[e(2621)] + e(2760); - return n ? (h.res = L, h[e(448)] = this[e(418)](s), h) : L; + const d = s[e(3164)] || this[e(3090)], g = s[e(1173)] || this.options[e(1173)]; + if ((d == null ? void 0 : d[e(1945)]()) === "cimode") + return g ? n ? { res: "" + f + l + c, usedKey: c, exactUsedKey: c, usedLng: d, usedNS: f, usedParams: this[e(2555)](s) } : "" + f + l + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: d, usedNS: f, usedParams: this.getUsedParamsDetails(s) } : c; + const h = this.resolve(x, s); + let m = h == null ? void 0 : h[e(2475)]; + const v = (h == null ? void 0 : h[e(527)]) || c, k = (h == null ? void 0 : h[e(2752)]) || c, P = [e(2646), e(1828), e(1769)], T = s.joinArrays !== void 0 ? s[e(2960)] : this[e(2876)][e(2960)], q = !this[e(911)] || this[e(911)][e(1550)], R = s[e(1758)] !== void 0 && !be(s[e(1758)]), E = Tx[e(3193)](s), C = R ? this[e(2041)].getSuffix(d, s[e(1758)], s) : "", A = s[e(3097)] && R ? this[e(2041)].getSuffix(d, s[e(1758)], { ordinal: !1 }) : "", O = R && !s[e(3097)] && s[e(1758)] === 0, M = O && s[e(2074) + this[e(2876)][e(2850)] + e(699)] || s[e(2074) + C] || s[e(2074) + A] || s.defaultValue; + let _ = m; + q && !m && E && (_ = M); + const N = Zx(_), z = Object[e(2587)][e(2732)].apply(_); + if (q && _ && N && P[e(2436)](z) < 0 && !(be(T) && Array[e(3255)](_))) { + if (!s[e(984)] && !this[e(2876)][e(984)]) { + !this[e(2876)][e(2679)] && this[e(2303)][e(1114)](e(2570)); + const U = this[e(2876)][e(2679)] ? this[e(2876)][e(2679)](v, _, { ...s, ns: u }) : e(1942) + c + " (" + this[e(3090)] + e(2166); + return n ? (h.res = U, h[e(525)] = this.getUsedParamsDetails(s), h) : U; } if (i) { - const L = Array[e(2573)](F), z = L ? [] : {}, G = L ? k : v; - for (const se in F) - if (Object[e(560)][e(938)][e(1175)](F, se)) { - const re = "" + G + i + se; - I && !p ? z[se] = this[e(872)](re, { ...s, defaultValue: Wx(M) ? M[se] : void 0, joinArrays: !1, ns: d }) : z[se] = this[e(872)](re, { ...s, joinArrays: !1, ns: d }), z[se] === re && (z[se] = F[se]); + const U = Array[e(3255)](_), H = U ? [] : {}, G = U ? k : v; + for (const re in _) + if (Object[e(2587)][e(1315)].call(_, re)) { + const se = "" + G + i + re; + E && !m ? H[re] = this[e(1543)](se, { ...s, defaultValue: Zx(M) ? M[re] : void 0, joinArrays: !1, ns: u }) : H[re] = this.translate(se, { ...s, joinArrays: !1, ns: u }), H[re] === se && (H[re] = _[re]); } - p = z; + m = H; } - } else if (T && be(N) && Array.isArray(p)) - p = p.join(N), p && (p = this.extendTranslation(p, x, s, r)); + } else if (q && be(T) && Array.isArray(m)) + m = m[e(1592)](T), m && (m = this[e(1700)](m, x, s, r)); else { - let L = !1, z = !1; - !this[e(1920)](p) && I && (L = !0, p = M), !this[e(1920)](p) && (z = !0, p = c); - const G = s[e(2518)] || this[e(961)].missingKeyNoValueFallbackToKey, se = G && z ? void 0 : p, re = I && M !== p && this[e(961)][e(608)]; - if (z || L || re) { - if (this[e(3053)].log(e(re ? 1812 : 1415), f, u, c, re ? M : p), i) { - const we = this[e(510)](c, { ...s, keySeparator: !1 }); - we && we.res && this[e(3053)][e(405)](e(399)); + let U = !1, H = !1; + !this[e(1075)](m) && E && (U = !0, m = M), !this[e(1075)](m) && (H = !0, m = c); + const G = s[e(1729)] || this[e(2876)][e(1729)], re = G && H ? void 0 : m, se = E && M !== m && this[e(2876)][e(2672)]; + if (H || U || se) { + if (this.logger.log(se ? "updateKey" : e(799), d, f, c, se ? M : m), i) { + const Se = this[e(2457)](c, { ...s, keySeparator: !1 }); + Se && Se[e(2475)] && this.logger[e(1114)](e(2321)); } - let ue = []; - const fe = this[e(1484)].getFallbackCodes(this[e(961)][e(430)], s.lng || this[e(2621)]); - if (this[e(961)].saveMissingTo === e(634) && fe && fe[0]) for (let we = 0; we < fe[e(2910)]; we++) - ue[e(816)](fe[we]); - else this[e(961)].saveMissingTo === "all" ? ue = this[e(1484)].toResolveHierarchy(s[e(1581)] || this[e(2621)]) : ue.push(s.lng || this.language); - const le = (we, Ce, Me) => { - var _; - const Re = e, Je = I && Me !== p ? Me : se; - this[Re(961)][Re(584)] ? this[Re(961)][Re(584)](we, u, Ce, Je, re, s) : (_ = this[Re(559)]) != null && _.saveMissing && this.backendConnector[Re(2770)](we, u, Ce, Je, re, s), this.emit(Re(1415), we, u, Ce, p); + let fe = []; + const de = this[e(1476)].getFallbackCodes(this.options[e(1338)], s.lng || this[e(3090)]); + if (this[e(2876)][e(2281)] === e(2575) && de && de[0]) for (let Se = 0; Se < de[e(2710)]; Se++) + fe.push(de[Se]); + else this[e(2876)].saveMissingTo === "all" ? fe = this[e(1476)][e(2825)](s.lng || this[e(3090)]) : fe.push(s.lng || this[e(3090)]); + const le = (Se, _e, Me) => { + var D; + const Fe = e, Je = E && Me !== m ? Me : re; + this[Fe(2876)][Fe(2340)] ? this[Fe(2876)][Fe(2340)](Se, f, _e, Je, se, s) : (D = this[Fe(1577)]) != null && D[Fe(3083)] && this.backendConnector[Fe(3083)](Se, f, _e, Je, se, s), this[Fe(2256)]("missingKey", Se, f, _e, m); }; - this[e(961)][e(2770)] && (this[e(961)].saveMissingPlurals && C ? ue[e(1548)]((we) => { - const Ce = e, Me = this[Ce(2010)][Ce(2007)](we, s); - D && s[Ce(2628) + this[Ce(961)].pluralSeparator + Ce(1120)] && Me[Ce(1316)](this.options[Ce(2818)] + Ce(1120)) < 0 && Me[Ce(816)](this.options[Ce(2818)] + Ce(1120)), Me.forEach((Re) => { - const Je = Ce; - le([we], c + Re, s[Je(2628) + Re] || M); + this[e(2876)][e(3083)] && (this[e(2876)][e(673)] && R ? fe[e(2617)]((Se) => { + const _e = e, Me = this[_e(2041)][_e(2033)](Se, s); + O && s[_e(2074) + this[_e(2876)][_e(2850)] + _e(699)] && Me.indexOf(this[_e(2876)].pluralSeparator + _e(699)) < 0 && Me[_e(3062)](this[_e(2876)].pluralSeparator + _e(699)), Me.forEach((Fe) => { + const Je = _e; + le([Se], c + Fe, s[Je(2074) + Fe] || M); }); - }) : le(ue, c, M)); + }) : le(fe, c, M)); } - p = this[e(1488)](p, x, s, h, r), z && p === c && this[e(961)][e(2190)] && (p = "" + u + l + c), (z || L) && this[e(961)][e(1937)] && (p = this[e(961)].parseMissingKeyHandler(this[e(961)].appendNamespaceToMissingKey ? "" + u + l + c : c, L ? p : void 0, s)); + m = this[e(1700)](m, x, s, h, r), H && m === c && this[e(2876)][e(2489)] && (m = "" + f + l + c), (H || U) && this[e(2876)][e(3232)] && (m = this[e(2876)].parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "" + f + l + c : c, U ? m : void 0, s)); } - return n ? (h[e(873)] = p, h.usedParams = this[e(418)](s), h) : p; + return n ? (h[e(2475)] = m, h[e(525)] = this.getUsedParamsDetails(s), h) : m; } - extendTranslation(x, t, r, e, s) { - var d, u; + [a(1700)](x, t, r, e, s) { + var u, f; const n = a; - if ((d = this[n(1216)]) != null && d[n(1584)]) x = this[n(1216)][n(1584)](x, { ...this[n(961)].interpolation[n(1594)], ...r }, r.lng || this.language || e[n(1246)], e[n(946)], e.usedKey, { resolved: e }); + if ((u = this[n(911)]) != null && u.parse) x = this[n(911)].parse(x, { ...this[n(2876)].interpolation[n(1490)], ...r }, r[n(3164)] || this[n(3090)] || e[n(2282)], e.usedNS, e[n(527)], { resolved: e }); else if (!r.skipInterpolation) { - r.interpolation && this[n(1686)].init({ ...r, interpolation: { ...this[n(961)].interpolation, ...r[n(2343)] } }); - const l = be(x) && (((u = r == null ? void 0 : r[n(2343)]) == null ? void 0 : u[n(1220)]) !== void 0 ? r[n(2343)][n(1220)] : this[n(961)][n(2343)].skipOnVariables); - let f; + r[n(1647)] && this.interpolator.init({ ...r, interpolation: { ...this.options.interpolation, ...r[n(1647)] } }); + const l = be(x) && (((f = r == null ? void 0 : r[n(1647)]) == null ? void 0 : f[n(940)]) !== void 0 ? r[n(1647)][n(940)] : this.options.interpolation[n(940)]); + let d; if (l) { - const h = x[n(742)](this[n(1686)].nestingRegexp); - f = h && h[n(2910)]; + const h = x[n(2314)](this[n(1896)][n(2759)]); + d = h && h[n(2710)]; } - let b = r[n(1840)] && !be(r[n(1840)]) ? r[n(1840)] : r; - if (this.options[n(2343)][n(1594)] && (b = { ...this.options[n(2343)][n(1594)], ...b }), x = this[n(1686)][n(1719)](x, b, r[n(1581)] || this[n(2621)] || e[n(1246)], r), l) { - const h = x[n(742)](this[n(1686)].nestingRegexp), p = h && h[n(2910)]; - f < p && (r[n(1544)] = !1); + let g = r[n(1521)] && !be(r[n(1521)]) ? r[n(1521)] : r; + if (this[n(2876)].interpolation[n(1490)] && (g = { ...this[n(2876)][n(1647)].defaultVariables, ...g }), x = this[n(1896)][n(2925)](x, g, r[n(3164)] || this[n(3090)] || e.usedLng, r), l) { + const h = x[n(2314)](this[n(1896)][n(2759)]), m = h && h.length; + d < m && (r.nest = !1); } - !r.lng && e && e[n(873)] && (r[n(1581)] = this.language || e[n(1246)]), r.nest !== !1 && (x = this.interpolator[n(1544)](x, (...h) => { - const p = n; - return (s == null ? void 0 : s[0]) === h[0] && !r.context ? (this[p(3053)][p(405)](p(1166) + h[0] + p(1241) + t[0]), null) : this[p(872)](...h, t); - }, r)), r.interpolation && this[n(1686)][n(2461)](); + !r.lng && e && e.res && (r[n(3164)] = this[n(3090)] || e[n(2282)]), r[n(1365)] !== !1 && (x = this[n(1896)].nest(x, (...h) => { + const m = n; + return (s == null ? void 0 : s[0]) === h[0] && !r[m(1181)] ? (this.logger.warn("It seems you are nesting recursively key: " + h[0] + m(2048) + t[0]), null) : this[m(1543)](...h, t); + }, r)), r[n(1647)] && this[n(1896)][n(2837)](); } - const i = r[n(1312)] || this[n(961)][n(1312)], c = be(i) ? [i] : i; - return x != null && (c != null && c.length) && r.applyPostProcessor !== !1 && (x = Qs.handle(c, x, t, this[n(961)] && this[n(961)][n(2235)] ? { i18nResolved: { ...e, usedParams: this[n(418)](r) }, ...r } : r, this)), x; + const i = r[n(2206)] || this[n(2876)][n(2206)], c = be(i) ? [i] : i; + return x != null && (c != null && c[n(2710)]) && r[n(2812)] !== !1 && (x = Gs[n(2655)](c, x, t, this[n(2876)] && this[n(2876)][n(1795)] ? { i18nResolved: { ...e, usedParams: this[n(2555)](r) }, ...r } : r, this)), x; } - [a(510)](x, t = {}) { + [a(2457)](x, t = {}) { const r = a; let e, s, n, i, c; - return be(x) && (x = [x]), x[r(1548)]((d) => { - const u = r; - if (this[u(1920)](e)) return; - const l = this[u(2109)](d, t), f = l.key; - s = f; - let b = l.namespaces; - this.options[u(1578)] && (b = b[u(653)](this[u(961)][u(1578)])); - const h = t[u(2285)] !== void 0 && !be(t[u(2285)]), p = h && !t.ordinal && t[u(2285)] === 0, v = t[u(394)] !== void 0 && (be(t[u(394)]) || typeof t[u(394)] === u(1730)) && t[u(394)] !== "", k = t[u(1476)] ? t[u(1476)] : this[u(1484)][u(2833)](t.lng || this[u(2621)], t[u(430)]); - b[u(1548)]((P) => { - var T, C; - const N = u; - this[N(1920)](e) || (c = P, !Za[k[0] + "-" + P] && ((T = this[N(3039)]) != null && T[N(722)]) && !((C = this[N(3039)]) != null && C[N(722)](c)) && (Za[k[0] + "-" + P] = !0, this[N(3053)][N(405)](N(2937) + s + N(771) + k[N(952)](", ") + N(1541) + c + '" was not yet loaded', "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k[N(1548)]((I) => { + return be(x) && (x = [x]), x[r(2617)]((u) => { + const f = r; + if (this.isValidLookup(e)) return; + const l = this.extractFromKey(u, t), d = l[f(480)]; + s = d; + let g = l[f(2470)]; + this[f(2876)][f(1555)] && (g = g.concat(this.options.fallbackNS)); + const h = t[f(1758)] !== void 0 && !be(t.count), m = h && !t[f(3097)] && t[f(1758)] === 0, v = t.context !== void 0 && (be(t[f(1181)]) || typeof t[f(1181)] === f(2665)) && t[f(1181)] !== "", k = t[f(2941)] ? t[f(2941)] : this[f(1476)][f(2825)](t.lng || this[f(3090)], t[f(1338)]); + g[f(2617)]((P) => { + var q, R; + const T = f; + this[T(1075)](e) || (c = P, !Za[k[0] + "-" + P] && ((q = this.utils) != null && q[T(3254)]) && !((R = this[T(2254)]) != null && R[T(3254)](c)) && (Za[k[0] + "-" + P] = !0, this[T(2303)][T(1114)](T(829) + s + '" for languages "' + k.join(", ") + T(2117) + c + '" was not yet loaded', T(1012))), k[T(2617)]((E) => { var M; - const R = N; - if (this[R(1920)](e)) return; - i = I; - const O = [f]; - if ((M = this.i18nFormat) != null && M[R(2670)]) this.i18nFormat[R(2670)](O, f, I, P, t); + const C = T; + if (this[C(1075)](e)) return; + i = E; + const A = [d]; + if ((M = this[C(911)]) != null && M[C(2019)]) this[C(911)][C(2019)](A, d, E, P, t); else { - let F; - h && (F = this[R(2010)].getSuffix(I, t[R(2285)], t)); - const q = this[R(961)].pluralSeparator + R(1120), H = this[R(961)][R(2818)] + R(2496) + this[R(961)][R(2818)]; - if (h && (t[R(2496)] && F.indexOf(H) === 0 && O[R(816)](f + F[R(1840)](H, this[R(961)][R(2818)])), O[R(816)](f + F), p && O.push(f + q)), v) { - const L = "" + f + (this[R(961)][R(630)] || "_") + t.context; - O[R(816)](L), h && (t[R(2496)] && F[R(1316)](H) === 0 && O[R(816)](L + F[R(1840)](H, this.options[R(2818)])), O[R(816)](L + F), p && O[R(816)](L + q)); + let _; + h && (_ = this[C(2041)].getSuffix(E, t[C(1758)], t)); + const N = this[C(2876)].pluralSeparator + C(699), z = this[C(2876)].pluralSeparator + C(3097) + this[C(2876)][C(2850)]; + if (h && (t.ordinal && _[C(2436)](z) === 0 && A[C(3062)](d + _[C(1521)](z, this.options.pluralSeparator)), A.push(d + _), m && A[C(3062)](d + N)), v) { + const U = "" + d + (this.options[C(2005)] || "_") + t[C(1181)]; + A.push(U), h && (t[C(3097)] && _[C(2436)](z) === 0 && A.push(U + _[C(1521)](z, this[C(2876)].pluralSeparator)), A[C(3062)](U + _), m && A.push(U + N)); } } - let D; - for (; D = O[R(641)](); ) - !this[R(1920)](e) && (n = D, e = this[R(2305)](I, P, D, t)); + let O; + for (; O = A[C(2900)](); ) + !this[C(1075)](e) && (n = O, e = this[C(824)](E, P, O, t)); })); }); }), { res: e, usedKey: s, exactUsedKey: n, usedLng: i, usedNS: c }; } - [a(1920)](x) { + isValidLookup(x) { const t = a; - return x !== void 0 && !(!this[t(961)].returnNull && x === null) && !(!this[t(961)].returnEmptyString && x === ""); + return x !== void 0 && !(!this.options.returnNull && x === null) && !(!this.options[t(2119)] && x === ""); } - getResource(x, t, r, e = {}) { + [a(824)](x, t, r, e = {}) { var n; const s = a; - return (n = this[s(1216)]) != null && n[s(2305)] ? this[s(1216)][s(2305)](x, t, r, e) : this[s(2008)][s(2305)](x, t, r, e); + return (n = this[s(911)]) != null && n[s(824)] ? this[s(911)][s(824)](x, t, r, e) : this[s(3082)][s(824)](x, t, r, e); } - [a(418)](x = {}) { - const t = a, r = [t(2628), t(2496), t(394), t(1840), "lng", t(1476), "fallbackLng", "ns", t(3040), "nsSeparator", t(2896), "returnDetails", "joinArrays", "postProcess", t(2343)], e = x.replace && !be(x[t(1840)]); - let s = e ? x[t(1840)] : x; - if (e && typeof x[t(2285)] !== t(1691) && (s[t(2285)] = x[t(2285)]), this[t(961)][t(2343)][t(1594)] && (s = { ...this[t(961)][t(2343)].defaultVariables, ...s }), !e) { + [a(2555)](x = {}) { + const t = a, r = [t(2074), t(3097), t(1181), t(1521), t(3164), t(2941), t(1338), "ns", t(1200), t(1707), t(984), t(1766), t(2960), t(2206), "interpolation"], e = x.replace && !be(x[t(1521)]); + let s = e ? x[t(1521)] : x; + if (e && typeof x[t(1758)] !== t(993) && (s[t(1758)] = x[t(1758)]), this.options[t(1647)].defaultVariables && (s = { ...this[t(2876)][t(1647)][t(1490)], ...s }), !e) { s = { ...s }; for (const n of r) delete s[n]; } return s; } - static [a(400)](x) { - const t = a, r = "defaultValue"; + static [a(3193)](x) { + const t = a, r = t(2074); for (const e in x) - if (Object[t(560)].hasOwnProperty[t(1175)](x, e) && r === e[t(1003)](0, r[t(2910)]) && x[e] !== void 0) return !0; + if (Object[t(2587)][t(1315)][t(1522)](x, e) && r === e.substring(0, r[t(2710)]) && x[e] !== void 0) return !0; return !1; } } -class Wa { +function K(o, x) { + return o = o - 480, yx()[o]; +} +class Ka { constructor(x) { const t = a; - this[t(961)] = x, this[t(2129)] = this[t(961)][t(2129)] || !1, this[t(3053)] = f0[t(1468)](t(1484)); + this.options = x, this.supportedLngs = this.options.supportedLngs || !1, this[t(2303)] = d0[t(1602)](t(1476)); } - [a(1690)](x) { + [a(701)](x) { const t = a; - if (x = sx(x), !x || x[t(1316)]("-") < 0) return null; - const r = x.split("-"); - return r.length === 2 || (r[t(641)](), r[r[t(2910)] - 1][t(2071)]() === "x") ? null : this.formatLanguageCode(r[t(952)]("-")); + if (x = nx(x), !x || x[t(2436)]("-") < 0) return null; + const r = x[t(3263)]("-"); + return r[t(2710)] === 2 || (r[t(2900)](), r[r[t(2710)] - 1][t(1945)]() === "x") ? null : this.formatLanguageCode(r[t(1592)]("-")); } - [a(1179)](x) { + [a(594)](x) { const t = a; - if (x = sx(x), !x || x[t(1316)]("-") < 0) return x; - const r = x.split("-"); - return this.formatLanguageCode(r[0]); + if (x = nx(x), !x || x[t(2436)]("-") < 0) return x; + const r = x[t(3263)]("-"); + return this[t(2453)](r[0]); } - [a(874)](x) { + formatLanguageCode(x) { const t = a; - if (be(x) && x.indexOf("-") > -1) { + if (be(x) && x[t(2436)]("-") > -1) { let r; try { - r = Intl.getCanonicalLocales(x)[0]; + r = Intl[t(2816)](x)[0]; } catch { } - return r && this.options.lowerCaseLng && (r = r[t(2071)]()), r || (this[t(961)][t(1792)] ? x.toLowerCase() : x); + return r && this[t(2876)].lowerCaseLng && (r = r[t(1945)]()), r || (this[t(2876)][t(3002)] ? x.toLowerCase() : x); } - return this[t(961)][t(1975)] || this[t(961)][t(1792)] ? x[t(2071)]() : x; + return this.options[t(1327)] || this[t(2876)][t(3002)] ? x[t(1945)]() : x; } - isSupportedCode(x) { + [a(1149)](x) { const t = a; - return (this[t(961)][t(1758)] === t(2051) || this[t(961)].nonExplicitSupportedLngs) && (x = this[t(1179)](x)), !this[t(2129)] || !this[t(2129)][t(2910)] || this[t(2129)].indexOf(x) > -1; + return (this[t(2876)][t(1429)] === "languageOnly" || this.options[t(1397)]) && (x = this.getLanguagePartFromCode(x)), !this[t(2159)] || !this[t(2159)][t(2710)] || this[t(2159)][t(2436)](x) > -1; } - getBestMatchFromCodes(x) { + [a(1252)](x) { const t = a; if (!x) return null; let r; - return x[t(1548)]((e) => { + return x[t(2617)]((e) => { const s = t; if (r) return; - const n = this[s(874)](e); - (!this[s(961)].supportedLngs || this.isSupportedCode(n)) && (r = n); - }), !r && this[t(961)][t(2129)] && x.forEach((e) => { + const n = this[s(2453)](e); + (!this[s(2876)][s(2159)] || this[s(1149)](n)) && (r = n); + }), !r && this[t(2876)][t(2159)] && x[t(2617)]((e) => { const s = t; if (r) return; - const n = this.getScriptPartFromCode(e); - if (this[s(665)](n)) return r = n; - const i = this.getLanguagePartFromCode(e); - if (this.isSupportedCode(i)) return r = i; - r = this[s(961)][s(2129)][s(1801)]((c) => { - const d = s; + const n = this[s(701)](e); + if (this[s(1149)](n)) return r = n; + const i = this[s(594)](e); + if (this[s(1149)](i)) return r = i; + r = this.options[s(2159)][s(3146)]((c) => { + const u = s; if (c === i) return c; - if (!(c[d(1316)]("-") < 0 && i.indexOf("-") < 0) && (c[d(1316)]("-") > 0 && i.indexOf("-") < 0 && c[d(1003)](0, c[d(1316)]("-")) === i || c[d(1316)](i) === 0 && i[d(2910)] > 1)) + if (!(c[u(2436)]("-") < 0 && i.indexOf("-") < 0) && (c[u(2436)]("-") > 0 && i[u(2436)]("-") < 0 && c[u(672)](0, c[u(2436)]("-")) === i || c[u(2436)](i) === 0 && i[u(2710)] > 1)) return c; }); - }), r || (r = this.getFallbackCodes(this[t(961)][t(430)])[0]), r; + }), r || (r = this.getFallbackCodes(this[t(2876)][t(1338)])[0]), r; } - getFallbackCodes(x, t) { + [a(1873)](x, t) { const r = a; if (!x) return []; - if (typeof x === r(2855) && (x = x(t)), be(x) && (x = [x]), Array[r(2573)](x)) return x; - if (!t) return x[r(2889)] || []; + if (typeof x === r(1936) && (x = x(t)), be(x) && (x = [x]), Array.isArray(x)) return x; + if (!t) return x.default || []; let e = x[t]; - return e || (e = x[this.getScriptPartFromCode(t)]), e || (e = x[this[r(874)](t)]), e || (e = x[this.getLanguagePartFromCode(t)]), e || (e = x[r(2889)]), e || []; + return e || (e = x[this[r(701)](t)]), e || (e = x[this[r(2453)](t)]), e || (e = x[this[r(594)](t)]), e || (e = x[r(2485)]), e || []; } - toResolveHierarchy(x, t) { - const r = a, e = this.getFallbackCodes((t === !1 ? [] : t) || this[r(961)][r(430)] || [], x), s = [], n = (i) => { + [a(2825)](x, t) { + const r = a, e = this[r(1873)]((t === !1 ? [] : t) || this[r(2876)][r(1338)] || [], x), s = [], n = (i) => { const c = r; - i && (this.isSupportedCode(i) ? s[c(816)](i) : this[c(3053)][c(405)]("rejecting language code not found in supportedLngs: " + i)); + i && (this.isSupportedCode(i) ? s[c(3062)](i) : this[c(2303)][c(1114)](c(2322) + i)); }; - return be(x) && (x[r(1316)]("-") > -1 || x[r(1316)]("_") > -1) ? (this[r(961)][r(1758)] !== r(2051) && n(this.formatLanguageCode(x)), this.options[r(1758)] !== r(2051) && this[r(961)][r(1758)] !== r(822) && n(this[r(1690)](x)), this[r(961)][r(1758)] !== r(822) && n(this[r(1179)](x))) : be(x) && n(this[r(874)](x)), e[r(1548)]((i) => { + return be(x) && (x.indexOf("-") > -1 || x[r(2436)]("_") > -1) ? (this.options[r(1429)] !== r(1557) && n(this[r(2453)](x)), this[r(2876)][r(1429)] !== r(1557) && this[r(2876)][r(1429)] !== r(1196) && n(this[r(701)](x)), this[r(2876)][r(1429)] !== r(1196) && n(this[r(594)](x))) : be(x) && n(this[r(2453)](x)), e[r(2617)]((i) => { const c = r; - s.indexOf(i) < 0 && n(this[c(874)](i)); + s.indexOf(i) < 0 && n(this[c(2453)](i)); }), s; } } -const Ka = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ga = { select: (o) => o === 1 ? "one" : a(2668), resolvedOptions: () => ({ pluralCategories: [a(2597), a(2668)] }) }; -class Ri { +const Ga = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ja = { select: (o) => a(o === 1 ? 2836 : 2420), resolvedOptions: () => ({ pluralCategories: [a(2836), "other"] }) }; +class Ii { constructor(x, t = {}) { const r = a; - this.languageUtils = x, this[r(961)] = t, this.logger = f0[r(1468)](r(2010)), this.pluralRulesCache = {}; + this[r(1476)] = x, this[r(2876)] = t, this[r(2303)] = d0[r(1602)](r(2041)), this.pluralRulesCache = {}; } - [a(2757)](x, t) { + [a(1288)](x, t) { const r = a; - this[r(2870)][x] = t; + this[r(2293)][x] = t; } - [a(2884)]() { - this.pluralRulesCache = {}; + clearCache() { + const x = a; + this[x(2782)] = {}; } - [a(2904)](x, t = {}) { - const r = a, e = sx(x === r(1820) ? "en" : x), s = t[r(2496)] ? "ordinal" : "cardinal", n = JSON[r(1749)]({ cleanedCode: e, type: s }); - if (n in this[r(515)]) return this[r(515)][n]; + [a(1106)](x, t = {}) { + const r = a, e = nx(x === "dev" ? "en" : x), s = t[r(3097)] ? "ordinal" : r(3105), n = JSON[r(1031)]({ cleanedCode: e, type: s }); + if (n in this[r(2782)]) return this[r(2782)][n]; let i; try { - i = new Intl[r(1336)](e, { type: s }); + i = new Intl[r(1582)](e, { type: s }); } catch { - if (!Intl) return this[r(3053)][r(1493)]("No Intl support, please use an Intl polyfill!"), Ga; - if (!x.match(/-|_/)) return Ga; - const d = this.languageUtils[r(1179)](x); - i = this[r(2904)](d, t); + if (!Intl) return this.logger[r(490)]("No Intl support, please use an Intl polyfill!"), Ja; + if (!x[r(2314)](/-|_/)) return Ja; + const u = this[r(1476)].getLanguagePartFromCode(x); + i = this.getRule(u, t); } - return this.pluralRulesCache[n] = i, i; + return this[r(2782)][n] = i, i; } - [a(2550)](x, t = {}) { + [a(2095)](x, t = {}) { const r = a; let e = this.getRule(x, t); - return e || (e = this[r(2904)](r(1820), t)), (e == null ? void 0 : e[r(404)]()[r(2482)].length) > 1; + return e || (e = this.getRule(r(1541), t)), (e == null ? void 0 : e[r(1291)]()[r(1900)].length) > 1; } getPluralFormsOfKey(x, t, r = {}) { - const e = a; - return this[e(2007)](x, r)[e(1429)]((s) => "" + t + s); + return this[a(2033)](x, r).map((s) => "" + t + s); } - getSuffixes(x, t = {}) { + [a(2033)](x, t = {}) { const r = a; - let e = this[r(2904)](x, t); - return e || (e = this[r(2904)]("dev", t)), e ? e[r(404)]()[r(2482)].sort((s, n) => Ka[s] - Ka[n])[r(1429)]((s) => "" + this.options.prepend + (t[r(2496)] ? "ordinal" + this[r(961)][r(2068)] : "") + s) : []; + let e = this[r(1106)](x, t); + return e || (e = this.getRule(r(1541), t)), e ? e[r(1291)]()[r(1900)][r(841)]((s, n) => Ga[s] - Ga[n]).map((s) => "" + this.options[r(882)] + (t[r(3097)] ? r(3097) + this[r(2876)][r(882)] : "") + s) : []; } - getSuffix(x, t, r = {}) { - const e = a, s = this[e(2904)](x, r); - return s ? "" + this[e(961)][e(2068)] + (r.ordinal ? e(2496) + this[e(961)].prepend : "") + s[e(1288)](t) : (this[e(3053)].warn("no plural rule found for: " + x), this.getSuffix(e(1820), t, r)); + [a(2055)](x, t, r = {}) { + const e = a, s = this[e(1106)](x, r); + return s ? "" + this[e(2876)][e(882)] + (r[e(3097)] ? e(3097) + this[e(2876)][e(882)] : "") + s.select(t) : (this[e(2303)][e(1114)](e(3001) + x), this.getSuffix(e(1541), t, r)); } } -const Ja = (o, x, t, r = ".", e = !0) => { - let s = yi(o, x, t); +const Qa = (o, x, t, r = ".", e = !0) => { + let s = mi(o, x, t); return !s && e && be(t) && (s = Jt(o, t, r), s === void 0 && (s = Jt(x, t, r))), s; -}, Kx = (o) => o.replace(/\$/g, a(758)); -class Qa { +}, Kx = (o) => o[a(1521)](/\$/g, a(1017)); +class Xa { constructor(x = {}) { var r; const t = a; - this[t(3053)] = f0[t(1468)](t(1686)), this.options = x, this.format = ((r = x == null ? void 0 : x[t(2343)]) == null ? void 0 : r.format) || ((e) => e), this[t(2993)](x); + this[t(2303)] = d0[t(1602)]("interpolator"), this[t(2876)] = x, this[t(802)] = ((r = x == null ? void 0 : x.interpolation) == null ? void 0 : r[t(802)]) || ((e) => e), this[t(1775)](x); } - [a(2993)](x = {}) { + [a(1775)](x = {}) { const t = a; - x[t(2343)] || (x.interpolation = { escapeValue: !0 }); - const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: d, formatSeparator: u, unescapeSuffix: l, unescapePrefix: f, nestingPrefix: b, nestingPrefixEscaped: h, nestingSuffix: p, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: P, alwaysFormat: N } = x[t(2343)]; - this[t(3027)] = r !== void 0 ? r : wi, this.escapeValue = e !== void 0 ? e : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this[t(2159)] = n ? U0(n) : i || "{{", this[t(2626)] = c ? U0(c) : d || "}}", this[t(2014)] = u || ",", this[t(2709)] = l ? "" : f || "-", this[t(851)] = this[t(2709)] ? "" : l || "", this.nestingPrefix = b ? U0(b) : h || U0("$t("), this[t(1383)] = p ? U0(p) : v || U0(")"), this[t(2122)] = k || ",", this.maxReplaces = P || 1e3, this[t(2499)] = N !== void 0 ? N : !1, this.resetRegExp(); + x[t(1647)] || (x[t(1647)] = { escapeValue: !0 }); + const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: u, formatSeparator: f, unescapeSuffix: l, unescapePrefix: d, nestingPrefix: g, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: P, alwaysFormat: T } = x[t(1647)]; + this[t(2133)] = r !== void 0 ? r : gi, this[t(2958)] = e !== void 0 ? e : !0, this[t(1485)] = s !== void 0 ? s : !1, this.prefix = n ? U0(n) : i || "{{", this.suffix = c ? U0(c) : u || "}}", this[t(2426)] = f || ",", this[t(1865)] = l ? "" : d || "-", this[t(2479)] = this[t(1865)] ? "" : l || "", this.nestingPrefix = g ? U0(g) : h || U0("$t("), this[t(2616)] = m ? U0(m) : v || U0(")"), this[t(1735)] = k || ",", this[t(2316)] = P || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this[t(2179)](); } - [a(2461)]() { + [a(2837)]() { const x = a; - this[x(961)] && this[x(2993)](this[x(961)]); + this[x(2876)] && this.init(this[x(2876)]); } resetRegExp() { const x = a, t = (r, e) => { const s = K; - return (r == null ? void 0 : r[s(862)]) === e ? (r[s(2221)] = 0, r) : new RegExp(e, "g"); + return (r == null ? void 0 : r.source) === e ? (r[s(1855)] = 0, r) : new RegExp(e, "g"); }; - this[x(2930)] = t(this[x(2930)], this[x(2159)] + x(1936) + this[x(2626)]), this.regexpUnescape = t(this.regexpUnescape, "" + this[x(2159)] + this[x(2709)] + x(1936) + this[x(851)] + this.suffix), this[x(3018)] = t(this[x(3018)], this[x(406)] + x(1335) + this[x(1383)]); + this.regexp = t(this.regexp, this[x(632)] + x(2810) + this[x(744)]), this[x(2538)] = t(this.regexpUnescape, "" + this.prefix + this[x(1865)] + x(2810) + this.unescapeSuffix + this[x(744)]), this.nestingRegexp = t(this.nestingRegexp, this[x(2864)] + x(818) + this.nestingSuffix); } - [a(1719)](x, t, r, e) { + interpolate(x, t, r, e) { var h; const s = a; let n, i, c; - const d = this[s(961)] && this.options[s(2343)] && this.options[s(2343)][s(1594)] || {}, u = (p) => { + const u = this.options && this[s(2876)].interpolation && this.options[s(1647)][s(1490)] || {}, f = (m) => { const v = s; - if (p[v(1316)](this.formatSeparator) < 0) { - const T = Ja(t, d, p, this[v(961)][v(3040)], this.options[v(1281)]); - return this.alwaysFormat ? this[v(1918)](T, void 0, r, { ...e, ...t, interpolationkey: p }) : T; + if (m.indexOf(this[v(2426)]) < 0) { + const q = Qa(t, u, m, this[v(2876)][v(1200)], this.options[v(2358)]); + return this.alwaysFormat ? this[v(802)](q, void 0, r, { ...e, ...t, interpolationkey: m }) : q; } - const k = p[v(1389)](this[v(2014)]), P = k[v(613)]()[v(1823)](), N = k[v(952)](this[v(2014)])[v(1823)](); - return this[v(1918)](Ja(t, d, P, this.options[v(3040)], this[v(961)][v(1281)]), N, r, { ...e, ...t, interpolationkey: P }); + const k = m[v(3263)](this[v(2426)]), P = k.shift().trim(), T = k[v(1592)](this[v(2426)])[v(2337)](); + return this.format(Qa(t, u, P, this[v(2876)][v(1200)], this[v(2876)].ignoreJSONStructure), T, r, { ...e, ...t, interpolationkey: P }); }; - this[s(1961)](); - const l = (e == null ? void 0 : e[s(842)]) || this[s(961)][s(842)], f = ((h = e == null ? void 0 : e[s(2343)]) == null ? void 0 : h[s(1220)]) !== void 0 ? e[s(2343)][s(1220)] : this.options[s(2343)][s(1220)]; - return [{ regex: this[s(1628)], safeValue: (p) => Kx(p) }, { regex: this.regexp, safeValue: (p) => this.escapeValue ? Kx(this[s(3027)](p)) : Kx(p) }][s(1548)]((p) => { + this[s(2179)](); + const l = (e == null ? void 0 : e.missingInterpolationHandler) || this.options.missingInterpolationHandler, d = ((h = e == null ? void 0 : e[s(1647)]) == null ? void 0 : h[s(940)]) !== void 0 ? e.interpolation.skipOnVariables : this[s(2876)][s(1647)][s(940)]; + return [{ regex: this[s(2538)], safeValue: (m) => Kx(m) }, { regex: this.regexp, safeValue: (m) => this[s(2958)] ? Kx(this.escape(m)) : Kx(m) }][s(2617)]((m) => { const v = s; - for (c = 0; n = p[v(3019)][v(751)](x); ) { - const k = n[1][v(1823)](); - if (i = u(k), i === void 0) - if (typeof l === v(2855)) { - const N = l(x, n, e); - i = be(N) ? N : ""; - } else if (e && Object.prototype[v(938)][v(1175)](e, k)) i = ""; - else if (f) { + for (c = 0; n = m[v(2338)].exec(x); ) { + const k = n[1].trim(); + if (i = f(k), i === void 0) + if (typeof l === v(1936)) { + const T = l(x, n, e); + i = be(T) ? T : ""; + } else if (e && Object.prototype[v(1315)].call(e, k)) i = ""; + else if (d) { i = n[0]; continue; - } else this[v(3053)][v(405)](v(2931) + k + " for interpolating " + x), i = ""; - else !be(i) && !this.useRawValueToEscape && (i = Ua(i)); - const P = p[v(2581)](i); - if (x = x[v(1840)](n[0], P), f ? (p[v(3019)].lastIndex += i.length, p[v(3019)][v(2221)] -= n[0].length) : p[v(3019)].lastIndex = 0, c++, c >= this.maxReplaces) break; + } else this.logger[v(1114)](v(698) + k + v(2537) + x), i = ""; + else !be(i) && !this[v(1485)] && (i = za(i)); + const P = m[v(1271)](i); + if (x = x.replace(n[0], P), d ? (m[v(2338)][v(1855)] += i[v(2710)], m.regex[v(1855)] -= n[0][v(2710)]) : m.regex[v(1855)] = 0, c++, c >= this.maxReplaces) break; } }), x; } - [a(1544)](x, t, r = {}) { + [a(1365)](x, t, r = {}) { const e = a; let s, n, i; - const c = (d, u) => { - const l = K, f = this[l(2122)]; - if (d[l(1316)](f) < 0) return d; - const b = d[l(1389)](new RegExp(f + l(674))); - let h = "{" + b[1]; - d = b[0], h = this[l(1719)](h, i); - const p = h.match(/'/g), v = h.match(/"/g); - (((p == null ? void 0 : p[l(2910)]) ?? 0) % 2 === 0 && !v || v[l(2910)] % 2 !== 0) && (h = h[l(1840)](/'/g, '"')); + const c = (u, f) => { + const l = K, d = this.nestingOptionsSeparator; + if (u.indexOf(d) < 0) return u; + const g = u[l(3263)](new RegExp(d + l(2098))); + let h = "{" + g[1]; + u = g[0], h = this.interpolate(h, i); + const m = h[l(2314)](/'/g), v = h.match(/"/g); + (((m == null ? void 0 : m[l(2710)]) ?? 0) % 2 === 0 && !v || v[l(2710)] % 2 !== 0) && (h = h[l(1521)](/'/g, '"')); try { - i = JSON[l(1584)](h), u && (i = { ...u, ...i }); + i = JSON[l(2774)](h), f && (i = { ...f, ...i }); } catch (k) { - return this[l(3053)].warn(l(1492) + d, k), "" + d + f + h; + return this[l(2303)].warn(l(3197) + u, k), "" + u + d + h; } - return i[l(2628)] && i[l(2628)][l(1316)](this[l(2159)]) > -1 && delete i.defaultValue, d; + return i[l(2074)] && i[l(2074)][l(2436)](this[l(632)]) > -1 && delete i.defaultValue, u; }; - for (; s = this[e(3018)][e(751)](x); ) { - let d = []; - i = { ...r }, i = i.replace && !be(i[e(1840)]) ? i[e(1840)] : i, i[e(2661)] = !1, delete i.defaultValue; - const u = /{.*}/[e(2266)](s[1]) ? s[1][e(2662)]("}") + 1 : s[1].indexOf(this[e(2014)]); - if (u !== -1 && (d = s[1][e(2527)](u)[e(1389)](this[e(2014)])[e(1429)]((l) => l[e(1823)]())[e(2951)](Boolean), s[1] = s[1][e(2527)](0, u)), n = t(c[e(1175)](this, s[1][e(1823)](), i), i), n && s[0] === x && !be(n)) return n; - be(n) || (n = Ua(n)), !n && (this[e(3053)].warn("missed to resolve " + s[1] + e(805) + x), n = ""), d[e(2910)] && (n = d[e(2304)]((l, f) => this.format(l, f, r.lng, { ...r, interpolationkey: s[1][e(1823)]() }), n.trim())), x = x[e(1840)](s[0], n), this[e(2930)][e(2221)] = 0; + for (; s = this[e(2759)][e(2125)](x); ) { + let u = []; + i = { ...r }, i = i[e(1521)] && !be(i[e(1521)]) ? i[e(1521)] : i, i[e(2812)] = !1, delete i.defaultValue; + const f = /{.*}/[e(2346)](s[1]) ? s[1][e(2347)]("}") + 1 : s[1][e(2436)](this[e(2426)]); + if (f !== -1 && (u = s[1][e(1387)](f)[e(3263)](this.formatSeparator).map((l) => l[e(2337)]()).filter(Boolean), s[1] = s[1][e(1387)](0, f)), n = t(c[e(1522)](this, s[1][e(2337)](), i), i), n && s[0] === x && !be(n)) return n; + be(n) || (n = za(n)), !n && (this.logger[e(1114)](e(787) + s[1] + " for nesting " + x), n = ""), u[e(2710)] && (n = u.reduce((l, d) => this[e(802)](l, d, r[e(3164)], { ...r, interpolationkey: s[1][e(2337)]() }), n[e(2337)]())), x = x[e(1521)](s[0], n), this[e(979)].lastIndex = 0; } return x; } } -const Fi = (o) => { +const Ei = (o) => { const x = a; - let t = o.toLowerCase().trim(); + let t = o[x(1945)]()[x(2337)](); const r = {}; - if (o[x(1316)]("(") > -1) { - const e = o[x(1389)]("("); - t = e[0].toLowerCase()[x(1823)](); - const s = e[1].substring(0, e[1][x(2910)] - 1); - t === x(2344) && s[x(1316)](":") < 0 ? r.currency || (r[x(2344)] = s[x(1823)]()) : t === x(1173) && s[x(1316)](":") < 0 ? r[x(626)] || (r[x(626)] = s[x(1823)]()) : s[x(1389)](";").forEach((i) => { + if (o[x(2436)]("(") > -1) { + const e = o.split("("); + t = e[0].toLowerCase()[x(2337)](); + const s = e[1][x(672)](0, e[1][x(2710)] - 1); + t === x(1292) && s[x(2436)](":") < 0 ? r[x(1292)] || (r[x(1292)] = s.trim()) : t === x(1637) && s[x(2436)](":") < 0 ? r[x(1671)] || (r.range = s.trim()) : s[x(3263)](";")[x(2617)]((i) => { const c = x; if (i) { - const [d, ...u] = i[c(1389)](":"), l = u[c(952)](":")[c(1823)]()[c(1840)](/^'+|'+$/g, ""), f = d[c(1823)](); - r[f] || (r[f] = l), l === c(2027) && (r[f] = !1), l === c(1448) && (r[f] = !0), isNaN(l) || (r[f] = parseInt(l, 10)); + const [u, ...f] = i.split(":"), l = f[c(1592)](":").trim().replace(/^'+|'+$/g, ""), d = u.trim(); + r[d] || (r[d] = l), l === c(2657) && (r[d] = !1), l === "true" && (r[d] = !0), isNaN(l) || (r[d] = parseInt(l, 10)); } }); } return { formatName: t, formatOptions: r }; -}, Xa = (o) => { +}, Ya = (o) => { const x = {}; return (t, r, e) => { const s = K; let n = e; - e && e.interpolationkey && e[s(2152)] && e[s(2152)][e.interpolationkey] && e[e.interpolationkey] && (n = { ...n, [e.interpolationkey]: void 0 }); - const i = r + JSON.stringify(n); + e && e[s(2951)] && e[s(3102)] && e[s(3102)][e.interpolationkey] && e[e[s(2951)]] && (n = { ...n, [e[s(2951)]]: void 0 }); + const i = r + JSON[s(1031)](n); let c = x[i]; - return !c && (c = o(sx(r), e), x[i] = c), c(t); + return !c && (c = o(nx(r), e), x[i] = c), c(t); }; -}, Ni = (o) => (x, t, r) => o(sx(t), r)(x); -class qi { +}, Ri = (o) => (x, t, r) => o(nx(t), r)(x); +class Ci { constructor(x = {}) { const t = a; - this[t(3053)] = f0[t(1468)](t(986)), this[t(961)] = x, this[t(2993)](x); + this.logger = d0[t(1602)](t(1934)), this[t(2876)] = x, this[t(1775)](x); } - [a(2993)](x, t = { interpolation: {} }) { + [a(1775)](x, t = { interpolation: {} }) { const r = a; - this[r(2014)] = t[r(2343)][r(2014)] || ","; - const e = t[r(1519)] ? Xa : Ni; - this[r(1408)] = { number: e((s, n) => { - const i = r, c = new Intl.NumberFormat(s, { ...n }); - return (d) => c[i(1918)](d); + this.formatSeparator = t[r(1647)][r(2426)] || ","; + const e = t.cacheInBuiltFormats ? Ya : Ri; + this[r(3155)] = { number: e((s, n) => { + const i = r, c = new Intl[i(1240)](s, { ...n }); + return (u) => c.format(u); }), currency: e((s, n) => { - const i = r, c = new Intl[i(680)](s, { ...n, style: i(2344) }); - return (d) => c.format(d); + const i = r, c = new Intl[i(1240)](s, { ...n, style: "currency" }); + return (u) => c[i(802)](u); }), datetime: e((s, n) => { - const i = r, c = new Intl[i(2228)](s, { ...n }); - return (d) => c[i(1918)](d); + const i = r, c = new Intl[i(548)](s, { ...n }); + return (u) => c[i(802)](u); }), relativetime: e((s, n) => { - const i = r, c = new Intl[i(1562)](s, { ...n }); - return (d) => c[i(1918)](d, n[i(626)] || i(1776)); + const i = r, c = new Intl.RelativeTimeFormat(s, { ...n }); + return (u) => c[i(802)](u, n[i(1671)] || "day"); }), list: e((s, n) => { - const i = r, c = new Intl.ListFormat(s, { ...n }); - return (d) => c[i(1918)](d); + const i = r, c = new Intl[i(926)](s, { ...n }); + return (u) => c[i(802)](u); }) }; } - [a(1604)](x, t) { + [a(1580)](x, t) { const r = a; - this[r(1408)][x.toLowerCase().trim()] = t; + this[r(3155)][x[r(1945)]()[r(2337)]()] = t; } - [a(574)](x, t) { + [a(1402)](x, t) { const r = a; - this[r(1408)][x[r(2071)]().trim()] = Xa(t); + this[r(3155)][x[r(1945)]()[r(2337)]()] = Ya(t); } - format(x, t, r, e = {}) { - const s = a, n = t[s(1389)](this[s(2014)]); - if (n[s(2910)] > 1 && n[0][s(1316)]("(") > 1 && n[0][s(1316)](")") < 0 && n[s(1801)]((c) => c.indexOf(")") > -1)) { - const c = n[s(2150)]((d) => d[s(1316)](")") > -1); - n[0] = [n[0], ...n[s(1571)](1, c)][s(952)](this.formatSeparator); + [a(802)](x, t, r, e = {}) { + const s = a, n = t[s(3263)](this[s(2426)]); + if (n[s(2710)] > 1 && n[0][s(2436)]("(") > 1 && n[0][s(2436)](")") < 0 && n.find((c) => c[s(2436)](")") > -1)) { + const c = n[s(3162)]((u) => u.indexOf(")") > -1); + n[0] = [n[0], ...n[s(2881)](1, c)][s(1592)](this[s(2426)]); } - return n[s(2304)]((c, d) => { - var b; - const u = s, { formatName: l, formatOptions: f } = Fi(d); - if (this[u(1408)][l]) { + return n[s(1630)]((c, u) => { + var g; + const f = s, { formatName: l, formatOptions: d } = Ei(u); + if (this[f(3155)][l]) { let h = c; try { - const p = ((b = e == null ? void 0 : e[u(2152)]) == null ? void 0 : b[e[u(2821)]]) || {}, v = p.locale || p[u(1581)] || e[u(609)] || e[u(1581)] || r; - h = this.formats[l](c, v, { ...f, ...e, ...p }); - } catch (p) { - this[u(3053)].warn(p); + const m = ((g = e == null ? void 0 : e[f(3102)]) == null ? void 0 : g[e[f(2951)]]) || {}, v = m[f(1225)] || m[f(3164)] || e[f(1225)] || e[f(3164)] || r; + h = this.formats[l](c, v, { ...d, ...e, ...m }); + } catch (m) { + this[f(2303)][f(1114)](m); } return h; - } else this.logger[u(405)]("there was no format function for " + l); + } else this[f(2303)].warn(f(743) + l); return c; }, x); } } -const Ti = (o, x) => { +const _i = (o, x) => { const t = a; - o[t(2063)][x] !== void 0 && (delete o.pending[x], o[t(620)]--); + o.pending[x] !== void 0 && (delete o[t(514)][x], o.pendingCount--); }; -class Ai extends Ax { +class Fi extends Ax { constructor(x, t, r, e = {}) { var n, i; const s = a; - super(), this[s(2474)] = x, this.store = t, this[s(1151)] = r, this[s(1484)] = r[s(1484)], this[s(961)] = e, this[s(3053)] = f0.create(s(559)), this.waitingReads = [], this[s(478)] = e[s(478)] || 10, this[s(2624)] = 0, this[s(2883)] = e[s(2883)] >= 0 ? e[s(2883)] : 5, this[s(799)] = e[s(799)] >= 1 ? e[s(799)] : 350, this.state = {}, this[s(815)] = [], (i = (n = this[s(2474)]) == null ? void 0 : n.init) == null || i.call(n, r, e[s(2474)], e); + super(), this[s(1231)] = x, this[s(872)] = t, this[s(1791)] = r, this.languageUtils = r.languageUtils, this[s(2876)] = e, this.logger = d0.create("backendConnector"), this[s(1640)] = [], this[s(1894)] = e[s(1894)] || 10, this[s(1933)] = 0, this[s(1579)] = e[s(1579)] >= 0 ? e[s(1579)] : 5, this[s(2344)] = e[s(2344)] >= 1 ? e[s(2344)] : 350, this[s(3122)] = {}, this.queue = [], (i = (n = this[s(1231)]) == null ? void 0 : n[s(1775)]) == null || i.call(n, r, e[s(1231)], e); } - [a(1805)](x, t, r, e) { - const s = a, n = {}, i = {}, c = {}, d = {}; - return x.forEach((u) => { - const l = K; - let f = !0; - t[l(1548)]((b) => { - const h = l, p = u + "|" + b; - !r[h(1119)] && this[h(2849)][h(1340)](u, b) ? this[h(432)][p] = 2 : this[h(432)][p] < 0 || (this[h(432)][p] === 1 ? i[p] === void 0 && (i[p] = !0) : (this.state[p] = 1, f = !1, i[p] === void 0 && (i[p] = !0), n[p] === void 0 && (n[p] = !0), d[b] === void 0 && (d[b] = !0))); - }), f || (c[u] = !0); - }), (Object[s(548)](n)[s(2910)] || Object.keys(i).length) && this[s(815)][s(816)]({ pending: i, pendingCount: Object.keys(i)[s(2910)], loaded: {}, errors: [], callback: e }), { toLoad: Object[s(548)](n), pending: Object.keys(i), toLoadLanguages: Object[s(548)](c), toLoadNamespaces: Object[s(548)](d) }; + [a(3225)](x, t, r, e) { + const s = a, n = {}, i = {}, c = {}, u = {}; + return x.forEach((f) => { + let l = !0; + t.forEach((d) => { + const g = K, h = f + "|" + d; + !r[g(1646)] && this[g(872)][g(1203)](f, d) ? this[g(3122)][h] = 2 : this.state[h] < 0 || (this[g(3122)][h] === 1 ? i[h] === void 0 && (i[h] = !0) : (this.state[h] = 1, l = !1, i[h] === void 0 && (i[h] = !0), n[h] === void 0 && (n[h] = !0), u[d] === void 0 && (u[d] = !0))); + }), l || (c[f] = !0); + }), (Object[s(2123)](n).length || Object.keys(i)[s(2710)]) && this[s(2284)][s(3062)]({ pending: i, pendingCount: Object[s(2123)](i)[s(2710)], loaded: {}, errors: [], callback: e }), { toLoad: Object[s(2123)](n), pending: Object[s(2123)](i), toLoadLanguages: Object[s(2123)](c), toLoadNamespaces: Object[s(2123)](u) }; } - [a(1222)](x, t, r) { - const e = a, s = x[e(1389)]("|"), n = s[0], i = s[1]; - t && this[e(1452)](e(378), n, i, t), !t && r && this[e(2849)][e(474)](n, i, r, void 0, void 0, { skipCopy: !0 }), this[e(432)][x] = t ? -1 : 2, t && r && (this[e(432)][x] = 0); + [a(1770)](x, t, r) { + const e = a, s = x[e(3263)]("|"), n = s[0], i = s[1]; + t && this[e(2256)](e(1969), n, i, t), !t && r && this[e(872)].addResourceBundle(n, i, r, void 0, void 0, { skipCopy: !0 }), this.state[x] = t ? -1 : 2, t && r && (this[e(3122)][x] = 0); const c = {}; - this[e(815)][e(1548)]((d) => { - const u = e; - gi(d[u(1222)], [n], i), Ti(d, x), t && d[u(2311)].push(t), d[u(620)] === 0 && !d.done && (Object[u(548)](d[u(1222)])[u(1548)]((l) => { - const f = u; + this[e(2284)][e(2617)]((u) => { + const f = e; + pi(u[f(1770)], [n], i), _i(u, x), t && u[f(2800)][f(3062)](t), u.pendingCount === 0 && !u.done && (Object[f(2123)](u[f(1770)])[f(2617)]((l) => { + const d = f; c[l] || (c[l] = {}); - const b = d[f(1222)][l]; - b.length && b.forEach((h) => { + const g = u[d(1770)][l]; + g[d(2710)] && g[d(2617)]((h) => { c[l][h] === void 0 && (c[l][h] = !0); }); - }), d[u(2809)] = !0, d[u(2311)].length ? d[u(2632)](d.errors) : d[u(2632)]()); - }), this[e(1452)](e(1222), c), this[e(815)] = this[e(815)][e(2951)]((d) => !d[e(2809)]); + }), u[f(1463)] = !0, u[f(2800)][f(2710)] ? u[f(3253)](u[f(2800)]) : u[f(3253)]()); + }), this[e(2256)](e(1770), c), this[e(2284)] = this[e(2284)][e(2581)]((u) => !u.done); } - read(x, t, r, e = 0, s = this[a(799)], n) { + [a(953)](x, t, r, e = 0, s = this[a(2344)], n) { const i = a; - if (!x.length) return n(null, {}); - if (this[i(2624)] >= this[i(478)]) { - this[i(1780)][i(816)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); + if (!x[i(2710)]) return n(null, {}); + if (this.readingCalls >= this[i(1894)]) { + this.waitingReads[i(3062)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); return; } - this[i(2624)]++; - const c = (u, l) => { - const f = i; - if (this[f(2624)]--, this.waitingReads[f(2910)] > 0) { - const b = this.waitingReads[f(613)](); - this[f(384)](b[f(1581)], b.ns, b[f(465)], b[f(772)], b[f(2996)], b[f(2632)]); + this[i(1933)]++; + const c = (f, l) => { + const d = i; + if (this.readingCalls--, this[d(1640)][d(2710)] > 0) { + const g = this[d(1640)][d(1263)](); + this[d(953)](g[d(3164)], g.ns, g[d(1840)], g[d(2009)], g.wait, g[d(3253)]); } - if (u && l && e < this[f(2883)]) { + if (f && l && e < this[d(1579)]) { setTimeout(() => { - const b = f; - this[b(384)][b(1175)](this, x, t, r, e + 1, s * 2, n); + this[d(953)].call(this, x, t, r, e + 1, s * 2, n); }, s); return; } - n(u, l); - }, d = this[i(2474)][r][i(2381)](this[i(2474)]); - if (d[i(2910)] === 2) { + n(f, l); + }, u = this.backend[r][i(1386)](this[i(1231)]); + if (u[i(2710)] === 2) { try { - const u = d(x, t); - u && typeof u.then === i(2855) ? u.then((l) => c(null, l))[i(1508)](c) : c(null, u); - } catch (u) { - c(u); + const f = u(x, t); + f && typeof f[i(2517)] == "function" ? f[i(2517)]((l) => c(null, l))[i(742)](c) : c(null, f); + } catch (f) { + c(f); } return; } - return d(x, t, c); + return u(x, t, c); } - [a(1647)](x, t, r = {}, e) { + [a(1189)](x, t, r = {}, e) { const s = a; - if (!this[s(2474)]) return this[s(3053)][s(405)]("No backend was added via i18next.use. Will not load resources."), e && e(); - be(x) && (x = this[s(1484)][s(2833)](x)), be(t) && (t = [t]); - const n = this[s(1805)](x, t, r, e); - if (!n[s(741)][s(2910)]) - return n[s(2063)][s(2910)] || e(), null; - n[s(741)][s(1548)]((i) => { - this.loadOne(i); + if (!this.backend) return this[s(2303)].warn(s(2637)), e && e(); + be(x) && (x = this.languageUtils.toResolveHierarchy(x)), be(t) && (t = [t]); + const n = this[s(3225)](x, t, r, e); + if (!n[s(2476)][s(2710)]) + return n[s(514)].length || e(), null; + n[s(2476)][s(2617)]((i) => { + this[s(2839)](i); }); } - [a(1758)](x, t, r) { - this[a(1647)](x, t, {}, r); + [a(1429)](x, t, r) { + this[a(1189)](x, t, {}, r); } - reload(x, t, r) { - this[a(1647)](x, t, { reload: !0 }, r); + [a(1646)](x, t, r) { + this[a(1189)](x, t, { reload: !0 }, r); } - [a(856)](x, t = "") { - const r = a, e = x[r(1389)]("|"), s = e[0], n = e[1]; - this[r(384)](s, n, r(384), void 0, void 0, (i, c) => { - const d = r; - i && this[d(3053)][d(405)](t + "loading namespace " + n + d(2521) + s + d(2143), i), !i && c && this.logger.log(t + "loaded namespace " + n + d(2521) + s, c), this[d(1222)](x, i, c); + [a(2839)](x, t = "") { + const r = a, e = x[r(3263)]("|"), s = e[0], n = e[1]; + this[r(953)](s, n, r(953), void 0, void 0, (i, c) => { + const u = r; + i && this[u(2303)][u(1114)](t + "loading namespace " + n + u(998) + s + u(1289), i), !i && c && this.logger[u(1635)](t + u(3210) + n + u(998) + s, c), this[u(1770)](x, i, c); }); } - [a(2770)](x, t, r, e, s, n = {}, i = () => { + [a(3083)](x, t, r, e, s, n = {}, i = () => { }) { - var d, u, l, f, b; + var u, f, l, d, g; const c = a; - if ((u = (d = this.services) == null ? void 0 : d[c(3039)]) != null && u[c(722)] && !((f = (l = this[c(1151)]) == null ? void 0 : l[c(3039)]) != null && f[c(722)](t))) { - this.logger[c(405)](c(1636) + r + c(604) + t + c(2404), c(1447)); + if ((f = (u = this.services) == null ? void 0 : u[c(2254)]) != null && f[c(3254)] && !((d = (l = this[c(1791)]) == null ? void 0 : l.utils) != null && d[c(3254)](t))) { + this[c(2303)][c(1114)](c(1390) + r + c(1135) + t + '" was not yet loaded', c(1012)); return; } if (!(r == null || r === "")) { - if ((b = this.backend) != null && b[c(1468)]) { - const h = { ...n, isUpdate: s }, p = this[c(2474)][c(1468)].bind(this[c(2474)]); - if (p.length < 6) try { + if ((g = this[c(1231)]) != null && g.create) { + const h = { ...n, isUpdate: s }, m = this[c(1231)].create[c(1386)](this[c(1231)]); + if (m[c(2710)] < 6) try { let v; - p[c(2910)] === 5 ? v = p(x, t, r, e, h) : v = p(x, t, r, e), v && typeof v[c(857)] === c(2855) ? v[c(857)]((k) => i(null, k)).catch(i) : i(null, v); + m[c(2710)] === 5 ? v = m(x, t, r, e, h) : v = m(x, t, r, e), v && typeof v[c(2517)] === c(1936) ? v.then((k) => i(null, k))[c(742)](i) : i(null, v); } catch (v) { i(v); } - else p(x, t, r, e, i, h); + else m(x, t, r, e, i, h); } - !x || !x[0] || this[c(2849)][c(1202)](x[0], t, r, e); + !x || !x[0] || this[c(872)][c(507)](x[0], t, r, e); } } } -const Ya = () => ({ debug: !1, initAsync: !0, ns: [a(2191)], defaultNS: [a(2191)], fallbackLng: [a(1820)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: a(634), saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { +const er = () => ({ debug: !1, initAsync: !0, ns: [a(1650)], defaultNS: ["translation"], fallbackLng: ["dev"], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: a(1096), preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { const x = a; let t = {}; - if (typeof o[1] === x(2517) && (t = o[1]), be(o[1]) && (t[x(2628)] = o[1]), be(o[2]) && (t.tDescription = o[2]), typeof o[2] === x(2517) || typeof o[3] == "object") { + if (typeof o[1] == "object" && (t = o[1]), be(o[1]) && (t[x(2074)] = o[1]), be(o[2]) && (t[x(2756)] = o[2]), typeof o[2] === x(1304) || typeof o[3] === x(1304)) { const r = o[3] || o[2]; - Object[x(548)](r)[x(1548)]((e) => { + Object[x(2123)](r).forEach((e) => { t[e] = r[e]; }); } return t; -}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: a(2869), nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), er = (o) => { +}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), xr = (o) => { var t, r; const x = a; - return be(o.ns) && (o.ns = [o.ns]), be(o[x(430)]) && (o.fallbackLng = [o[x(430)]]), be(o.fallbackNS) && (o[x(1578)] = [o[x(1578)]]), ((r = (t = o[x(2129)]) == null ? void 0 : t[x(1316)]) == null ? void 0 : r.call(t, "cimode")) < 0 && (o[x(2129)] = o[x(2129)].concat([x(1223)])), typeof o[x(3054)] === x(1964) && (o.initAsync = o[x(3054)]), o; -}, hx = () => { -}, _i = (o) => { + return be(o.ns) && (o.ns = [o.ns]), be(o[x(1338)]) && (o[x(1338)] = [o.fallbackLng]), be(o[x(1555)]) && (o[x(1555)] = [o[x(1555)]]), ((r = (t = o[x(2159)]) == null ? void 0 : t.indexOf) == null ? void 0 : r.call(t, x(2789))) < 0 && (o.supportedLngs = o[x(2159)][x(2700)]([x(2789)])), typeof o[x(772)] === x(3106) && (o.initAsync = o[x(772)]), o; +}, px = () => { +}, Ti = (o) => { const x = a; - Object[x(1133)](Object[x(1724)](o))[x(1548)]((r) => { + Object.getOwnPropertyNames(Object[x(1209)](o))[x(2617)]((r) => { const e = x; - typeof o[r] === e(2855) && (o[r] = o[r].bind(o)); + typeof o[r] === e(1936) && (o[r] = o[r][e(1386)](o)); }); }; -class ex extends Ax { +class xx extends Ax { constructor(x = {}, t) { const r = a; - if (super(), this[r(961)] = er(x), this[r(1151)] = {}, this[r(3053)] = f0, this[r(1906)] = { external: [] }, _i(this), t && !this.isInitialized && !x[r(3013)]) { - if (!this[r(961)][r(1599)]) return this.init(x, t), this; + if (super(), this.options = xr(x), this[r(1791)] = {}, this[r(2303)] = d0, this[r(852)] = { external: [] }, Ti(this), t && !this[r(3029)] && !x[r(873)]) { + if (!this[r(2876)][r(1719)]) return this.init(x, t), this; setTimeout(() => { - this[r(2993)](x, t); + this[r(1775)](x, t); }, 0); } } - init(x = {}, t) { + [a(1775)](x = {}, t) { const r = a; - this[r(1641)] = !0, typeof x == "function" && (t = x, x = {}), x.defaultNS == null && x.ns && (be(x.ns) ? x.defaultNS = x.ns : x.ns[r(1316)](r(2191)) < 0 && (x.defaultNS = x.ns[0])); - const e = Ya(); - this[r(961)] = { ...e, ...this[r(961)], ...er(x) }, this[r(961)][r(2343)] = { ...e[r(2343)], ...this[r(961)][r(2343)] }, x[r(3040)] !== void 0 && (this.options[r(2082)] = x[r(3040)]), x[r(2244)] !== void 0 && (this[r(961)][r(2845)] = x[r(2244)]); - const s = (u) => { + this[r(1614)] = !0, typeof x == "function" && (t = x, x = {}), x[r(1589)] == null && x.ns && (be(x.ns) ? x[r(1589)] = x.ns : x.ns[r(2436)](r(1650)) < 0 && (x[r(1589)] = x.ns[0])); + const e = er(); + this[r(2876)] = { ...e, ...this[r(2876)], ...xr(x) }, this[r(2876)][r(1647)] = { ...e[r(1647)], ...this[r(2876)].interpolation }, x[r(1200)] !== void 0 && (this.options[r(1204)] = x[r(1200)]), x.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = x[r(1707)]); + const s = (f) => { const l = r; - return u ? typeof u === l(2855) ? new u() : u : null; + return f ? typeof f === l(1936) ? new f() : f : null; }; - if (!this[r(961)].isClone) { - this[r(1906)].logger ? f0[r(2993)](s(this[r(1906)].logger), this[r(961)]) : f0[r(2993)](null, this.options); - let u; - this[r(1906)].formatter ? u = this[r(1906)][r(986)] : u = qi; - const l = new Wa(this.options); - this[r(2849)] = new Ba(this[r(961)][r(804)], this[r(961)]); - const f = this[r(1151)]; - f[r(3053)] = f0, f[r(2008)] = this[r(2849)], f[r(1484)] = l, f[r(2010)] = new Ri(l, { prepend: this[r(961)][r(2818)], simplifyPluralSuffix: this[r(961)][r(2380)] }), this[r(961)].interpolation[r(1918)] && this.options.interpolation[r(1918)] !== e[r(2343)].format && this[r(3053)].deprecate(r(2013)), u && (!this[r(961)].interpolation[r(1918)] || this[r(961)].interpolation[r(1918)] === e[r(2343)].format) && (f[r(986)] = s(u), f[r(986)].init && f[r(986)][r(2993)](f, this[r(961)]), this.options.interpolation[r(1918)] = f[r(986)][r(1918)][r(2381)](f.formatter)), f[r(1686)] = new Qa(this.options), f.utils = { hasLoadedNamespace: this[r(722)][r(2381)](this) }, f[r(559)] = new Ai(s(this.modules.backend), f[r(2008)], f, this.options), f.backendConnector.on("*", (h, ...p) => { - this[r(1452)](h, ...p); - }), this[r(1906)][r(410)] && (f[r(410)] = s(this[r(1906)][r(410)]), f.languageDetector[r(2993)] && f[r(410)][r(2993)](f, this.options.detection, this.options)), this[r(1906)][r(1216)] && (f[r(1216)] = s(this[r(1906)][r(1216)]), f[r(1216)][r(2993)] && f.i18nFormat[r(2993)](this)), this[r(2506)] = new Fx(this[r(1151)], this[r(961)]), this[r(2506)].on("*", (h, ...p) => { - this[r(1452)](h, ...p); - }), this[r(1906)][r(1553)][r(1548)]((h) => { - const p = r; - h[p(2993)] && h[p(2993)](this); + if (!this[r(2876)][r(873)]) { + this[r(852)].logger ? d0.init(s(this[r(852)][r(2303)]), this[r(2876)]) : d0.init(null, this.options); + let f; + this[r(852)].formatter ? f = this[r(852)][r(1934)] : f = Ci; + const l = new Ka(this[r(2876)]); + this[r(872)] = new Wa(this[r(2876)].resources, this[r(2876)]); + const d = this[r(1791)]; + d[r(2303)] = d0, d[r(3082)] = this[r(872)], d[r(1476)] = l, d[r(2041)] = new Ii(l, { prepend: this[r(2876)][r(2850)], simplifyPluralSuffix: this.options[r(2942)] }), this[r(2876)][r(1647)][r(802)] && this[r(2876)][r(1647)].format !== e[r(1647)][r(802)] && this.logger[r(1925)](r(1566)), f && (!this.options[r(1647)][r(802)] || this[r(2876)][r(1647)][r(802)] === e.interpolation[r(802)]) && (d.formatter = s(f), d.formatter[r(1775)] && d[r(1934)][r(1775)](d, this[r(2876)]), this.options.interpolation[r(802)] = d.formatter.format.bind(d[r(1934)])), d[r(1896)] = new Xa(this[r(2876)]), d[r(2254)] = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, d.backendConnector = new Fi(s(this.modules[r(1231)]), d[r(3082)], d, this[r(2876)]), d.backendConnector.on("*", (h, ...m) => { + this[r(2256)](h, ...m); + }), this[r(852)][r(3114)] && (d[r(3114)] = s(this.modules[r(3114)]), d[r(3114)][r(1775)] && d.languageDetector[r(1775)](d, this[r(2876)].detection, this[r(2876)])), this[r(852)][r(911)] && (d.i18nFormat = s(this[r(852)].i18nFormat), d[r(911)][r(1775)] && d[r(911)].init(this)), this.translator = new Tx(this[r(1791)], this[r(2876)]), this[r(1781)].on("*", (h, ...m) => { + this[r(2256)](h, ...m); + }), this[r(852)][r(1734)][r(2617)]((h) => { + const m = r; + h[m(1775)] && h[m(1775)](this); }); } - if (this[r(1918)] = this[r(961)][r(2343)][r(1918)], t || (t = hx), this[r(961)][r(430)] && !this[r(1151)][r(410)] && !this.options[r(1581)]) { - const u = this[r(1151)].languageUtils[r(3028)](this.options[r(430)]); - u.length > 0 && u[0] !== "dev" && (this[r(961)][r(1581)] = u[0]); + if (this.format = this[r(2876)][r(1647)][r(802)], t || (t = px), this[r(2876)].fallbackLng && !this[r(1791)][r(3114)] && !this[r(2876)].lng) { + const f = this[r(1791)].languageUtils[r(1873)](this[r(2876)].fallbackLng); + f[r(2710)] > 0 && f[0] !== r(1541) && (this[r(2876)].lng = f[0]); } - !this[r(1151)][r(410)] && !this[r(961)][r(1581)] && this[r(3053)][r(405)](r(504)), [r(2305), r(1340), r(2526), "getDataByLanguage"][r(1548)]((u) => { + !this.services[r(3114)] && !this[r(2876)][r(3164)] && this[r(2303)][r(1114)]("init: no languageDetector is used and no lng is defined"), [r(824), "hasResourceBundle", r(2948), "getDataByLanguage"][r(2617)]((f) => { const l = r; - this[u] = (...f) => this[l(2849)][u](...f); - }), [r(1202), r(667), "addResourceBundle", r(2726)][r(1548)]((u) => { - this[u] = (...l) => (this[K(2849)][u](...l), this); + this[f] = (...d) => this[l(872)][f](...d); + }), ["addResource", "addResources", r(607), r(855)][r(2617)]((f) => { + this[f] = (...l) => (this[K(872)][f](...l), this); }); - const c = J0(), d = () => { - const u = r, l = (f, b) => { + const c = Q0(), u = () => { + const f = r, l = (d, g) => { const h = K; - this[h(1641)] = !1, this[h(1049)] && !this[h(1703)] && this[h(3053)].warn("init: i18next is already initialized. You should call init just once!"), this[h(1049)] = !0, this[h(961)][h(3013)] || this[h(3053)][h(2613)](h(1438), this[h(961)]), this[h(1452)](h(1438), this[h(961)]), c.resolve(b), t(f, b); + this[h(1614)] = !1, this[h(3029)] && !this[h(547)] && this.logger[h(1114)](h(1001)), this.isInitialized = !0, this[h(2876)].isClone || this[h(2303)][h(1635)](h(2683), this.options), this[h(2256)](h(2683), this[h(2876)]), c[h(2457)](g), t(d, g); }; - if (this[u(1978)] && !this[u(1049)]) return l(null, this.t.bind(this)); - this.changeLanguage(this[u(961)][u(1581)], l); + if (this.languages && !this.isInitialized) return l(null, this.t[f(1386)](this)); + this[f(759)](this[f(2876)][f(3164)], l); }; - return this[r(961)].resources || !this.options[r(1599)] ? d() : setTimeout(d, 0), c; + return this[r(2876)][r(1673)] || !this[r(2876)].initAsync ? u() : setTimeout(u, 0), c; } - [a(1006)](x, t = hx) { + [a(1264)](x, t = px) { var n, i; const r = a; let e = t; - const s = be(x) ? x : this[r(2621)]; - if (typeof x === r(2855) && (e = x), !this[r(961)].resources || this[r(961)][r(1765)]) { - if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this[r(961)][r(370)] || this[r(961)][r(370)][r(2910)] === 0)) return e(); - const c = [], d = (u) => { + const s = be(x) ? x : this[r(3090)]; + if (typeof x === r(1936) && (e = x), !this[r(2876)][r(1673)] || this[r(2876)][r(2964)]) { + if ((s == null ? void 0 : s[r(1945)]()) === r(2789) && (!this[r(2876)][r(1125)] || this.options[r(1125)][r(2710)] === 0)) return e(); + const c = [], u = (f) => { const l = r; - if (!u || u === l(1223)) return; - this.services[l(1484)].toResolveHierarchy(u)[l(1548)]((b) => { + if (!f || f === l(2789)) return; + this[l(1791)][l(1476)][l(2825)](f)[l(2617)]((g) => { const h = l; - b !== "cimode" && c[h(1316)](b) < 0 && c[h(816)](b); + g !== "cimode" && c.indexOf(g) < 0 && c[h(3062)](g); }); }; - s ? d(s) : this.services.languageUtils.getFallbackCodes(this[r(961)][r(430)])[r(1548)]((l) => d(l)), (i = (n = this[r(961)][r(370)]) == null ? void 0 : n.forEach) == null || i.call(n, (u) => d(u)), this[r(1151)][r(559)].load(c, this.options.ns, (u) => { + s ? u(s) : this[r(1791)][r(1476)][r(1873)](this[r(2876)].fallbackLng)[r(2617)]((l) => u(l)), (i = (n = this.options[r(1125)]) == null ? void 0 : n[r(2617)]) == null || i.call(n, (f) => u(f)), this.services[r(1577)][r(1429)](c, this.options.ns, (f) => { const l = r; - !u && !this[l(2533)] && this[l(2621)] && this[l(1922)](this[l(2621)]), e(u); + !f && !this[l(1049)] && this[l(3090)] && this[l(723)](this[l(3090)]), e(f); }); } else e(null); } - [a(672)](x, t, r) { - const e = a, s = J0(); - return typeof x === e(2855) && (r = x, x = void 0), typeof t === e(2855) && (r = t, t = void 0), x || (x = this[e(1978)]), t || (t = this.options.ns), r || (r = hx), this[e(1151)][e(559)].reload(x, t, (n) => { - s[e(510)](), r(n); + [a(1008)](x, t, r) { + const e = a, s = Q0(); + return typeof x == "function" && (r = x, x = void 0), typeof t === e(1936) && (r = t, t = void 0), x || (x = this[e(1056)]), t || (t = this.options.ns), r || (r = px), this[e(1791)][e(1577)].reload(x, t, (n) => { + s[e(2457)](), r(n); }), s; } - [a(1030)](x) { + [a(1728)](x) { const t = a; if (!x) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); - if (!x[t(506)]) throw new Error(t(2657)); - return x[t(506)] === "backend" && (this[t(1906)][t(2474)] = x), (x[t(506)] === t(3053) || x[t(2613)] && x[t(405)] && x[t(1493)]) && (this[t(1906)][t(3053)] = x), x[t(506)] === t(410) && (this[t(1906)].languageDetector = x), x[t(506)] === t(1216) && (this[t(1906)][t(1216)] = x), x[t(506)] === t(1345) && Qs[t(903)](x), x[t(506)] === t(986) && (this[t(1906)][t(986)] = x), x[t(506)] === t(1824) && this[t(1906)][t(1553)][t(816)](x), this; + if (!x[t(2076)]) throw new Error(t(2734)); + return x[t(2076)] === "backend" && (this[t(852)][t(1231)] = x), (x.type === t(2303) || x[t(1635)] && x[t(1114)] && x[t(490)]) && (this.modules[t(2303)] = x), x[t(2076)] === t(3114) && (this[t(852)][t(3114)] = x), x.type === t(911) && (this[t(852)].i18nFormat = x), x[t(2076)] === t(2992) && Gs[t(2349)](x), x[t(2076)] === t(1934) && (this[t(852)][t(1934)] = x), x.type === t(1175) && this[t(852)].external[t(3062)](x), this; } - setResolvedLanguage(x) { + [a(723)](x) { const t = a; - if (!(!x || !this.languages) && !([t(1223), "dev"][t(1316)](x) > -1)) { - for (let r = 0; r < this[t(1978)].length; r++) { - const e = this[t(1978)][r]; - if (!([t(1223), t(1820)][t(1316)](e) > -1) && this[t(2849)][t(2272)](e)) { - this[t(2533)] = e; + if (!(!x || !this.languages) && !([t(2789), "dev"][t(2436)](x) > -1)) { + for (let r = 0; r < this[t(1056)][t(2710)]; r++) { + const e = this[t(1056)][r]; + if (!([t(2789), t(1541)].indexOf(e) > -1) && this[t(872)].hasLanguageSomeTranslations(e)) { + this[t(1049)] = e; break; } } - !this[t(2533)] && this[t(1978)][t(1316)](x) < 0 && this[t(2849)][t(2272)](x) && (this[t(2533)] = x, this[t(1978)][t(2532)](x)); + !this[t(1049)] && this.languages[t(2436)](x) < 0 && this.store[t(3068)](x) && (this[t(1049)] = x, this[t(1056)][t(1162)](x)); } } - [a(1355)](x, t) { + changeLanguage(x, t) { const r = a; - this[r(647)] = x; - const e = J0(); - this[r(1452)](r(2637), x); + this.isLanguageChangingTo = x; + const e = Q0(); + this[r(2256)]("languageChanging", x); const s = (c) => { - const d = r; - this[d(2621)] = c, this.languages = this[d(1151)][d(1484)][d(2833)](c), this[d(2533)] = void 0, this[d(1922)](c); - }, n = (c, d) => { const u = r; - d ? this[u(647)] === x && (s(d), this[u(2506)][u(1355)](d), this[u(647)] = void 0, this[u(1452)](u(1398), d), this.logger[u(2613)]("languageChanged", d)) : this[u(647)] = void 0, e.resolve((...l) => this.t(...l)), t && t(c, (...l) => this.t(...l)); + this.language = c, this.languages = this[u(1791)][u(1476)][u(2825)](c), this[u(1049)] = void 0, this[u(723)](c); + }, n = (c, u) => { + const f = r; + u ? this.isLanguageChangingTo === x && (s(u), this[f(1781)][f(759)](u), this[f(1391)] = void 0, this.emit("languageChanged", u), this[f(2303)][f(1635)](f(638), u)) : this[f(1391)] = void 0, e[f(2457)]((...l) => this.t(...l)), t && t(c, (...l) => this.t(...l)); }, i = (c) => { - var f, b; - const d = r; - !x && !c && this[d(1151)][d(410)] && (c = []); - const u = be(c) ? c : c && c[0], l = this[d(2849)][d(2272)](u) ? u : this.services[d(1484)].getBestMatchFromCodes(be(c) ? [c] : c); - l && (!this.language && s(l), this[d(2506)][d(2621)] || this[d(2506)][d(1355)](l), (b = (f = this[d(1151)][d(410)]) == null ? void 0 : f.cacheUserLanguage) == null || b.call(f, l)), this[d(1006)](l, (h) => { + var d, g; + const u = r; + !x && !c && this[u(1791)][u(3114)] && (c = []); + const f = be(c) ? c : c && c[0], l = this[u(872)][u(3068)](f) ? f : this.services.languageUtils[u(1252)](be(c) ? [c] : c); + l && (!this[u(3090)] && s(l), this.translator[u(3090)] || this[u(1781)][u(759)](l), (g = (d = this[u(1791)][u(3114)]) == null ? void 0 : d[u(1274)]) == null || g.call(d, l)), this[u(1264)](l, (h) => { n(h, l); }); }; - return !x && this[r(1151)].languageDetector && !this.services[r(410)].async ? i(this[r(1151)][r(410)][r(864)]()) : !x && this.services.languageDetector && this[r(1151)][r(410)][r(372)] ? this[r(1151)][r(410)][r(864)][r(2910)] === 0 ? this[r(1151)][r(410)][r(864)]()[r(857)](i) : this[r(1151)][r(410)][r(864)](i) : i(x), e; + return !x && this[r(1791)][r(3114)] && !this.services[r(3114)].async ? i(this[r(1791)][r(3114)][r(1088)]()) : !x && this[r(1791)][r(3114)] && this.services[r(3114)][r(2416)] ? this.services[r(3114)][r(1088)][r(2710)] === 0 ? this[r(1791)][r(3114)][r(1088)]()[r(2517)](i) : this[r(1791)].languageDetector[r(1088)](i) : i(x), e; } - [a(1242)](x, t, r) { + [a(3101)](x, t, r) { const e = a, s = (n, i, ...c) => { - const d = K; - let u; - typeof i !== d(2517) ? u = this.options[d(2401)]([n, i][d(653)](c)) : u = { ...i }, u[d(1581)] = u[d(1581)] || s[d(1581)], u[d(1476)] = u[d(1476)] || s.lngs, u.ns = u.ns || s.ns, u[d(1459)] !== "" && (u[d(1459)] = u[d(1459)] || r || s[d(1459)]); - const l = this[d(961)].keySeparator || "."; + const u = K; let f; - return u.keyPrefix && Array[d(2573)](n) ? f = n[d(1429)]((b) => (typeof b == "function" && (b = Qt(b, { ...this.options, ...i })), "" + u.keyPrefix + l + b)) : (typeof n === d(2855) && (n = Qt(n, { ...this[d(961)], ...i })), f = u[d(1459)] ? "" + u[d(1459)] + l + n : n), this.t(f, u); + typeof i !== u(1304) ? f = this.options[u(2556)]([n, i][u(2700)](c)) : f = { ...i }, f[u(3164)] = f[u(3164)] || s[u(3164)], f[u(2941)] = f[u(2941)] || s[u(2941)], f.ns = f.ns || s.ns, f[u(1073)] !== "" && (f[u(1073)] = f[u(1073)] || r || s[u(1073)]); + const l = this[u(2876)].keySeparator || "."; + let d; + return f[u(1073)] && Array[u(3255)](n) ? d = n[u(1930)]((g) => { + const h = u; + return typeof g === h(1936) && (g = Qt(g, { ...this.options, ...i })), "" + f[h(1073)] + l + g; + }) : (typeof n === u(1936) && (n = Qt(n, { ...this[u(2876)], ...i })), d = f[u(1073)] ? "" + f[u(1073)] + l + n : n), this.t(d, f); }; - return be(x) ? s.lng = x : s[e(1476)] = x, s.ns = t, s[e(1459)] = r, s; + return be(x) ? s[e(3164)] = x : s[e(2941)] = x, s.ns = t, s[e(1073)] = r, s; } t(...x) { var r; - return (r = this[a(2506)]) == null ? void 0 : r.translate(...x); + const t = a; + return (r = this[t(1781)]) == null ? void 0 : r[t(1543)](...x); } - [a(1193)](...x) { + [a(1842)](...x) { var r; - const t = a; - return (r = this.translator) == null ? void 0 : r[t(1193)](...x); + return (r = this[a(1781)]) == null ? void 0 : r.exists(...x); } - setDefaultNamespace(x) { + [a(2999)](x) { const t = a; - this[t(961)][t(2094)] = x; + this[t(2876)][t(1589)] = x; } - [a(722)](x, t = {}) { + [a(3254)](x, t = {}) { const r = a; - if (!this[r(1049)]) return this[r(3053)][r(405)](r(1203), this[r(1978)]), !1; - if (!this[r(1978)] || !this[r(1978)][r(2910)]) return this[r(3053)][r(405)](r(576), this.languages), !1; - const e = t[r(1581)] || this[r(2533)] || this[r(1978)][0], s = this[r(961)] ? this[r(961)][r(430)] : !1, n = this[r(1978)][this.languages[r(2910)] - 1]; - if (e[r(2071)]() === r(1223)) return !0; - const i = (c, d) => { - const u = r, l = this[u(1151)][u(559)].state[c + "|" + d]; + if (!this[r(3029)]) return this[r(2303)][r(1114)](r(2006), this[r(1056)]), !1; + if (!this[r(1056)] || !this[r(1056)][r(2710)]) return this[r(2303)][r(1114)](r(961), this[r(1056)]), !1; + const e = t[r(3164)] || this[r(1049)] || this[r(1056)][0], s = this[r(2876)] ? this[r(2876)].fallbackLng : !1, n = this[r(1056)][this.languages.length - 1]; + if (e.toLowerCase() === "cimode") return !0; + const i = (c, u) => { + const f = r, l = this[f(1791)][f(1577)].state[c + "|" + u]; return l === -1 || l === 0 || l === 2; }; - if (t[r(840)]) { - const c = t[r(840)](this, i); + if (t[r(2806)]) { + const c = t.precheck(this, i); if (c !== void 0) return c; } - return !!(this[r(1340)](e, x) || !this.services.backendConnector.backend || this[r(961)][r(804)] && !this[r(961)].partialBundledLanguages || i(e, x) && (!s || i(n, x))); + return !!(this.hasResourceBundle(e, x) || !this[r(1791)].backendConnector[r(1231)] || this.options[r(1673)] && !this[r(2876)].partialBundledLanguages || i(e, x) && (!s || i(n, x))); } - [a(1660)](x, t) { - const r = a, e = J0(); - return this[r(961)].ns ? (be(x) && (x = [x]), x[r(1548)]((s) => { + [a(585)](x, t) { + const r = a, e = Q0(); + return this.options.ns ? (be(x) && (x = [x]), x[r(2617)]((s) => { const n = r; - this.options.ns.indexOf(s) < 0 && this[n(961)].ns.push(s); - }), this[r(1006)]((s) => { - e[r(510)](), t && t(s); - }), e) : (t && t(), Promise[r(510)]()); + this[n(2876)].ns.indexOf(s) < 0 && this[n(2876)].ns[n(3062)](s); + }), this[r(1264)]((s) => { + e.resolve(), t && t(s); + }), e) : (t && t(), Promise.resolve()); } - loadLanguages(x, t) { - const r = a, e = J0(); + [a(1477)](x, t) { + const r = a, e = Q0(); be(x) && (x = [x]); - const s = this[r(961)][r(370)] || [], n = x[r(2951)]((i) => s[r(1316)](i) < 0 && this[r(1151)].languageUtils[r(665)](i)); - return n.length ? (this[r(961)].preload = s[r(653)](n), this[r(1006)]((i) => { - e[r(510)](), t && t(i); - }), e) : (t && t(), Promise[r(510)]()); + const s = this[r(2876)].preload || [], n = x[r(2581)]((i) => s[r(2436)](i) < 0 && this[r(1791)][r(1476)][r(1149)](i)); + return n[r(2710)] ? (this[r(2876)][r(1125)] = s[r(2700)](n), this[r(1264)]((i) => { + e.resolve(), t && t(i); + }), e) : (t && t(), Promise.resolve()); } - [a(1756)](x) { + [a(2335)](x) { var s, n; const t = a; - if (x || (x = this[t(2533)] || (((s = this[t(1978)]) == null ? void 0 : s[t(2910)]) > 0 ? this[t(1978)][0] : this[t(2621)])), !x) return t(1154); + if (x || (x = this.resolvedLanguage || (((s = this[t(1056)]) == null ? void 0 : s[t(2710)]) > 0 ? this[t(1056)][0] : this[t(3090)])), !x) return t(880); try { - const i = new Intl.Locale(x); - if (i && i[t(1528)]) { - const c = i[t(1528)](); - if (c && c[t(2416)]) return c[t(2416)]; + const i = new Intl[t(2711)](x); + if (i && i[t(2063)]) { + const c = i[t(2063)](); + if (c && c[t(2443)]) return c[t(2443)]; } } catch { } - const r = ["ar", t(1496), t(1105), t(1853), "xaa", t(1563), t(915), t(2970), t(2590), t(2408), "acm", t(2842), t(2331), t(566), t(1609), "adf", t(1044), t(2176), "aec", t(2794), t(1096), t(2436), t(1126), "arb", t(2784), t(367), t(2061), t(2666), t(1583), t(1082), t(2568), t(2114), t(1777), t(1552), "bbz", t(2545), "he", "iw", "ps", t(1023), t(1800), t(1925), t(1557), t(731), "ug", "ur", t(575), t(1364), t(2940), "ji", "yi", t(535), t(2610), t(2313), "fa", "jpr", "peo", t(1930), "prs", "dv", t(1287), "ckb"], e = ((n = this[t(1151)]) == null ? void 0 : n[t(1484)]) || new Wa(Ya()); - return x[t(2071)]().indexOf(t(2317)) > 1 ? "ltr" : r.indexOf(e[t(1179)](x)) > -1 || x[t(2071)]()[t(1316)](t(745)) > 1 ? t(1154) : t(2834); + const r = ["ar", "shu", t(554), "ssh", t(1957), t(2721), "yud", t(971), t(745), t(1238), "acm", t(2469), "acw", t(700), t(2382), t(2572), t(2336), t(3091), t(831), "afb", t(2326), "apc", t(962), "arb", "arq", t(2500), t(1834), "arz", t(1569), t(2750), t(3112), "ayl", t(1972), t(1980), "bbz", "pga", "he", "iw", "ps", "pbt", t(2291), t(1349), t(1339), t(1480), "ug", "ur", t(2971), t(2070), t(3063), "ji", "yi", t(3034), t(964), t(1510), "fa", t(1763), t(3226), t(1407), t(1876), "dv", t(2299), t(616)], e = ((n = this[t(1791)]) == null ? void 0 : n.languageUtils) || new Ka(er()); + return x[t(1945)]()[t(2436)](t(1444)) > 1 ? t(2364) : r[t(2436)](e[t(594)](x)) > -1 || x[t(1945)]()[t(2436)]("-arab") > 1 ? t(880) : "ltr"; } - static createInstance(x = {}, t) { - const r = a, e = new ex(x, t); - return e[r(2464)] = ex.createInstance, e; + static [a(775)](x = {}, t) { + const r = a, e = new xx(x, t); + return e[r(775)] = xx.createInstance, e; } - [a(818)](x = {}, t = hx) { - const r = a, e = x[r(2753)]; - e && delete x[r(2753)]; - const s = { ...this.options, ...x, isClone: !0 }, n = new ex(s); - if ((x[r(825)] !== void 0 || x[r(2159)] !== void 0) && (n[r(3053)] = n[r(3053)][r(1022)](x)), ["store", "services", "language"][r(1548)]((c) => { + [a(2345)](x = {}, t = px) { + const r = a, e = x[r(1515)]; + e && delete x[r(1515)]; + const s = { ...this[r(2876)], ...x, isClone: !0 }, n = new xx(s); + if ((x[r(3158)] !== void 0 || x[r(632)] !== void 0) && (n.logger = n.logger[r(2472)](x)), ["store", r(1791), r(3090)][r(2617)]((c) => { n[c] = this[c]; - }), n[r(1151)] = { ...this[r(1151)] }, n.services[r(3039)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(2381)](n) }, e) { - const c = Object[r(548)](this.store[r(571)])[r(2304)]((d, u) => { + }), n.services = { ...this[r(1791)] }, n[r(1791)][r(2254)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(1386)](n) }, e) { + const c = Object.keys(this[r(872)][r(2663)])[r(1630)]((u, f) => { const l = r; - return d[u] = { ...this[l(2849)][l(571)][u] }, d[u] = Object.keys(d[u])[l(2304)]((f, b) => (f[b] = { ...d[u][b] }, f), d[u]), d; + return u[f] = { ...this[l(872)][l(2663)][f] }, u[f] = Object[l(2123)](u[f])[l(1630)]((d, g) => (d[g] = { ...u[f][g] }, d), u[f]), u; }, {}); - n[r(2849)] = new Ba(c, s), n[r(1151)][r(2008)] = n[r(2849)]; + n[r(872)] = new Wa(c, s), n[r(1791)].resourceStore = n[r(872)]; } - return x.interpolation && (n[r(1151)][r(1686)] = new Qa(s)), n[r(2506)] = new Fx(n.services, s), n[r(2506)].on("*", (c, ...d) => { - n[r(1452)](c, ...d); - }), n.init(s, t), n.translator[r(961)] = s, n.translator[r(559)][r(1151)].utils = { hasLoadedNamespace: n.hasLoadedNamespace[r(2381)](n) }, n; + return x.interpolation && (n[r(1791)][r(1896)] = new Xa(s)), n.translator = new Tx(n[r(1791)], s), n[r(1781)].on("*", (c, ...u) => { + n[r(2256)](c, ...u); + }), n[r(1775)](s, t), n[r(1781)][r(2876)] = s, n[r(1781)][r(1577)][r(1791)][r(2254)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(1386)](n) }, n; } - [a(1613)]() { + [a(1363)]() { const x = a; - return { options: this[x(961)], store: this[x(2849)], language: this[x(2621)], languages: this[x(1978)], resolvedLanguage: this[x(2533)] }; + return { options: this[x(2876)], store: this[x(872)], language: this[x(3090)], languages: this.languages, resolvedLanguage: this.resolvedLanguage }; } } -const Xe = ex[a(2464)](); -Xe[a(2464)], Xe.dir, Xe[a(2993)], Xe[a(1006)], Xe[a(672)], Xe[a(1030)], Xe[a(1355)], Xe.getFixedT, Xe.t, Xe[a(1193)], Xe.setDefaultNamespace, Xe[a(722)], Xe[a(1660)], Xe[a(2115)]; -function Oi() { +const Xe = xx.createInstance(); +Xe[a(775)], Xe.dir, Xe[a(1775)], Xe[a(1264)], Xe.reloadResources, Xe[a(1728)], Xe.changeLanguage, Xe[a(3101)], Xe.t, Xe.exists, Xe[a(2999)], Xe.hasLoadedNamespace, Xe.loadNamespaces, Xe[a(1477)]; +function Ni() { const o = a; - if (typeof navigator !== o(1691) && navigator[o(2621)]) return navigator.language === "zh-CN" ? "zh-CN" : o(788); + if (typeof navigator !== o(993) && navigator[o(3090)]) return navigator[o(3090)] === o(707) ? "zh-CN" : o(2260); try { - const x = typeof require !== o(1691) ? require : void 0; + const x = typeof require < "u" ? require : void 0; if (x) - return x(o(1014))[o(2232)].uiLocale[o(1904)]("zh") ? "zh-CN" : "en-US"; + return x(o(2062))[o(746)][o(1353)][o(760)]("zh") ? o(707) : o(2260); } catch { } - return o(788); + return "en-US"; } -let Ys = Oi(); -const Di = { "zh-CN": {}, "en-US": {} }; +let Qs = Ni(); +const qi = { "zh-CN": {}, "en-US": {} }; function Xt(o) { - const x = a, t = o === x(2156) ? hi : pi, r = Di[o]; - return { ...t, ...r }; + const x = o === "zh-CN" ? fi : li, t = qi[o]; + return { ...x, ...t }; } -function ji() { - return Ys; +function Ai() { + return Qs; } function Yt(o, x = {}) { const t = a; - let e = Xt(Ys)[o]; - return e ? typeof e === t(1443) ? e[t(1840)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; + let e = Xt(Qs)[o]; + return e ? typeof e === t(1361) ? e[t(1521)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; } -const Mi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Li = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, $i = (o) => Li[o], Ui = (o) => o[a(1840)](Mi, $i); -let xr = { bindI18n: "languageChanged", bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: Ui }; -const Hi = (o = {}) => { - xr = { ...xr, ...o }; -}, zi = { type: "3rdParty", init(o) { +const Oi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Di = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, ji = (o) => Di[o], Mi = (o) => o[a(1521)](Oi, ji); +let tr = { bindI18n: a(638), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: Mi }; +const Li = (o = {}) => { + tr = { ...tr, ...o }; +}, $i = { type: a(1175), init(o) { const x = a; - Hi(o.options[x(922)]); + Li(o[x(2876)][x(770)]); } }; -!Xe[a(1049)] && Xe[a(1030)](zi).init({ resources: { "zh-CN": { translation: Xt(a(2156)) }, "en-US": { translation: Xt(a(788)) } }, lng: ji(), fallbackLng: a(788), interpolation: { escapeValue: !1 } }); -globalThis.sdpppX2 = globalThis[a(2920)] || {}; -const xx = globalThis.sdpppX2, R0 = []; -xx[a(2813)] = xx[a(2813)] || {}, xx[a(2813)].add = function(o, x) { +!Xe.isInitialized && Xe[a(1728)]($i).init({ resources: { "zh-CN": { translation: Xt(a(707)) }, "en-US": { translation: Xt(a(2260)) } }, lng: Ai(), fallbackLng: a(2260), interpolation: { escapeValue: !1 } }); +globalThis[a(3093)] = globalThis[a(3093)] || {}; +const tx = globalThis[a(3093)], _0 = []; +tx[a(1561)] = tx[a(1561)] || {}, tx[a(1561)].add = function(o, x) { const t = a; - typeof x === t(2855) ? R0[t(816)]([o, { formatter: x, setter: null }]) : R0[t(816)]([o, x]); + typeof x == "function" ? _0[t(3062)]([o, { formatter: x, setter: null }]) : _0[t(3062)]([o, x]); }; -function Vi(o, x, t) { +function Ui(o, x, t) { var c; - const r = a, e = R0[r(1801)](([d]) => d == r(2367)), s = R0.find(([d]) => ia(d, o.type)) || e; + const r = a, e = _0.find(([u]) => u == K(1297)), s = _0[r(3146)](([u]) => ia(u, o[r(2076)])) || e; let n = !1; if (s) { - const d = s[1].setter; - d && (n = !!d(o, x, t)); + const u = s[1][r(1153)]; + u && (n = !!u(o, x, t)); } - !n && (o[r(1367)][x][r(2398)] = t), (c = (Ne[r(1064)] || Ne[r(812)][r(713)]).activeWorkflow) == null || c[r(3005)][r(1013)](); + !n && (o[r(1816)][x][r(2446)] = t), (c = (Te[r(2542)] || Te[r(1797)].workflow)[r(3176)]) == null || c[r(1534)][r(1091)](); } function Nx(o) { - const x = a, t = {}, r = R0[x(1801)](([e]) => e == "__DEFAULT__"); - return o[x(2066)][x(1548)]((e) => { + const x = a, t = {}, r = _0[x(3146)](([e]) => e == "__DEFAULT__"); + return o.nodes.forEach((e) => { const s = x; - if (!e[s(1367)] || e[s(1367)][s(2910)] == 0) return; - const n = R0[s(1801)](([i]) => ia(i, e[s(506)])) || r; + if (!e[s(1816)] || e[s(1816)].length == 0) return; + const n = _0[s(3146)](([i]) => ia(i, e[s(2076)])) || r; if (n) try { - const i = n[1].formatter(e); - i && (t[e.id] = i[s(1367)][s(1429)]((c) => c.value)); + const i = n[1][s(1934)](e); + i && (t[e.id] = i[s(1816)][s(1930)]((c) => c[s(2446)])); } catch { t[e.id] = []; } @@ -4360,59 +4408,59 @@ function ea(o, x) { var s, n, i; const t = a; if (!o) return { widgetableID: "", widgetablePath: "", nodes: {}, nodeIndexes: [], options: {}, note: "" }; - const r = o[t(2066)][t(1429)]((c) => { - const d = t; - if (c[d(458)] != 0) return; - const u = mx(c); - if (!u || u[d(1904)](".") || !c[d(1367)] || c.widgets.length == 0) return; - let l = R0[d(1801)](([p]) => ia(p, c[d(506)])); - if (l) try { - const p = l[1][d(986)](c); - if (p) return p.id = c.id, p[d(1621)] = p[d(1367)][d(2304)]((v, k) => v + (k[d(823)] || 12), 0), p; - } catch (p) { - return { id: c.id, title: u, uiWeightSum: 12, widgets: [{ outputType: d(1493), value: Yt(d(2034), l[0]) + (p[d(2732)] || p || ""), name: "", options: {} }] }; - } - if (!u[d(1904)]("#")) return null; - let f = c[d(1367)]; - const b = R0.find(([p]) => p == d(2367)); - if (b) { - const p = b[1][d(986)](c); - if (p) return Object[d(1841)](p, { uiWeightSum: p.widgets[d(2304)]((v, k) => v + (k[d(823)] || 12), 0) }); - } - const h = { id: c.id, title: u, widgets: f[d(1429)]((p) => ({ name: p[d(1138)] || p[d(1907)], outputType: p[d(506)] || "string", value: p.value, options: p[d(961)] })) }; - return Object.assign(h, { uiWeightSum: h[d(1367)][d(2304)]((p, v) => p + (v.uiWeight || 12), 0) }); - })[t(2951)](Boolean)[t(2786)]((c, d) => { + const r = o[t(669)][t(1930)]((c) => { const u = t; - let l = mx(c), f = mx(d); - return l = l.startsWith("#") ? l[u(2527)](1)[u(1823)]() : l[u(1823)](), f = f[u(1904)]("#") ? f[u(2527)](1)[u(1823)]() : f[u(1823)](), l[u(2686)](f); - }), e = ((n = (s = o[t(2066)][t(1801)]((c) => c[t(506)] == t(547) && c[t(2877)][t(742)](/SD-?PPP/i))) == null ? void 0 : s[t(1367)][0]) == null ? void 0 : n.value) || ""; - return { widgetablePath: ((i = x[t(1682)][t(2612)]) == null ? void 0 : i.sdppp_workflow_alias) || x[t(2075)], widgetableID: x[t(1682)].id, nodes: r[t(2304)]((c, d) => (c[d.id] = d, c), {}), note: e, nodeIndexes: r[t(1429)]((c) => c.id), options: {} }; + if (c[u(1742)] != 0) return; + const f = bx(c); + if (!f || f[u(760)](".") || !c.widgets || c[u(1816)][u(2710)] == 0) return; + let l = _0[u(3146)](([m]) => ia(m, c[u(2076)])); + if (l) try { + const m = l[1][u(1934)](c); + if (m) return m.id = c.id, m.uiWeightSum = m[u(1816)].reduce((v, k) => v + (k[u(1970)] || 12), 0), m; + } catch (m) { + return { id: c.id, title: f, uiWeightSum: 12, widgets: [{ outputType: u(490), value: Yt(u(2580), l[0]) + (m[u(1044)] || m || ""), name: "", options: {} }] }; + } + if (!f.startsWith("#")) return null; + let d = c[u(1816)]; + const g = _0[u(3146)](([m]) => m == "__DEFAULT__"); + if (g) { + const m = g[1][u(1934)](c); + if (m) return Object.assign(m, { uiWeightSum: m.widgets[u(1630)]((v, k) => v + (k.uiWeight || 12), 0) }); + } + const h = { id: c.id, title: f, widgets: d[u(1930)]((m) => ({ name: m.label || m[u(2641)], outputType: m[u(2076)] || "string", value: m[u(2446)], options: m[u(2876)] })) }; + return Object.assign(h, { uiWeightSum: h[u(1816)][u(1630)]((m, v) => m + (v[u(1970)] || 12), 0) }); + })[t(2581)](Boolean)[t(841)]((c, u) => { + const f = t; + let l = bx(c), d = bx(u); + return l = l[f(760)]("#") ? l[f(1387)](1)[f(2337)]() : l.trim(), d = d[f(760)]("#") ? d[f(1387)](1)[f(2337)]() : d[f(2337)](), l.localeCompare(d); + }), e = ((n = (s = o.nodes.find((c) => c.type == t(1960) && c.title.match(/SD-?PPP/i))) == null ? void 0 : s[t(1816)][0]) == null ? void 0 : n[t(2446)]) || ""; + return { widgetablePath: ((i = x[t(3266)].extra) == null ? void 0 : i.sdppp_workflow_alias) || x[t(2474)], widgetableID: x.activeState.id, nodes: r.reduce((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: r.map((c) => c.id), options: {} }; } function ia(o, x) { - const t = a, r = o[t(1840)](/[.+^${}()|[\]\\]/g, t(2802)).replace(/\*/g, ".*").replace(/\?/g, "."); - return new RegExp("^" + r + "$")[t(2266)](x); + const t = a, r = o.replace(/[.+^${}()|[\]\\]/g, t(898)).replace(/\*/g, ".*").replace(/\?/g, "."); + return new RegExp("^" + r + "$")[t(2346)](x); } -function mx(o, x = "") { +function bx(o, x = "") { var e; const t = a; - let r = x || o[t(2877)] || ""; - return o[t(849)] && (r[t(1904)]("#") || r[t(1904)](".")) ? o[t(849)]("sdppp_widgetable_title", r) : r = ((e = o[t(1684)]) == null ? void 0 : e[t(2778)]) || r, r; + let r = x || o[t(2141)] || ""; + return o.setProperty && (r[t(760)]("#") || r.startsWith(".")) ? o.setProperty(t(2502), r) : r = ((e = o[t(3005)]) == null ? void 0 : e[t(2502)]) || r, r; } -xx.getNodeTitle = mx; -const xa = ox.extend(a(2096)), tr = /* @__PURE__ */ new Set(); -ke[a(2651)]("setWidgetValue", async (o) => { +tx[a(2049)] = bx; +const xa = ix[a(919)]("mesh:workflow"), ar = /* @__PURE__ */ new Set(); +Ie.implementAction(a(622), async (o) => { const x = a; - return requestAnimationFrame(En), o[x(2323)][x(1548)](({ nodeID: t, widgetIndex: r, value: e }) => { - const s = x, n = Ne[s(2546)][s(2066)][s(1801)]((i) => i.id == t); - Vi(n, r, e); + return requestAnimationFrame(Pn), o[x(3237)][x(2617)](({ nodeID: t, widgetIndex: r, value: e }) => { + const s = x, n = Te[s(1843)][s(669)].find((i) => i.id == t); + Ui(n, r, e); }), { success: !0 }; -}), ke[a(2651)](a(1403), async (o) => { - const x = a, { workflow_path: t } = o, r = !tr[x(2239)](t), e = o[x(2461)] || r; - tr[x(1604)](t); - const s = Ne[x(812)].workflow || Ne[x(1064)], n = s[x(2509)][x(1801)]((c) => c[x(1727)] === t || c[x(2075)] === t || c[x(2075)] === x(891) + t); +}), Ie.implementAction("openWorkflow", async (o) => { + const x = a, { workflow_path: t } = o, r = !ar[x(2348)](t), e = o[x(2837)] || r; + ar.add(t); + const s = Te.extensionManager[x(538)] || Te[x(2542)], n = s[x(3236)][x(3146)]((c) => c[x(1057)] === t || c[x(2474)] === t || c.path === x(1032) + t); if (!e) { - const c = await Bi(s, n); - if (xa(x(2387) + c), c) await Gx(s, n); + const c = await zi(s, n); + if (xa("reset=false but needsReset: " + c), c) await Gx(s, n); else try { await i(s, n); } catch { @@ -4421,928 +4469,930 @@ ke[a(2651)]("setWidgetValue", async (o) => { return { success: !0 }; } return await Gx(s, n), { success: !0 }; - async function i(c, d) { - const u = x; - xa(u(562) + d[u(2075)], d.initialState), Ne[u(1064)] == c ? await d[u(1758)]() : (await c[u(1403)](d), await Ne[u(558)](JSON[u(1584)](JSON[u(1749)](d.initialState)), !0, !0, d, {})); + async function i(c, u) { + const f = x; + xa(f(3194) + u.path, u[f(837)]), Te.workflowManager == c ? await u[f(1429)]() : (await c[f(2249)](u), await Te[f(3053)](JSON[f(2774)](JSON.stringify(u[f(837)])), !0, !0, u, {})); } -}), ke.implementAction(a(2273), async function(o) { +}), Ie.implementAction(a(3049), async function(o) { const x = a; let { workflow_content: t, workflow_path: r } = o; - return t[x(2612)] = { ...t[x(2612)] || {}, sdppp_workflow_alias: r }, await Ne.loadGraphData(t), { success: !0 }; -}), ke[a(2651)](a(1791), async (o) => { + return t.extra = { ...t.extra || {}, sdppp_workflow_alias: r }, await Te[x(3053)](t), { success: !0 }; +}), Ie.implementAction(a(1045), async (o) => { var s; - const x = a, t = Ne[x(1064)] || Ne[x(812)][x(713)]; + const x = a, t = Te[x(2542)] || Te[x(1797)].workflow; (s = t.syncWorkflows) == null || s.call(t), await new Promise((n) => requestAnimationFrame(n)); - let e = t[x(2509)][x(1429)]((n) => n[x(2075)][x(1840)](x(891), "")); + let e = t[x(3236)][x(1930)]((n) => n[x(2474)][x(1521)](x(1032), "")); try { - const n = new Headers(), i = localStorage[x(2984)](x(1767)); - i && n.set(x(2162), i); - const c = await fetch(x(1279), { headers: n }); - let d = []; - c.ok && (d = (await c.json())[x(2425)][x(1429)]((l) => l[x(1840)](x(891), ""))), e[x(2786)]((u, l) => { - const f = x, b = d[f(416)](u), h = d[f(416)](l); - return b && !h ? -1 : !b && h ? 1 : u.localeCompare(l); + const n = new Headers(), i = localStorage[x(2215)](x(900)); + i && n[x(780)]("comfy-user", i); + const c = await fetch(x(3138), { headers: n }); + let u = []; + c.ok && (u = (await c[x(1207)]())[x(2986)][x(1930)]((l) => l.replace(x(1032), ""))), e.sort((f, l) => { + const d = x, g = u.includes(f), h = u[d(2978)](l); + return g && !h ? -1 : !g && h ? 1 : f[d(925)](l); }); } catch { } return { workflows: e, error: "" }; -}), ke[a(2651)](a(2481), async (o) => { +}), Ie[a(2922)]("saveWorkflow", async (o) => { var n; - const x = a, { workflow_path: t, from_sid: r } = o, e = Ne[x(1064)] || Ne[x(812)][x(713)], s = e[x(2509)][x(1801)]((i) => i.fullFilename === t || i.path === t || i[x(2075)] === "workflows/" + t); - if (!s) throw new Error(x(2787)); - return ((n = e[x(1750)]) == null ? void 0 : n.id) != s.id && await Ne[x(1403)](t, r, !1), s.changeTracker[x(1013)](), await e[x(2481)](s), { success: !0 }; + const x = a, { workflow_path: t, from_sid: r } = o, e = Te.workflowManager || Te[x(1797)][x(538)], s = e[x(3236)][x(3146)]((i) => i[x(1057)] === t || i[x(2474)] === t || i.path === x(1032) + t); + if (!s) throw new Error(x(2173)); + return ((n = e[x(3176)]) == null ? void 0 : n.id) != s.id && await Te[x(2249)](t, r, !1), s[x(1534)][x(1091)](), await e.saveWorkflow(s), { success: !0 }; }); -async function Bi(o, x) { +async function zi(o, x) { var e, s, n; const t = a; - if (!x || !(((e = o[t(1750)]) == null ? void 0 : e.id) === x.id)) return !1; - if ((s = x[t(3005)]) != null && s[t(1013)]) try { - x[t(3005)][t(1013)](); + if (!x || !(((e = o[t(3176)]) == null ? void 0 : e.id) === x.id)) return !1; + if ((s = x.changeTracker) != null && s[t(1091)]) try { + x.changeTracker[t(1091)](); } catch (i) { - console[t(405)]("Failed to check workflow changeTracker state:", i); + console[t(1114)]("Failed to check workflow changeTracker state:", i); } try { - const i = (n = Ne[t(2546)]) == null ? void 0 : n.serialize(), c = x[t(1682)]; + const i = (n = Te.graph) == null ? void 0 : n[t(3043)](), c = x[t(3266)]; if (!i || !c) return !1; - const d = JSON[t(1749)](i), u = JSON[t(1749)](c); - return d !== u; + const u = JSON[t(1031)](i), f = JSON.stringify(c); + return u !== f; } catch (i) { - return console[t(405)](t(447), i), !1; + return console[t(1114)](t(2828), i), !1; } } async function Gx(o, x) { var e; const t = a; - xa(t(407) + x[t(2075)]); + xa(t(3150) + x[t(2474)]); async function r(s, n) { const i = t; - Ne[i(1064)] == s ? await n[i(1758)]() : (await s[i(1403)](n), await Ne[i(558)](JSON[i(1584)](JSON[i(1749)](n[i(1682)])), !0, !0, n, {})); + Te.workflowManager == s ? await n[i(1429)]() : (await s[i(2249)](n), await Te.loadGraphData(JSON[i(2774)](JSON.stringify(n[i(3266)])), !0, !0, n, {})); } - if ((x.isOpen || (e = o[t(1500)]) != null && e.call(o, x)) && o[t(756)][t(2910)] === 1) { - const s = o[t(1592)](); - o.openWorkflow(s); - } else await r(o, o[t(756)][0] == x ? o.openWorkflows[1] : o[t(756)][0]); - await o[t(2179)](x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); + if ((x[t(2917)] || (e = o[t(2917)]) != null && e.call(o, x)) && o.openWorkflows[t(2710)] === 1) { + const s = o.createTemporary(); + o[t(2249)](s); + } else await r(o, o[t(910)][0] == x ? o.openWorkflows[1] : o[t(910)][0]); + await o[t(1246)](x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); } -const nx = ox[a(1393)](a(2180)), M0 = /* @__PURE__ */ new Map(); +const ox = ix[a(919)](a(2584)), j0 = /* @__PURE__ */ new Map(); let qx = []; const Jx = { hijacked: !1, originalQueuePrompt: null }; -function Zi(o, x) { - const t = a, r = M0[t(2620)](o); - nx(t(1372), o, x, r, M0), r && r[t(1428)](x); +function Hi(o, x) { + const t = a, r = j0[t(674)](o); + ox(t(2801), o, x, r, j0), r && r[t(1751)](x); } -ke.implementAction(a(1424), async () => { +Ie[a(2922)]("stopAll", async () => { const o = a; - await Ne[o(1039)].clearItems(o(815)), await Ne[o(1039)].interrupt(); - const x = Array[o(2725)](M0.values()); - M0[o(2149)](); + await Te.api[o(2090)](o(2284)), await Te[o(706)].interrupt(); + const x = Array[o(2047)](j0.values()); + j0.clear(); for (const t of x) try { - t[o(661)](new Error(o(761))); + t[o(916)](new Error(o(954))); } catch { } return { success: !0 }; -}), ke.implementAction("run", async function* (o) { +}), Ie.implementAction(a(2565), async function* (o) { const x = a; - Wi(), qx = []; - const t = o.size; - ke.store[x(964)]({ lastError: "", widgetableErrors: {} }); - const r = await Ji(t, o[x(458)]); - nx(x(2528), r[x(1464)], r[x(2074)], "prompt_ids: ", r[x(1011)]), Xi(r), yield* Yi(r[x(1011)]); + Vi(), qx = []; + const t = o[x(846)]; + Ie[x(872)].setState({ lastError: "", widgetableErrors: {} }); + const r = await Zi(t, o.mode); + ox(x(1507), r[x(2717)], r[x(1111)], x(660), r.promptIds), Gi(r), yield* Ji(r[x(789)]); }); -function Wi() { +function Vi() { const o = a; if (Jx.hijacked) return; - const x = E0[o(1390)]; - Jx[o(1435)] = x, E0.queuePrompt = async (...t) => { + const x = R0[o(2664)]; + Jx[o(586)] = x, R0[o(2664)] = async (...t) => { const r = o; try { - const e = await x[r(1175)](E0, ...t), s = e == null ? void 0 : e.prompt_id; - return s && Qi(s), qx[r(816)]({ error: null, result: e, prompt_id: e[r(1927)] }), e; + const e = await x[r(1522)](R0, ...t), s = e == null ? void 0 : e.prompt_id; + return s && Ki(s), qx[r(3062)]({ error: null, result: e, prompt_id: e[r(931)] }), e; } catch (e) { - throw qx[r(816)]({ error: e, result: null, prompt_id: "" }), e; + throw qx[r(3062)]({ error: e, result: null, prompt_id: "" }), e; } - }, Jx[o(2402)] = !0; + }, Jx[o(1367)] = !0; } -async function Ki(o) { - await Ne[a(1390)](1, o); +async function Bi(o) { + await Te.queuePrompt(1, o); } -async function Gi(o) { - const x = a, t = await Ne[x(3010)](Ne[x(2546)]); +async function Wi(o) { + const x = a, t = await Te[x(2178)](Te[x(1843)]); for (let r = 0; r < o; r++) - await E0[x(1390)](1, t); + await R0[x(2664)](1, t); } -async function Ji(o, x = a(2161)) { +async function Zi(o, x = a(2012)) { var e, s; const t = a, r = { promptIds: [], hasError: !1, generalError: "", nodeErrors: {} }; try { - x === t(1039) ? await Gi(o) : await Ki(o); + x === t(706) ? await Wi(o) : await Bi(o); for (const n of qx) - if (n[t(1493)]) r[t(1464)] = !0, r.nodeErrors = n[t(1493)][t(2332)] ? e2(n[t(1493)][t(2332)].node_errors) : {}, Object[t(1841)](r[t(2074)], { "-1": ((s = (e = n.error[t(2332)]) == null ? void 0 : e[t(1493)]) == null ? void 0 : s[t(2732)]) || n[t(1493)].message }); + if (n[t(490)]) r[t(2717)] = !0, r[t(1111)] = n[t(490)][t(2963)] ? Qi(n[t(490)][t(2963)][t(3241)]) : {}, Object[t(661)](r[t(1111)], { "-1": ((s = (e = n[t(490)][t(2963)]) == null ? void 0 : e.error) == null ? void 0 : s[t(1044)]) || n[t(490)][t(1044)] }); else { - const i = n[t(2712)][t(1927)]; - r[t(1011)][t(816)](i); + const i = n[t(676)][t(931)]; + r[t(789)][t(3062)](i); } } catch (n) { - nx(t(1707), n[t(2491)]), r.hasError = !0, r.nodeErrors = { "-1": n.message || n[t(1725)]() }; + ox(t(2631), n.stack), r[t(2717)] = !0, r[t(1111)] = { "-1": n[t(1044)] || n[t(2732)]() }; } return r; } -function Qi(o) { +function Ki(o) { const x = a; let t, r; const e = new Promise((s, n) => { t = s, r = n; }); - M0[x(2454)](o, { promise: e, resolveImage: t, rejectImage: r }); + j0[x(780)](o, { promise: e, resolveImage: t, rejectImage: r }); } -function Xi({ hasError: o, generalError: x, nodeErrors: t }) { +function Gi({ hasError: o, generalError: x, nodeErrors: t }) { const r = a; - o && (x ? ke.store[r(964)]({ lastError: x }) : ke[r(2849)].setState({ widgetableErrors: t })); + o && (x ? Ie.store[r(738)]({ lastError: x }) : Ie[r(872)][r(738)]({ widgetableErrors: t })); } -async function* Yi(o) { +async function* Ji(o) { const x = a, t = /* @__PURE__ */ new Map(); for (const r of o) { - const e = M0.get(r); - e && t[x(2454)](r, e.promise); + const e = j0[x(674)](r); + e && t[x(780)](r, e[x(810)]); } - if (t[x(2873)] !== 0) - for (nx(x(1993)); t[x(2873)] > 0; ) { - const r = Array.from(t[x(807)]()), e = r[x(1429)](([i, c]) => c.then((d) => ({ prompt_id: i, images: d }))), { prompt_id: s, images: n } = await Promise[x(538)](e); - nx(x(1483), s), t[x(1239)](s), M0[x(1239)](s), yield { success: !0, prompt_ids: [s], images: n }; + if (t.size !== 0) + for (ox(x(1789)); t[x(846)] > 0; ) { + const r = Array[x(2047)](t.entries()), e = r[x(1930)](([i, c]) => c[x(2517)]((u) => ({ prompt_id: i, images: u }))), { prompt_id: s, images: n } = await Promise.race(e); + ox(x(2127), s), t.delete(s), j0[x(875)](s), yield { success: !0, prompt_ids: [s], images: n }; } } -function e2(o) { +function Qi(o) { const x = a, t = {}; - return Object[x(548)](o)[x(1548)]((r) => { - const e = x, s = r.split(":")[0], n = Ne[e(2546)][e(2066)][e(1801)]((i) => i.id == s); - t[s] = "[" + ((n == null ? void 0 : n[e(2877)]) || s) + "]" + o[r][e(2311)].map(JSON[e(1749)])[e(952)](` + return Object[x(2123)](o)[x(2617)]((r) => { + const e = x, s = r[e(3263)](":")[0], n = Te[e(1843)].nodes[e(3146)]((i) => i.id == s); + t[s] = "[" + ((n == null ? void 0 : n[e(2141)]) || s) + "]" + o[r][e(2800)][e(1930)](JSON[e(1031)])[e(1592)](` `); }), t; } -const x2 = ox.extend(a(2841)); -ke.implementAction(a(1215), async (o) => { +const Xi = ix[a(919)](a(2406)); +Ie[a(2922)](a(1586), async (o) => { const x = a; - return o != null && o[x(2562)] && x2(x(1065), o[x(2562)]), { comfyVersion: x(1617), hostVersion: (o == null ? void 0 : o[x(2562)]) ?? "" }; -}), ke[a(2651)](a(1705), async (o) => { - const x = a, { node_id: t, title: r } = o, e = Ne.graph.nodes[x(1801)]((s) => s.id == t); - if (!e) throw new Error(x(1632)); - return e.title = r, e[x(849)](x(2778), r), { success: !0 }; -}), ke[a(2651)](a(895), async () => { - const o = a, x = await fetch(o(422)); - return x[o(735)] == 404 ? { error: Yt(o(605)), success: !1 } : x[o(735)] == 200 ? { success: !0 } : { error: Yt("Failed to reboot ComfyUI") + x[o(570)], success: !1 }; -}), ke.implementAction("setComfyOrgAPIKey", async (o) => { + return o != null && o[x(2040)] && Xi(x(2765), o[x(2040)]), { comfyVersion: x(1319), hostVersion: (o == null ? void 0 : o.hostVersion) ?? "" }; +}), Ie[a(2922)](a(965), async (o) => { + const x = a, { node_id: t, title: r } = o, e = Te[x(1843)][x(669)][x(3146)]((s) => s.id == t); + if (!e) throw new Error(x(2504)); + return e[x(2141)] = r, e[x(2946)](x(2502), r), { success: !0 }; +}), Ie[a(2922)](a(1570), async () => { + const o = a, x = await fetch(o(1374)); + return x[o(1227)] == 404 ? { error: Yt(o(1074)), success: !1 } : x[o(1227)] == 200 ? { success: !0 } : { error: Yt(o(3006)) + x[o(757)], success: !1 }; +}), Ie[a(2922)](a(2775), async (o) => { const x = a, { api_key: t } = o; - return localStorage.setItem(x(1196), t), location[x(1119)](), { success: !0 }; -}), ke[a(2651)](a(693), async () => { + return localStorage.setItem(x(729), t), location[x(1646)](), { success: !0 }; +}), Ie[a(2922)]("logout", async () => { const o = a; - return document[o(795)](o(1122))[o(2315)][o(2659)](), { success: !0 }; + return document[o(1126)](".pi-sign-out")[o(2157)][o(1433)](), { success: !0 }; }); -function t2(o) { - const x = a, t = atob(o), r = t[x(2910)], e = new Uint8Array(r); +function Yi(o) { + const x = a, t = atob(o), r = t.length, e = new Uint8Array(r); for (let s = 0; s < r; s++) - e[s] = t[x(425)](s); + e[s] = t[x(901)](s); return e; } -ke.implementAction(a(2279), async (o, x, t) => { - const r = a, { fileName: e, overwrite: s = !0, mimeType: n = r(518), dataBase64: i } = o; - if (t != null && t[r(930)]) throw new DOMException("Upload aborted", r(1258)); - const c = t2(i), d = new Blob([c], { type: n }), u = new FormData(); - u.append(r(2894), d), u.append(r(1639), e), u[r(1187)](r(1406), r(s ? 1448 : 2027)); - const l = await fetch(r(1350), { method: "POST", body: u, signal: t }); - if (!l.ok) throw new Error(r(2911) + l[r(570)]); - const f = await l.json(); - return { name: f[r(1648)] + "/" + f[r(1907)] }; +Ie[a(2922)]("uploadComfyImageFromUXP", async (o, x, t) => { + const r = a, { fileName: e, overwrite: s = !0, mimeType: n = r(1682), dataBase64: i } = o; + if (t != null && t[r(896)]) throw new DOMException(r(969), r(2749)); + const c = Yi(i), u = new Blob([c], { type: n }), f = new FormData(); + f.append(r(705), u), f.append("filename", e), f[r(2289)](r(2608), r(s ? 727 : 2657)); + const l = await fetch(r(680), { method: "POST", body: f, signal: t }); + if (!l.ok) throw new Error(r(1454) + l[r(757)]); + const d = await l.json(); + return { name: d[r(1563)] + "/" + d[r(2641)] }; }); -const en = a(2452), a2 = [en, a(1934), "2024-11-05", a(1016)], _x = a(2658), xn = Ke([g(), W()[a(2837)]()]), tn = g(), r2 = S({ progressToken: B(xn) })[a(2829)](), r0 = S({ _meta: B(r2) })[a(2829)](), x0 = S({ method: g(), params: B(r0) }), ix = S({ _meta: B(S({})[a(2829)]()) })[a(2829)](), m0 = S({ method: g(), params: B(ix) }), s0 = S({ _meta: B(S({})[a(2829)]()) })[a(2829)](), Ox = Ke([g(), W()[a(2837)]()]), an = S({ jsonrpc: te(_x), id: Ox }).merge(x0)[a(426)](), s2 = (o) => an[a(3031)](o)[a(1472)], rn = S({ jsonrpc: te(_x) }).merge(m0)[a(426)](), n2 = (o) => rn[a(3031)](o)[a(1472)], sn = S({ jsonrpc: te(_x), id: Ox, result: s0 })[a(426)](), ar = (o) => sn.safeParse(o).success; -var y0; +const Xs = a(1479), ec = [Xs, "2025-03-26", "2024-11-05", a(3143)], Ox = a(2804), Ys = Ve([b(), W()[a(2755)]()]), en = b(), xc = S({ progressToken: B(Ys) })[a(1307)](), r0 = S({ _meta: B(xc) }).passthrough(), x0 = S({ method: b(), params: B(r0) }), cx = S({ _meta: B(S({})[a(1307)]()) })[a(1307)](), m0 = S({ method: b(), params: B(cx) }), s0 = S({ _meta: B(S({})[a(1307)]()) })[a(1307)](), Dx = Ve([b(), W().int()]), xn = S({ jsonrpc: xe(Ox), id: Dx }).merge(x0)[a(1116)](), tc = (o) => xn[a(3098)](o)[a(3031)], tn = S({ jsonrpc: xe(Ox) })[a(1779)](m0).strict(), ac = (o) => tn.safeParse(o)[a(3031)], an = S({ jsonrpc: xe(Ox), id: Dx, result: s0 })[a(1116)](), rr = (o) => an[a(3098)](o).success; +var v0; (function(o) { const x = a; - o[o.ConnectionClosed = -32e3] = x(969), o[o[x(1158)] = -32001] = x(1158), o[o[x(424)] = -32700] = x(424), o[o[x(1546)] = -32600] = x(1546), o[o.MethodNotFound = -32601] = "MethodNotFound", o[o[x(2801)] = -32602] = x(2801), o[o[x(2427)] = -32603] = x(2427); -})(y0 || (y0 = {})); -const nn = S({ jsonrpc: te(_x), id: Ox, error: S({ code: W()[a(2837)](), message: g(), data: B(S0()) }) }).strict(), o2 = (o) => nn[a(3031)](o).success; -Ke([an, rn, sn, nn]); -const ta = s0[a(426)](), aa = m0[a(1393)]({ method: te(a(801)), params: ix[a(1393)]({ requestId: Ox, reason: g()[a(1712)]() }) }), cx = S({ name: g(), title: B(g()) })[a(2829)](), on = cx[a(1393)]({ version: g() }), i2 = S({ experimental: B(S({})[a(2829)]()), sampling: B(S({})[a(2829)]()), elicitation: B(S({})[a(2829)]()), roots: B(S({ listChanged: B(ee()) })[a(2829)]()) })[a(2829)](), cn = x0.extend({ method: te("initialize"), params: r0[a(1393)]({ protocolVersion: g(), capabilities: i2, clientInfo: on }) }), c2 = S({ experimental: B(S({})[a(2829)]()), logging: B(S({}).passthrough()), completions: B(S({})[a(2829)]()), prompts: B(S({ listChanged: B(ee()) })[a(2829)]()), resources: B(S({ subscribe: B(ee()), listChanged: B(ee()) })[a(2829)]()), tools: B(S({ listChanged: B(ee()) })[a(2829)]()) }).passthrough(), d2 = s0[a(1393)]({ protocolVersion: g(), capabilities: c2, serverInfo: on, instructions: B(g()) }), dn = m0.extend({ method: te(a(2023)) }), ra = x0[a(1393)]({ method: te(a(1319)) }), u2 = S({ progress: W(), total: B(W()), message: B(g()) })[a(2829)](), sa = m0[a(1393)]({ method: te("notifications/progress"), params: ix[a(585)](u2)[a(1393)]({ progressToken: xn }) }), Dx = x0[a(1393)]({ params: r0[a(1393)]({ cursor: B(tn) })[a(1712)]() }), jx = s0[a(1393)]({ nextCursor: B(tn) }), un = S({ uri: g(), mimeType: B(g()), _meta: B(S({})[a(2829)]()) }).passthrough(), ln = un[a(1393)]({ text: g() }), fn = un[a(1393)]({ blob: g()[a(1276)]() }), hn = cx.extend({ uri: g(), description: B(g()), mimeType: B(g()), _meta: B(S({}).passthrough()) }), l2 = cx[a(1393)]({ uriTemplate: g(), description: B(g()), mimeType: B(g()), _meta: B(S({})[a(2829)]()) }), f2 = Dx[a(1393)]({ method: te(a(1164)) }), h2 = jx[a(1393)]({ resources: ve(hn) }), p2 = Dx.extend({ method: te(a(1898)) }), m2 = jx[a(1393)]({ resourceTemplates: ve(l2) }), b2 = x0[a(1393)]({ method: te(a(2309)), params: r0[a(1393)]({ uri: g() }) }), g2 = s0[a(1393)]({ contents: ve(Ke([ln, fn])) }), y2 = m0[a(1393)]({ method: te("notifications/resources/list_changed") }), v2 = x0.extend({ method: te(a(2489)), params: r0.extend({ uri: g() }) }), w2 = x0.extend({ method: te(a(1233)), params: r0[a(1393)]({ uri: g() }) }), S2 = m0[a(1393)]({ method: te(a(1555)), params: ix[a(1393)]({ uri: g() }) }), k2 = S({ name: g(), description: B(g()), required: B(ee()) })[a(2829)](), P2 = cx.extend({ description: B(g()), arguments: B(ve(k2)), _meta: B(S({})[a(2829)]()) }), I2 = Dx.extend({ method: te(a(2806)) }), E2 = jx[a(1393)]({ prompts: ve(P2) }), C2 = x0[a(1393)]({ method: te("prompts/get"), params: r0[a(1393)]({ name: g(), arguments: B(De(g())) }) }), ca = S({ type: te(a(768)), text: g(), _meta: B(S({})[a(2829)]()) })[a(2829)](), da = S({ type: te(a(2894)), data: g()[a(1276)](), mimeType: g(), _meta: B(S({})[a(2829)]()) }).passthrough(), ua = S({ type: te(a(1560)), data: g().base64(), mimeType: g(), _meta: B(S({})[a(2829)]()) })[a(2829)](), R2 = S({ type: te(a(1721)), resource: Ke([ln, fn]), _meta: B(S({})[a(2829)]()) })[a(2829)](), F2 = hn[a(1393)]({ type: te(a(1357)) }), pn = Ke([ca, da, ua, F2, R2]), N2 = S({ role: Ie([a(552), a(3009)]), content: pn })[a(2829)](), q2 = s0[a(1393)]({ description: B(g()), messages: ve(N2) }), T2 = m0[a(1393)]({ method: te(a(577)) }), A2 = S({ title: B(g()), readOnlyHint: B(ee()), destructiveHint: B(ee()), idempotentHint: B(ee()), openWorldHint: B(ee()) })[a(2829)](), _2 = cx.extend({ description: B(g()), inputSchema: S({ type: te(a(2517)), properties: B(S({})[a(2829)]()), required: B(ve(g())) })[a(2829)](), outputSchema: B(S({ type: te(a(2517)), properties: B(S({}).passthrough()), required: B(ve(g())) }).passthrough()), annotations: B(A2), _meta: B(S({}).passthrough()) }), O2 = Dx[a(1393)]({ method: te("tools/list") }), D2 = jx[a(1393)]({ tools: ve(_2) }), mn = s0[a(1393)]({ content: ve(pn)[a(2889)]([]), structuredContent: S({}).passthrough()[a(1712)](), isError: B(ee()) }); -mn.or(s0.extend({ toolResult: S0() })); -const j2 = x0[a(1393)]({ method: te(a(3063)), params: r0[a(1393)]({ name: g(), arguments: B(De(S0())) }) }), M2 = m0[a(1393)]({ method: te("notifications/tools/list_changed") }), bn = Ie([a(825), "info", a(1614), a(2397), a(1493), "critical", a(2479), a(460)]), L2 = x0[a(1393)]({ method: te("logging/setLevel"), params: r0[a(1393)]({ level: bn }) }), $2 = m0.extend({ method: te(a(2640)), params: ix[a(1393)]({ level: bn, logger: B(g()), data: S0() }) }), U2 = S({ name: g()[a(1712)]() })[a(2829)](), H2 = S({ hints: B(ve(U2)), costPriority: B(W()[a(2310)](0)[a(544)](1)), speedPriority: B(W()[a(2310)](0)[a(544)](1)), intelligencePriority: B(W()[a(2310)](0).max(1)) })[a(2829)](), z2 = S({ role: Ie([a(552), a(3009)]), content: Ke([ca, da, ua]) })[a(2829)](), V2 = x0[a(1393)]({ method: te(a(648)), params: r0[a(1393)]({ messages: ve(z2), systemPrompt: B(g()), includeContext: B(Ie([a(1598), a(832), a(2460)])), temperature: B(W()), maxTokens: W()[a(2837)](), stopSequences: B(ve(g())), metadata: B(S({})[a(2829)]()), modelPreferences: B(H2) }) }), gn = s0.extend({ model: g(), stopReason: B(Ie([a(2804), a(525), a(1087)]).or(g())), role: Ie([a(552), a(3009)]), content: Zs(a(506), [ca, da, ua]) }), B2 = S({ type: te(a(1964)), title: B(g()), description: B(g()), default: B(ee()) })[a(2829)](), Z2 = S({ type: te("string"), title: B(g()), description: B(g()), minLength: B(W()), maxLength: B(W()), format: B(Ie(["email", a(3032), a(1457), a(739)])) })[a(2829)](), W2 = S({ type: Ie([a(1730), a(2421)]), title: B(g()), description: B(g()), minimum: B(W()), maximum: B(W()) })[a(2829)](), K2 = S({ type: te(a(1443)), title: B(g()), description: B(g()), enum: ve(g()), enumNames: B(ve(g())) })[a(2829)](), G2 = Ke([B2, Z2, W2, K2]), J2 = x0.extend({ method: te(a(595)), params: r0[a(1393)]({ message: g(), requestedSchema: S({ type: te(a(2517)), properties: De(g(), G2), required: B(ve(g())) })[a(2829)]() }) }), yn = s0[a(1393)]({ action: Ie([a(710), a(2189), a(3025)]), content: B(De(g(), S0())) }), Q2 = S({ type: te(a(913)), uri: g() }).passthrough(), X2 = S({ type: te(a(775)), name: g() })[a(2829)](), Y2 = x0[a(1393)]({ method: te(a(2619)), params: r0.extend({ ref: Ke([X2, Q2]), argument: S({ name: g(), value: g() }).passthrough(), context: B(S({ arguments: B(De(g(), g())) })) }) }), ec = s0[a(1393)]({ completion: S({ values: ve(g())[a(544)](100), total: B(W()[a(2837)]()), hasMore: B(ee()) })[a(2829)]() }), xc = S({ uri: g()[a(1904)](a(1568)), name: B(g()), _meta: B(S({})[a(2829)]()) }).passthrough(), tc = x0.extend({ method: te(a(379)) }), vn = s0[a(1393)]({ roots: ve(xc) }), ac = m0[a(1393)]({ method: te(a(2729)) }); -Ke([ra, cn, Y2, L2, C2, I2, f2, p2, b2, v2, w2, j2, O2]), Ke([aa, sa, dn, ac]), Ke([ta, gn, yn, vn]), Ke([ra, V2, J2, tc]), Ke([aa, sa, $2, S2, y2, M2, T2]), Ke([ta, d2, ec, q2, E2, h2, m2, g2, mn, D2]); -class _0 extends Error { + o[o[x(1247)] = -32e3] = x(1247), o[o.RequestTimeout = -32001] = "RequestTimeout", o[o[x(892)] = -32700] = "ParseError", o[o.InvalidRequest = -32600] = x(3202), o[o[x(3120)] = -32601] = "MethodNotFound", o[o[x(2557)] = -32602] = x(2557), o[o[x(2898)] = -32603] = "InternalError"; +})(v0 || (v0 = {})); +const rn = S({ jsonrpc: xe(Ox), id: Dx, error: S({ code: W()[a(2755)](), message: b(), data: B(k0()) }) })[a(1116)](), rc = (o) => rn[a(3098)](o)[a(3031)]; +Ve([xn, tn, an, rn]); +const ta = s0[a(1116)](), aa = m0[a(919)]({ method: xe(a(1924)), params: cx[a(919)]({ requestId: Dx, reason: b().optional() }) }), ux = S({ name: b(), title: B(b()) })[a(1307)](), sn = ux[a(919)]({ version: b() }), sc = S({ experimental: B(S({}).passthrough()), sampling: B(S({})[a(1307)]()), elicitation: B(S({})[a(1307)]()), roots: B(S({ listChanged: B(Q()) }).passthrough()) }).passthrough(), nn = x0.extend({ method: xe(a(3104)), params: r0[a(919)]({ protocolVersion: b(), capabilities: sc, clientInfo: sn }) }), nc = S({ experimental: B(S({})[a(1307)]()), logging: B(S({})[a(1307)]()), completions: B(S({}).passthrough()), prompts: B(S({ listChanged: B(Q()) })[a(1307)]()), resources: B(S({ subscribe: B(Q()), listChanged: B(Q()) })[a(1307)]()), tools: B(S({ listChanged: B(Q()) })[a(1307)]()) })[a(1307)](), oc = s0[a(919)]({ protocolVersion: b(), capabilities: nc, serverInfo: sn, instructions: B(b()) }), on = m0.extend({ method: xe(a(3217)) }), ra = x0[a(919)]({ method: xe(a(2509)) }), ic = S({ progress: W(), total: B(W()), message: B(b()) })[a(1307)](), sa = m0[a(919)]({ method: xe(a(3179)), params: cx[a(1779)](ic)[a(919)]({ progressToken: Ys }) }), jx = x0[a(919)]({ params: r0[a(919)]({ cursor: B(en) })[a(2478)]() }), Mx = s0[a(919)]({ nextCursor: B(en) }), cn = S({ uri: b(), mimeType: B(b()), _meta: B(S({}).passthrough()) })[a(1307)](), un = cn[a(919)]({ text: b() }), fn = cn[a(919)]({ blob: b()[a(3046)]() }), ln = ux[a(919)]({ uri: b(), description: B(b()), mimeType: B(b()), _meta: B(S({})[a(1307)]()) }), cc = ux[a(919)]({ uriTemplate: b(), description: B(b()), mimeType: B(b()), _meta: B(S({}).passthrough()) }), uc = jx[a(919)]({ method: xe("resources/list") }), fc = Mx[a(919)]({ resources: we(ln) }), lc = jx[a(919)]({ method: xe(a(2847)) }), dc = Mx[a(919)]({ resourceTemplates: we(cc) }), hc = x0[a(919)]({ method: xe(a(952)), params: r0[a(919)]({ uri: b() }) }), pc = s0.extend({ contents: we(Ve([un, fn])) }), mc = m0.extend({ method: xe(a(1629)) }), bc = x0[a(919)]({ method: xe(a(2611)), params: r0.extend({ uri: b() }) }), gc = x0[a(919)]({ method: xe(a(2276)), params: r0[a(919)]({ uri: b() }) }), yc = m0[a(919)]({ method: xe("notifications/resources/updated"), params: cx[a(919)]({ uri: b() }) }), vc = S({ name: b(), description: B(b()), required: B(Q()) })[a(1307)](), wc = ux[a(919)]({ description: B(b()), arguments: B(we(vc)), _meta: B(S({})[a(1307)]()) }), Sc = jx[a(919)]({ method: xe(a(1396)) }), kc = Mx[a(919)]({ prompts: we(wc) }), Pc = x0[a(919)]({ method: xe(a(1143)), params: r0[a(919)]({ name: b(), arguments: B(qe(b())) }) }), ca = S({ type: xe("text"), text: b(), _meta: B(S({})[a(1307)]()) }).passthrough(), ua = S({ type: xe(a(705)), data: b()[a(3046)](), mimeType: b(), _meta: B(S({}).passthrough()) })[a(1307)](), fa = S({ type: xe(a(2188)), data: b().base64(), mimeType: b(), _meta: B(S({})[a(1307)]()) }).passthrough(), Ic = S({ type: xe(a(2988)), resource: Ve([un, fn]), _meta: B(S({})[a(1307)]()) })[a(1307)](), Ec = ln[a(919)]({ type: xe(a(689)) }), dn = Ve([ca, ua, fa, Ec, Ic]), Rc = S({ role: Pe(["user", a(678)]), content: dn })[a(1307)](), Cc = s0[a(919)]({ description: B(b()), messages: we(Rc) }), _c = m0.extend({ method: xe("notifications/prompts/list_changed") }), Fc = S({ title: B(b()), readOnlyHint: B(Q()), destructiveHint: B(Q()), idempotentHint: B(Q()), openWorldHint: B(Q()) })[a(1307)](), Tc = ux[a(919)]({ description: B(b()), inputSchema: S({ type: xe(a(1304)), properties: B(S({})[a(1307)]()), required: B(we(b())) })[a(1307)](), outputSchema: B(S({ type: xe("object"), properties: B(S({}).passthrough()), required: B(we(b())) })[a(1307)]()), annotations: B(Fc), _meta: B(S({})[a(1307)]()) }), Nc = jx.extend({ method: xe(a(2744)) }), qc = Mx[a(919)]({ tools: we(Tc) }), hn = s0[a(919)]({ content: we(dn)[a(2485)]([]), structuredContent: S({})[a(1307)]()[a(2478)](), isError: B(Q()) }); +hn.or(s0.extend({ toolResult: k0() })); +const Ac = x0[a(919)]({ method: xe(a(2769)), params: r0[a(919)]({ name: b(), arguments: B(qe(k0())) }) }), Oc = m0[a(919)]({ method: xe(a(1600)) }), pn = Pe([a(3158), a(1241), a(2417), a(1245), a(490), a(980), "alert", a(1140)]), Dc = x0[a(919)]({ method: xe(a(3014)), params: r0.extend({ level: pn }) }), jc = m0.extend({ method: xe(a(989)), params: cx[a(919)]({ level: pn, logger: B(b()), data: k0() }) }), Mc = S({ name: b()[a(2478)]() })[a(1307)](), Lc = S({ hints: B(we(Mc)), costPriority: B(W()[a(521)](0)[a(753)](1)), speedPriority: B(W()[a(521)](0)[a(753)](1)), intelligencePriority: B(W()[a(521)](0)[a(753)](1)) })[a(1307)](), $c = S({ role: Pe([a(1747), "assistant"]), content: Ve([ca, ua, fa]) }).passthrough(), Uc = x0[a(919)]({ method: xe(a(2180)), params: r0[a(919)]({ messages: we($c), systemPrompt: B(b()), includeContext: B(Pe([a(2833), "thisServer", a(1379)])), temperature: B(W()), maxTokens: W()[a(2755)](), stopSequences: B(we(b())), metadata: B(S({})[a(1307)]()), modelPreferences: B(Lc) }) }), mn = s0[a(919)]({ model: b(), stopReason: B(Pe(["endTurn", a(839), a(918)]).or(b())), role: Pe(["user", a(678)]), content: Vs("type", [ca, ua, fa]) }), zc = S({ type: xe(a(3106)), title: B(b()), description: B(b()), default: B(Q()) })[a(1307)](), Hc = S({ type: xe(a(1361)), title: B(b()), description: B(b()), minLength: B(W()), maxLength: B(W()), format: B(Pe([a(2255), a(776), a(1591), a(1313)])) })[a(1307)](), Vc = S({ type: Pe([a(2665), "integer"]), title: B(b()), description: B(b()), minimum: B(W()), maximum: B(W()) })[a(1307)](), Bc = S({ type: xe("string"), title: B(b()), description: B(b()), enum: we(b()), enumNames: B(we(b())) })[a(1307)](), Wc = Ve([zc, Hc, Vc, Bc]), Zc = x0[a(919)]({ method: xe(a(1206)), params: r0[a(919)]({ message: b(), requestedSchema: S({ type: xe(a(1304)), properties: qe(b(), Wc), required: B(we(b())) })[a(1307)]() }) }), bn = s0.extend({ action: Pe([a(995), a(1504), "cancel"]), content: B(qe(b(), k0())) }), Kc = S({ type: xe(a(1731)), uri: b() })[a(1307)](), Gc = S({ type: xe(a(2429)), name: b() })[a(1307)](), Jc = x0[a(919)]({ method: xe(a(1502)), params: r0[a(919)]({ ref: Ve([Gc, Kc]), argument: S({ name: b(), value: b() })[a(1307)](), context: B(S({ arguments: B(qe(b(), b())) })) }) }), Qc = s0.extend({ completion: S({ values: we(b())[a(753)](100), total: B(W()[a(2755)]()), hasMore: B(Q()) })[a(1307)]() }), Xc = S({ uri: b()[a(760)]("file://"), name: B(b()), _meta: B(S({}).passthrough()) }).passthrough(), Yc = x0[a(919)]({ method: xe(a(2089)) }), gn = s0[a(919)]({ roots: we(Xc) }), e2 = m0[a(919)]({ method: xe(a(597)) }); +Ve([ra, nn, Jc, Dc, Pc, Sc, uc, lc, hc, bc, gc, Ac, Nc]), Ve([aa, sa, on, e2]), Ve([ta, mn, bn, gn]), Ve([ra, Uc, Zc, Yc]), Ve([aa, sa, jc, yc, mc, Oc, _c]), Ve([ta, oc, Qc, Cc, kc, fc, dc, pc, hn, qc]); +class q0 extends Error { constructor(x, t, r) { const e = a; - super(e(1720) + x + ": " + t), this.code = x, this.data = r, this[e(1907)] = e(2986); + super(e(2129) + x + ": " + t), this.code = x, this[e(2663)] = r, this[e(2641)] = "McpError"; } } -const rc = 6e4; -class sc { +const x2 = 6e4; +class t2 { constructor(x) { const t = a; - this[t(941)] = x, this[t(1107)] = 0, this[t(1380)] = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this[t(428)] = /* @__PURE__ */ new Map(), this[t(1928)] = /* @__PURE__ */ new Map(), this._progressHandlers = /* @__PURE__ */ new Map(), this[t(2582)] = /* @__PURE__ */ new Map(), this[t(2985)] = /* @__PURE__ */ new Set(), this.setNotificationHandler(aa, (r) => { - const e = t, s = this[e(780)][e(2620)](r.params[e(1386)]); - s == null || s[e(1973)](r.params[e(866)]); - }), this[t(1977)](sa, (r) => { - this._onprogress(r); - }), this[t(921)](ra, (r) => ({})); + this[t(1648)] = x, this[t(1556)] = 0, this._requestHandlers = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this[t(1445)] = /* @__PURE__ */ new Map(), this[t(539)] = /* @__PURE__ */ new Map(), this[t(2086)] = /* @__PURE__ */ new Map(), this._timeoutInfo = /* @__PURE__ */ new Map(), this[t(2135)] = /* @__PURE__ */ new Set(), this[t(1529)](aa, (r) => { + const e = t, s = this[e(1831)].get(r[e(1656)][e(3204)]); + s == null || s[e(1158)](r[e(1656)][e(1371)]); + }), this[t(1529)](sa, (r) => { + this[t(3071)](r); + }), this[t(1219)](ra, (r) => ({})); } - [a(438)](x, t, r, e, s = !1) { + [a(3227)](x, t, r, e, s = !1) { const n = a; - this[n(2582)].set(x, { timeoutId: setTimeout(e, t), startTime: Date[n(2356)](), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); + this[n(1533)].set(x, { timeoutId: setTimeout(e, t), startTime: Date[n(3275)](), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); } - _resetTimeout(x) { - const t = a, r = this[t(2582)][t(2620)](x); + [a(3123)](x) { + const t = a, r = this._timeoutInfo[t(674)](x); if (!r) return !1; - const e = Date[t(2356)]() - r[t(2087)]; - if (r[t(2391)] && e >= r[t(2391)]) - throw this[t(2582)].delete(x), new _0(y0.RequestTimeout, "Maximum total timeout exceeded", { maxTotalTimeout: r[t(2391)], totalElapsed: e }); - return clearTimeout(r.timeoutId), r[t(2892)] = setTimeout(r[t(488)], r[t(454)]), !0; + const e = Date.now() - r[t(1348)]; + if (r[t(2709)] && e >= r[t(2709)]) + throw this[t(1533)][t(875)](x), new q0(v0[t(2160)], t(1441), { maxTotalTimeout: r[t(2709)], totalElapsed: e }); + return clearTimeout(r.timeoutId), r[t(2984)] = setTimeout(r.onTimeout, r[t(973)]), !0; } - [a(2258)](x) { - const t = a, r = this[t(2582)][t(2620)](x); - r && (clearTimeout(r.timeoutId), this[t(2582)][t(1239)](x)); + _cleanupTimeout(x) { + const t = a, r = this[t(1533)][t(674)](x); + r && (clearTimeout(r[t(2984)]), this[t(1533)][t(875)](x)); } - async connect(x) { + async [a(1645)](x) { const t = a; var r, e, s; - this[t(2645)] = x; - const n = (r = this[t(1130)]) === null || r === void 0 ? void 0 : r.onclose; - this[t(2645)][t(2779)] = () => { - const d = t; - n == null || n(), this[d(1675)](); - }; - const i = (e = this.transport) === null || e === void 0 ? void 0 : e[t(2900)]; - this[t(2645)][t(2900)] = (d) => { + this[t(1448)] = x; + const n = (r = this.transport) === null || r === void 0 ? void 0 : r[t(2235)]; + this._transport[t(2235)] = () => { const u = t; - i == null || i(d), this[u(2867)](d); + n == null || n(), this[u(2250)](); }; - const c = (s = this[t(2645)]) === null || s === void 0 ? void 0 : s[t(1981)]; - this._transport[t(1981)] = (d, u) => { + const i = (e = this[t(516)]) === null || e === void 0 ? void 0 : e[t(934)]; + this._transport[t(934)] = (u) => { + i == null || i(u), this._onerror(u); + }; + const c = (s = this._transport) === null || s === void 0 ? void 0 : s[t(1803)]; + this._transport[t(1803)] = (u, f) => { const l = t; - c == null || c(d, u), ar(d) || o2(d) ? this[l(2751)](d) : s2(d) ? this[l(1882)](d, u) : n2(d) ? this._onnotification(d) : this._onerror(new Error("Unknown message type: " + JSON.stringify(d))); - }, await this[t(2645)][t(817)](); + c == null || c(u, f), rr(u) || rc(u) ? this._onresponse(u) : tc(u) ? this[l(2525)](u, f) : ac(u) ? this[l(1897)](u) : this[l(1931)](new Error(l(939) + JSON[l(1031)](u))); + }, await this[t(1448)][t(1392)](); } - _onclose() { + [a(2250)]() { const x = a; var t; - const r = this[x(1928)]; - this[x(1928)] = /* @__PURE__ */ new Map(), this[x(3047)][x(2149)](), this[x(2985)][x(2149)](), this[x(2645)] = void 0, (t = this[x(2779)]) === null || t === void 0 || t[x(1175)](this); - const e = new _0(y0[x(969)], x(3038)); - for (const s of r[x(2323)]()) + const r = this[x(539)]; + this[x(539)] = /* @__PURE__ */ new Map(), this[x(2086)][x(2376)](), this[x(2135)].clear(), this[x(1448)] = void 0, (t = this[x(2235)]) === null || t === void 0 || t[x(1522)](this); + const e = new q0(v0[x(1247)], x(974)); + for (const s of r[x(3237)]()) s(e); } - [a(2867)](x) { + [a(1931)](x) { const t = a; var r; - (r = this[t(2900)]) === null || r === void 0 || r[t(1175)](this, x); + (r = this.onerror) === null || r === void 0 || r[t(1522)](this, x); } - [a(1155)](x) { + [a(1897)](x) { const t = a; var r; - const e = (r = this[t(428)][t(2620)](x[t(392)])) !== null && r !== void 0 ? r : this[t(1742)]; - e !== void 0 && Promise.resolve()[t(857)](() => e(x)).catch((s) => this[t(2867)](new Error(t(482) + s))); + const e = (r = this._notificationHandlers.get(x[t(2423)])) !== null && r !== void 0 ? r : this.fallbackNotificationHandler; + e !== void 0 && Promise[t(2457)]().then(() => e(x))[t(742)]((s) => this[t(1931)](new Error(t(1228) + s))); } - [a(1882)](x, t) { + [a(2525)](x, t) { const r = a; var e, s, n, i; - const c = (e = this[r(1380)].get(x[r(392)])) !== null && e !== void 0 ? e : this[r(1261)]; + const c = (e = this[r(3245)][r(674)](x.method)) !== null && e !== void 0 ? e : this[r(1194)]; if (c === void 0) { - (s = this[r(2645)]) === null || s === void 0 || s[r(1237)]({ jsonrpc: r(2658), id: x.id, error: { code: y0[r(1069)], message: "Method not found" } })[r(1508)]((l) => this[r(2867)](new Error(r(2673) + l))); + (s = this[r(1448)]) === null || s === void 0 || s[r(1838)]({ jsonrpc: r(2804), id: x.id, error: { code: v0[r(3120)], message: r(2386) } })[r(742)]((l) => this._onerror(new Error("Failed to send an error response: " + l))); return; } - const d = new AbortController(); - this[r(780)][r(2454)](x.id, d); - const u = { signal: d.signal, sessionId: (n = this[r(2645)]) === null || n === void 0 ? void 0 : n[r(1289)], _meta: (i = x.params) === null || i === void 0 ? void 0 : i[r(820)], sendNotification: (l) => this.notification(l, { relatedRequestId: x.id }), sendRequest: (l, f, b) => this[r(714)](l, f, { ...b, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t[r(2297)], requestId: x.id, requestInfo: t == null ? void 0 : t.requestInfo }; - Promise[r(510)]()[r(857)](() => c(x, u)).then((l) => { - const f = r; - var b; - if (!d[f(2009)][f(930)]) - return (b = this[f(2645)]) === null || b === void 0 ? void 0 : b[f(1237)]({ result: l, jsonrpc: f(2658), id: x.id }); + const u = new AbortController(); + this[r(1831)][r(780)](x.id, u); + const f = { signal: u[r(2111)], sessionId: (n = this[r(1448)]) === null || n === void 0 ? void 0 : n[r(520)], _meta: (i = x.params) === null || i === void 0 ? void 0 : i._meta, sendNotification: (l) => this[r(2487)](l, { relatedRequestId: x.id }), sendRequest: (l, d, g) => this.request(l, d, { ...g, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t[r(849)], requestId: x.id, requestInfo: t == null ? void 0 : t[r(1878)] }; + Promise.resolve()[r(2517)](() => c(x, f))[r(2517)]((l) => { + const d = r; + var g; + if (!u[d(2111)][d(896)]) + return (g = this[d(1448)]) === null || g === void 0 ? void 0 : g.send({ result: l, jsonrpc: d(2804), id: x.id }); }, (l) => { - const f = r; - var b, h; - if (!d[f(2009)].aborted) - return (b = this[f(2645)]) === null || b === void 0 ? void 0 : b[f(1237)]({ jsonrpc: f(2658), id: x.id, error: { code: Number[f(1595)](l.code) ? l[f(3068)] : y0.InternalError, message: (h = l[f(2732)]) !== null && h !== void 0 ? h : f(366) } }); - })[r(1508)]((l) => this._onerror(new Error(r(1819) + l)))[r(2644)](() => { + const d = r; + var g, h; + if (!u.signal[d(896)]) + return (g = this[d(1448)]) === null || g === void 0 ? void 0 : g[d(1838)]({ jsonrpc: d(2804), id: x.id, error: { code: Number[d(2928)](l[d(2427)]) ? l[d(2427)] : v0[d(2898)], message: (h = l[d(1044)]) !== null && h !== void 0 ? h : d(1328) } }); + })[r(742)]((l) => this[r(1931)](new Error(r(2108) + l)))[r(1284)](() => { const l = r; - this[l(780)][l(1239)](x.id); + this[l(1831)][l(875)](x.id); }); } - [a(2705)](x) { - const t = a, { progressToken: r, ...e } = x.params, s = Number(r), n = this[t(3047)].get(s); + _onprogress(x) { + const t = a, { progressToken: r, ...e } = x[t(1656)], s = Number(r), n = this[t(2086)][t(674)](s); if (!n) { - this[t(2867)](new Error(t(769) + JSON[t(1749)](x))); + this[t(1931)](new Error(t(2793) + JSON[t(1031)](x))); return; } - const i = this[t(1928)][t(2620)](s), c = this._timeoutInfo[t(2620)](s); - if (c && i && c.resetTimeoutOnProgress) try { - this[t(2614)](s); - } catch (d) { - i(d); + const i = this[t(539)][t(674)](s), c = this[t(1533)][t(674)](s); + if (c && i && c[t(2309)]) try { + this[t(3123)](s); + } catch (u) { + i(u); return; } n(e); } - _onresponse(x) { - const t = a, r = Number(x.id), e = this._responseHandlers[t(2620)](r); + [a(690)](x) { + const t = a, r = Number(x.id), e = this[t(539)][t(674)](r); if (e === void 0) { - this[t(2867)](new Error("Received a response for an unknown message ID: " + JSON[t(1749)](x))); + this[t(1931)](new Error("Received a response for an unknown message ID: " + JSON[t(1031)](x))); return; } - if (this[t(1928)][t(1239)](r), this._progressHandlers.delete(r), this[t(2258)](r), ar(x)) e(x); + if (this._responseHandlers[t(875)](r), this[t(2086)][t(875)](r), this[t(2684)](r), rr(x)) e(x); else { - const s = new _0(x[t(1493)][t(3068)], x[t(1493)][t(2732)], x[t(1493)][t(571)]); + const s = new q0(x.error[t(2427)], x[t(490)][t(1044)], x[t(490)].data); e(s); } } - get [a(1130)]() { - return this[a(2645)]; + get [a(516)]() { + return this[a(1448)]; } - async [a(1522)]() { + async close() { const x = a; var t; - await ((t = this[x(2645)]) === null || t === void 0 ? void 0 : t[x(1522)]()); + await ((t = this[x(1448)]) === null || t === void 0 ? void 0 : t.close()); } - [a(714)](x, t, r) { + [a(494)](x, t, r) { const { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n } = r ?? {}; return new Promise((i, c) => { - const d = K; - var u, l, f, b, h, p; - if (!this[d(2645)]) { - c(new Error(d(1697))); + const u = K; + var f, l, d, g, h, m; + if (!this[u(1448)]) { + c(new Error(u(2168))); return; } - ((u = this[d(941)]) === null || u === void 0 ? void 0 : u.enforceStrictCapabilities) === !0 && this[d(1698)](x.method), (l = r == null ? void 0 : r[d(2009)]) === null || l === void 0 || l.throwIfAborted(); - const v = this[d(1107)]++, k = { ...x, jsonrpc: d(2658), id: v }; - r != null && r[d(2664)] && (this._progressHandlers.set(v, r[d(2664)]), k[d(2863)] = { ...x[d(2863)], _meta: { ...((f = x[d(2863)]) === null || f === void 0 ? void 0 : f[d(820)]) || {}, progressToken: v } }); - const P = (C) => { - const I = d; - var R; - this._responseHandlers[I(1239)](v), this[I(3047)].delete(v), this[I(2258)](v), (R = this[I(2645)]) === null || R === void 0 || R[I(1237)]({ jsonrpc: I(2658), method: I(801), params: { requestId: v, reason: String(C) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[I(1508)]((O) => this[I(2867)](new Error(I(462) + O))), c(C); + ((f = this[u(1648)]) === null || f === void 0 ? void 0 : f[u(1928)]) === !0 && this[u(557)](x[u(2423)]), (l = r == null ? void 0 : r.signal) === null || l === void 0 || l.throwIfAborted(); + const v = this[u(1556)]++, k = { ...x, jsonrpc: u(2804), id: v }; + r != null && r.onprogress && (this[u(2086)].set(v, r[u(816)]), k[u(1656)] = { ...x[u(1656)], _meta: { ...((d = x[u(1656)]) === null || d === void 0 ? void 0 : d._meta) || {}, progressToken: v } }); + const P = (R) => { + const E = u; + var C; + this[E(539)][E(875)](v), this[E(2086)].delete(v), this[E(2684)](v), (C = this[E(1448)]) === null || C === void 0 || C[E(1838)]({ jsonrpc: E(2804), method: E(1924), params: { requestId: v, reason: String(R) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[E(742)]((A) => this._onerror(new Error(E(988) + A))), c(R); }; - this._responseHandlers[d(2454)](v, (C) => { - const I = d; - var R; - if (!(!((R = r == null ? void 0 : r[I(2009)]) === null || R === void 0) && R[I(930)])) { - if (C instanceof Error) return c(C); + this[u(539)][u(780)](v, (R) => { + const E = u; + var C; + if (!(!((C = r == null ? void 0 : r[E(2111)]) === null || C === void 0) && C[E(896)])) { + if (R instanceof Error) return c(R); try { - const O = t[I(1584)](C[I(2712)]); - i(O); - } catch (O) { - c(O); + const A = t.parse(R[E(676)]); + i(A); + } catch (A) { + c(A); } } - }), (b = r == null ? void 0 : r[d(2009)]) === null || b === void 0 || b[d(1914)](d(1973), () => { - const C = d; - var I; - P((I = r == null ? void 0 : r[C(2009)]) === null || I === void 0 ? void 0 : I.reason); + }), (g = r == null ? void 0 : r[u(2111)]) === null || g === void 0 || g[u(731)](u(1158), () => { + const R = u; + var E; + P((E = r == null ? void 0 : r[R(2111)]) === null || E === void 0 ? void 0 : E.reason); }); - const N = (h = r == null ? void 0 : r[d(454)]) !== null && h !== void 0 ? h : rc, T = () => P(new _0(y0[d(1158)], d(1810), { timeout: N })); - this[d(438)](v, N, r == null ? void 0 : r[d(2391)], T, (p = r == null ? void 0 : r[d(2780)]) !== null && p !== void 0 ? p : !1), this[d(2645)][d(1237)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[d(1508)]((C) => { - this._cleanupTimeout(v), c(C); + const T = (h = r == null ? void 0 : r[u(973)]) !== null && h !== void 0 ? h : x2, q = () => P(new q0(v0.RequestTimeout, "Request timed out", { timeout: T })); + this._setupTimeout(v, T, r == null ? void 0 : r[u(2709)], q, (m = r == null ? void 0 : r[u(2309)]) !== null && m !== void 0 ? m : !1), this._transport[u(1838)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[u(742)]((R) => { + this._cleanupTimeout(v), c(R); }); }); } - async [a(766)](x, t) { + async [a(2487)](x, t) { const r = a; var e, s; - if (!this[r(2645)]) throw new Error("Not connected"); - if (this[r(2964)](x[r(392)]), ((s = (e = this[r(941)]) === null || e === void 0 ? void 0 : e[r(2623)]) !== null && s !== void 0 ? s : [])[r(416)](x[r(392)]) && !x[r(2863)] && !(t != null && t[r(2047)])) { - if (this[r(2985)].has(x.method)) return; - this[r(2985)].add(x[r(392)]), Promise[r(510)]()[r(857)](() => { - const d = r; - var u; - if (this[d(2985)][d(1239)](x[d(392)]), !this[d(2645)]) return; - const l = { ...x, jsonrpc: d(2658) }; - (u = this[d(2645)]) === null || u === void 0 || u.send(l, t).catch((f) => this._onerror(f)); + if (!this._transport) throw new Error(r(2168)); + if (this[r(2670)](x[r(2423)]), ((s = (e = this[r(1648)]) === null || e === void 0 ? void 0 : e[r(2184)]) !== null && s !== void 0 ? s : []).includes(x[r(2423)]) && !x.params && !(t != null && t[r(1852)])) { + if (this[r(2135)][r(2348)](x[r(2423)])) return; + this._pendingDebouncedNotifications[r(1580)](x[r(2423)]), Promise[r(2457)]()[r(2517)](() => { + const u = r; + var f; + if (this[u(2135)][u(875)](x[u(2423)]), !this[u(1448)]) return; + const l = { ...x, jsonrpc: u(2804) }; + (f = this._transport) === null || f === void 0 || f[u(1838)](l, t)[u(742)]((d) => this[u(1931)](d)); }); return; } - const c = { ...x, jsonrpc: r(2658) }; - await this[r(2645)].send(c, t); + const c = { ...x, jsonrpc: r(2804) }; + await this[r(1448)][r(1838)](c, t); } - [a(921)](x, t) { - const r = a, e = x[r(1798)][r(392)][r(2398)]; - this[r(1110)](e), this[r(1380)][r(2454)](e, (s, n) => { + [a(1219)](x, t) { + const r = a, e = x[r(1547)][r(2423)][r(2446)]; + this[r(1465)](e), this._requestHandlers[r(780)](e, (s, n) => { const i = r; - return Promise[i(510)](t(x[i(1584)](s), n)); + return Promise[i(2457)](t(x[i(2774)](s), n)); }); } - [a(2994)](x) { + [a(3092)](x) { const t = a; - this[t(1380)][t(1239)](x); + this._requestHandlers[t(875)](x); } - assertCanSetRequestHandler(x) { + [a(1067)](x) { const t = a; - if (this._requestHandlers.has(x)) throw new Error("A request handler for " + x + t(533)); + if (this[t(3245)][t(2348)](x)) throw new Error(t(2011) + x + t(2916)); } - [a(1977)](x, t) { + [a(1529)](x, t) { const r = a; - this[r(428)].set(x[r(1798)][r(392)][r(2398)], (e) => Promise[r(510)](t(x[r(1584)](e)))); + this[r(1445)][r(780)](x[r(1547)][r(2423)][r(2446)], (e) => Promise.resolve(t(x[r(2774)](e)))); } - [a(1567)](x) { + removeNotificationHandler(x) { const t = a; - this[t(428)][t(1239)](x); + this[t(1445)][t(875)](x); } } -function nc(o, x) { +function a2(o, x) { const t = a; - return Object.entries(x)[t(2304)]((r, [e, s]) => (s && typeof s === t(2517) ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); + return Object[t(2634)](x)[t(1630)]((r, [e, s]) => (s && typeof s == "object" ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); } -var X0 = { exports: {} }, oc = X0[a(982)], rr; -function ic() { +var Y0 = { exports: {} }, r2 = Y0.exports, sr; +function s2() { const o = a; - return rr || (rr = 1, (function(x, t) { + return sr || (sr = 1, (function(x, t) { (function(r, e) { e(t); - })(oc, function(r) { + })(r2, function(r) { const e = K; function s() { - const E = K; - for (var m = arguments.length, y = Array(m), w = 0; w < m; w++) + const I = K; + for (var p = arguments[I(2710)], y = Array(p), w = 0; w < p; w++) y[w] = arguments[w]; - if (y[E(2910)] > 1) { - y[0] = y[0][E(2527)](0, -1); - for (var U = y.length - 1, $ = 1; $ < U; ++$) - y[$] = y[$].slice(1, -1); - return y[U] = y[U].slice(1), y[E(952)](""); + if (y.length > 1) { + y[0] = y[0][I(1387)](0, -1); + for (var L = y[I(2710)] - 1, $ = 1; $ < L; ++$) + y[$] = y[$][I(1387)](1, -1); + return y[L] = y[L].slice(1), y[I(1592)](""); } else return y[0]; } - function n(E) { - return "(?:" + E + ")"; + function n(I) { + return K(1442) + I + ")"; } - function i(E) { - const m = K; - return E === void 0 ? "undefined" : E === null ? m(2973) : Object[m(560)].toString[m(1175)](E).split(" ")[m(641)]().split("]").shift()[m(2071)](); + function i(I) { + const p = K; + return I === void 0 ? p(993) : I === null ? p(1959) : Object[p(2587)][p(2732)].call(I).split(" ")[p(2900)]()[p(3263)]("]")[p(1263)]().toLowerCase(); } - function c(E) { - return E.toUpperCase(); + function c(I) { + return I[K(3013)](); } - function d(E) { - const m = K; - return E != null ? E instanceof Array ? E : typeof E[m(2910)] !== m(1730) || E[m(1389)] || E[m(831)] || E[m(1175)] ? [E] : Array[m(560)].slice[m(1175)](E) : []; + function u(I) { + const p = K; + return I != null ? I instanceof Array ? I : typeof I[p(2710)] != "number" || I.split || I[p(2115)] || I[p(1522)] ? [I] : Array[p(2587)][p(1387)].call(I) : []; } - function u(E, m) { - var y = E; - if (m) for (var w in m) - y[w] = m[w]; + function f(I, p) { + var y = I; + if (p) for (var w in p) + y[w] = p[w]; return y; } - function l(E) { - const m = K; - var y = m(498), w = m(3042), U = s(w, m(1754)), $ = n(n(m(1873) + U + "%" + U + U + "%" + U + U) + "|" + n(m(868) + U + "%" + U + U) + "|" + n("%" + U + U)), oe = m(1236), de = m(3035), Fe = s(oe, de), je = E ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", Ve = E ? m(2088) : "[]", Pe = s(y, w, "[\\-\\.\\_\\~]", je); - n(y + s(y, w, m(3020)) + "*"), n(n($ + "|" + s(Pe, de, m(748))) + "*"); - var Oe = n(n(m(728)) + "|" + n(m(1887) + w) + "|" + n("1" + w + w) + "|" + n(m(1421) + w) + m(452) + w), Be = n(Oe + "\\." + Oe + "\\." + Oe + "\\." + Oe), ge = n(U + "{1,4}"), $e = n(n(ge + "\\:" + ge) + "|" + Be), Ze = n(n(ge + "\\:") + m(2347) + $e), Ue = n(m(1050) + n(ge + "\\:") + "{5}" + $e), P0 = n(n(ge) + "?\\:\\:" + n(ge + "\\:") + "{4}" + $e), i0 = n(n(n(ge + "\\:") + m(1329) + ge) + m(1136) + n(ge + "\\:") + m(610) + $e), c0 = n(n(n(ge + "\\:") + m(1418) + ge) + m(1136) + n(ge + "\\:") + m(2494) + $e), $0 = n(n(n(ge + "\\:") + m(1816) + ge) + m(1136) + ge + "\\:" + $e), q0 = n(n(n(ge + "\\:") + m(2005) + ge) + m(1136) + $e), t0 = n(n(n(ge + "\\:") + "{0,5}" + ge) + "?\\:\\:" + ge), d0 = n(n(n(ge + "\\:") + m(2345) + ge) + m(1136)), T0 = n([Ze, Ue, P0, i0, c0, $0, q0, t0, d0].join("|")), u0 = n(n(Pe + "|" + $) + "+"); - n(m(940) + U + m(1656) + s(Pe, de, "[\\:]") + "+"), n(n($ + "|" + s(Pe, de)) + "*"); - var l0 = n($ + "|" + s(Pe, de, m(502))); - return n(n($ + "|" + s(Pe, de, m(2507))) + "+"), n(n(l0 + "|" + s(m(1908), Ve)) + "*"), { NOT_SCHEME: new RegExp(s("[^]", y, w, m(3020)), "g"), NOT_USERINFO: new RegExp(s(m(464), Pe, de), "g"), NOT_HOST: new RegExp(s(m(1337), Pe, de), "g"), NOT_PATH: new RegExp(s("[^\\%\\/\\:\\@]", Pe, de), "g"), NOT_PATH_NOSCHEME: new RegExp(s(m(1375), Pe, de), "g"), NOT_QUERY: new RegExp(s("[^\\%]", Pe, de, m(901), Ve), "g"), NOT_FRAGMENT: new RegExp(s("[^\\%]", Pe, de, m(901)), "g"), ESCAPE: new RegExp(s("[^]", Pe, de), "g"), UNRESERVED: new RegExp(Pe, "g"), OTHER_CHARS: new RegExp(s("[^\\%]", Pe, Fe), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + Be + ")$"), IPV6ADDRESS: new RegExp("^\\[?(" + T0 + ")" + n(n(m(1167) + U + "{2})") + "(" + u0 + ")") + m(2965)) }; + function l(I) { + const p = K; + var y = p(1922), w = "[0-9]", L = s(w, "[A-Fa-f]"), $ = n(n(p(2054) + L + "%" + L + L + "%" + L + L) + "|" + n(p(2873) + L + "%" + L + L) + "|" + n("%" + L + L)), ie = p(2598), ue = p(3165), Ee = s(ie, ue), je = I ? p(2460) : "[]", Be = I ? p(899) : "[]", Re = s(y, w, p(1983), je); + n(y + s(y, w, p(1450)) + "*"), n(n($ + "|" + s(Re, ue, p(1917))) + "*"); + var De = n(n(p(2735)) + "|" + n(p(1974) + w) + "|" + n("1" + w + w) + "|" + n(p(1868) + w) + p(2253) + w), We = n(De + "\\." + De + "\\." + De + "\\." + De), ge = n(L + p(1881)), $e = n(n(ge + "\\:" + ge) + "|" + We), Ze = n(n(ge + "\\:") + p(1508) + $e), Ue = n(p(3023) + n(ge + "\\:") + "{5}" + $e), I0 = n(n(ge) + p(2323) + n(ge + "\\:") + p(1690) + $e), i0 = n(n(n(ge + "\\:") + p(3056) + ge) + p(2323) + n(ge + "\\:") + p(1014) + $e), c0 = n(n(n(ge + "\\:") + p(2824) + ge) + p(2323) + n(ge + "\\:") + p(1403) + $e), $0 = n(n(n(ge + "\\:") + p(3205) + ge) + p(2323) + ge + "\\:" + $e), T0 = n(n(n(ge + "\\:") + p(3089) + ge) + "?\\:\\:" + $e), t0 = n(n(n(ge + "\\:") + p(1285) + ge) + "?\\:\\:" + ge), u0 = n(n(n(ge + "\\:") + p(913) + ge) + "?\\:\\:"), f0 = n([Ze, Ue, I0, i0, c0, $0, T0, t0, u0][p(1592)]("|")), g0 = n(n(Re + "|" + $) + "+"); + n(p(2262) + L + "+\\." + s(Re, ue, p(1917)) + "+"), n(n($ + "|" + s(Re, ue)) + "*"); + var l0 = n($ + "|" + s(Re, ue, p(2594))); + return n(n($ + "|" + s(Re, ue, p(482))) + "+"), n(n(l0 + "|" + s("[\\/\\?]", Be)) + "*"), { NOT_SCHEME: new RegExp(s(p(2817), y, w, p(1450)), "g"), NOT_USERINFO: new RegExp(s(p(1982), Re, ue), "g"), NOT_HOST: new RegExp(s(p(3274), Re, ue), "g"), NOT_PATH: new RegExp(s("[^\\%\\/\\:\\@]", Re, ue), "g"), NOT_PATH_NOSCHEME: new RegExp(s(p(764), Re, ue), "g"), NOT_QUERY: new RegExp(s(p(1899), Re, ue, p(1471), Be), "g"), NOT_FRAGMENT: new RegExp(s(p(1899), Re, ue, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(s("[^]", Re, ue), "g"), UNRESERVED: new RegExp(Re, "g"), OTHER_CHARS: new RegExp(s(p(1899), Re, Ee), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + We + ")$"), IPV6ADDRESS: new RegExp(p(2763) + f0 + ")" + n(n("\\%25|\\%(?!" + L + p(636)) + "(" + g0 + ")") + "?\\]?$") }; } - var f = l(!1), b = l(!0), h = /* @__PURE__ */ (function() { - function E(m, y) { + var d = l(!1), g = l(!0), h = /* @__PURE__ */ (function() { + function I(p, y) { const w = K; - var U = [], $ = !0, oe = !1, de = void 0; + var L = [], $ = !0, ie = !1, ue = void 0; try { - for (var Fe = m[Symbol[w(2429)]](), je; !($ = (je = Fe.next())[w(2809)]) && (U.push(je[w(2398)]), !(y && U.length === y)); $ = !0) + for (var Ee = p[Symbol[w(1356)]](), je; !($ = (je = Ee.next())[w(1463)]) && (L[w(3062)](je.value), !(y && L[w(2710)] === y)); $ = !0) ; - } catch (Ve) { - oe = !0, de = Ve; + } catch (Be) { + ie = !0, ue = Be; } finally { try { - !$ && Fe[w(2253)] && Fe[w(2253)](); + !$ && Ee.return && Ee[w(1115)](); } finally { - if (oe) throw de; + if (ie) throw ue; } } - return U; + return L; } - return function(m, y) { + return function(p, y) { const w = K; - if (Array.isArray(m)) return m; - if (Symbol.iterator in Object(m)) return E(m, y); - throw new TypeError(w(2041)); + if (Array[w(3255)](p)) return p; + if (Symbol.iterator in Object(p)) return I(p, y); + throw new TypeError(w(718)); }; - })(), p = function(E) { - if (Array[K(2573)](E)) { - for (var y = 0, w = Array(E.length); y < E.length; y++) w[y] = E[y]; + })(), m = function(I) { + const p = K; + if (Array.isArray(I)) { + for (var y = 0, w = Array(I[p(2710)]); y < I[p(2710)]; y++) w[y] = I[y]; return w; - } else return Array.from(E); - }, v = 2147483647, k = 36, P = 1, N = 26, T = 38, C = 700, I = 72, R = 128, O = "-", D = /^xn--/, M = /[^\0-\x7E]/, F = /[\x2E\u3002\uFF0E\uFF61]/g, q = { overflow: "Overflow: input needs wider integers to process", "not-basic": e(1530), "invalid-input": "Invalid input" }, H = k - P, L = Math[e(878)], z = String[e(1128)]; - function G(E) { - throw new RangeError(q[E]); + } else return Array[p(2047)](I); + }, v = 2147483647, k = 36, P = 1, T = 26, q = 38, R = 700, E = 72, C = 128, A = "-", O = /^xn--/, M = /[^\0-\x7E]/, _ = /[\x2E\u3002\uFF0E\uFF61]/g, N = { overflow: e(1013), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": e(2380) }, z = k - P, U = Math[e(2156)], H = String.fromCharCode; + function G(I) { + throw new RangeError(N[I]); } - function se(E, m) { + function re(I, p) { const y = e; - for (var w = [], U = E[y(2910)]; U--; ) - w[U] = m(E[U]); + for (var w = [], L = I[y(2710)]; L--; ) + w[L] = p(I[L]); return w; } - function re(E, m) { + function se(I, p) { const y = e; - var w = E[y(1389)]("@"), U = ""; - w.length > 1 && (U = w[0] + "@", E = w[1]), E = E[y(1840)](F, "."); - var $ = E.split("."), oe = se($, m).join("."); - return U + oe; + var w = I[y(3263)]("@"), L = ""; + w[y(2710)] > 1 && (L = w[0] + "@", I = w[1]), I = I.replace(_, "."); + var $ = I[y(3263)]("."), ie = re($, p)[y(1592)]("."); + return L + ie; } - function ue(E) { - const m = e; - for (var y = [], w = 0, U = E.length; w < U; ) { - var $ = E[m(425)](w++); - if ($ >= 55296 && $ <= 56319 && w < U) { - var oe = E[m(425)](w++); - (oe & 64512) == 56320 ? y[m(816)]((($ & 1023) << 10) + (oe & 1023) + 65536) : (y[m(816)]($), w--); - } else y[m(816)]($); + function fe(I) { + const p = e; + for (var y = [], w = 0, L = I[p(2710)]; w < L; ) { + var $ = I.charCodeAt(w++); + if ($ >= 55296 && $ <= 56319 && w < L) { + var ie = I.charCodeAt(w++); + (ie & 64512) == 56320 ? y[p(3062)]((($ & 1023) << 10) + (ie & 1023) + 65536) : (y[p(3062)]($), w--); + } else y[p(3062)]($); } return y; } - var fe = function(m) { + var de = function(p) { const y = e; - return String.fromCodePoint[y(1784)](String, p(m)); - }, le = function(m) { - return m - 48 < 10 ? m - 22 : m - 65 < 26 ? m - 65 : m - 97 < 26 ? m - 97 : k; - }, we = function(m, y) { - return m + 22 + 75 * (m < 26) - ((y != 0) << 5); - }, Ce = function(m, y, w) { - var U = 0; - for (m = w ? L(m / C) : m >> 1, m += L(m / y); m > H * N >> 1; U += k) - m = L(m / H); - return L(U + (H + 1) * m / (m + T)); - }, Me = function(m) { + return String[y(3246)][y(2692)](String, m(p)); + }, le = function(p) { + return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : k; + }, Se = function(p, y) { + return p + 22 + 75 * (p < 26) - ((y != 0) << 5); + }, _e = function(p, y, w) { + var L = 0; + for (p = w ? U(p / R) : p >> 1, p += U(p / y); p > z * T >> 1; L += k) + p = U(p / z); + return U(L + (z + 1) * p / (p + q)); + }, Me = function(p) { const y = e; - var w = [], U = m[y(2910)], $ = 0, oe = R, de = I, Fe = m[y(2662)](O); - Fe < 0 && (Fe = 0); - for (var je = 0; je < Fe; ++je) - m[y(425)](je) >= 128 && G("not-basic"), w[y(816)](m.charCodeAt(je)); - for (var Ve = Fe > 0 ? Fe + 1 : 0; Ve < U; ) { - for (var Pe = $, Oe = 1, Be = k; ; Be += k) { - Ve >= U && G(y(1419)); - var ge = le(m[y(425)](Ve++)); - (ge >= k || ge > L((v - $) / Oe)) && G(y(1748)), $ += ge * Oe; - var $e = Be <= de ? P : Be >= de + N ? N : Be - de; + var w = [], L = p[y(2710)], $ = 0, ie = C, ue = E, Ee = p[y(2347)](A); + Ee < 0 && (Ee = 0); + for (var je = 0; je < Ee; ++je) + p[y(901)](je) >= 128 && G(y(3012)), w[y(3062)](p[y(901)](je)); + for (var Be = Ee > 0 ? Ee + 1 : 0; Be < L; ) { + for (var Re = $, De = 1, We = k; ; We += k) { + Be >= L && G(y(2266)); + var ge = le(p[y(901)](Be++)); + (ge >= k || ge > U((v - $) / De)) && G(y(512)), $ += ge * De; + var $e = We <= ue ? P : We >= ue + T ? T : We - ue; if (ge < $e) break; var Ze = k - $e; - Oe > L(v / Ze) && G("overflow"), Oe *= Ze; + De > U(v / Ze) && G(y(512)), De *= Ze; } - var Ue = w[y(2910)] + 1; - de = Ce($ - Pe, Ue, Pe == 0), L($ / Ue) > v - oe && G(y(1748)), oe += L($ / Ue), $ %= Ue, w.splice($++, 0, oe); + var Ue = w[y(2710)] + 1; + ue = _e($ - Re, Ue, Re == 0), U($ / Ue) > v - ie && G(y(512)), ie += U($ / Ue), $ %= Ue, w[y(2881)]($++, 0, ie); } - return String[y(2604)].apply(String, w); - }, Re = function(m) { + return String.fromCodePoint.apply(String, w); + }, Fe = function(p) { const y = e; var w = []; - m = ue(m); - var U = m[y(2910)], $ = R, oe = 0, de = I, Fe = !0, je = !1, Ve = void 0; + p = fe(p); + var L = p.length, $ = C, ie = 0, ue = E, Ee = !0, je = !1, Be = void 0; try { - for (var Pe = m[Symbol[y(2429)]](), Oe; !(Fe = (Oe = Pe[y(3016)]())[y(2809)]); Fe = !0) { - var Be = Oe[y(2398)]; - Be < 128 && w[y(816)](z(Be)); + for (var Re = p[Symbol[y(1356)]](), De; !(Ee = (De = Re.next())[y(1463)]); Ee = !0) { + var We = De[y(2446)]; + We < 128 && w[y(3062)](H(We)); } } catch (G0) { - je = !0, Ve = G0; + je = !0, Be = G0; } finally { try { - !Fe && Pe[y(2253)] && Pe.return(); + !Ee && Re[y(1115)] && Re[y(1115)](); } finally { - if (je) throw Ve; + if (je) throw Be; } } - var ge = w[y(2910)], $e = ge; - for (ge && w[y(816)](O); $e < U; ) { - var Ze = v, Ue = !0, P0 = !1, i0 = void 0; + var ge = w.length, $e = ge; + for (ge && w.push(A); $e < L; ) { + var Ze = v, Ue = !0, I0 = !1, i0 = void 0; try { - for (var c0 = m[Symbol[y(2429)]](), $0; !(Ue = ($0 = c0[y(3016)]()).done); Ue = !0) { - var q0 = $0.value; - q0 >= $ && q0 < Ze && (Ze = q0); + for (var c0 = p[Symbol[y(1356)]](), $0; !(Ue = ($0 = c0.next()).done); Ue = !0) { + var T0 = $0[y(2446)]; + T0 >= $ && T0 < Ze && (Ze = T0); } } catch (G0) { - P0 = !0, i0 = G0; + I0 = !0, i0 = G0; } finally { try { - !Ue && c0[y(2253)] && c0[y(2253)](); + !Ue && c0.return && c0[y(1115)](); } finally { - if (P0) throw i0; + if (I0) throw i0; } } var t0 = $e + 1; - Ze - $ > L((v - oe) / t0) && G(y(1748)), oe += (Ze - $) * t0, $ = Ze; - var d0 = !0, T0 = !1, u0 = void 0; + Ze - $ > U((v - ie) / t0) && G(y(512)), ie += (Ze - $) * t0, $ = Ze; + var u0 = !0, f0 = !1, g0 = void 0; try { - for (var l0 = m[Symbol[y(2429)]](), ka; !(d0 = (ka = l0[y(3016)]())[y(2809)]); d0 = !0) { - var Pa = ka[y(2398)]; - if (Pa < $ && ++oe > v && G("overflow"), Pa == $) { - for (var dx = oe, ux = k; ; ux += k) { - var lx = ux <= de ? P : ux >= de + N ? N : ux - de; - if (dx < lx) break; - var Ia = dx - lx, Ea = k - lx; - w[y(816)](z(we(lx + Ia % Ea, 0))), dx = L(Ia / Ea); + for (var l0 = p[Symbol[y(1356)]](), Pa; !(u0 = (Pa = l0[y(2507)]())[y(1463)]); u0 = !0) { + var Ia = Pa[y(2446)]; + if (Ia < $ && ++ie > v && G("overflow"), Ia == $) { + for (var fx = ie, lx = k; ; lx += k) { + var dx = lx <= ue ? P : lx >= ue + T ? T : lx - ue; + if (fx < dx) break; + var Ea = fx - dx, Ra = k - dx; + w.push(H(Se(dx + Ea % Ra, 0))), fx = U(Ea / Ra); } - w[y(816)](z(we(dx, 0))), de = Ce(oe, t0, $e == ge), oe = 0, ++$e; + w.push(H(Se(fx, 0))), ue = _e(ie, t0, $e == ge), ie = 0, ++$e; } } } catch (G0) { - T0 = !0, u0 = G0; + f0 = !0, g0 = G0; } finally { try { - !d0 && l0[y(2253)] && l0.return(); + !u0 && l0.return && l0[y(1115)](); } finally { - if (T0) throw u0; + if (f0) throw g0; } } - ++oe, ++$; + ++ie, ++$; } - return w[y(952)](""); - }, Je = function(m) { - return re(m, function(y) { + return w[y(1592)](""); + }, Je = function(p) { + return se(p, function(y) { const w = K; - return D.test(y) ? Me(y[w(2527)](4)[w(2071)]()) : y; + return O[w(2346)](y) ? Me(y[w(1387)](4)[w(1945)]()) : y; }); - }, _ = function(m) { - return re(m, function(y) { - return M[K(2266)](y) ? "xn--" + Re(y) : y; + }, D = function(p) { + return se(p, function(y) { + const w = K; + return M.test(y) ? w(1054) + Fe(y) : y; }); - }, A = { version: e(2417), ucs2: { decode: ue, encode: fe }, decode: Me, encode: Re, toASCII: _, toUnicode: Je }, j = {}; - function J(E) { - const m = e; - var y = E[m(425)](0), w = void 0; - return y < 16 ? w = "%0" + y[m(1725)](16)[m(2791)]() : y < 128 ? w = "%" + y[m(1725)](16)[m(2791)]() : y < 2048 ? w = "%" + (y >> 6 | 192)[m(1725)](16)[m(2791)]() + "%" + (y & 63 | 128).toString(16)[m(2791)]() : w = "%" + (y >> 12 | 224)[m(1725)](16)[m(2791)]() + "%" + (y >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (y & 63 | 128).toString(16)[m(2791)](), w; + }, F = { version: e(503), ucs2: { decode: fe, encode: de }, decode: Me, encode: Fe, toASCII: D, toUnicode: Je }, j = {}; + function J(I) { + const p = e; + var y = I.charCodeAt(0), w = void 0; + return y < 16 ? w = "%0" + y[p(2732)](16)[p(3013)]() : y < 128 ? w = "%" + y.toString(16).toUpperCase() : y < 2048 ? w = "%" + (y >> 6 | 192)[p(2732)](16)[p(3013)]() + "%" + (y & 63 | 128).toString(16).toUpperCase() : w = "%" + (y >> 12 | 224)[p(2732)](16).toUpperCase() + "%" + (y >> 6 & 63 | 128)[p(2732)](16)[p(3013)]() + "%" + (y & 63 | 128)[p(2732)](16)[p(3013)](), w; } - function Q(E) { - const m = e; - for (var y = "", w = 0, U = E[m(2910)]; w < U; ) { - var $ = parseInt(E.substr(w + 1, 2), 16); - if ($ < 128) y += String.fromCharCode($), w += 3; + function X(I) { + const p = e; + for (var y = "", w = 0, L = I[p(2710)]; w < L; ) { + var $ = parseInt(I[p(1693)](w + 1, 2), 16); + if ($ < 128) y += String[p(1660)]($), w += 3; else if ($ >= 194 && $ < 224) { - if (U - w >= 6) { - var oe = parseInt(E[m(645)](w + 4, 2), 16); - y += String.fromCharCode(($ & 31) << 6 | oe & 63); - } else y += E[m(645)](w, 6); + if (L - w >= 6) { + var ie = parseInt(I.substr(w + 4, 2), 16); + y += String.fromCharCode(($ & 31) << 6 | ie & 63); + } else y += I[p(1693)](w, 6); w += 6; } else if ($ >= 224) { - if (U - w >= 9) { - var de = parseInt(E[m(645)](w + 4, 2), 16), Fe = parseInt(E.substr(w + 7, 2), 16); - y += String.fromCharCode(($ & 15) << 12 | (de & 63) << 6 | Fe & 63); - } else y += E[m(645)](w, 9); + if (L - w >= 9) { + var ue = parseInt(I[p(1693)](w + 4, 2), 16), Ee = parseInt(I[p(1693)](w + 7, 2), 16); + y += String.fromCharCode(($ & 15) << 12 | (ue & 63) << 6 | Ee & 63); + } else y += I[p(1693)](w, 9); w += 9; - } else y += E[m(645)](w, 3), w += 3; + } else y += I.substr(w, 3), w += 3; } return y; } - function V(E, m) { + function V(I, p) { const y = e; - function w(U) { + function w(L) { const $ = K; - var oe = Q(U); - return oe[$(742)](m[$(1402)]) ? oe : U; + var ie = X(L); + return ie.match(p[$(1753)]) ? ie : L; } - return E[y(2503)] && (E.scheme = String(E[y(2503)]).replace(m[y(2690)], w)[y(2071)]()[y(1840)](m[y(1885)], "")), E.userinfo !== void 0 && (E[y(2444)] = String(E[y(2444)])[y(1840)](m.PCT_ENCODED, w)[y(1840)](m[y(1771)], J)[y(1840)](m[y(2690)], c)), E[y(2232)] !== void 0 && (E.host = String(E[y(2232)])[y(1840)](m[y(2690)], w).toLowerCase()[y(1840)](m.NOT_HOST, J)[y(1840)](m.PCT_ENCODED, c)), E[y(2075)] !== void 0 && (E.path = String(E[y(2075)])[y(1840)](m[y(2690)], w)[y(1840)](E.scheme ? m[y(2420)] : m.NOT_PATH_NOSCHEME, J)[y(1840)](m[y(2690)], c)), E.query !== void 0 && (E[y(1542)] = String(E[y(1542)])[y(1840)](m[y(2690)], w).replace(m[y(2981)], J)[y(1840)](m[y(2690)], c)), E[y(1783)] !== void 0 && (E.fragment = String(E.fragment)[y(1840)](m[y(2690)], w).replace(m.NOT_FRAGMENT, J)[y(1840)](m[y(2690)], c)), E; + return I[y(2974)] && (I[y(2974)] = String(I[y(2974)])[y(1521)](p[y(2543)], w)[y(1945)]()[y(1521)](p[y(3111)], "")), I[y(483)] !== void 0 && (I[y(483)] = String(I[y(483)])[y(1521)](p[y(2543)], w).replace(p[y(2632)], J)[y(1521)](p.PCT_ENCODED, c)), I[y(746)] !== void 0 && (I.host = String(I[y(746)])[y(1521)](p[y(2543)], w)[y(1945)]()[y(1521)](p[y(1994)], J)[y(1521)](p[y(2543)], c)), I[y(2474)] !== void 0 && (I[y(2474)] = String(I.path).replace(p[y(2543)], w).replace(I[y(2974)] ? p.NOT_PATH : p[y(694)], J)[y(1521)](p[y(2543)], c)), I[y(1267)] !== void 0 && (I.query = String(I.query)[y(1521)](p[y(2543)], w)[y(1521)](p[y(2840)], J)[y(1521)](p[y(2543)], c)), I[y(2970)] !== void 0 && (I.fragment = String(I[y(2970)]).replace(p[y(2543)], w).replace(p[y(1679)], J)[y(1521)](p[y(2543)], c)), I; } - function Y(E) { - return E[e(1840)](/^0*(.*)/, "$1") || "0"; + function Y(I) { + return I[e(1521)](/^0*(.*)/, "$1") || "0"; } - function ce(E, m) { + function ce(I, p) { const y = e; - var w = E[y(742)](m[y(1205)]) || [], U = h(w, 2), $ = U[1]; - return $ ? $[y(1389)](".")[y(1429)](Y)[y(952)](".") : E; + var w = I.match(p[y(1559)]) || [], L = h(w, 2), $ = L[1]; + return $ ? $[y(3263)](".")[y(1930)](Y)[y(1592)](".") : I; } - function ie(E, m) { + function oe(I, p) { const y = e; - var w = E[y(742)](m[y(951)]) || [], U = h(w, 3), $ = U[1], oe = U[2]; + var w = I.match(p[y(735)]) || [], L = h(w, 3), $ = L[1], ie = L[2]; if ($) { - for (var de = $[y(2071)]().split("::")[y(2055)](), Fe = h(de, 2), je = Fe[0], Ve = Fe[1], Pe = Ve ? Ve[y(1389)](":")[y(1429)](Y) : [], Oe = je[y(1389)](":").map(Y), Be = m.IPV4ADDRESS[y(2266)](Oe[Oe[y(2910)] - 1]), ge = Be ? 7 : 8, $e = Oe.length - ge, Ze = Array(ge), Ue = 0; Ue < ge; ++Ue) - Ze[Ue] = Pe[Ue] || Oe[$e + Ue] || ""; - Be && (Ze[ge - 1] = ce(Ze[ge - 1], m)); - var P0 = Ze.reduce(function(t0, d0, T0) { - const u0 = y; - if (!d0 || d0 === "0") { - var l0 = t0[t0[u0(2910)] - 1]; - l0 && l0[u0(2365)] + l0[u0(2910)] === T0 ? l0[u0(2910)]++ : t0[u0(816)]({ index: T0, length: 1 }); + for (var ue = $.toLowerCase()[y(3263)]("::")[y(2462)](), Ee = h(ue, 2), je = Ee[0], Be = Ee[1], Re = Be ? Be[y(3263)](":")[y(1930)](Y) : [], De = je.split(":")[y(1930)](Y), We = p[y(1559)][y(2346)](De[De[y(2710)] - 1]), ge = We ? 7 : 8, $e = De[y(2710)] - ge, Ze = Array(ge), Ue = 0; Ue < ge; ++Ue) + Ze[Ue] = Re[Ue] || De[$e + Ue] || ""; + We && (Ze[ge - 1] = ce(Ze[ge - 1], p)); + var I0 = Ze[y(1630)](function(t0, u0, f0) { + const g0 = y; + if (!u0 || u0 === "0") { + var l0 = t0[t0[g0(2710)] - 1]; + l0 && l0[g0(2230)] + l0[g0(2710)] === f0 ? l0.length++ : t0[g0(3062)]({ index: f0, length: 1 }); } return t0; - }, []), i0 = P0[y(2786)](function(t0, d0) { - return d0.length - t0.length; + }, []), i0 = I0[y(841)](function(t0, u0) { + const f0 = y; + return u0[f0(2710)] - t0[f0(2710)]; })[0], c0 = void 0; - if (i0 && i0.length > 1) { - var $0 = Ze[y(2527)](0, i0[y(2365)]), q0 = Ze[y(2527)](i0[y(2365)] + i0[y(2910)]); - c0 = $0.join(":") + "::" + q0[y(952)](":"); - } else c0 = Ze[y(952)](":"); - return oe && (c0 += "%" + oe), c0; - } else return E; + if (i0 && i0[y(2710)] > 1) { + var $0 = Ze.slice(0, i0.index), T0 = Ze[y(1387)](i0[y(2230)] + i0[y(2710)]); + c0 = $0[y(1592)](":") + "::" + T0[y(1592)](":"); + } else c0 = Ze[y(1592)](":"); + return ie && (c0 += "%" + ie), c0; + } else return I; } - var xe = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Le = "".match(/(){0}/)[1] === void 0; - function Ae(E) { - const m = e; - var y = arguments[m(2910)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, U = y[m(2116)] !== !1 ? b : f; - y[m(1148)] === "suffix" && (E = (y.scheme ? y[m(2503)] + ":" : "") + "//" + E); - var $ = E.match(xe); + var te = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Le = ""[e(2314)](/(){0}/)[1] === void 0; + function Ae(I) { + const p = e; + var y = arguments[p(2710)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, L = y[p(549)] !== !1 ? g : d; + y[p(1562)] === p(744) && (I = (y[p(2974)] ? y[p(2974)] + ":" : "") + "//" + I); + var $ = I.match(te); if ($) { - Le ? (w[m(2503)] = $[1], w.userinfo = $[3], w[m(2232)] = $[4], w[m(1706)] = parseInt($[5], 10), w.path = $[6] || "", w[m(1542)] = $[7], w[m(1783)] = $[8], isNaN(w[m(1706)]) && (w[m(1706)] = $[5])) : (w.scheme = $[1] || void 0, w[m(2444)] = E[m(1316)]("@") !== -1 ? $[3] : void 0, w[m(2232)] = E[m(1316)]("//") !== -1 ? $[4] : void 0, w.port = parseInt($[5], 10), w[m(2075)] = $[6] || "", w[m(1542)] = E[m(1316)]("?") !== -1 ? $[7] : void 0, w[m(1783)] = E[m(1316)]("#") !== -1 ? $[8] : void 0, isNaN(w[m(1706)]) && (w[m(1706)] = E[m(742)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), w[m(2232)] && (w.host = ie(ce(w.host, U), U)), w.scheme === void 0 && w.userinfo === void 0 && w[m(2232)] === void 0 && w[m(1706)] === void 0 && !w.path && w.query === void 0 ? w.reference = m(734) : w[m(2503)] === void 0 ? w[m(1148)] = m(519) : w.fragment === void 0 ? w[m(1148)] = m(2203) : w[m(1148)] = m(3032), y[m(1148)] && y.reference !== m(2626) && y.reference !== w[m(1148)] && (w[m(1493)] = w[m(1493)] || m(2560) + y[m(1148)] + m(2079)); - var oe = j[(y[m(2503)] || w[m(2503)] || "")[m(2071)]()]; - if (!y[m(361)] && (!oe || !oe.unicodeSupport)) { - if (w.host && (y.domainHost || oe && oe[m(2234)])) try { - w[m(2232)] = A[m(898)](w[m(2232)].replace(U[m(2690)], Q)[m(2071)]()); - } catch (de) { - w[m(1493)] = w[m(1493)] || m(846) + de; + Le ? (w[p(2974)] = $[1], w[p(483)] = $[3], w.host = $[4], w[p(2703)] = parseInt($[5], 10), w[p(2474)] = $[6] || "", w[p(1267)] = $[7], w[p(2970)] = $[8], isNaN(w.port) && (w.port = $[5])) : (w[p(2974)] = $[1] || void 0, w[p(483)] = I.indexOf("@") !== -1 ? $[3] : void 0, w[p(746)] = I[p(2436)]("//") !== -1 ? $[4] : void 0, w[p(2703)] = parseInt($[5], 10), w[p(2474)] = $[6] || "", w[p(1267)] = I[p(2436)]("?") !== -1 ? $[7] : void 0, w[p(2970)] = I[p(2436)]("#") !== -1 ? $[8] : void 0, isNaN(w[p(2703)]) && (w.port = I[p(2314)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), w[p(746)] && (w[p(746)] = oe(ce(w.host, L), L)), w.scheme === void 0 && w[p(483)] === void 0 && w[p(746)] === void 0 && w[p(2703)] === void 0 && !w.path && w[p(1267)] === void 0 ? w[p(1562)] = p(2618) : w[p(2974)] === void 0 ? w[p(1562)] = "relative" : w[p(2970)] === void 0 ? w.reference = p(1028) : w[p(1562)] = p(776), y[p(1562)] && y[p(1562)] !== "suffix" && y[p(1562)] !== w.reference && (w[p(490)] = w[p(490)] || p(633) + y.reference + p(1405)); + var ie = j[(y.scheme || w.scheme || "")[p(1945)]()]; + if (!y[p(2128)] && (!ie || !ie.unicodeSupport)) { + if (w[p(746)] && (y[p(684)] || ie && ie[p(684)])) try { + w[p(746)] = F.toASCII(w.host.replace(L[p(2543)], X)[p(1945)]()); + } catch (ue) { + w.error = w[p(490)] || p(573) + ue; } - V(w, f); - } else V(w, U); - oe && oe[m(1584)] && oe[m(1584)](w, y); - } else w.error = w.error || m(2862); + V(w, d); + } else V(w, L); + ie && ie[p(2774)] && ie[p(2774)](w, y); + } else w[p(490)] = w[p(490)] || p(1628); return w; } - function He(E, m) { + function ze(I, p) { const y = e; - var w = m[y(2116)] !== !1 ? b : f, U = []; - return E[y(2444)] !== void 0 && (U[y(816)](E[y(2444)]), U[y(816)]("@")), E[y(2232)] !== void 0 && U[y(816)](ie(ce(String(E[y(2232)]), w), w).replace(w[y(951)], function($, oe, de) { - return "[" + oe + (de ? "%25" + de : "") + "]"; - })), (typeof E[y(1706)] === y(1730) || typeof E[y(1706)] === y(1443)) && (U.push(":"), U[y(816)](String(E[y(1706)]))), U[y(2910)] ? U.join("") : void 0; + var w = p[y(549)] !== !1 ? g : d, L = []; + return I[y(483)] !== void 0 && (L[y(3062)](I[y(483)]), L.push("@")), I[y(746)] !== void 0 && L[y(3062)](oe(ce(String(I.host), w), w)[y(1521)](w.IPV6ADDRESS, function($, ie, ue) { + const Ee = y; + return "[" + ie + (ue ? Ee(1299) + ue : "") + "]"; + })), (typeof I.port === y(2665) || typeof I[y(2703)] === y(1361)) && (L[y(3062)](":"), L.push(String(I[y(2703)]))), L[y(2710)] ? L.join("") : void 0; } - var Se = /^\.\.?\//, Ge = /^\/\.(\/|$)/, n0 = /^\/\.\.(\/|$)/, Qe = /^\/?(?:.|\n)*?(?=\/|$)/; - function _e(E) { - const m = e; - for (var y = []; E.length; ) - if (E[m(742)](Se)) E = E[m(1840)](Se, ""); - else if (E[m(742)](Ge)) E = E[m(1840)](Ge, "/"); - else if (E[m(742)](n0)) E = E[m(1840)](n0, "/"), y[m(641)](); - else if (E === "." || E === "..") E = ""; + var ke = /^\.\.?\//, Ge = /^\/\.(\/|$)/, n0 = /^\/\.\.(\/|$)/, Qe = /^\/?(?:.|\n)*?(?=\/|$)/; + function Oe(I) { + const p = e; + for (var y = []; I[p(2710)]; ) + if (I[p(2314)](ke)) I = I.replace(ke, ""); + else if (I[p(2314)](Ge)) I = I[p(1521)](Ge, "/"); + else if (I[p(2314)](n0)) I = I.replace(n0, "/"), y.pop(); + else if (I === "." || I === "..") I = ""; else { - var w = E[m(742)](Qe); + var w = I.match(Qe); if (w) { - var U = w[0]; - E = E.slice(U.length), y[m(816)](U); - } else throw new Error(m(1382)); + var L = w[0]; + I = I.slice(L.length), y.push(L); + } else throw new Error("Unexpected dot segment condition"); } - return y[m(952)](""); + return y[p(1592)](""); } - function ze(E) { - const m = e; - var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y[m(2116)] ? b : f, U = [], $ = j[(y.scheme || E[m(2503)] || "")[m(2071)]()]; - if ($ && $[m(3065)] && $[m(3065)](E, y), E[m(2232)] && !w[m(951)].test(E[m(2232)])) { - if (y[m(2234)] || $ && $[m(2234)]) try { - E.host = y[m(2116)] ? A[m(2250)](E[m(2232)]) : A[m(898)](E.host.replace(w.PCT_ENCODED, Q).toLowerCase()); - } catch (Fe) { - E[m(1493)] = E[m(1493)] || m(1582) + (y.iri ? m(2469) : "ASCII") + " via punycode: " + Fe; + function He(I) { + const p = e; + var y = arguments[p(2710)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y[p(549)] ? g : d, L = [], $ = j[(y.scheme || I.scheme || "").toLowerCase()]; + if ($ && $[p(3043)] && $[p(3043)](I, y), I.host && !w.IPV6ADDRESS[p(2346)](I.host)) { + if (y[p(684)] || $ && $[p(684)]) try { + I[p(746)] = y.iri ? F[p(1043)](I.host) : F.toASCII(I[p(746)][p(1521)](w[p(2543)], X)[p(1945)]()); + } catch (Ee) { + I[p(490)] = I[p(490)] || "Host's domain name can not be converted to " + (y.iri ? p(2424) : p(513)) + p(1622) + Ee; } } - V(E, w), y[m(1148)] !== "suffix" && E[m(2503)] && (U[m(816)](E[m(2503)]), U[m(816)](":")); - var oe = He(E, y); - if (oe !== void 0 && (y[m(1148)] !== m(2626) && U[m(816)]("//"), U[m(816)](oe), E[m(2075)] && E.path[m(2898)](0) !== "/" && U[m(816)]("/")), E[m(2075)] !== void 0) { - var de = E[m(2075)]; - !y[m(1556)] && (!$ || !$[m(1556)]) && (de = _e(de)), oe === void 0 && (de = de[m(1840)](/^\/\//, m(2547))), U[m(816)](de); + V(I, w), y[p(1562)] !== "suffix" && I.scheme && (L[p(3062)](I[p(2974)]), L[p(3062)](":")); + var ie = ze(I, y); + if (ie !== void 0 && (y[p(1562)] !== p(744) && L.push("//"), L.push(ie), I.path && I[p(2474)][p(2718)](0) !== "/" && L[p(3062)]("/")), I[p(2474)] !== void 0) { + var ue = I[p(2474)]; + !y[p(1668)] && (!$ || !$[p(1668)]) && (ue = Oe(ue)), ie === void 0 && (ue = ue[p(1521)](/^\/\//, p(2219))), L[p(3062)](ue); } - return E.query !== void 0 && (U[m(816)]("?"), U[m(816)](E[m(1542)])), E[m(1783)] !== void 0 && (U.push("#"), U[m(816)](E[m(1783)])), U[m(952)](""); + return I[p(1267)] !== void 0 && (L[p(3062)]("?"), L[p(3062)](I[p(1267)])), I.fragment !== void 0 && (L[p(3062)]("#"), L[p(3062)](I[p(2970)])), L[p(1592)](""); } - function Ye(E, m) { + function Ye(I, p) { const y = e; - var w = arguments[y(2910)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, U = arguments[3], $ = {}; - return !U && (E = Ae(ze(E, w), w), m = Ae(ze(m, w), w)), w = w || {}, !w.tolerant && m[y(2503)] ? ($[y(2503)] = m.scheme, $[y(2444)] = m[y(2444)], $.host = m.host, $[y(1706)] = m[y(1706)], $[y(2075)] = _e(m[y(2075)] || ""), $[y(1542)] = m.query) : (m[y(2444)] !== void 0 || m.host !== void 0 || m.port !== void 0 ? ($[y(2444)] = m[y(2444)], $[y(2232)] = m[y(2232)], $[y(1706)] = m[y(1706)], $[y(2075)] = _e(m[y(2075)] || ""), $.query = m[y(1542)]) : (m[y(2075)] ? (m[y(2075)][y(2898)](0) === "/" ? $[y(2075)] = _e(m[y(2075)]) : ((E[y(2444)] !== void 0 || E[y(2232)] !== void 0 || E[y(1706)] !== void 0) && !E.path ? $[y(2075)] = "/" + m[y(2075)] : E[y(2075)] ? $[y(2075)] = E[y(2075)][y(2527)](0, E[y(2075)].lastIndexOf("/") + 1) + m.path : $[y(2075)] = m[y(2075)], $[y(2075)] = _e($[y(2075)])), $.query = m[y(1542)]) : ($.path = E[y(2075)], m.query !== void 0 ? $[y(1542)] = m[y(1542)] : $.query = E[y(1542)]), $[y(2444)] = E[y(2444)], $[y(2232)] = E[y(2232)], $[y(1706)] = E.port), $[y(2503)] = E.scheme), $[y(1783)] = m.fragment, $; + var w = arguments[y(2710)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, L = arguments[3], $ = {}; + return !L && (I = Ae(He(I, w), w), p = Ae(He(p, w), w)), w = w || {}, !w.tolerant && p[y(2974)] ? ($[y(2974)] = p.scheme, $.userinfo = p.userinfo, $.host = p.host, $[y(2703)] = p[y(2703)], $[y(2474)] = Oe(p.path || ""), $.query = p[y(1267)]) : (p[y(483)] !== void 0 || p.host !== void 0 || p[y(2703)] !== void 0 ? ($[y(483)] = p[y(483)], $[y(746)] = p[y(746)], $.port = p.port, $[y(2474)] = Oe(p[y(2474)] || ""), $[y(1267)] = p[y(1267)]) : (p[y(2474)] ? (p[y(2474)][y(2718)](0) === "/" ? $[y(2474)] = Oe(p[y(2474)]) : ((I[y(483)] !== void 0 || I[y(746)] !== void 0 || I.port !== void 0) && !I[y(2474)] ? $[y(2474)] = "/" + p[y(2474)] : I[y(2474)] ? $.path = I.path[y(1387)](0, I[y(2474)][y(2347)]("/") + 1) + p[y(2474)] : $[y(2474)] = p[y(2474)], $[y(2474)] = Oe($.path)), $[y(1267)] = p[y(1267)]) : ($[y(2474)] = I[y(2474)], p[y(1267)] !== void 0 ? $[y(1267)] = p[y(1267)] : $[y(1267)] = I.query), $[y(483)] = I[y(483)], $[y(746)] = I[y(746)], $.port = I[y(2703)]), $[y(2974)] = I[y(2974)]), $[y(2970)] = p.fragment, $; } - function N0(E, m, y) { - var w = u({ scheme: "null" }, y); - return ze(Ye(Ae(E, w), Ae(m, w), w, !0), w); + function M0(I, p, y) { + var L = f({ scheme: e(1959) }, y); + return He(Ye(Ae(I, L), Ae(p, L), L, !0), L); } - function Mx(E, m) { + function Lx(I, p) { + return typeof I === e(1361) ? I = He(Ae(I, p), p) : i(I) === "object" && (I = Ae(He(I, p), p)), I; + } + function pa(I, p, y) { + const w = e; + return typeof I === w(1361) ? I = He(Ae(I, y), y) : i(I) === w(1304) && (I = He(I, y)), typeof p === w(1361) ? p = He(Ae(p, y), y) : i(p) === "object" && (p = He(p, y)), I === p; + } + function Rn(I, p) { const y = e; - return typeof E == "string" ? E = ze(Ae(E, m), m) : i(E) === y(2517) && (E = Ae(ze(E, m), m)), E; + return I && I[y(2732)]()[y(1521)](!p || !p[y(549)] ? d[y(1653)] : g.ESCAPE, J); } - function Fn(E, m, y) { - const w = e; - return typeof E === w(1443) ? E = ze(Ae(E, y), y) : i(E) === w(2517) && (E = ze(E, y)), typeof m == "string" ? m = ze(Ae(m, y), y) : i(m) === "object" && (m = ze(m, y)), E === m; - } - function Nn(E, m) { + function b0(I, p) { const y = e; - return E && E[y(1725)]()[y(1840)](!m || !m.iri ? f[y(1507)] : b[y(1507)], J); + return I && I.toString()[y(1521)](!p || !p[y(549)] ? d[y(2543)] : g.PCT_ENCODED, X); } - function b0(E, m) { - const y = e; - return E && E[y(1725)]()[y(1840)](!m || !m[y(2116)] ? f.PCT_ENCODED : b.PCT_ENCODED, Q); + var Z0 = { scheme: e(3213), domainHost: !0, parse: function(p, y) { + const w = e; + return !p[w(746)] && (p[w(490)] = p[w(490)] || w(1275)), p; + }, serialize: function(p, y) { + const w = e; + var L = String(p[w(2974)]).toLowerCase() === w(2841); + return (p[w(2703)] === (L ? 443 : 80) || p.port === "") && (p[w(2703)] = void 0), !p[w(2474)] && (p.path = "/"), p; + } }, ma = { scheme: e(2841), domainHost: Z0[e(684)], parse: Z0[e(2774)], serialize: Z0[e(3043)] }; + function ba(I) { + const p = e; + return typeof I[p(2246)] === p(3106) ? I[p(2246)] : String(I[p(2974)])[p(1945)]() === "wss"; } - var W0 = { scheme: e(1940), domainHost: !0, parse: function(m, y) { + var K0 = { scheme: "ws", domainHost: !0, parse: function(p, y) { const w = e; - return !m[w(2232)] && (m[w(1493)] = m[w(1493)] || w(2342)), m; - }, serialize: function(m, y) { + var L = p; + return L[w(2246)] = ba(L), L[w(1160)] = (L.path || "/") + (L[w(1267)] ? "?" + L[w(1267)] : ""), L[w(2474)] = void 0, L[w(1267)] = void 0, L; + }, serialize: function(p, y) { const w = e; - var U = String(m[w(2503)]).toLowerCase() === w(2276); - return (m[w(1706)] === (U ? 443 : 80) || m.port === "") && (m[w(1706)] = void 0), !m[w(2075)] && (m[w(2075)] = "/"), m; - } }, pa = { scheme: e(2276), domainHost: W0[e(2234)], parse: W0[e(1584)], serialize: W0[e(3065)] }; - function ma(E) { - const m = e; - return typeof E[m(614)] === m(1964) ? E[m(614)] : String(E[m(2503)])[m(2071)]() === m(1847); - } - var K0 = { scheme: "ws", domainHost: !0, parse: function(m, y) { - const w = e; - var U = m; - return U.secure = ma(U), U[w(364)] = (U[w(2075)] || "/") + (U[w(1542)] ? "?" + U[w(1542)] : ""), U.path = void 0, U[w(1542)] = void 0, U; - }, serialize: function(m, y) { - const w = e; - if ((m[w(1706)] === (ma(m) ? 443 : 80) || m[w(1706)] === "") && (m[w(1706)] = void 0), typeof m[w(614)] === w(1964) && (m[w(2503)] = m.secure ? w(1847) : "ws", m.secure = void 0), m.resourceName) { - var U = m[w(364)][w(1389)]("?"), $ = h(U, 2), oe = $[0], de = $[1]; - m[w(2075)] = oe && oe !== "/" ? oe : void 0, m[w(1542)] = de, m[w(364)] = void 0; + if ((p[w(2703)] === (ba(p) ? 443 : 80) || p.port === "") && (p.port = void 0), typeof p[w(2246)] === w(3106) && (p[w(2974)] = p[w(2246)] ? w(728) : "ws", p[w(2246)] = void 0), p.resourceName) { + var L = p[w(1160)][w(3263)]("?"), $ = h(L, 2), ie = $[0], ue = $[1]; + p.path = ie && ie !== "/" ? ie : void 0, p[w(1267)] = ue, p[w(1160)] = void 0; } - return m[w(1783)] = void 0, m; - } }, ba = { scheme: e(1847), domainHost: K0[e(2234)], parse: K0[e(1584)], serialize: K0[e(3065)] }, qn = {}, ga = e(3022) + e(1793) + "]", o0 = e(2359), Tn = n(n(e(1873) + o0 + "%" + o0 + o0 + "%" + o0 + o0) + "|" + n(e(868) + o0 + "%" + o0 + o0) + "|" + n("%" + o0 + o0)), An = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", _n = e(1875), On = s(_n, e(2456)), Dn = e(2080), jn = new RegExp(ga, "g"), L0 = new RegExp(Tn, "g"), Mn = new RegExp(s(e(1701), An, e(2261), e(1834), On), "g"), ya = new RegExp(s("[^]", ga, Dn), "g"), Ln = ya; - function Lx(E) { - const m = e; - var y = Q(E); - return y[m(742)](jn) ? y : E; + return p[w(2970)] = void 0, p; + } }, ga = { scheme: "wss", domainHost: K0[e(684)], parse: K0[e(2774)], serialize: K0[e(3043)] }, Cn = {}, ya = e(2113) + e(3240) + "]", o0 = e(1243), _n = n(n("%[EFef]" + o0 + "%" + o0 + o0 + "%" + o0 + o0) + "|" + n("%[89A-Fa-f]" + o0 + "%" + o0 + o0) + "|" + n("%" + o0 + o0)), Fn = e(3110), Tn = e(2877), Nn = s(Tn, e(1889)), qn = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", An = new RegExp(ya, "g"), L0 = new RegExp(_n, "g"), On = new RegExp(s(e(2817), Fn, e(1317), e(2520), Nn), "g"), va = new RegExp(s("[^]", ya, qn), "g"), Dn = va; + function $x(I) { + const p = e; + var y = X(I); + return y[p(2314)](An) ? y : I; } - var va = { scheme: e(2649), parse: function(m, y) { + var wa = { scheme: e(1764), parse: function(p, y) { const w = e; - var U = m, $ = U.to = U[w(2075)] ? U[w(2075)][w(1389)](",") : []; - if (U[w(2075)] = void 0, U[w(1542)]) { - for (var oe = !1, de = {}, Fe = U[w(1542)].split("&"), je = 0, Ve = Fe[w(2910)]; je < Ve; ++je) { - var Pe = Fe[je][w(1389)]("="); - switch (Pe[0]) { + var L = p, $ = L.to = L.path ? L[w(2474)][w(3263)](",") : []; + if (L[w(2474)] = void 0, L.query) { + for (var ie = !1, ue = {}, Ee = L[w(1267)][w(3263)]("&"), je = 0, Be = Ee[w(2710)]; je < Be; ++je) { + var Re = Ee[je].split("="); + switch (Re[0]) { case "to": - for (var Oe = Pe[1][w(1389)](","), Be = 0, ge = Oe[w(2910)]; Be < ge; ++Be) - $.push(Oe[Be]); + for (var De = Re[1][w(3263)](","), We = 0, ge = De[w(2710)]; We < ge; ++We) + $.push(De[We]); break; - case w(2147): - U[w(2147)] = b0(Pe[1], y); + case w(1005): + L[w(1005)] = b0(Re[1], y); break; - case w(2022): - U[w(2022)] = b0(Pe[1], y); + case w(1946): + L.body = b0(Re[1], y); break; default: - oe = !0, de[b0(Pe[0], y)] = b0(Pe[1], y); + ie = !0, ue[b0(Re[0], y)] = b0(Re[1], y); break; } } - oe && (U[w(1711)] = de); + ie && (L.headers = ue); } - U[w(1542)] = void 0; - for (var $e = 0, Ze = $[w(2910)]; $e < Ze; ++$e) { - var Ue = $[$e][w(1389)]("@"); - if (Ue[0] = b0(Ue[0]), y[w(361)]) Ue[1] = b0(Ue[1], y)[w(2071)](); + L[w(1267)] = void 0; + for (var $e = 0, Ze = $[w(2710)]; $e < Ze; ++$e) { + var Ue = $[$e][w(3263)]("@"); + if (Ue[0] = b0(Ue[0]), y[w(2128)]) Ue[1] = b0(Ue[1], y)[w(1945)](); else try { - Ue[1] = A[w(898)](b0(Ue[1], y).toLowerCase()); - } catch (P0) { - U[w(1493)] = U[w(1493)] || w(2539) + P0; + Ue[1] = F.toASCII(b0(Ue[1], y)[w(1945)]()); + } catch (I0) { + L[w(490)] = L[w(490)] || w(1071) + I0; } - $[$e] = Ue[w(952)]("@"); + $[$e] = Ue[w(1592)]("@"); } - return U; - }, serialize: function(m, y) { + return L; + }, serialize: function(p, y) { const w = e; - var U = m, $ = d(m.to); + var L = p, $ = u(p.to); if ($) { - for (var oe = 0, de = $[w(2910)]; oe < de; ++oe) { - var Fe = String($[oe]), je = Fe[w(2662)]("@"), Ve = Fe[w(2527)](0, je).replace(L0, Lx)[w(1840)](L0, c)[w(1840)](Mn, J), Pe = Fe[w(2527)](je + 1); + for (var ie = 0, ue = $[w(2710)]; ie < ue; ++ie) { + var Ee = String($[ie]), je = Ee.lastIndexOf("@"), Be = Ee[w(1387)](0, je)[w(1521)](L0, $x)[w(1521)](L0, c)[w(1521)](On, J), Re = Ee[w(1387)](je + 1); try { - Pe = y[w(2116)] ? A.toUnicode(Pe) : A[w(898)](b0(Pe, y).toLowerCase()); + Re = y.iri ? F[w(1043)](Re) : F[w(1794)](b0(Re, y)[w(1945)]()); } catch ($e) { - U.error = U.error || w(2592) + (y[w(2116)] ? w(2469) : w(2803)) + " via punycode: " + $e; + L[w(490)] = L[w(490)] || w(1030) + (y[w(549)] ? w(2424) : w(513)) + w(1622) + $e; } - $[oe] = Ve + "@" + Pe; + $[ie] = Be + "@" + Re; } - U.path = $[w(952)](","); + L[w(2474)] = $[w(1592)](","); } - var Oe = m[w(1711)] = m[w(1711)] || {}; - m[w(2147)] && (Oe.subject = m.subject), m.body && (Oe[w(2022)] = m[w(2022)]); - var Be = []; - for (var ge in Oe) - Oe[ge] !== qn[ge] && Be[w(816)](ge.replace(L0, Lx)[w(1840)](L0, c)[w(1840)](ya, J) + "=" + Oe[ge][w(1840)](L0, Lx)[w(1840)](L0, c)[w(1840)](Ln, J)); - return Be[w(2910)] && (U[w(1542)] = Be[w(952)]("&")), U; - } }, $n = /^([^\:]+)\:(.*)/, wa = { scheme: e(385), parse: function(m, y) { + var De = p[w(1581)] = p[w(1581)] || {}; + p[w(1005)] && (De.subject = p.subject), p.body && (De[w(1946)] = p[w(1946)]); + var We = []; + for (var ge in De) + De[ge] !== Cn[ge] && We[w(3062)](ge.replace(L0, $x)[w(1521)](L0, c)[w(1521)](va, J) + "=" + De[ge][w(1521)](L0, $x)[w(1521)](L0, c)[w(1521)](Dn, J)); + return We[w(2710)] && (L.query = We.join("&")), L; + } }, jn = /^([^\:]+)\:(.*)/, Sa = { scheme: e(1832), parse: function(p, y) { const w = e; - var U = m[w(2075)] && m[w(2075)][w(742)]($n), $ = m; - if (U) { - var oe = y[w(2503)] || $.scheme || "urn", de = U[1][w(2071)](), Fe = U[2], je = oe + ":" + (y.nid || de), Ve = j[je]; - $[w(687)] = de, $.nss = Fe, $[w(2075)] = void 0, Ve && ($ = Ve.parse($, y)); - } else $.error = $[w(1493)] || w(508); + var L = p.path && p[w(2474)][w(2314)](jn), $ = p; + if (L) { + var ie = y[w(2974)] || $[w(2974)] || w(1832), ue = L[1][w(1945)](), Ee = L[2], je = ie + ":" + (y[w(2124)] || ue), Be = j[je]; + $[w(2124)] = ue, $[w(803)] = Ee, $.path = void 0, Be && ($ = Be[w(2774)]($, y)); + } else $[w(490)] = $[w(490)] || "URN can not be parsed."; return $; - }, serialize: function(m, y) { + }, serialize: function(p, y) { const w = e; - var U = y[w(2503)] || m[w(2503)] || w(385), $ = m[w(687)], oe = U + ":" + (y[w(687)] || $), de = j[oe]; - de && (m = de[w(3065)](m, y)); - var Fe = m, je = m[w(1123)]; - return Fe[w(2075)] = ($ || y[w(687)]) + ":" + je, Fe; - } }, Un = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, Sa = { scheme: e(1818), parse: function(m, y) { + var L = y[w(2974)] || p[w(2974)] || w(1832), $ = p[w(2124)], ie = L + ":" + (y.nid || $), ue = j[ie]; + ue && (p = ue[w(3043)](p, y)); + var Ee = p, je = p[w(803)]; + return Ee[w(2474)] = ($ || y[w(2124)]) + ":" + je, Ee; + } }, Mn = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, ka = { scheme: e(2437), parse: function(p, y) { const w = e; - var U = m; - return U[w(1342)] = U[w(1123)], U[w(1123)] = void 0, !y.tolerant && (!U.uuid || !U[w(1342)].match(Un)) && (U[w(1493)] = U[w(1493)] || w(828)), U; - }, serialize: function(m, y) { + var L = p; + return L[w(1551)] = L[w(803)], L[w(803)] = void 0, !y.tolerant && (!L.uuid || !L.uuid[w(2314)](Mn)) && (L[w(490)] = L[w(490)] || w(884)), L; + }, serialize: function(p, y) { const w = e; - var U = m; - return U[w(1123)] = (m[w(1342)] || "")[w(2071)](), U; + var L = p; + return L.nss = (p[w(1551)] || "")[w(1945)](), L; } }; - j[W0[e(2503)]] = W0, j[pa[e(2503)]] = pa, j[K0.scheme] = K0, j[ba.scheme] = ba, j[va[e(2503)]] = va, j[wa[e(2503)]] = wa, j[Sa.scheme] = Sa, r.SCHEMES = j, r.pctEncChar = J, r[e(2153)] = Q, r.parse = Ae, r[e(1590)] = _e, r[e(3065)] = ze, r[e(1143)] = Ye, r[e(510)] = N0, r[e(847)] = Mx, r[e(2881)] = Fn, r[e(2742)] = Nn, r[e(953)] = b0, Object[e(1171)](r, e(2617), { value: !0 }); + j[Z0[e(2974)]] = Z0, j[ma.scheme] = ma, j[K0[e(2974)]] = K0, j[ga.scheme] = ga, j[wa[e(2974)]] = wa, j[Sa.scheme] = Sa, j[ka[e(2974)]] = ka, r[e(777)] = j, r[e(3084)] = J, r[e(1362)] = X, r.parse = Ae, r[e(1652)] = Oe, r.serialize = He, r[e(1050)] = Ye, r[e(2457)] = M0, r.normalize = Lx, r[e(495)] = pa, r[e(1918)] = Rn, r[e(1326)] = b0, Object[e(2796)](r, e(1605), { value: !0 }); }); - })(X0, X0[o(982)])), X0.exports; + })(Y0, Y0[o(732)])), Y0[o(732)]; } -var Qx, sr; +var Qx, nr; function la() { - return sr || (sr = 1, Qx = function o(x, t) { + return nr || (nr = 1, Qx = function o(x, t) { const r = K; if (x === t) return !0; - if (x && t && typeof x == "object" && typeof t == r(2517)) { - if (x.constructor !== t[r(2693)]) return !1; + if (x && t && typeof x == r(1304) && typeof t == "object") { + if (x[r(2038)] !== t[r(2038)]) return !1; var e, s, n; - if (Array.isArray(x)) { - if (e = x[r(2910)], e != t.length) return !1; + if (Array[r(3255)](x)) { + if (e = x.length, e != t[r(2710)]) return !1; for (s = e; s-- !== 0; ) if (!o(x[s], t[s])) return !1; return !0; } - if (x.constructor === RegExp) return x[r(862)] === t[r(862)] && x[r(2340)] === t[r(2340)]; - if (x[r(1066)] !== Object[r(560)][r(1066)]) return x[r(1066)]() === t[r(1066)](); - if (x.toString !== Object[r(560)][r(1725)]) return x[r(1725)]() === t[r(1725)](); - if (n = Object[r(548)](x), e = n[r(2910)], e !== Object[r(548)](t).length) return !1; - for (s = e; s-- !== 0; ) if (!Object[r(560)][r(938)][r(1175)](t, n[s])) return !1; + if (x.constructor === RegExp) return x[r(1038)] === t.source && x.flags === t[r(2924)]; + if (x.valueOf !== Object[r(2587)].valueOf) return x[r(2614)]() === t.valueOf(); + if (x.toString !== Object[r(2587)][r(2732)]) return x[r(2732)]() === t[r(2732)](); + if (n = Object[r(2123)](x), e = n[r(2710)], e !== Object[r(2123)](t).length) return !1; + for (s = e; s-- !== 0; ) if (!Object[r(2587)][r(1315)].call(t, n[s])) return !1; for (s = e; s-- !== 0; ) { var i = n[s]; if (!o(x[i], t[i])) return !1; @@ -5352,2250 +5402,2242 @@ function la() { return x !== x && t !== t; }), Qx; } -var Xx, nr; -function cc() { - return nr || (nr = 1, Xx = function(x) { +var Xx, or; +function n2() { + return or || (or = 1, Xx = function(x) { const t = K; - for (var r = 0, e = x[t(2910)], s = 0, n; s < e; ) - r++, n = x[t(425)](s++), n >= 55296 && n <= 56319 && s < e && (n = x[t(425)](s), (n & 64512) == 56320 && s++); + for (var r = 0, e = x.length, s = 0, n; s < e; ) + r++, n = x[t(901)](s++), n >= 55296 && n <= 56319 && s < e && (n = x.charCodeAt(s), (n & 64512) == 56320 && s++); return r; }), Xx; } -var Yx, or; -function Z0() { +var Yx, ir; +function W0() { const o = a; - if (or) return Yx; - or = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: d, escapeQuotes: u, equal: la(), ucs2length: cc(), varOccurences: l, varReplace: f, schemaHasRules: b, schemaHasRulesExcept: h, schemaUnknownRules: p, toQuotedString: v, getPathExpr: k, getPath: P, getData: C, unescapeFragment: R, unescapeJsonPointer: M, escapeFragment: O, escapeJsonPointer: D }; - function x(F, q) { - q = q || {}; - for (var H in F) q[H] = F[H]; - return q; + if (ir) return Yx; + ir = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: u, escapeQuotes: f, equal: la(), ucs2length: n2(), varOccurences: l, varReplace: d, schemaHasRules: g, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: v, getPathExpr: k, getPath: P, getData: R, unescapeFragment: C, unescapeJsonPointer: M, escapeFragment: A, escapeJsonPointer: O }; + function x(_, N) { + N = N || {}; + for (var z in _) N[z] = _[z]; + return N; } - function t(F, q, H, L) { - const z = K; - var G = L ? z(844) : " === ", se = L ? " || " : z(905), re = L ? "!" : "", ue = L ? "" : "!"; - switch (F) { - case z(2973): - return q + G + z(2973); - case z(1517): - return re + z(2117) + q + ")"; - case z(2517): - return "(" + re + q + se + "typeof " + q + G + z(704) + se + ue + z(2117) + q + "))"; - case z(2421): - return "(typeof " + q + G + z(2102) + se + ue + "(" + q + z(402) + se + q + G + q + (H ? se + re + z(861) + q + ")" : "") + ")"; - case z(1730): - return z(1296) + q + G + '"' + F + '"' + (H ? se + re + "isFinite(" + q + ")" : "") + ")"; + function t(_, N, z, U) { + const H = K; + var G = U ? H(2781) : " === ", re = U ? " || " : H(3061), se = U ? "!" : "", fe = U ? "" : "!"; + switch (_) { + case H(1959): + return N + G + H(1959); + case H(529): + return se + H(1915) + N + ")"; + case "object": + return "(" + se + N + re + H(1762) + N + G + '"object"' + re + fe + H(1915) + N + "))"; + case H(766): + return "(typeof " + N + G + H(1513) + re + fe + "(" + N + H(647) + re + N + G + N + (z ? re + se + "isFinite(" + N + ")" : "") + ")"; + case H(2665): + return H(3201) + N + G + '"' + _ + '"' + (z ? re + se + "isFinite(" + N + ")" : "") + ")"; default: - return z(826) + q + G + '"' + F + '"'; + return "typeof " + N + G + '"' + _ + '"'; } } - function r(F, q, H) { - const L = K; - switch (F.length) { + function r(_, N, z) { + const U = K; + switch (_.length) { case 1: - return t(F[0], q, H, !0); + return t(_[0], N, z, !0); default: - var z = "", G = n(F); - G[L(1517)] && G[L(2517)] && (z = G[L(2973)] ? "(" : "(!" + q + L(1073), z += L(826) + q + L(1254), delete G[L(2973)], delete G[L(1517)], delete G.object), G[L(1730)] && delete G[L(2421)]; - for (var se in G) z += (z ? " && " : "") + t(se, q, H, !0); - return z; + var H = "", G = n(_); + G[U(529)] && G[U(1304)] && (H = G[U(1959)] ? "(" : "(!" + N + " || ", H += U(1762) + N + ' !== "object")', delete G.null, delete G[U(529)], delete G[U(1304)]), G.number && delete G[U(766)]; + for (var re in G) H += (H ? U(3061) : "") + t(re, N, z, !0); + return H; } } - var e = n([o(1443), o(1730), o(2421), "boolean", "null"]); - function s(F, q) { - const H = o; - if (Array.isArray(q)) { - for (var L = [], z = 0; z < q.length; z++) { - var G = q[z]; - e[G] ? L[L[H(2910)]] = G : F === H(1517) && G === H(1517) && (L[L.length] = G); + var e = n([o(1361), o(2665), o(766), o(3106), o(1959)]); + function s(_, N) { + const z = o; + if (Array[z(3255)](N)) { + for (var U = [], H = 0; H < N[z(2710)]; H++) { + var G = N[H]; + e[G] ? U[U.length] = G : _ === "array" && G === "array" && (U[U[z(2710)]] = G); } - if (L.length) return L; + if (U[z(2710)]) return U; } else { - if (e[q]) return [q]; - if (F === H(1517) && q === H(1517)) return [H(1517)]; + if (e[N]) return [N]; + if (_ === "array" && N === z(529)) return ["array"]; } } - function n(F) { - const q = o; - for (var H = {}, L = 0; L < F[q(2910)]; L++) H[F[L]] = !0; - return H; + function n(_) { + for (var N = {}, z = 0; z < _.length; z++) N[_[z]] = !0; + return N; } var i = /^[a-z$_][a-z$_0-9]*$/i, c = /'|\\/g; - function d(F) { - const q = o; - return typeof F == q(1730) ? "[" + F + "]" : i[q(2266)](F) ? "." + F : "['" + u(F) + "']"; + function u(_) { + return typeof _ == "number" ? "[" + _ + "]" : i[o(2346)](_) ? "." + _ : "['" + f(_) + "']"; } - function u(F) { - const q = o; - return F[q(1840)](c, q(2802)).replace(/\n/g, "\\n").replace(/\r/g, "\\r")[q(1840)](/\f/g, "\\f")[q(1840)](/\t/g, "\\t"); + function f(_) { + const N = o; + return _[N(1521)](c, N(898))[N(1521)](/\n/g, "\\n")[N(1521)](/\r/g, "\\r")[N(1521)](/\f/g, "\\f")[N(1521)](/\t/g, "\\t"); } - function l(F, q) { - const H = o; - q += H(2979); - var L = F[H(742)](new RegExp(q, "g")); - return L ? L[H(2910)] : 0; - } - function f(F, q, H) { - const L = o; - return q += L(1388), H = H[L(1840)](/\$/g, L(758)), F[L(1840)](new RegExp(q, "g"), H + "$1"); - } - function b(F, q) { - if (typeof F == o(1964)) return !F; - for (var L in F) if (q[L]) return !0; - } - function h(F, q, H) { - const L = o; - if (typeof F == L(1964)) return !F && H != L(685); - for (var z in F) if (z != H && q[z]) return !0; - } - function p(F, q) { - if (typeof F != o(1964)) { - for (var L in F) if (!q[L]) return L; - } - } - function v(F) { - return "'" + u(F) + "'"; - } - function k(F, q, H, L) { + function l(_, N) { const z = o; - var G = H ? "'/' + " + q + (L ? "" : z(1850)) : L ? z(2704) + q + z(2857) : "'[\\'' + " + q + z(2988); - return I(F, G); + N += z(1567); + var U = _[z(2314)](new RegExp(N, "g")); + return U ? U.length : 0; } - function P(F, q, H) { - var L = v(H ? "/" + D(q) : d(q)); - return I(F, L); + function d(_, N, z) { + const U = o; + return N += "([^0-9])", z = z[U(1521)](/\$/g, U(1017)), _[U(1521)](new RegExp(N, "g"), z + "$1"); } - var N = /^\/(?:[^~]|~0|~1)*$/, T = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; - function C(F, q, H) { - const L = o; - var z, G, se, re; - if (F === "") return L(1400); - if (F[0] == "/") { - if (!N.test(F)) throw new Error("Invalid JSON-pointer: " + F); - G = F, se = L(1400); - } else { - if (re = F[L(742)](T), !re) throw new Error(L(2642) + F); - if (z = +re[1], G = re[2], G == "#") { - if (z >= q) throw new Error(L(1152) + z + " levels up, current level is " + q); - return H[q - z]; - } - if (z > q) throw new Error(L(1710) + z + L(564) + q); - if (se = L(571) + (q - z || ""), !G) return se; + function g(_, N) { + if (typeof _ == "boolean") return !_; + for (var z in _) if (N[z]) return !0; + } + function h(_, N, z) { + if (typeof _ == o(3106)) return !_ && z != "not"; + for (var H in _) if (H != z && N[H]) return !0; + } + function m(_, N) { + if (typeof _ != o(3106)) { + for (var U in _) if (!N[U]) return U; } - for (var ue = se, fe = G.split("/"), le = 0; le < fe[L(2910)]; le++) { - var we = fe[le]; - we && (se += d(M(we)), ue += L(905) + se); - } - return ue; } - function I(F, q) { + function v(_) { + return "'" + f(_) + "'"; + } + function k(_, N, z, U) { const H = o; - return F == '""' ? q : (F + H(509) + q)[H(1840)](/([^\\])' \+ '/g, "$1"); + var G = z ? H(2401) + N + (U ? "" : H(1094)) : U ? H(2105) + N + H(1926) : H(2878) + N + " + '\\']'"; + return E(_, G); } - function R(F) { - return M(decodeURIComponent(F)); + function P(_, N, z) { + var U = v(z ? "/" + O(N) : u(N)); + return E(_, U); } - function O(F) { - return encodeURIComponent(D(F)); + var T = /^\/(?:[^~]|~0|~1)*$/, q = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; + function R(_, N, z) { + const U = o; + var H, G, re, se; + if (_ === "") return U(2871); + if (_[0] == "/") { + if (!T.test(_)) throw new Error(U(3016) + _); + G = _, re = "rootData"; + } else { + if (se = _.match(q), !se) throw new Error(U(3016) + _); + if (H = +se[1], G = se[2], G == "#") { + if (H >= N) throw new Error(U(1862) + H + U(2381) + N); + return z[N - H]; + } + if (H > N) throw new Error(U(1518) + H + " levels up, current level is " + N); + if (re = "data" + (N - H || ""), !G) return re; + } + for (var fe = re, de = G[U(3263)]("/"), le = 0; le < de[U(2710)]; le++) { + var Se = de[le]; + Se && (re += u(M(Se)), fe += U(3061) + re); + } + return fe; } - function D(F) { - return F.replace(/~/g, "~0").replace(/\//g, "~1"); + function E(_, N) { + const z = o; + return _ == '""' ? N : (_ + " + " + N)[z(1521)](/([^\\])' \+ '/g, "$1"); } - function M(F) { - const q = o; - return F[q(1840)](/~1/g, "/")[q(1840)](/~0/g, "~"); + function C(_) { + return M(decodeURIComponent(_)); + } + function A(_) { + return encodeURIComponent(O(_)); + } + function O(_) { + return _[o(1521)](/~/g, "~0").replace(/\//g, "~1"); + } + function M(_) { + const N = o; + return _[N(1521)](/~1/g, "/")[N(1521)](/~0/g, "~"); } return Yx; } -var et, ir; -function wn() { - if (ir) return et; - ir = 1; - var o = Z0(); +var et, cr; +function yn() { + if (cr) return et; + cr = 1; + var o = W0(); et = x; function x(t) { - o[K(1303)](t, this); + o[K(2615)](t, this); } return et; } -var xt = { exports: {} }, cr; -function dc() { +var xt = { exports: {} }, ur; +function o2() { const o = a; - if (cr) return xt[o(982)]; - cr = 1; - var x = xt[o(982)] = function(e, s, n) { + if (ur) return xt[o(732)]; + ur = 1; + var x = xt[o(732)] = function(e, s, n) { const i = o; - typeof s == i(2855) && (n = s, s = {}), n = s.cb || n; - var c = typeof n == "function" ? n : n[i(2053)] || function() { - }, d = n.post || function() { + typeof s == "function" && (n = s, s = {}), n = s.cb || n; + var c = typeof n == i(1936) ? n : n[i(1093)] || function() { + }, u = n.post || function() { }; - t(s, c, d, e, "", e); + t(s, c, u, e, "", e); }; - x.keywords = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x[o(2701)] = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(388)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[o(1134)] = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; - function t(e, s, n, i, c, d, u, l, f, b) { + x[o(1997)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x[o(2510)] = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(3231)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[o(1505)] = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; + function t(e, s, n, i, c, u, f, l, d, g) { const h = o; - if (i && typeof i == h(2517) && !Array[h(2573)](i)) { - s(i, c, d, u, l, f, b); - for (var p in i) { - var v = i[p]; - if (Array.isArray(v)) { - if (p in x.arrayKeywords) - for (var k = 0; k < v.length; k++) t(e, s, n, v[k], c + "/" + p + "/" + k, d, c, p, i, k); - } else if (p in x[h(388)]) { - if (v && typeof v == h(2517)) - for (var P in v) t(e, s, n, v[P], c + "/" + p + "/" + r(P), d, c, p, i, P); - } else (p in x[h(931)] || e[h(507)] && !(p in x[h(1134)])) && t(e, s, n, v, c + "/" + p, d, c, p, i); + if (i && typeof i == h(1304) && !Array[h(3255)](i)) { + s(i, c, u, f, l, d, g); + for (var m in i) { + var v = i[m]; + if (Array[h(3255)](v)) { + if (m in x[h(2510)]) + for (var k = 0; k < v.length; k++) t(e, s, n, v[k], c + "/" + m + "/" + k, u, c, m, i, k); + } else if (m in x[h(3231)]) { + if (v && typeof v == h(1304)) + for (var P in v) t(e, s, n, v[P], c + "/" + m + "/" + r(P), u, c, m, i, P); + } else (m in x[h(1997)] || e[h(2640)] && !(m in x[h(1505)])) && t(e, s, n, v, c + "/" + m, u, c, m, i); } - n(i, c, d, u, l, f, b); + n(i, c, u, f, l, d, g); } } function r(e) { const s = o; - return e[s(1840)](/~/g, "~0")[s(1840)](/\//g, "~1"); + return e.replace(/~/g, "~0")[s(1521)](/\//g, "~1"); } - return xt.exports; + return xt[o(732)]; } -var tt, dr; -function fa() { +var tt, fr; +function da() { const o = a; - if (dr) return tt; - dr = 1; - var x = ic(), t = la(), r = Z0(), e = wn(), s = dc(); - tt = n, n[o(1651)] = P, n[o(1708)] = p, n[o(1998)] = N, n[o(1190)] = T, n[o(781)] = f, n[o(1346)] = i; - function n(C, I, R) { - const O = o; - var D = this[O(442)][R]; - if (typeof D == "string") - if (this._refs[D]) D = this[O(442)][D]; - else return n[O(1175)](this, C, I, D); - if (D = D || this[O(2166)][R], D instanceof e) return f(D.schema, this[O(1797)][O(2702)]) ? D[O(1346)] : D[O(2033)] || this[O(2015)](D); - var M = i.call(this, I, R), F, q, H; - return M && (F = M[O(1346)], I = M[O(1794)], H = M[O(1620)]), F instanceof e ? q = F[O(2033)] || C[O(1175)](this, F[O(1346)], I, void 0, H) : F !== void 0 && (q = f(F, this[O(1797)][O(2702)]) ? F : C[O(1175)](this, F, I, void 0, H)), q; + if (fr) return tt; + fr = 1; + var x = s2(), t = la(), r = W0(), e = yn(), s = o2(); + tt = n, n.normalizeId = P, n[o(3081)] = m, n.url = T, n[o(2707)] = q, n[o(3126)] = d, n[o(1425)] = i; + function n(R, E, C) { + const A = o; + var O = this[A(497)][C]; + if (typeof O == A(1361)) + if (this._refs[O]) O = this[A(497)][O]; + else return n[A(1522)](this, R, E, O); + if (O = O || this[A(2265)][C], O instanceof e) return d(O[A(1425)], this[A(1068)].inlineRefs) ? O[A(1425)] : O[A(3181)] || this._compile(O); + var M = i[A(1522)](this, E, C), _, N, z; + return M && (_ = M[A(1425)], E = M[A(2212)], z = M.baseId), _ instanceof e ? N = _[A(3181)] || R[A(1522)](this, _[A(1425)], E, void 0, z) : _ !== void 0 && (N = d(_, this[A(1068)][A(2998)]) ? _ : R[A(1522)](this, _, E, void 0, z)), N; } - function i(C, I) { - const R = o; - var O = x[R(1584)](I), D = v(O), M = p(this[R(2516)](C[R(1346)])); - if (Object.keys(C[R(1346)])[R(2910)] === 0 || D !== M) { - var F = P(D), q = this[R(442)][F]; - if (typeof q == R(1443)) return c.call(this, C, q, O); - if (q instanceof e) - q[R(2033)] || this._compile(q), C = q; - else if (q = this[R(2166)][F], q instanceof e) { - if (q[R(2033)] || this[R(2015)](q), F == P(I)) return { schema: q, root: C, baseId: M }; - C = q; + function i(R, E) { + const C = o; + var A = x[C(2774)](E), O = v(A), M = m(this._getId(R[C(1425)])); + if (Object[C(2123)](R.schema)[C(2710)] === 0 || O !== M) { + var _ = P(O), N = this[C(497)][_]; + if (typeof N == C(1361)) return c[C(1522)](this, R, N, A); + if (N instanceof e) + N[C(3181)] || this[C(1026)](N), R = N; + else if (N = this[C(2265)][_], N instanceof e) { + if (N.validate || this[C(1026)](N), _ == P(E)) return { schema: N, root: R, baseId: M }; + R = N; } else return; - if (!C[R(1346)]) return; - M = p(this[R(2516)](C[R(1346)])); + if (!R[C(1425)]) return; + M = m(this[C(1776)](R[C(1425)])); } - return u.call(this, O, M, C.schema, C); + return f[C(1522)](this, A, M, R.schema, R); } - function c(C, I, R) { + function c(R, E, C) { + const A = o; + var O = i[A(1522)](this, R, E); + if (O) { + var M = O.schema, _ = O[A(805)]; + R = O[A(2212)]; + var N = this[A(1776)](M); + return N && (_ = T(_, N)), f[A(1522)](this, C, _, M, R); + } + } + var u = r[o(709)]([o(3005), "patternProperties", o(2218), o(1110), o(2451)]); + function f(R, E, C, A) { const O = o; - var D = i.call(this, C, I); - if (D) { - var M = D[O(1346)], F = D[O(1620)]; - C = D.root; - var q = this._getId(M); - return q && (F = N(F, q)), u[O(1175)](this, R, F, M, C); - } - } - var d = r.toHash(["properties", o(2364), o(1662), o(2012), o(902)]); - function u(C, I, R, O) { - const D = o; - if (C[D(1783)] = C[D(1783)] || "", C[D(1783)][D(2527)](0, 1) == "/") { - for (var M = C[D(1783)].split("/"), F = 1; F < M[D(2910)]; F++) { - var q = M[F]; - if (q) { - if (q = r[D(1664)](q), R = R[q], R === void 0) break; - var H; - if (!d[q] && (H = this[D(2516)](R), H && (I = N(I, H)), R[D(1753)])) { - var L = N(I, R[D(1753)]), z = i[D(1175)](this, O, L); - z && (R = z[D(1346)], O = z[D(1794)], I = z[D(1620)]); + if (R[O(2970)] = R[O(2970)] || "", R.fragment.slice(0, 1) == "/") { + for (var M = R[O(2970)].split("/"), _ = 1; _ < M[O(2710)]; _++) { + var N = M[_]; + if (N) { + if (N = r[O(2770)](N), C = C[N], C === void 0) break; + var z; + if (!u[N] && (z = this[O(1776)](C), z && (E = T(E, z)), C[O(885)])) { + var U = T(E, C.$ref), H = i[O(1522)](this, A, U); + H && (C = H[O(1425)], A = H[O(2212)], E = H[O(805)]); } } } - if (R !== void 0 && R !== O.schema) return { schema: R, root: O, baseId: I }; + if (C !== void 0 && C !== A[O(1425)]) return { schema: C, root: A, baseId: E }; } } - var l = r.toHash([o(506), "format", o(987), "maxLength", o(2694), o(1440), o(2067), "maxItems", o(2805), "maximum", o(2242), o(561), o(2570), o(2914), "enum"]); - function f(C, I) { - if (I === !1) return !1; - if (I === void 0 || I === !0) return b(C); - if (I) return h(C) <= I; + var l = r[o(709)]([o(2076), o(802), "pattern", o(649), o(1312), o(1651), o(2371), o(1335), o(1919), o(631), o(2226), o(1684), o(2798), o(2438), o(2218)]); + function d(R, E) { + if (E === !1) return !1; + if (E === void 0 || E === !0) return g(R); + if (E) return h(R) <= E; } - function b(C) { - const I = o; - var R; - if (Array[I(2573)](C)) { - for (var O = 0; O < C[I(2910)]; O++) - if (R = C[O], typeof R == I(2517) && !b(R)) return !1; - } else for (var D in C) - if (D == I(1753) || (R = C[D], typeof R == "object" && !b(R))) return !1; + function g(R) { + const E = o; + var C; + if (Array[E(3255)](R)) { + for (var A = 0; A < R.length; A++) + if (C = R[A], typeof C == "object" && !g(C)) return !1; + } else for (var O in R) + if (O == "$ref" || (C = R[O], typeof C == E(1304) && !g(C))) return !1; return !0; } - function h(C) { - const I = o; - var R = 0, O; - if (Array.isArray(C)) { - for (var D = 0; D < C[I(2910)]; D++) - if (O = C[D], typeof O == "object" && (R += h(O)), R == 1 / 0) return 1 / 0; - } else for (var M in C) { + function h(R) { + const E = o; + var C = 0, A; + if (Array[E(3255)](R)) { + for (var O = 0; O < R[E(2710)]; O++) + if (A = R[O], typeof A == "object" && (C += h(A)), C == 1 / 0) return 1 / 0; + } else for (var M in R) { if (M == "$ref") return 1 / 0; - if (l[M]) R++; - else if (O = C[M], typeof O == I(2517) && (R += h(O) + 1), R == 1 / 0) return 1 / 0; + if (l[M]) C++; + else if (A = R[M], typeof A == E(1304) && (C += h(A) + 1), C == 1 / 0) return 1 / 0; } - return R; + return C; } - function p(C, I) { - I !== !1 && (C = P(C)); - var R = x.parse(C); - return v(R); + function m(R, E) { + const C = o; + E !== !1 && (R = P(R)); + var A = x[C(2774)](R); + return v(A); } - function v(C) { - const I = o; - return x[I(3065)](C)[I(1389)]("#")[0] + "#"; + function v(R) { + return x.serialize(R).split("#")[0] + "#"; } var k = /#\/?$/; - function P(C) { - return C ? C[o(1840)](k, "") : ""; + function P(R) { + return R ? R[o(1521)](k, "") : ""; } - function N(C, I) { - const R = o; - return I = P(I), x[R(510)](C, I); + function T(R, E) { + const C = o; + return E = P(E), x[C(2457)](R, E); } - function T(C) { - var I = P(this._getId(C)), R = { "": I }, O = { "": p(I, !1) }, D = {}, M = this; - return s(C, { allKeys: !0 }, function(F, q, H, L, z, G, se) { - const re = K; - if (q !== "") { - var ue = M[re(2516)](F), fe = R[L], le = O[L] + "/" + z; - if (se !== void 0 && (le += "/" + (typeof se == re(1730) ? se : r[re(800)](se))), typeof ue == "string") { - ue = fe = P(fe ? x[re(510)](fe, ue) : ue); - var we = M._refs[ue]; - if (typeof we == re(1443) && (we = M[re(442)][we]), we && we[re(1346)]) { - if (!t(F, we.schema)) throw new Error(re(2663) + ue + '" resolves to more than one schema'); - } else if (ue != P(le)) - if (ue[0] == "#") { - if (D[ue] && !t(F, D[ue])) throw new Error(re(2663) + ue + re(917)); - D[ue] = F; - } else M[re(442)][ue] = le; + function q(R) { + var E = P(this._getId(R)), C = { "": E }, A = { "": m(E, !1) }, O = {}, M = this; + return s(R, { allKeys: !0 }, function(_, N, z, U, H, G, re) { + const se = K; + if (N !== "") { + var fe = M._getId(_), de = C[U], le = A[U] + "/" + H; + if (re !== void 0 && (le += "/" + (typeof re == se(2665) ? re : r[se(1675)](re))), typeof fe == se(1361)) { + fe = de = P(de ? x[se(2457)](de, fe) : fe); + var Se = M._refs[fe]; + if (typeof Se == se(1361) && (Se = M._refs[Se]), Se && Se[se(1425)]) { + if (!t(_, Se[se(1425)])) throw new Error(se(2577) + fe + se(2730)); + } else if (fe != P(le)) + if (fe[0] == "#") { + if (O[fe] && !t(_, O[fe])) throw new Error(se(2577) + fe + '" resolves to more than one schema'); + O[fe] = _; + } else M._refs[fe] = le; } - R[q] = fe, O[q] = le; + C[N] = de, A[N] = le; } - }), D; + }), O; } return tt; } -var at, ur; +var at, lr; function ha() { const o = a; - if (ur) return at; - ur = 1; - var x = fa(); + if (lr) return at; + lr = 1; + var x = da(); at = { Validation: e(t), MissingRef: e(r) }; function t(s) { const n = K; - this[n(2732)] = "validation failed", this[n(2311)] = s, this[n(2854)] = this.validation = !0; + this[n(1044)] = n(2874), this[n(2800)] = s, this[n(1430)] = this[n(2183)] = !0; } - r[o(2732)] = function(s, n) { + r[o(1044)] = function(s, n) { const i = o; - return i(2126) + n + i(1181) + s; + return i(857) + n + i(2227) + s; }; function r(s, n, i) { const c = o; - this[c(2732)] = i || r[c(2732)](s, n), this[c(1513)] = x.url(s, n), this[c(622)] = x.normalizeId(x[c(1708)](this[c(1513)])); + this.message = i || r.message(s, n), this.missingRef = x.url(s, n), this[c(528)] = x[c(3133)](x[c(3081)](this.missingRef)); } function e(s) { const n = o; - return s.prototype = Object[n(1468)](Error[n(560)]), s[n(560)][n(2693)] = s, s; + return s[n(2587)] = Object.create(Error[n(2587)]), s.prototype.constructor = s, s; } return at; } -var rt, lr; -function Sn() { - return lr || (lr = 1, rt = function(o, x) { +var rt, dr; +function vn() { + return dr || (dr = 1, rt = function(o, x) { const t = K; - x || (x = {}), typeof x === t(2855) && (x = { cmp: x }); - var r = typeof x[t(646)] === t(1964) ? x.cycles : !1, e = x[t(2158)] && /* @__PURE__ */ (function(n) { + x || (x = {}), typeof x == "function" && (x = { cmp: x }); + var r = typeof x.cycles === t(3106) ? x.cycles : !1, e = x[t(1996)] && /* @__PURE__ */ (function(n) { return function(i) { - return function(c, d) { - var u = { key: c, value: i[c] }, l = { key: d, value: i[d] }; - return n(u, l); + return function(c, u) { + var f = { key: c, value: i[c] }, l = { key: u, value: i[u] }; + return n(f, l); }; }; - })(x[t(2158)]), s = []; + })(x[t(1996)]), s = []; return (function n(i) { const c = t; - if (i && i[c(1613)] && typeof i[c(1613)] === c(2855) && (i = i.toJSON()), i !== void 0) { - if (typeof i == c(1730)) return isFinite(i) ? "" + i : c(2973); - if (typeof i !== c(2517)) return JSON.stringify(i); - var d, u; - if (Array[c(2573)](i)) { - for (u = "[", d = 0; d < i[c(2910)]; d++) - d && (u += ","), u += n(i[d]) || c(2973); - return u + "]"; + if (i && i[c(1363)] && typeof i[c(1363)] === c(1936) && (i = i[c(1363)]()), i !== void 0) { + if (typeof i == c(2665)) return isFinite(i) ? "" + i : c(1959); + if (typeof i != "object") return JSON.stringify(i); + var u, f; + if (Array[c(3255)](i)) { + for (f = "[", u = 0; u < i[c(2710)]; u++) + u && (f += ","), f += n(i[u]) || c(1959); + return f + "]"; } - if (i === null) return c(2973); - if (s.indexOf(i) !== -1) { - if (r) return JSON[c(1749)](c(2600)); - throw new TypeError(c(2083)); + if (i === null) return c(1959); + if (s[c(2436)](i) !== -1) { + if (r) return JSON.stringify(c(3070)); + throw new TypeError("Converting circular structure to JSON"); } - var l = s[c(816)](i) - 1, f = Object[c(548)](i)[c(2786)](e && e(i)); - for (u = "", d = 0; d < f[c(2910)]; d++) { - var b = f[d], h = n(i[b]); - h && (u && (u += ","), u += JSON.stringify(b) + ":" + h); + var l = s.push(i) - 1, d = Object[c(2123)](i)[c(841)](e && e(i)); + for (f = "", u = 0; u < d[c(2710)]; u++) { + var g = d[u], h = n(i[g]); + h && (f && (f += ","), f += JSON.stringify(g) + ":" + h); } - return s.splice(l, 1), "{" + u + "}"; + return s[c(2881)](l, 1), "{" + f + "}"; } })(o); }), rt; } -var st, fr; -function kn() { - return fr || (fr = 1, st = function(x, t, r) { +var st, hr; +function wn() { + return hr || (hr = 1, st = function(x, t, r) { const e = K; - var s = "", n = x[e(1346)].$async === !0, i = x[e(2980)][e(1308)](x.schema, x[e(1757)].all, "$ref"), c = x.self[e(2516)](x[e(1346)]); - if (x[e(2977)][e(1033)]) { - var d = x[e(2980)][e(1010)](x[e(1346)], x[e(1757)].keywords); - if (d) { - var u = e(2301) + d; - if (x[e(2977)][e(1033)] === "log") x[e(3053)][e(405)](u); - else throw new Error(u); + var s = "", n = x[e(1425)][e(1101)] === !0, i = x[e(1975)][e(1786)](x[e(1425)], x.RULES[e(1096)], e(885)), c = x.self[e(1776)](x.schema); + if (x[e(1544)][e(868)]) { + var u = x.util.schemaUnknownRules(x[e(1425)], x[e(2996)][e(1997)]); + if (u) { + var f = e(2198) + u; + if (x[e(1544)][e(868)] === e(1635)) x[e(2303)].warn(f); + else throw new Error(f); } } - if (x.isTop && (s += e(850), n && (x[e(372)] = !0, s += "async "), s += "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ", c && (x[e(2977)][e(1593)] || x.opts.processCode) && (s += " " + (e(1363) + c + e(2815)) + " ")), typeof x[e(1346)] == "boolean" || !(i || x.schema[e(1753)])) { - var t = e(2957), l = x[e(1332)], f = x[e(2551)], b = x.schema[t], h = x.schemaPath + x[e(2980)][e(1980)](t), p = x.errSchemaPath + "/" + t, I = !x.opts.allErrors, D, v = e(571) + (f || ""), C = e(1694) + l; - if (x[e(1346)] === !1) { - x[e(1407)] ? I = !0 : s += " var " + C + e(3055); + if (x[e(2918)] && (s += e(2821), n && (x[e(2416)] = !0, s += e(3038)), s += e(2169), c && (x.opts[e(986)] || x[e(1544)][e(1279)]) && (s += " " + ("/*# sourceURL=" + c + e(2860)) + " ")), typeof x[e(1425)] == e(3106) || !(i || x[e(1425)][e(885)])) { + var t = e(1452), l = x[e(1082)], d = x[e(1498)], g = x[e(1425)][t], h = x.schemaPath + x[e(1975)][e(3039)](t), m = x.errSchemaPath + "/" + t, E = !x[e(1544)][e(3009)], O, v = e(2663) + (d || ""), R = e(1122) + l; + if (x.schema === !1) { + x[e(2918)] ? E = !0 : s += e(2675) + R + e(1500); var k = k || []; - k[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + (D || e(2957)) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](p) + e(782), x[e(2977)][e(2953)] !== !1 && (s += " , message: 'boolean schema is false' "), x.opts[e(2168)] && (s += e(912) + x[e(2269)] + e(1275) + v + " "), s += e(1063)) : s += e(1577); + k.push(s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (O || e(1452)) + e(2387) + x.errorPath + " , schemaPath: " + x.util[e(1767)](m) + e(1676), x[e(1544)].messages !== !1 && (s += e(1380)), x.opts[e(2491)] && (s += e(1663) + x[e(1262)] + e(1844) + v + " "), s += " } ") : s += " {} "; var P = s; - s = k[e(641)](), !x.compositeRule && I ? x.async ? s += e(2782) + P + "]); " : s += " validate.errors = [" + P + e(2530) : s += e(2131) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "; - } else x[e(1407)] ? n ? s += e(833) : s += e(2324) : s += e(2459) + C + e(811); - return x[e(1407)] && (s += " }; return validate; "), s; + s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += " throw new ValidationError([" + P + e(2300) : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653); + } else x.isTop ? n ? s += e(936) : s += e(2231) : s += " var " + R + e(2411); + return x.isTop && (s += e(2163)), s; } if (x.isTop) { - var N = x[e(1407)], l = x[e(1332)] = 0, f = x[e(2551)] = 0, v = e(571); - if (x[e(1374)] = x[e(510)][e(1708)](x.self._getId(x.root.schema)), x.baseId = x.baseId || x[e(1374)], delete x.isTop, x[e(1671)] = [""], x.schema[e(2889)] !== void 0 && x[e(2977)].useDefaults && x[e(2977)][e(2520)]) { - var T = "default is ignored in the schema root"; - if (x[e(2977)][e(2520)] === e(2613)) x[e(3053)][e(405)](T); - else throw new Error(T); + var T = x[e(2918)], l = x[e(1082)] = 0, d = x[e(1498)] = 0, v = "data"; + if (x[e(2066)] = x.resolve[e(3081)](x[e(2007)][e(1776)](x[e(2212)][e(1425)])), x[e(805)] = x[e(805)] || x.rootId, delete x[e(2918)], x[e(662)] = [""], x[e(1425)][e(2485)] !== void 0 && x.opts[e(2088)] && x.opts[e(2674)]) { + var q = e(1774); + if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)][e(1114)](q); + else throw new Error(q); } - s += e(2495), s += e(2962), s += " if (rootData === undefined) rootData = data; "; + s += " var vErrors = null; ", s += e(617), s += e(1866); } else { - var l = x[e(1332)], f = x.dataLevel, v = e(571) + (f || ""); - if (c && (x[e(1620)] = x[e(510)].url(x[e(1620)], c)), n && !x[e(372)]) throw new Error("async schema in sync schema"); - s += e(2586) + l + e(2386); + var l = x[e(1082)], d = x.dataLevel, v = e(2663) + (d || ""); + if (c && (x[e(805)] = x[e(2457)][e(2120)](x.baseId, c)), n && !x[e(2416)]) throw new Error(e(1860)); + s += e(860) + l + e(683); } - var C = e(1694) + l, I = !x.opts[e(2722)], R = "", O = "", D, M = x.schema[e(506)], F = Array[e(2573)](M); - if (M && x[e(2977)][e(2259)] && x.schema.nullable === !0 && (F ? M.indexOf(e(2973)) == -1 && (M = M.concat(e(2973))) : M != e(2973) && (M = [M, e(2973)], F = !0)), F && M.length == 1 && (M = M[0], F = !1), x[e(1346)][e(1753)] && i) { - if (x[e(2977)][e(1745)] == e(1396)) throw new Error(e(1579) + x[e(376)] + e(803)); - x[e(2977)].extendRefs !== !0 && (i = !1, x[e(3053)].warn(e(1960) + x[e(376)] + '"')); + var R = "valid" + l, E = !x[e(1544)][e(3009)], C = "", A = "", O, M = x[e(1425)][e(2076)], _ = Array[e(3255)](M); + if (M && x[e(1544)][e(2644)] && x[e(1425)][e(2644)] === !0 && (_ ? M[e(2436)](e(1959)) == -1 && (M = M.concat(e(1959))) : M != e(1959) && (M = [M, "null"], _ = !0)), _ && M.length == 1 && (M = M[0], _ = !1), x[e(1425)][e(885)] && i) { + if (x[e(1544)][e(2430)] == e(902)) throw new Error(e(2191) + x[e(569)] + e(2001)); + x[e(1544)][e(2430)] !== !0 && (i = !1, x.logger[e(1114)]('$ref: keywords ignored in schema at path "' + x[e(569)] + '"')); } - if (x[e(1346)][e(1081)] && x[e(2977)].$comment && (s += " " + x[e(1757)][e(2264)].$comment[e(3068)](x, e(1081))), M) { - if (x.opts[e(1076)]) var q = x[e(2980)][e(1462)](x.opts.coerceTypes, M); - var H = x[e(1757)][e(760)][M]; - if (q || F || H === !0 || H && !Se(H)) { - var h = x.schemaPath + e(2226), p = x[e(376)] + "/type", h = x[e(2269)] + e(2226), p = x[e(376)] + e(2897), L = e(F ? 395 : 423); - if (s += e(2865) + x.util[L](M, v, x[e(2977)][e(1111)], !0) + e(1109), q) { - var z = "dataType" + l, G = e(1536) + l; - s += e(2459) + z + e(1114) + v + "; var " + G + " = undefined; ", x[e(2977)][e(1076)] == "array" && (s += e(2865) + z + " == 'object' && Array.isArray(" + v + ") && " + v + e(1996) + v + e(1990) + v + e(1417) + z + e(1114) + v + "; if (" + x[e(2980)].checkDataType(x[e(1346)][e(506)], v, x[e(2977)].strictNumbers) + ") " + G + e(1990) + v + e(1728)), s += e(2865) + G + e(1668); - var se = q; - if (se) - for (var re, ue = -1, fe = se[e(2910)] - 1; ue < fe; ) - re = se[ue += 1], re == e(1443) ? s += e(2446) + z + " == 'number' || " + z + e(695) + G + e(459) + v + e(2230) + v + e(397) + G + e(2437) : re == "number" || re == e(2421) ? (s += e(2446) + z + e(2451) + v + e(1347) + z + e(1976) + v + e(905) + v + " == +" + v + " ", re == e(2421) && (s += e(2563) + v + e(402)), s += e(829) + G + e(591) + v + "; ") : re == e(1964) ? s += e(2446) + v + e(1427) + v + e(1527) + v + e(397) + G + e(1460) + v + e(1410) + v + e(1655) + G + e(811) : re == "null" ? s += e(2446) + v + " === '' || " + v + e(1527) + v + e(1731) + G + e(2373) : x[e(2977)][e(1076)] == e(1517) && re == e(1517) && (s += e(2446) + z + " == 'string' || " + z + e(2282) + z + " == 'boolean' || " + v + e(2788) + G + " = [" + v + e(3037)); - s += " else { "; + if (x[e(1425)].$comment && x[e(1544)][e(2786)] && (s += " " + x[e(2996)][e(1096)][e(2786)][e(2427)](x, e(2786))), M) { + if (x[e(1544)].coerceTypes) var N = x[e(1975)].coerceToTypes(x[e(1544)][e(2597)], M); + var z = x[e(2996)][e(2795)][M]; + if (N || _ || z === !0 || z && !ke(z)) { + var h = x[e(1262)] + e(754), m = x[e(569)] + "/type", h = x[e(1262)] + e(754), m = x[e(569)] + "/type", U = _ ? e(1808) : "checkDataType"; + if (s += " if (" + x.util[U](M, v, x[e(1544)].strictNumbers, !0) + ") { ", N) { + var H = e(1236) + l, G = e(3151) + l; + s += e(2675) + H + e(1715) + v + e(1691) + G + " = undefined; ", x[e(1544)].coerceTypes == "array" && (s += e(1754) + H + e(2189) + v + ") && " + v + e(1041) + v + e(2486) + v + "[0]; " + H + e(1715) + v + e(2318) + x[e(1975)][e(1947)](x.schema[e(2076)], v, x.opts[e(1565)]) + ") " + G + e(2486) + v + e(2859)), s += e(1754) + G + e(2071); + var re = N; + if (re) + for (var se, fe = -1, de = re.length - 1; fe < de; ) + se = re[fe += 1], se == e(1361) ? s += e(1408) + H + e(821) + H + e(1385) + G + " = '' + " + v + e(2165) + v + e(956) + G + e(1157) : se == e(2665) || se == e(766) ? (s += " else if (" + H + e(664) + v + " === null || (" + H + e(966) + v + e(3061) + v + e(1517) + v + " ", se == e(766) && (s += e(1953) + v + e(647)), s += ")) " + G + e(1815) + v + "; ") : se == e(3106) ? s += " else if (" + v + e(1197) + v + e(1863) + v + " === null) " + G + e(1467) + v + e(556) + v + e(1814) + G + " = true; " : se == e(1959) ? s += e(1408) + v + " === '' || " + v + " === 0 || " + v + e(2194) + G + e(3278) : x[e(1544)][e(2597)] == "array" && se == e(529) && (s += e(1408) + H + " == 'string' || " + H + e(821) + H + e(664) + v + e(3079) + G + e(2498) + v + e(3243)); + s += e(3214); var k = k || []; - k.push(s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + (D || e(506)) + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(p) + e(2164), F ? s += "" + M[e(952)](",") : s += "" + M, s += e(2675), x.opts.messages !== !1 && (s += e(1913), F ? s += "" + M[e(952)](",") : s += "" + M, s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + h + " , parentSchema: validate.schema" + x[e(2269)] + e(1275) + v + " "), s += e(1063)) : s += e(1577); + k.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (O || e(2076)) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](m) + " , params: { type: '", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' } ", x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should be ", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x[e(1262)] + e(1844) + v + " "), s += e(1411)) : s += e(3261); var P = s; - s = k[e(641)](), !x[e(865)] && I ? x[e(372)] ? s += e(2782) + P + e(2105) : s += e(1264) + P + e(2530) : s += e(2131) + P + e(2006), s += e(433) + G + e(2238); - var le = f ? e(571) + (f - 1 || "") : "parentData", we = f ? x[e(1671)][f] : e(705); - s += " " + v + e(1990) + G + "; ", !f && (s += e(2e3) + le + e(1574)), s += " " + le + "[" + we + "] = " + G + "; } "; + s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653), s += e(1062) + G + " !== undefined) { "; + var le = d ? e(2663) + (d - 1 || "") : e(2072), Se = d ? x[e(662)][d] : e(1486); + s += " " + v + e(2486) + G + "; ", !d && (s += e(2315) + le + e(2771)), s += " " + le + "[" + Se + e(1254) + G + e(2859); } else { var k = k || []; - k[e(816)](s), s = "", x.createErrors !== !1 ? (s += e(1962) + (D || e(506)) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(p) + " , params: { type: '", F ? s += "" + M[e(952)](",") : s += "" + M, s += "' } ", x[e(2977)][e(2953)] !== !1 && (s += e(1913), F ? s += "" + M[e(952)](",") : s += "" + M, s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + h + e(2439) + x[e(2269)] + e(1275) + v + " "), s += " } ") : s += e(1577); + k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (O || e(2076)) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](m) + e(1616), _ ? s += "" + M[e(1592)](",") : s += "" + M, s += e(871), x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should be ", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x.schemaPath + e(1844) + v + " "), s += " } ") : s += e(3261); var P = s; - s = k[e(641)](), !x.compositeRule && I ? x[e(372)] ? s += e(2782) + P + "]); " : s += e(1264) + P + e(2530) : s += " var err = " + P + e(2006); + s = k.pop(), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += e(2213) + P + "]; return false; " : s += e(2636) + P + e(2653); } - s += e(1063); + s += e(1411); } } - if (x[e(1346)][e(1753)] && !i) s += " " + x[e(1757)].all[e(1753)][e(3068)](x, "$ref") + " ", I && (s += " } if (errors === ", N ? s += "0" : s += "errs_" + l, s += e(1109), O += "}"); + if (x.schema[e(885)] && !i) s += " " + x[e(2996)].all[e(885)][e(2427)](x, e(885)) + " ", E && (s += e(819), T ? s += "0" : s += e(2940) + l, s += e(2834), A += "}"); else { - var Ce = x.RULES; - if (Ce) { - for (var H, Me = -1, Re = Ce.length - 1; Me < Re; ) - if (H = Ce[Me += 1], Se(H)) { - if (H[e(506)] && (s += e(2865) + x.util[e(423)](H[e(506)], v, x[e(2977)][e(1111)]) + e(1109)), x[e(2977)][e(373)]) { - if (H[e(506)] == e(2517) && x.schema[e(1684)]) { - var b = x.schema[e(1684)], Je = Object[e(548)](b), _ = Je; - if (_) - for (var A, j = -1, J = _.length - 1; j < J; ) { - A = _[j += 1]; - var Q = b[A]; - if (Q[e(2889)] !== void 0) { - var V = v + x.util[e(1980)](A); - if (x[e(865)]) { - if (x[e(2977)][e(2520)]) { - var T = "default is ignored for: " + V; - if (x[e(2977)][e(2520)] === e(2613)) x[e(3053)][e(405)](T); - else throw new Error(T); + var _e = x[e(2996)]; + if (_e) { + for (var z, Me = -1, Fe = _e[e(2710)] - 1; Me < Fe; ) + if (z = _e[Me += 1], ke(z)) { + if (z.type && (s += e(1754) + x[e(1975)][e(1947)](z[e(2076)], v, x[e(1544)][e(1565)]) + e(2834)), x[e(1544)][e(2088)]) { + if (z[e(2076)] == e(1304) && x[e(1425)][e(3005)]) { + var g = x[e(1425)][e(3005)], Je = Object[e(2123)](g), D = Je; + if (D) + for (var F, j = -1, J = D[e(2710)] - 1; j < J; ) { + F = D[j += 1]; + var X = g[F]; + if (X[e(2485)] !== void 0) { + var V = v + x[e(1975)][e(3039)](F); + if (x[e(2612)]) { + if (x[e(1544)].strictDefaults) { + var q = e(1087) + V; + if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)][e(1114)](q); + else throw new Error(q); } - } else s += e(2865) + V + e(2146), x[e(2977)][e(373)] == e(2748) && (s += " || " + V + e(2485) + V + e(2654)), s += e(2018) + V + e(1990), x.opts[e(373)] == e(762) ? s += " " + x[e(996)](Q[e(2889)]) + " " : s += " " + JSON.stringify(Q[e(2889)]) + " ", s += "; "; + } else s += e(1754) + V + e(562), x[e(1544)][e(2088)] == e(1800) && (s += e(1887) + V + " === null || " + V + " === '' "), s += e(2368) + V + e(2486), x[e(1544)][e(2088)] == "shared" ? s += " " + x.useDefault(X[e(2485)]) + " " : s += " " + JSON[e(1031)](X[e(2485)]) + " ", s += "; "; } } - } else if (H[e(506)] == e(1517) && Array[e(2573)](x[e(1346)][e(1141)])) { + } else if (z[e(2076)] == e(529) && Array[e(3255)](x[e(1425)].items)) { var Y = x.schema.items; if (Y) { - for (var Q, ue = -1, ce = Y[e(2910)] - 1; ue < ce; ) - if (Q = Y[ue += 1], Q[e(2889)] !== void 0) { - var V = v + "[" + ue + "]"; - if (x.compositeRule) { - if (x[e(2977)][e(2520)]) { - var T = e(1849) + V; - if (x[e(2977)][e(2520)] === e(2613)) x[e(3053)][e(405)](T); - else throw new Error(T); + for (var X, fe = -1, ce = Y[e(2710)] - 1; fe < ce; ) + if (X = Y[fe += 1], X.default !== void 0) { + var V = v + "[" + fe + "]"; + if (x[e(2612)]) { + if (x[e(1544)][e(2674)]) { + var q = e(1087) + V; + if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)].warn(q); + else throw new Error(q); } - } else s += e(2865) + V + e(2146), x[e(2977)][e(373)] == e(2748) && (s += e(1073) + V + e(2485) + V + e(2654)), s += e(2018) + V + " = ", x[e(2977)].useDefaults == e(762) ? s += " " + x.useDefault(Q[e(2889)]) + " " : s += " " + JSON[e(1749)](Q[e(2889)]) + " ", s += "; "; + } else s += e(1754) + V + e(562), x[e(1544)][e(2088)] == e(1800) && (s += e(1887) + V + e(2187) + V + " === '' "), s += e(2368) + V + e(2486), x[e(1544)][e(2088)] == e(2844) ? s += " " + x[e(1117)](X[e(2485)]) + " " : s += " " + JSON[e(1031)](X[e(2485)]) + " ", s += "; "; } } } } - var ie = H[e(2870)]; - if (ie) { - for (var xe, Le = -1, Ae = ie[e(2910)] - 1; Le < Ae; ) - if (xe = ie[Le += 1], Ge(xe)) { - var He = xe[e(3068)](x, xe[e(1379)], H[e(506)]); - He && (s += " " + He + " ", I && (R += "}")); + var oe = z[e(2293)]; + if (oe) { + for (var te, Le = -1, Ae = oe[e(2710)] - 1; Le < Ae; ) + if (te = oe[Le += 1], Ge(te)) { + var ze = te[e(2427)](x, te[e(2442)], z[e(2076)]); + ze && (s += " " + ze + " ", E && (C += "}")); } } - if (I && (s += " " + R + " ", R = ""), H.type && (s += e(1063), M && M === H.type && !q)) { - s += e(2293); - var h = x[e(2269)] + e(2226), p = x[e(376)] + e(2897), k = k || []; - k.push(s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: '" + (D || "type") + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(p) + e(2164), F ? s += "" + M[e(952)](",") : s += "" + M, s += "' } ", x[e(2977)].messages !== !1 && (s += e(1913), F ? s += "" + M[e(952)](",") : s += "" + M, s += "' "), x.opts[e(2168)] && (s += e(1888) + h + " , parentSchema: validate.schema" + x[e(2269)] + " , data: " + v + " "), s += e(1063)) : s += e(1577); + if (E && (s += " " + C + " ", C = ""), z[e(2076)] && (s += e(1411), M && M === z[e(2076)] && !N)) { + s += " else { "; + var h = x[e(1262)] + e(754), m = x[e(569)] + e(506), k = k || []; + k[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (O || "type") + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](m) + e(1616), _ ? s += "" + M.join(",") : s += "" + M, s += e(871), x[e(1544)].messages !== !1 && (s += e(2991), _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x[e(1262)] + e(1844) + v + " "), s += e(1411)) : s += e(3261); var P = s; - s = k[e(641)](), !x[e(865)] && I ? x.async ? s += e(2782) + P + e(2105) : s += e(1264) + P + e(2530) : s += e(2131) + P + e(2006), s += e(1063); + s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1411); } - I && (s += " if (errors === ", N ? s += "0" : s += e(2836) + l, s += ") { ", O += "}"); + E && (s += e(2377), T ? s += "0" : s += e(2940) + l, s += e(2834), A += "}"); } } } - I && (s += " " + O + " "), N ? (n ? (s += e(2361), s += " else throw new ValidationError(vErrors); ") : (s += e(2860), s += e(1693)), s += e(3014)) : s += e(2459) + C + " = errors === errs_" + l + ";"; - function Se(Qe) { - for (var ze = Qe[e(2870)], Ye = 0; Ye < ze.length; Ye++) if (Ge(ze[Ye])) return !0; + E && (s += " " + A + " "), T ? (n ? (s += " if (errors === 0) return data; ", s += " else throw new ValidationError(vErrors); ") : (s += e(2706), s += e(1195)), s += e(2373)) : s += e(2675) + R + e(2151) + l + ";"; + function ke(Qe) { + const Oe = e; + for (var He = Qe[Oe(2293)], Ye = 0; Ye < He[Oe(2710)]; Ye++) if (Ge(He[Ye])) return !0; } function Ge(Qe) { - const _e = e; - return x[_e(1346)][Qe.keyword] !== void 0 || Qe[_e(1115)] && n0(Qe); + return x[e(1425)][Qe.keyword] !== void 0 || Qe.implements && n0(Qe); } function n0(Qe) { - const _e = e; - for (var ze = Qe[_e(1115)], Ye = 0; Ye < ze[_e(2910)]; Ye++) if (x[_e(1346)][ze[Ye]] !== void 0) return !0; + const Oe = e; + for (var He = Qe[Oe(2673)], Ye = 0; Ye < He[Oe(2710)]; Ye++) if (x[Oe(1425)][He[Ye]] !== void 0) return !0; } return s; }), st; } -var nt, hr; -function uc() { +var nt, pr; +function i2() { const o = a; - if (hr) return nt; - hr = 1; - var x = fa(), t = Z0(), r = ha(), e = Sn(), s = kn(), n = t[o(2936)], i = la(), c = r[o(403)]; - nt = d; - function d(P, N, T, C) { - const I = o; - var R = this, O = this[I(1797)], D = [void 0], M = {}, F = [], q = {}, H = [], L = {}, z = []; - N = N || { schema: P, refVal: D, refs: M }; - var G = u.call(this, P, N, C), se = this[I(730)][G.index]; - if (G.compiling) return se[I(1591)] = we; - var re = this[I(2243)], ue = this[I(1757)]; + if (pr) return nt; + pr = 1; + var x = da(), t = W0(), r = ha(), e = vn(), s = wn(), n = t[o(3159)], i = la(), c = r[o(1434)]; + nt = u; + function u(P, T, q, R) { + const E = o; + var C = this, A = this._opts, O = [void 0], M = {}, _ = [], N = {}, z = [], U = {}, H = []; + T = T || { schema: P, refVal: O, refs: M }; + var G = f[E(1522)](this, P, T, R), re = this[E(1837)][G[E(2230)]]; + if (G[E(817)]) return re[E(1739)] = Se; + var se = this._formats, fe = this.RULES; try { - var fe = Ce(P, N, T, C); - se[I(2033)] = fe; - var le = se[I(1591)]; - return le && (le[I(1346)] = fe[I(1346)], le[I(2311)] = null, le[I(737)] = fe[I(737)], le[I(1257)] = fe[I(1257)], le[I(1794)] = fe.root, le[I(1070)] = fe.$async, O.sourceCode && (le[I(862)] = fe[I(862)])), fe; + var de = _e(P, T, q, R); + re[E(3181)] = de; + var le = re[E(1739)]; + return le && (le[E(1425)] = de.schema, le[E(2800)] = null, le.refs = de[E(588)], le[E(1269)] = de.refVal, le.root = de.root, le[E(1101)] = de[E(1101)], A[E(986)] && (le.source = de.source)), de; } finally { - l[I(1175)](this, P, N, C); + l[E(1522)](this, P, T, R); } - function we() { - const V = I; - var Y = se.validate, ce = Y[V(1784)](this, arguments); - return we[V(2311)] = Y[V(2311)], ce; + function Se() { + const V = E; + var Y = re.validate, ce = Y[V(2692)](this, arguments); + return Se[V(2800)] = Y[V(2800)], ce; } - function Ce(V, Y, ce, ie) { - const xe = I; - var Le = !Y || Y && Y.schema == V; - if (Y[xe(1346)] != N[xe(1346)]) return d[xe(1175)](R, V, Y, ce, ie); - var Ae = V[xe(1070)] === !0, He = s({ isTop: !0, schema: V, isRoot: Le, baseId: ie, root: Y, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r.MissingRef, RULES: ue, validate: s, util: t, resolve: x, resolveRef: Me, usePattern: j, useDefault: J, useCustomRule: Q, opts: O, formats: re, logger: R[xe(3053)], self: R }); - He = k(D, p) + k(F, b) + k(H, h) + k(z, v) + He, O[xe(1685)] && (He = O[xe(1685)](He, V)); - var Se; + function _e(V, Y, ce, oe) { + const te = E; + var Le = !Y || Y && Y[te(1425)] == V; + if (Y.schema != T[te(1425)]) return u[te(1522)](C, V, Y, ce, oe); + var Ae = V[te(1101)] === !0, ze = s({ isTop: !0, schema: V, isRoot: Le, baseId: oe, root: Y, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r[te(2003)], RULES: fe, validate: s, util: t, resolve: x, resolveRef: Me, usePattern: j, useDefault: J, useCustomRule: X, opts: A, formats: se, logger: C[te(2303)], self: C }); + ze = k(O, m) + k(_, g) + k(z, h) + k(H, v) + ze, A[te(1279)] && (ze = A[te(1279)](ze, V)); + var ke; try { - var Ge = new Function(xe(1532), xe(1757), xe(1408), xe(1794), xe(1257), "defaults", xe(836), "equal", xe(2936), xe(1394), He); - Se = Ge(R, ue, re, N, D, H, z, i, n, c), D[0] = Se; + var Ge = new Function(te(2007), "RULES", te(3155), te(2212), "refVal", te(1573), te(1912), te(495), te(3159), te(1995), ze); + ke = Ge(C, fe, se, T, O, z, H, i, n, c), O[0] = ke; } catch (n0) { - throw R.logger[xe(1493)](xe(960), He), n0; + throw C[te(2303)].error(te(2137), ze), n0; } - return Se[xe(1346)] = V, Se[xe(2311)] = null, Se[xe(737)] = M, Se[xe(1257)] = D, Se[xe(1794)] = Le ? Se : Y, Ae && (Se[xe(1070)] = !0), O[xe(1593)] === !0 && (Se[xe(862)] = { code: He, patterns: F, defaults: H }), Se; + return ke.schema = V, ke[te(2800)] = null, ke[te(588)] = M, ke[te(1269)] = O, ke.root = Le ? ke : Y, Ae && (ke.$async = !0), A[te(986)] === !0 && (ke[te(1038)] = { code: ze, patterns: _, defaults: z }), ke; } function Me(V, Y, ce) { - const ie = I; - Y = x.url(V, Y); - var xe = M[Y], Le, Ae; - if (xe !== void 0) return Le = D[xe], Ae = ie(2924) + xe + "]", A(Le, Ae); - if (!ce && N[ie(737)]) { - var He = N[ie(737)][Y]; - if (He !== void 0) return Le = N.refVal[He], Ae = Re(Y, Le), A(Le, Ae); + const oe = E; + Y = x[oe(2120)](V, Y); + var te = M[Y], Le, Ae; + if (te !== void 0) return Le = O[te], Ae = oe(2022) + te + "]", F(Le, Ae); + if (!ce && T[oe(588)]) { + var ze = T[oe(588)][Y]; + if (ze !== void 0) return Le = T.refVal[ze], Ae = Fe(Y, Le), F(Le, Ae); } - Ae = Re(Y); - var Se = x[ie(1175)](R, Ce, N, Y); - if (Se === void 0) { - var Ge = T && T[Y]; - Ge && (Se = x[ie(781)](Ge, O[ie(2702)]) ? Ge : d[ie(1175)](R, Ge, N, T, V)); + Ae = Fe(Y); + var ke = x[oe(1522)](C, _e, T, Y); + if (ke === void 0) { + var Ge = q && q[Y]; + Ge && (ke = x[oe(3126)](Ge, A[oe(2998)]) ? Ge : u[oe(1522)](C, Ge, T, q, V)); } - if (Se === void 0) Je(Y); - else return _(Y, Se), A(Se, Ae); + if (ke === void 0) Je(Y); + else return D(Y, ke), F(ke, Ae); } - function Re(V, Y) { - const ce = I; - var ie = D.length; - return D[ie] = Y, M[V] = ie, ce(1257) + ie; + function Fe(V, Y) { + const ce = E; + var oe = O[ce(2710)]; + return O[oe] = Y, M[V] = oe, ce(1269) + oe; } function Je(V) { delete M[V]; } - function _(V, Y) { + function D(V, Y) { var ce = M[V]; - D[ce] = Y; + O[ce] = Y; } - function A(V, Y) { - const ce = I; - return typeof V == ce(2517) || typeof V == ce(1964) ? { code: Y, schema: V, inline: !0 } : { code: Y, $async: V && !!V.$async }; + function F(V, Y) { + return typeof V == "object" || typeof V == "boolean" ? { code: Y, schema: V, inline: !0 } : { code: Y, $async: V && !!V[E(1101)] }; } function j(V) { - const Y = I; - var ce = q[V]; - return ce === void 0 && (ce = q[V] = F[Y(2910)], F[ce] = V), "pattern" + ce; + const Y = E; + var ce = N[V]; + return ce === void 0 && (ce = N[V] = _.length, _[ce] = V), Y(526) + ce; } function J(V) { - const Y = I; + const Y = E; switch (typeof V) { - case Y(1964): - case Y(1730): + case Y(3106): + case Y(2665): return "" + V; - case Y(1443): - return t[Y(1766)](V); - case "object": - if (V === null) return Y(2973); - var ce = e(V), ie = L[ce]; - return ie === void 0 && (ie = L[ce] = H.length, H[ie] = V), Y(2889) + ie; + case Y(1361): + return t.toQuotedString(V); + case Y(1304): + if (V === null) return Y(1959); + var ce = e(V), oe = U[ce]; + return oe === void 0 && (oe = U[ce] = z[Y(2710)], z[oe] = V), "default" + oe; } } - function Q(V, Y, ce, ie) { - const xe = I; - if (R._opts.validateSchema !== !1) { - var Le = V[xe(1118)].dependencies; - if (Le && !Le[xe(1404)](function(Ye) { - const N0 = xe; - return Object[N0(560)][N0(938)][N0(1175)](ce, Ye); - })) throw new Error(xe(838) + Le[xe(952)](",")); - var Ae = V[xe(1118)].validateSchema; + function X(V, Y, ce, oe) { + const te = E; + if (C[te(1068)].validateSchema !== !1) { + var Le = V[te(1686)][te(1110)]; + if (Le && !Le.every(function(Ye) { + const M0 = te; + return Object[M0(2587)][M0(1315)].call(ce, Ye); + })) throw new Error(te(2092) + Le[te(1592)](",")); + var Ae = V[te(1686)][te(2605)]; if (Ae) { - var He = Ae(Y); - if (!He) { - var Se = xe(1585) + R[xe(2154)](Ae[xe(2311)]); - if (R[xe(1797)][xe(1857)] == xe(2613)) R.logger[xe(1493)](Se); - else throw new Error(Se); + var ze = Ae(Y); + if (!ze) { + var ke = te(3113) + C[te(2766)](Ae.errors); + if (C[te(1068)][te(2605)] == te(1635)) C[te(2303)][te(490)](ke); + else throw new Error(ke); } } } - var Ge = V[xe(1118)][xe(1494)], n0 = V.definition[xe(1738)], Qe = V[xe(1118)].macro, _e; - if (Ge) _e = Ge.call(R, Y, ce, ie); + var Ge = V[te(1686)][te(1835)], n0 = V[te(1686)].inline, Qe = V[te(1686)].macro, Oe; + if (Ge) Oe = Ge.call(C, Y, ce, oe); else if (Qe) - _e = Qe.call(R, Y, ce, ie), O[xe(1857)] !== !1 && R[xe(1857)](_e, !0); - else if (n0) _e = n0[xe(1175)](R, ie, V[xe(1379)], Y, ce); - else if (_e = V.definition[xe(2033)], !_e) return; - if (_e === void 0) throw new Error(xe(2070) + V.keyword + '"failed to compile'); - var ze = z[xe(2910)]; - return z[ze] = _e, { code: xe(2905) + ze, validate: _e }; + Oe = Qe[te(1522)](C, Y, ce, oe), A[te(2605)] !== !1 && C[te(2605)](Oe, !0); + else if (n0) Oe = n0.call(C, oe, V[te(2442)], Y, ce); + else if (Oe = V[te(1686)][te(3181)], !Oe) return; + if (Oe === void 0) throw new Error('custom keyword "' + V[te(2442)] + '"failed to compile'); + var He = H[te(2710)]; + return H[He] = Oe, { code: te(1874) + He, validate: Oe }; } } - function u(P, N, T) { - const C = o; - var I = f[C(1175)](this, P, N, T); - return I >= 0 ? { index: I, compiling: !0 } : (I = this[C(730)][C(2910)], this[C(730)][I] = { schema: P, root: N, baseId: T }, { index: I, compiling: !1 }); + function f(P, T, q) { + const R = o; + var E = d[R(1522)](this, P, T, q); + return E >= 0 ? { index: E, compiling: !0 } : (E = this[R(1837)][R(2710)], this[R(1837)][E] = { schema: P, root: T, baseId: q }, { index: E, compiling: !1 }); } - function l(P, N, T) { - const C = o; - var I = f[C(1175)](this, P, N, T); - I >= 0 && this[C(730)][C(1571)](I, 1); + function l(P, T, q) { + const R = o; + var E = d[R(1522)](this, P, T, q); + E >= 0 && this._compilations[R(2881)](E, 1); } - function f(P, N, T) { - const C = o; - for (var I = 0; I < this[C(730)][C(2910)]; I++) { - var R = this._compilations[I]; - if (R[C(1346)] == P && R[C(1794)] == N && R[C(1620)] == T) return I; + function d(P, T, q) { + const R = o; + for (var E = 0; E < this[R(1837)][R(2710)]; E++) { + var C = this[R(1837)][E]; + if (C[R(1425)] == P && C.root == T && C.baseId == q) return E; } return -1; } - function b(P, N) { - const T = o; - return T(1200) + P + T(937) + t.toQuotedString(N[P]) + ");"; + function g(P, T) { + const q = o; + return "var pattern" + P + q(2949) + t[q(1767)](T[P]) + ");"; } function h(P) { - const N = o; - return N(894) + P + N(511) + P + "];"; - } - function p(P, N) { const T = o; - return N[P] === void 0 ? "" : T(1545) + P + " = refVal[" + P + "];"; + return T(858) + P + T(1813) + P + "];"; + } + function m(P, T) { + const q = o; + return T[P] === void 0 ? "" : q(2052) + P + q(2413) + P + "];"; } function v(P) { return "var customRule" + P + " = customRules[" + P + "];"; } - function k(P, N) { - if (!P[o(2910)]) return ""; - for (var C = "", I = 0; I < P.length; I++) C += N(I, P); - return C; + function k(P, T) { + const q = o; + if (!P.length) return ""; + for (var R = "", E = 0; E < P[q(2710)]; E++) R += T(E, P); + return R; } return nt; } -var ot = { exports: {} }, pr; -function lc() { +var ot = { exports: {} }, mr; +function c2() { const o = a; - if (pr) return ot[o(982)]; - pr = 1; - var x = ot[o(982)] = function() { - const r = o; - this[r(2952)] = {}; - }; - return x[o(560)].put = function(r, e) { - const s = o; - this[s(2952)][r] = e; - }, x[o(560)][o(2620)] = function(r) { - return this[o(2952)][r]; - }, x.prototype[o(1558)] = function(r) { - const e = o; - delete this[e(2952)][r]; - }, x[o(560)][o(2149)] = function() { - this._cache = {}; - }, ot[o(982)]; -} -var it, mr; -function fc() { - const o = a; - if (mr) return it; + if (mr) return ot[o(732)]; mr = 1; - var x = Z0(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, s = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, n = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, i = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, c = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, d = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, u = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, l = /^(?:\/(?:[^~/]|~0|~1)*)*$/, f = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, b = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + var x = ot[o(732)] = function() { + const r = o; + this[r(811)] = {}; + }; + return x.prototype[o(1142)] = function(r, e) { + const s = o; + this[s(811)][r] = e; + }, x[o(2587)][o(674)] = function(r) { + return this._cache[r]; + }, x[o(2587)].del = function(r) { + const e = o; + delete this[e(811)][r]; + }, x[o(2587)].clear = function() { + const r = o; + this[r(811)] = {}; + }, ot[o(732)]; +} +var it, br; +function u2() { + const o = a; + if (br) return it; + br = 1; + var x = W0(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, s = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, n = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, i = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, c = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, f = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, l = /^(?:\/(?:[^~/]|~0|~1)*)*$/, d = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, g = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; it = h; - function h(O) { - const D = K; - return O = O == D(855) ? "full" : D(1054), x[D(1303)](h[O]); + function h(A) { + const O = K; + return A = A == O(2977) ? "full" : O(2666), x[O(2615)](h[A]); } - h[o(1054)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: d, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: R, uuid: u, "json-pointer": l, "json-pointer-uri-fragment": f, "relative-json-pointer": b }, h[o(855)] = { date: v, time: k, "date-time": N, uri: C, "uri-reference": i, "uri-template": c, url: d, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: R, uuid: u, "json-pointer": l, "json-pointer-uri-fragment": f, "relative-json-pointer": b }; - function p(O) { - return O % 4 === 0 && (O % 100 !== 0 || O % 400 === 0); + h[o(2666)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: u, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: C, uuid: f, "json-pointer": l, "json-pointer-uri-fragment": d, "relative-json-pointer": g }, h[o(2977)] = { date: v, time: k, "date-time": T, uri: R, "uri-reference": i, "uri-template": c, url: u, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: C, uuid: f, "json-pointer": l, "json-pointer-uri-fragment": d, "relative-json-pointer": g }; + function m(A) { + return A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0); } - function v(O) { - var M = O[o(742)](t); - if (!M) return !1; - var F = +M[1], q = +M[2], H = +M[3]; - return q >= 1 && q <= 12 && H >= 1 && H <= (q == 2 && p(F) ? 29 : r[q]); + function v(A) { + var O = A.match(t); + if (!O) return !1; + var M = +O[1], _ = +O[2], N = +O[3]; + return _ >= 1 && _ <= 12 && N >= 1 && N <= (_ == 2 && m(M) ? 29 : r[_]); } - function k(O, D) { - var F = O[o(742)](e); - if (!F) return !1; - var q = F[1], H = F[2], L = F[3], z = F[5]; - return (q <= 23 && H <= 59 && L <= 59 || q == 23 && H == 59 && L == 60) && (!D || z); + function k(A, O) { + var _ = A[o(2314)](e); + if (!_) return !1; + var N = _[1], z = _[2], U = _[3], H = _[5]; + return (N <= 23 && z <= 59 && U <= 59 || N == 23 && z == 59 && U == 60) && (!O || H); } var P = /t|\s/i; - function N(O) { - var M = O[o(1389)](P); - return M.length == 2 && v(M[0]) && k(M[1], !0); + function T(A) { + const O = o; + var M = A[O(3263)](P); + return M[O(2710)] == 2 && v(M[0]) && k(M[1], !0); } - var T = /\/|:/; - function C(O) { - const D = o; - return T[D(2266)](O) && n[D(2266)](O); + var q = /\/|:/; + function R(A) { + const O = o; + return q.test(A) && n[O(2346)](A); } - var I = /[^\\]\\Z/; - function R(O) { - if (I.test(O)) return !1; + var E = /[^\\]\\Z/; + function C(A) { + if (E[o(2346)](A)) return !1; try { - return new RegExp(O), !0; + return new RegExp(A), !0; } catch { return !1; } } return it; } -var ct, br; -function hc() { - return br || (br = 1, ct = function(x, t, r) { +var ct, gr; +function f2() { + return gr || (gr = 1, ct = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(376)] + "/" + t, u = !x[e(2977)][e(2722)], l = e(571) + (i || ""), f = e(1694) + n, b, h; - if (c == "#" || c == "#/") x[e(1135)] ? (b = x[e(372)], h = "validate") : (b = x[e(1794)][e(1346)][e(1070)] === !0, h = e(1221)); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(569)] + "/" + t, f = !x[e(1544)][e(3009)], l = e(2663) + (i || ""), d = e(1122) + n, g, h; + if (c == "#" || c == "#/") x[e(2758)] ? (g = x.async, h = e(3181)) : (g = x[e(2212)].schema[e(1101)] === !0, h = e(750)); else { - var p = x[e(2372)](x[e(1620)], c, x[e(1135)]); - if (p === void 0) { - var v = x[e(966)][e(2732)](x[e(1620)], c); - if (x[e(2977)].missingRefs == e(1396)) { - x.logger.error(v); + var m = x[e(1215)](x[e(805)], c, x.isRoot); + if (m === void 0) { + var v = x[e(730)][e(1044)](x.baseId, c); + if (x.opts.missingRefs == e(902)) { + x.logger[e(490)](v); var k = k || []; - k[e(816)](s), s = "", x.createErrors !== !1 ? (s += e(1962) + "$ref" + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(d) + e(456) + x[e(2980)].escapeQuotes(c) + "' } ", x[e(2977)][e(2953)] !== !1 && (s += " , message: 'can\\'t resolve reference " + x[e(2980)][e(1825)](c) + "' "), x[e(2977)][e(2168)] && (s += e(2916) + x[e(2980)][e(1766)](c) + e(2439) + x[e(2269)] + e(1275) + l + " "), s += e(1063)) : s += e(1577); + k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + "$ref" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](u) + " , params: { ref: '" + x.util[e(1265)](c) + e(871), x[e(1544)].messages !== !1 && (s += " , message: 'can\\'t resolve reference " + x[e(1975)][e(1265)](c) + "' "), x[e(1544)][e(2491)] && (s += e(2020) + x[e(1975)][e(1767)](c) + e(2408) + x[e(1262)] + e(1844) + l + " "), s += e(1411)) : s += e(3261); var P = s; - s = k[e(641)](), !x[e(865)] && u ? x.async ? s += e(2782) + P + "]); " : s += e(1264) + P + e(2530) : s += e(2131) + P + e(2006), u && (s += e(876)); - } else if (x[e(2977)].missingRefs == "ignore") x[e(3053)].warn(v), u && (s += e(1954)); - else throw new x[e(966)](x.baseId, c, v); - } else if (p[e(1738)]) { - var N = x.util.copy(x); - N[e(1332)]++; - var T = e(1694) + N[e(1332)]; - N.schema = p[e(1346)], N[e(2269)] = "", N.errSchemaPath = c; - var C = x[e(2033)](N)[e(1840)](/validate\.schema/g, p[e(3068)]); - s += " " + C + " ", u && (s += e(2865) + T + e(1109)); - } else b = p[e(1070)] === !0 || x[e(372)] && p[e(1070)] !== !1, h = p[e(3068)]; + s = k[e(2900)](), !x[e(2612)] && f ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + e(702) : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", f && (s += e(2236)); + } else if (x[e(1544)][e(2851)] == e(2069)) x[e(2303)].warn(v), f && (s += e(523)); + else throw new x[e(730)](x[e(805)], c, v); + } else if (m.inline) { + var T = x[e(1975)].copy(x); + T.level++; + var q = e(1122) + T[e(1082)]; + T[e(1425)] = m[e(1425)], T[e(1262)] = "", T.errSchemaPath = c; + var R = x[e(3181)](T)[e(1521)](/validate\.schema/g, m[e(2427)]); + s += " " + R + " ", f && (s += " if (" + q + e(2834)); + } else g = m.$async === !0 || x.async && m[e(1101)] !== !1, h = m[e(2427)]; } if (h) { var k = k || []; - k[e(816)](s), s = "", x.opts[e(2196)] ? s += " " + h + e(870) : s += " " + h + "( ", s += " " + l + e(2767), x[e(2731)] != '""' && (s += " + " + x[e(2731)]); - var I = i ? e(571) + (i - 1 || "") : "parentData", R = i ? x[e(1671)][i] : e(705); - s += e(1321) + I + e(1321) + R + e(2636); - var O = s; - if (s = k[e(641)](), b) { - if (!x.async) throw new Error(e(1055)); - u && (s += e(2459) + f + "; "), s += e(2224) + O + "; ", u && (s += " " + f + " = true; "), s += e(1080), u && (s += " " + f + " = false; "), s += e(1063), u && (s += e(2865) + f + ") { "); - } else s += e(1478) + O + e(1451) + h + e(2183) + h + e(2493), u && (s += e(2293)); + k.push(s), s = "", x.opts[e(2698)] ? s += " " + h + e(2681) : s += " " + h + "( ", s += " " + l + ", (dataPath || '')", x.errorPath != '""' && (s += e(2693) + x.errorPath); + var E = i ? "data" + (i - 1 || "") : "parentData", C = i ? x[e(662)][i] : e(1486); + s += e(3135) + E + e(3135) + C + e(2015); + var A = s; + if (s = k.pop(), g) { + if (!x[e(2416)]) throw new Error(e(1965)); + f && (s += " var " + d + "; "), s += e(1867) + A + "; ", f && (s += " " + d + e(2411)), s += e(2870), f && (s += " " + d + " = false; "), s += e(1411), f && (s += " if (" + d + ") { "); + } else s += " if (!" + A + e(1856) + h + e(2694) + h + ".errors); errors = vErrors.length; } ", f && (s += e(1961)); } return s; }), ct; } -var dt, gr; -function pc() { - return gr || (gr = 1, dt = function(x, t, r) { - const e = K; - var s = " ", n = x.schema[t], i = x.schemaPath + x[e(2980)].getProperty(t), c = x.errSchemaPath + "/" + t, d = !x[e(2977)][e(2722)], u = x[e(2980)][e(1303)](x), l = ""; - u[e(1332)]++; - var f = e(1694) + u[e(1332)], b = u[e(1620)], h = !0, p = n; - if (p) - for (var v, k = -1, P = p[e(2910)] - 1; k < P; ) - v = p[k += 1], (x.opts[e(1033)] ? typeof v == e(2517) && Object[e(548)](v)[e(2910)] > 0 || v === !1 : x[e(2980)][e(2565)](v, x[e(1757)][e(2264)])) && (h = !1, u.schema = v, u[e(2269)] = i + "[" + k + "]", u[e(376)] = c + "/" + k, s += " " + x[e(2033)](u) + " ", u.baseId = b, d && (s += e(2865) + f + ") { ", l += "}")); - return d && (h ? s += e(1954) : s += " " + l.slice(0, -1) + " "), s; - }), dt; -} var ut, yr; -function mc() { +function l2() { return yr || (yr = 1, ut = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x.schema[t], d = x.schemaPath + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(1694) + n, h = e(2037) + n, p = x[e(2980)][e(1303)](x), v = ""; - p.level++; - var k = e(1694) + p.level, P = c[e(1404)](function(D) { - const M = e; - return x[M(2977)][M(1033)] ? typeof D == M(2517) && Object.keys(D)[M(2910)] > 0 || D === !1 : x[M(2980)][M(2565)](D, x[M(1757)][M(2264)]); - }); - if (P) { - var N = p[e(1620)]; - s += e(2459) + h + e(2438) + b + e(2119); - var T = x[e(865)]; - x[e(865)] = p[e(865)] = !0; - var C = c; - if (C) - for (var I, R = -1, O = C[e(2910)] - 1; R < O; ) - I = C[R += 1], p.schema = I, p[e(2269)] = d + "[" + R + "]", p[e(376)] = u + "/" + R, s += " " + x[e(2033)](p) + " ", p[e(1620)] = N, s += " " + b + " = " + b + e(1073) + k + "; if (!" + b + e(1109), v += "}"; - x.compositeRule = p[e(865)] = T, s += " " + v + e(1478) + b + e(2969), x[e(1596)] !== !1 ? (s += e(1962) + e(2915) + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(u) + e(782), x[e(2977)][e(2953)] !== !1 && (s += " , message: 'should match some schema in anyOf' "), x[e(2977)][e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577), s += e(2006), !x[e(865)] && l && (x[e(372)] ? s += e(1755) : s += " validate.errors = vErrors; return false; "), s += e(806) + h + e(2208) + h + e(2056) + h + "; else vErrors = null; } ", x[e(2977)][e(2722)] && (s += e(1063)); - } else l && (s += e(1954)); - return s; + var s = " ", n = x.schema[t], i = x.schemaPath + x.util[e(3039)](t), c = x[e(569)] + "/" + t, u = !x.opts[e(3009)], f = x[e(1975)].copy(x), l = ""; + f[e(1082)]++; + var d = "valid" + f[e(1082)], g = f.baseId, h = !0, m = n; + if (m) + for (var v, k = -1, P = m[e(2710)] - 1; k < P; ) + v = m[k += 1], (x.opts.strictKeywords ? typeof v == e(1304) && Object[e(2123)](v)[e(2710)] > 0 || v === !1 : x[e(1975)][e(1733)](v, x[e(2996)][e(1096)])) && (h = !1, f.schema = v, f[e(1262)] = i + "[" + k + "]", f.errSchemaPath = c + "/" + k, s += " " + x[e(3181)](f) + " ", f[e(805)] = g, u && (s += e(1754) + d + ") { ", l += "}")); + return u && (h ? s += " if (true) { " : s += " " + l[e(1387)](0, -1) + " "), s; }), ut; } -var lt, vr; -function bc() { - return vr || (vr = 1, lt = function(x, t, r) { +var ft, vr; +function d2() { + return vr || (vr = 1, ft = function(x, t, r) { const e = K; - var s = " ", n = x[e(1346)][t], i = x[e(376)] + "/" + t; - x[e(2977)][e(2722)]; - var c = x[e(2980)][e(1766)](n); - return x[e(2977)][e(1081)] === !0 ? s += " console.log(" + c + ");" : typeof x.opts[e(1081)] == e(2855) && (s += e(449) + c + ", " + x[e(2980)][e(1766)](i) + e(2233)), s; - }), lt; -} -var ft, wr; -function gc() { - return wr || (wr = 1, ft = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1332)], i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)].getProperty(t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = "valid" + n, h = x[e(2977)][e(2073)] && c && c.$data; - h && (s += e(494) + n + e(1990) + x[e(2980)][e(568)](c[e(2073)], i, x[e(1671)]) + "; "), !h && (s += e(494) + n + e(2997) + d + ";"), s += e(2718) + b + " = equal(" + f + ", schema" + n + "); if (!" + b + e(1163); - var p = p || []; - p[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: 'const" + e(733) + x.errorPath + e(1938) + x[e(2980)][e(1766)](u) + e(1360) + n + e(1063), x[e(2977)].messages !== !1 && (s += e(2807)), x[e(2977)].verbose && (s += e(1888) + d + e(2439) + x[e(2269)] + e(1275) + f + " "), s += e(1063)) : s += " {} "; - var v = s; - return s = p[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += " throw new ValidationError([" + v + "]); " : s += e(1264) + v + e(2530) : s += e(2131) + v + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " }", l && (s += e(2293)), s; + var s = " ", n = x.level, i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = "data" + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; + m.level++; + var k = e(1122) + m[e(1082)], P = c[e(576)](function(O) { + const M = e; + return x.opts[M(868)] ? typeof O == M(1304) && Object[M(2123)](O)[M(2710)] > 0 || O === !1 : x[M(1975)].schemaHasRules(O, x[M(2996)][M(1096)]); + }); + if (P) { + var T = m[e(805)]; + s += " var " + h + e(905) + g + " = false; "; + var q = x[e(2612)]; + x.compositeRule = m[e(2612)] = !0; + var R = c; + if (R) + for (var E, C = -1, A = R[e(2710)] - 1; C < A; ) + E = R[C += 1], m[e(1425)] = E, m[e(1262)] = u + "[" + C + "]", m[e(569)] = f + "/" + C, s += " " + x[e(3181)](m) + " ", m[e(805)] = T, s += " " + g + e(2486) + g + e(1887) + k + "; if (!" + g + e(2834), v += "}"; + x[e(2612)] = m[e(2612)] = q, s += " " + v + e(1102) + g + e(2240), x[e(559)] !== !1 ? (s += " { keyword: '" + e(2122) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x[e(1544)].messages !== !1 && (s += " , message: 'should match some schema in anyOf' "), x.opts[e(2491)] && (s += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), s += " } else { errors = " + h + e(1606) + h + ") vErrors.length = " + h + "; else vErrors = null; } ", x.opts[e(3009)] && (s += e(1411)); + } else l && (s += e(523)); + return s; }), ft; } -var ht, Sr; -function yc() { - return Sr || (Sr = 1, ht = function(x, t, r) { +var lt, wr; +function h2() { + return wr || (wr = 1, lt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = "valid" + n, h = e(2037) + n, p = x[e(2980)].copy(x), v = ""; - p[e(1332)]++; - var k = e(1694) + p.level, P = "i" + n, N = p.dataLevel = x.dataLevel + 1, T = e(571) + N, C = x.baseId, I = x[e(2977)][e(1033)] ? typeof c == e(2517) && Object[e(548)](c)[e(2910)] > 0 || c === !1 : x[e(2980)].schemaHasRules(c, x.RULES.all); - if (s += "var " + h + e(1291) + b + ";", I) { - var R = x.compositeRule; - x[e(865)] = p[e(865)] = !0, p[e(1346)] = c, p[e(2269)] = d, p[e(376)] = u, s += e(2459) + k + e(2674) + P + e(1243) + P + e(813) + f + e(859) + P + e(1836), p[e(2731)] = x[e(2980)][e(2607)](x[e(2731)], P, x[e(2977)][e(1397)], !0); - var O = f + "[" + P + "]"; - p.dataPathArr[N] = P; - var D = x[e(2033)](p); - p[e(1620)] = C, x[e(2980)][e(2199)](D, T) < 2 ? s += " " + x[e(2980)].varReplace(D, T, O) + " " : s += " var " + T + e(1990) + O + "; " + D + " ", s += e(2865) + k + ") break; } ", x[e(865)] = p.compositeRule = R, s += " " + v + " if (!" + k + e(1680); - } else s += " if (" + f + e(1715); + var s = " ", n = x[e(1425)][t], i = x.errSchemaPath + "/" + t; + x[e(1544)][e(3009)]; + var c = x.util[e(1767)](n); + return x[e(1544)].$comment === !0 ? s += e(1040) + c + ");" : typeof x[e(1544)][e(2786)] == e(1936) && (s += e(1772) + c + ", " + x[e(1975)][e(1767)](i) + e(2456)), s; + }), lt; +} +var dt, Sr; +function p2() { + return Sr || (Sr = 1, dt = function(x, t, r) { + const e = K; + var s = " ", n = x.level, i = x.dataLevel, c = x[e(1425)][t], u = x.schemaPath + x.util[e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = "data" + (i || ""), g = e(1122) + n, h = x.opts[e(568)] && c && c.$data; + h && (s += " var schema" + n + " = " + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; "), !h && (s += e(1311) + n + " = validate.schema" + u + ";"), s += e(612) + g + e(832) + d + ", schema" + n + e(1298) + g + e(1793); + var m = m || []; + m[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1603) + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(1845) + n + " } ", x.opts[e(1696)] !== !1 && (s += e(977)), x[e(1544)][e(2491)] && (s += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var v = s; + return s = m.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + v + "]); " : s += e(2213) + v + "]; return false; " : s += " var err = " + v + e(2653), s += " }", l && (s += e(1961)), s; + }), dt; +} +var ht, kr; +function m2() { + return kr || (kr = 1, ht = function(x, t, r) { + const e = K; + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; + m.level++; + var k = "valid" + m.level, P = "i" + n, T = m.dataLevel = x[e(1498)] + 1, q = e(2663) + T, R = x[e(805)], E = x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c)[e(2710)] > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)].all); + if (s += e(612) + h + e(1156) + g + ";", E) { + var C = x[e(2612)]; + x[e(2612)] = m.compositeRule = !0, m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += " var " + k + " = false; for (var " + P + " = 0; " + P + e(1662) + d + e(2838) + P + "++) { ", m[e(1935)] = x.util[e(2126)](x[e(1935)], P, x.opts[e(2761)], !0); + var A = d + "[" + P + "]"; + m[e(662)][T] = P; + var O = x[e(3181)](m); + m[e(805)] = R, x.util.varOccurences(O, q) < 2 ? s += " " + x[e(1975)][e(650)](O, q, A) + " " : s += " var " + q + " = " + A + "; " + O + " ", s += e(1754) + k + ") break; } ", x[e(2612)] = m.compositeRule = C, s += " " + v + e(1102) + k + e(3258); + } else s += e(1754) + d + ".length == 0) {"; var M = M || []; - M[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: 'contains" + e(733) + x.errorPath + e(1938) + x.util[e(1766)](u) + " , params: {} ", x[e(2977)][e(2953)] !== !1 && (s += e(684)), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x[e(2269)] + " , data: " + f + " "), s += e(1063)) : s += e(1577); - var F = s; - return s = M[e(641)](), !x.compositeRule && l ? x[e(372)] ? s += e(2782) + F + e(2105) : s += e(1264) + F + e(2530) : s += e(2131) + F + e(2006), s += e(2584), I && (s += " errors = " + h + e(2208) + h + e(2056) + h + e(2719)), x.opts[e(2722)] && (s += e(1063)), s; + M.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(688) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x.opts[e(1696)] !== !1 && (s += " , message: 'should contain a valid item' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261); + var _ = s; + return s = M[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + _ + e(2300) : s += " validate.errors = [" + _ + "]; return false; " : s += " var err = " + _ + e(2653), s += " } else { ", E && (s += e(2059) + h + e(1606) + h + e(2563) + h + "; else vErrors = null; } "), x.opts[e(3009)] && (s += e(1411)), s; }), ht; } -var pt, kr; -function vc() { - return kr || (kr = 1, pt = function(x, t, r) { +var pt, Pr; +function b2() { + return Pr || (Pr = 1, pt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(2037) + n, h = x.util[e(1303)](x), p = ""; - h[e(1332)]++; - var v = e(1694) + h.level, k = {}, P = {}, N = x.opts.ownProperties; - for (R in c) - if (R != e(888)) { - var T = c[R], C = Array[e(2573)](T) ? P : k; - C[R] = T; + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d = e(2663) + (i || ""), g = e(1870) + n, h = x.util[e(2615)](x), m = ""; + h.level++; + var v = e(1122) + h[e(1082)], k = {}, P = {}, T = x[e(1544)][e(951)]; + for (C in c) + if (C != e(1134)) { + var q = c[C], R = Array[e(3255)](q) ? P : k; + R[C] = q; } - s += e(2718) + b + e(2386); - var I = x[e(2731)]; - s += e(2321) + n + ";"; - for (var R in P) - if (C = P[R], C[e(2910)]) { - if (s += " if ( " + f + x[e(2980)][e(1980)](R) + e(2522), N && (s += " && Object.prototype.hasOwnProperty.call(" + f + e(1997) + x[e(2980)].escapeQuotes(R) + e(1411)), l) { - s += e(997); - var O = C; - if (O) - for (var D, M = -1, F = O[e(2910)] - 1; M < F; ) { - D = O[M += 1], M && (s += e(1073)); - var q = x[e(2980)][e(1980)](D), H = f + q; - s += e(711) + H + e(2146), N && (s += e(2405) + f + e(1997) + x.util.escapeQuotes(D) + e(1411)), s += e(3012) + n + e(1990) + x[e(2980)].toQuotedString(x[e(2977)].jsonPointers ? D : q) + e(640); + s += e(612) + g + e(683); + var E = x[e(1935)]; + s += e(3118) + n + ";"; + for (var C in P) + if (R = P[C], R.length) { + if (s += e(836) + d + x[e(1975)][e(3039)](C) + e(1949), T && (s += " && Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](C) + e(2901)), l) { + s += e(640); + var A = R; + if (A) + for (var O, M = -1, _ = A[e(2710)] - 1; M < _; ) { + O = A[M += 1], M && (s += e(1887)); + var N = x[e(1975)][e(3039)](O), z = d + N; + s += e(1330) + z + e(562), T && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](O) + e(2901)), s += ") && (missing" + n + e(2486) + x[e(1975)][e(1767)](x[e(1544)][e(2761)] ? O : N) + e(2130); } - s += e(883); - var L = "missing" + n, z = e(375) + L + e(3021); - x[e(2977)]._errorDataPathProperty && (x[e(2731)] = x[e(2977)][e(1397)] ? x.util[e(2607)](I, L, !0) : I + " + " + L); + s += e(1951); + var U = e(2473) + n, H = e(1064) + U + e(2519); + x[e(1544)]._errorDataPathProperty && (x[e(1935)] = x[e(1544)][e(2761)] ? x[e(1975)][e(2126)](E, U, !0) : E + " + " + U); var G = G || []; - G[e(816)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + e(2012) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(579) + x[e(2980)][e(1825)](R) + e(621) + z + e(2569) + C.length + e(2511) + x[e(2980)].escapeQuotes(C.length == 1 ? C[0] : C[e(952)](", ")) + e(2675), x[e(2977)].messages !== !1 && (s += e(2348), C.length == 1 ? s += e(2776) + x[e(2980)].escapeQuotes(C[0]) : s += e(904) + x.util[e(1825)](C[e(952)](", ")), s += " when property " + x[e(2980)][e(1825)](R) + e(2060)), x.opts[e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x[e(2269)] + e(1275) + f + " "), s += " } ") : s += e(1577); - var se = s; - s = G[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += " throw new ValidationError([" + se + e(2105) : s += e(1264) + se + e(2530) : s += e(2131) + se + e(2006); + G[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1110) + e(2387) + x.errorPath + " , schemaPath: " + x.util[e(1767)](f) + e(2588) + x[e(1975)][e(1265)](C) + e(1519) + H + "', depsCount: " + R[e(2710)] + e(2483) + x[e(1975)][e(1265)](R[e(2710)] == 1 ? R[0] : R[e(1592)](", ")) + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1438), R.length == 1 ? s += "property " + x.util[e(1265)](R[0]) : s += e(2807) + x.util.escapeQuotes(R[e(1592)](", ")), s += e(1242) + x.util[e(1265)](C) + e(2488)), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + " , data: " + d + " "), s += " } ") : s += e(3261); + var re = s; + s = G[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + re + e(2300) : s += e(2213) + re + "]; return false; " : s += e(2636) + re + e(2653); } else { - s += " ) { "; - var re = C; - if (re) - for (var D, ue = -1, fe = re[e(2910)] - 1; ue < fe; ) { - D = re[ue += 1]; - var q = x[e(2980)][e(1980)](D), z = x[e(2980)][e(1825)](D), H = f + q; - x[e(2977)]._errorDataPathProperty && (x[e(2731)] = x[e(2980)][e(1737)](I, D, x[e(2977)][e(1397)])), s += e(1597) + H + e(2146), N && (s += e(2405) + f + e(1997) + x.util[e(1825)](D) + e(1411)), s += e(1354), x[e(1596)] !== !1 ? (s += e(1962) + e(2012) + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(u) + e(579) + x.util[e(1825)](R) + "', missingProperty: '" + z + e(2569) + C.length + e(2511) + x[e(2980)][e(1825)](C.length == 1 ? C[0] : C[e(952)](", ")) + e(2675), x[e(2977)][e(2953)] !== !1 && (s += " , message: 'should have ", C[e(2910)] == 1 ? s += e(2776) + x[e(2980)][e(1825)](C[0]) : s += e(904) + x.util[e(1825)](C[e(952)](", ")), s += e(3066) + x.util[e(1825)](R) + e(2060)), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x[e(2269)] + " , data: " + f + " "), s += e(1063)) : s += e(1577), s += e(1302); + s += e(774); + var se = R; + if (se) + for (var O, fe = -1, de = se[e(2710)] - 1; fe < de; ) { + O = se[fe += 1]; + var N = x[e(1975)][e(3039)](O), H = x[e(1975)][e(1265)](O), z = d + N; + x[e(1544)][e(3124)] && (x[e(1935)] = x.util.getPath(E, O, x[e(1544)][e(2761)])), s += " if ( " + z + e(562), T && (s += e(1578) + d + e(1167) + x[e(1975)][e(1265)](O) + e(2901)), s += e(1939), x[e(559)] !== !1 ? (s += e(1108) + e(1110) + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(2588) + x[e(1975)][e(1265)](C) + e(1519) + H + e(1179) + R[e(2710)] + e(2483) + x[e(1975)][e(1265)](R.length == 1 ? R[0] : R[e(1592)](", ")) + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1438), R[e(2710)] == 1 ? s += e(1083) + x[e(1975)][e(1265)](R[0]) : s += e(2807) + x[e(1975)].escapeQuotes(R[e(1592)](", ")), s += e(1242) + x[e(1975)][e(1265)](C) + e(2488)), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2784); } } - s += e(1889), l && (p += "}", s += e(2293)); + s += e(2648), l && (m += "}", s += e(1961)); } - x.errorPath = I; - var le = h[e(1620)]; - for (var R in k) { - var T = k[R]; - (x[e(2977)][e(1033)] ? typeof T == "object" && Object[e(548)](T)[e(2910)] > 0 || T === !1 : x[e(2980)].schemaHasRules(T, x[e(1757)][e(2264)])) && (s += " " + v + e(1949) + f + x[e(2980)][e(1980)](R) + e(2522), N && (s += " && Object.prototype.hasOwnProperty.call(" + f + ", '" + x[e(2980)][e(1825)](R) + e(1411)), s += e(1109), h[e(1346)] = T, h.schemaPath = d + x[e(2980)][e(1980)](R), h.errSchemaPath = u + "/" + x[e(2980)][e(800)](R), s += " " + x.validate(h) + " ", h[e(1620)] = le, s += e(2355), l && (s += " if (" + v + e(1109), p += "}")); + x.errorPath = E; + var le = h[e(805)]; + for (var C in k) { + var q = k[C]; + (x.opts[e(868)] ? typeof q == e(1304) && Object.keys(q)[e(2710)] > 0 || q === !1 : x[e(1975)][e(1733)](q, x[e(2996)][e(1096)])) && (s += " " + v + e(1609) + d + x[e(1975)][e(3039)](C) + " !== undefined ", T && (s += e(498) + d + e(1167) + x[e(1975)][e(1265)](C) + e(2901)), s += e(2834), h[e(1425)] = q, h.schemaPath = u + x[e(1975)][e(3039)](C), h[e(569)] = f + "/" + x[e(1975)][e(1675)](C), s += " " + x[e(3181)](h) + " ", h[e(805)] = le, s += e(2204), l && (s += e(1754) + v + ") { ", m += "}")); } - return l && (s += e(1699) + p + " if (" + b + e(1957)), s; + return l && (s += e(2602) + m + e(1754) + g + " == errors) {"), s; }), pt; } -var mt, Pr; -function wc() { - return Pr || (Pr = 1, mt = function(x, t, r) { +var mt, Ir; +function g2() { + return Ir || (Ir = 1, mt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x[e(1346)][t], d = x.schemaPath + x.util[e(1980)](t), u = x[e(376)] + "/" + t, l = !x.opts[e(2722)], f = e(571) + (i || ""), b = e(1694) + n, h = x[e(2977)][e(2073)] && c && c[e(2073)]; - h && (s += e(494) + n + " = " + x.util[e(568)](c[e(2073)], i, x[e(1671)]) + "; "); - var p = "i" + n, v = "schema" + n; - !h && (s += e(2459) + v + e(2997) + d + ";"), s += e(2718) + b + ";", h && (s += e(1089) + n + " === undefined) " + b + e(1612) + n + ")) " + b + " = false; else {"), s += "" + b + e(2375) + p + e(2490) + p + "<" + v + e(859) + p + e(2703) + f + ", " + v + "[" + p + e(1529) + b + e(2688), h && (s += e(471)), s += e(1478) + b + e(1163); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x.errSchemaPath + "/" + t, l = !x.opts.allErrors, d = e(2663) + (i || ""), g = e(1122) + n, h = x.opts.$data && c && c[e(568)]; + h && (s += e(1311) + n + " = " + x[e(1975)].getData(c[e(568)], i, x.dataPathArr) + "; "); + var m = "i" + n, v = e(1425) + n; + !h && (s += e(2675) + v + e(1699) + u + ";"), s += e(612) + g + ";", h && (s += e(3121) + n + e(1144) + g + " = true; else if (!Array.isArray(schema" + n + e(1345) + g + e(991)), s += "" + g + e(2171) + m + e(599) + m + "<" + v + e(2838) + m + "++) if (equal(" + d + ", " + v + "[" + m + e(2855) + g + e(1624), h && (s += " } "), s += e(1102) + g + e(1793); var k = k || []; - k[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + "enum' , dataPath: (dataPath || '') + " + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(1326) + n + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(2943)), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x.schemaPath + " , data: " + f + " "), s += e(1063)) : s += e(1577); + k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + e(2218) + e(2387) + x.errorPath + " , schemaPath: " + x.util.toQuotedString(f) + e(3037) + n + " } ", x[e(1544)].messages !== !1 && (s += e(1560)), x.opts[e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); var P = s; - return s = k.pop(), !x[e(865)] && l ? x[e(372)] ? s += " throw new ValidationError([" + P + e(2105) : s += e(1264) + P + e(2530) : s += e(2131) + P + e(2006), s += " }", l && (s += e(2293)), s; + return s = k[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + e(2653), s += " }", l && (s += e(1961)), s; }), mt; } -var bt, Ir; -function Sc() { - return Ir || (Ir = 1, bt = function(x, t, r) { +var bt, Er; +function y2() { + return Er || (Er = 1, bt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x.opts[e(2722)], f = e(571) + (i || ""); - if (x[e(2977)][e(1918)] === !1) return l && (s += e(1954)), s; - var b = x[e(2977)][e(2073)] && c && c.$data, h; - b ? (s += e(494) + n + " = " + x[e(2980)][e(568)](c[e(2073)], i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c; - var p = x[e(2977)][e(1912)], v = Array[e(2573)](p); - if (b) { - var k = "format" + n, P = "isObject" + n, N = e(1986) + n; - s += e(2459) + k + e(657) + h + e(727) + P + e(1114) + k + e(2283) + k + e(3067) + k + ".validate; var " + N + " = " + P + e(905) + k + e(1052) + P + e(1109), x[e(372)] && (s += e(536) + n + e(1990) + k + e(2935)), s += " " + k + " = " + k + e(2132), b && (s += " (" + h + e(1501) + h + e(1471)), s += " (", p != e(765) && (s += " (" + h + " && !" + k + " ", v && (s += " && self._opts.unknownFormats.indexOf(" + h + ") == -1 "), s += e(1422)), s += " (" + k + e(905) + N + e(988) + r + e(1872) + k + " == 'function' ? ", x[e(372)] ? s += e(2895) + n + e(725) + k + "(" + f + e(2598) + k + "(" + f + ")) " : s += " " + k + "(" + f + ") ", s += e(970) + k + e(1880) + f + "))))) {"; + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x.util.getProperty(t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d = "data" + (i || ""); + if (x[e(1544)][e(802)] === !1) return l && (s += " if (true) { "), s; + var g = x[e(1544)][e(568)] && c && c.$data, h; + g ? (s += e(1311) + n + " = " + x[e(1975)][e(1186)](c.$data, i, x.dataPathArr) + "; ", h = "schema" + n) : h = c; + var m = x[e(1544)][e(1612)], v = Array[e(3255)](m); + if (g) { + var k = "format" + n, P = e(1151) + n, T = e(3238) + n; + s += " var " + k + e(2957) + h + e(2688) + P + e(1715) + k + e(2678) + k + e(2152) + k + e(596) + T + " = " + P + e(3061) + k + ".type || 'string'; if (" + P + e(2834), x[e(2416)] && (s += " var async" + n + " = " + k + e(2241)), s += " " + k + e(2486) + k + ".validate; } if ( ", g && (s += " (" + h + e(2439) + h + " != 'string') || "), s += " (", m != "ignore" && (s += " (" + h + e(2138) + k + " ", v && (s += e(2465) + h + e(3277)), s += e(1259)), s += " (" + k + " && " + T + e(545) + r + e(1406) + k + e(1061), x[e(2416)] ? s += e(534) + n + e(3267) + k + "(" + d + e(624) + k + "(" + d + e(1345) : s += " " + k + "(" + d + ") ", s += e(1171) + k + e(2947) + d + e(1583); } else { - var k = x.formats[c]; + var k = x[e(3155)][c]; if (!k) { - if (p == e(765)) return x[e(3053)].warn(e(1272) + c + e(1298) + x.errSchemaPath + '"'), l && (s += e(1954)), s; - if (v && p.indexOf(c) >= 0) return l && (s += " if (true) { "), s; - throw new Error(e(1272) + c + e(1521) + x.errSchemaPath + '"'); + if (m == e(2069)) return x[e(2303)].warn(e(801) + c + e(1154) + x.errSchemaPath + '"'), l && (s += e(523)), s; + if (v && m[e(2436)](c) >= 0) return l && (s += e(523)), s; + throw new Error(e(801) + c + e(3026) + x.errSchemaPath + '"'); } - var P = typeof k == "object" && !(k instanceof RegExp) && k[e(2033)], N = P && k[e(506)] || e(1443); + var P = typeof k == e(1304) && !(k instanceof RegExp) && k.validate, T = P && k[e(2076)] || e(1361); if (P) { - var T = k[e(372)] === !0; - k = k.validate; + var q = k[e(2416)] === !0; + k = k[e(3181)]; } - if (N != r) return l && (s += " if (true) { "), s; - if (T) { - if (!x.async) throw new Error(e(869)); - var C = e(1408) + x.util[e(1980)](c) + e(752); - s += " if (!(await " + C + "(" + f + e(409); + if (T != r) return l && (s += " if (true) { "), s; + if (q) { + if (!x.async) throw new Error(e(2182)); + var R = e(3155) + x[e(1975)][e(3039)](c) + e(2270); + s += e(1248) + R + "(" + d + e(1537); } else { - s += e(1338); - var C = e(1408) + x[e(2980)][e(1980)](c); - P && (C += e(752)), typeof k == e(2855) ? s += " " + C + "(" + f + ") " : s += " " + C + e(1880) + f + ") ", s += e(1109); + s += e(2290); + var R = e(3155) + x[e(1975)][e(3039)](c); + P && (R += e(2270)), typeof k == "function" ? s += " " + R + "(" + d + ") " : s += " " + R + e(2947) + d + ") ", s += e(2834); } } - var I = I || []; - I[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + e(1918) + e(733) + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(716), b ? s += "" + h : s += "" + x[e(2980)][e(1766)](c), s += e(1892), x[e(2977)].messages !== !1 && (s += e(2596), b ? s += e(375) + h + e(3021) : s += "" + x[e(2980)][e(1825)](c), s += `"' `), x[e(2977)][e(2168)] && (s += e(1491), b ? s += e(777) + d : s += "" + x[e(2980)][e(1766)](c), s += " , parentSchema: validate.schema" + x[e(2269)] + " , data: " + f + " "), s += e(1063)) : s += e(1577); - var R = s; - return s = I[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + R + e(2105) : s += " validate.errors = [" + R + "]; return false; " : s += " var err = " + R + e(2006), s += " } ", l && (s += " else { "), s; + var E = E || []; + E.push(s), s = "", x[e(559)] !== !1 ? (s += " { keyword: 'format" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { format: ", g ? s += "" + h : s += "" + x.util[e(1767)](c), s += e(3186), x[e(1544)][e(1696)] !== !1 && (s += e(2528), g ? s += e(1064) + h + e(2519) : s += "" + x[e(1975)][e(1265)](c), s += e(2773)), x.opts[e(2491)] && (s += e(2827), g ? s += "validate.schema" + u : s += "" + x[e(1975)][e(1767)](c), s += e(2989) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261); + var C = s; + return s = E[e(2900)](), !x.compositeRule && l ? x.async ? s += e(1499) + C + "]); " : s += e(2213) + C + "]; return false; " : s += e(2636) + C + e(2653), s += e(1411), l && (s += e(1961)), s; }), bt; } -var gt, Er; -function kc() { - return Er || (Er = 1, gt = function(x, t, r) { +var gt, Rr; +function v2() { + return Rr || (Rr = 1, gt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x.schema[t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], f = "data" + (i || ""), b = e(1694) + n, h = e(2037) + n, p = x.util.copy(x); - p[e(1332)]++; - var v = e(1694) + p.level, k = x[e(1346)].then, P = x[e(1346)][e(1965)], N = k !== void 0 && (x[e(2977)][e(1033)] ? typeof k == e(2517) && Object[e(548)](k)[e(2910)] > 0 || k === !1 : x.util[e(2565)](k, x[e(1757)][e(2264)])), T = P !== void 0 && (x[e(2977)].strictKeywords ? typeof P == e(2517) && Object[e(548)](P)[e(2910)] > 0 || P === !1 : x[e(2980)][e(2565)](P, x[e(1757)].all)), C = p[e(1620)]; - if (N || T) { - var I; - p[e(1596)] = !1, p[e(1346)] = c, p[e(2269)] = d, p[e(376)] = u, s += e(2459) + h + " = errors; var " + b + e(744); - var R = x.compositeRule; - x[e(865)] = p[e(865)] = !0, s += " " + x[e(2033)](p) + " ", p[e(1620)] = C, p.createErrors = !0, s += e(906) + h + e(2208) + h + e(2056) + h + e(1498), x[e(865)] = p[e(865)] = R, N ? (s += " if (" + v + e(2289), p[e(1346)] = x.schema[e(857)], p[e(2269)] = x[e(2269)] + ".then", p.errSchemaPath = x[e(376)] + e(1292), s += " " + x[e(2033)](p) + " ", p.baseId = C, s += " " + b + e(1990) + v + "; ", N && T ? (I = "ifClause" + n, s += e(2459) + I + " = 'then'; ") : I = e(1916), s += e(1063), T && (s += " else { ")) : s += e(1478) + v + e(1109), T && (p[e(1346)] = x.schema[e(1965)], p[e(2269)] = x[e(2269)] + e(2369), p[e(376)] = x[e(376)] + e(1531), s += " " + x[e(2033)](p) + " ", p[e(1620)] = C, s += " " + b + e(1990) + v + "; ", N && T ? (I = e(1271) + n, s += " var " + I + e(444)) : I = e(1615), s += e(1063)), s += e(1478) + b + e(2969), x[e(1596)] !== !1 ? (s += e(1962) + "if" + e(733) + x.errorPath + e(1938) + x.util[e(1766)](u) + e(2049) + I + " } ", x[e(2977)].messages !== !1 && (s += e(1953) + I + e(2606)), x[e(2977)].verbose && (s += e(1888) + d + e(2439) + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577), s += e(2006), !x[e(865)] && l && (x[e(372)] ? s += e(1755) : s += " validate.errors = vErrors; return false; "), s += e(1889), l && (s += e(2293)); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = e(1122) + n, h = "errs__" + n, m = x[e(1975)][e(2615)](x); + m[e(1082)]++; + var v = e(1122) + m[e(1082)], k = x[e(1425)].then, P = x[e(1425)][e(2629)], T = k !== void 0 && (x[e(1544)].strictKeywords ? typeof k == e(1304) && Object.keys(k).length > 0 || k === !1 : x[e(1975)][e(1733)](k, x[e(2996)][e(1096)])), q = P !== void 0 && (x.opts[e(868)] ? typeof P == "object" && Object[e(2123)](P)[e(2710)] > 0 || P === !1 : x[e(1975)][e(1733)](P, x[e(2996)][e(1096)])), R = m[e(805)]; + if (T || q) { + var E; + m[e(559)] = !1, m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += e(2675) + h + e(905) + g + " = true; "; + var C = x[e(2612)]; + x[e(2612)] = m[e(2612)] = !0, s += " " + x[e(3181)](m) + " ", m[e(805)] = R, m.createErrors = !0, s += " errors = " + h + "; if (vErrors !== null) { if (" + h + e(2563) + h + e(2320), x[e(2612)] = m[e(2612)] = C, T ? (s += e(1754) + v + e(929), m[e(1425)] = x[e(1425)][e(2517)], m.schemaPath = x[e(1262)] + e(3109), m[e(569)] = x.errSchemaPath + e(3015), s += " " + x[e(3181)](m) + " ", m[e(805)] = R, s += " " + g + e(2486) + v + "; ", T && q ? (E = "ifClause" + n, s += e(2675) + E + e(615)) : E = "'then'", s += e(1411), q && (s += e(1961))) : s += e(1102) + v + ") { ", q && (m[e(1425)] = x[e(1425)][e(2629)], m.schemaPath = x[e(1262)] + ".else", m[e(569)] = x[e(569)] + "/else", s += " " + x[e(3181)](m) + " ", m[e(805)] = R, s += " " + g + e(2486) + v + "; ", T && q ? (E = "ifClause" + n, s += e(2675) + E + " = 'else'; ") : E = e(1443), s += " } "), s += e(1102) + g + e(2240), x[e(559)] !== !1 ? (s += e(1108) + "if" + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2610) + E + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(1191) + E + e(3044)), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += " validate.errors = vErrors; return false; "), s += e(2648), l && (s += " else { "); } else l && (s += " if (true) { "); return s; }), gt; } var yt, Cr; -function Pc() { +function w2() { return Cr || (Cr = 1, yt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(1694) + n, h = e(2037) + n, p = x.util[e(1303)](x), v = ""; - p[e(1332)]++; - var k = "valid" + p[e(1332)], P = "i" + n, N = p[e(2551)] = x[e(2551)] + 1, T = e(571) + N, C = x[e(1620)]; - if (s += e(2718) + h + e(1291) + b + ";", Array[e(2573)](c)) { - var I = x[e(1346)][e(1547)]; - if (I === !1) { - s += " " + b + " = " + f + e(738) + c[e(2910)] + "; "; - var R = u; - u = x.errSchemaPath + "/additionalItems", s += e(2138) + b + ") { "; - var O = O || []; - O.push(s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + e(1547) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + " , params: { limit: " + c[e(2910)] + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(2065) + c.length + e(618)), x.opts.verbose && (s += " , schema: false , parentSchema: validate.schema" + x[e(2269)] + " , data: " + f + " "), s += e(1063)) : s += e(1577); - var D = s; - s = O.pop(), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + D + e(2105) : s += e(1264) + D + e(2530) : s += e(2131) + D + e(2006), s += e(1063), u = R, l && (v += "}", s += " else { "); + var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; + m.level++; + var k = e(1122) + m[e(1082)], P = "i" + n, T = m[e(1498)] = x[e(1498)] + 1, q = e(2663) + T, R = x[e(805)]; + if (s += "var " + h + e(1156) + g + ";", Array.isArray(c)) { + var E = x[e(1425)][e(2410)]; + if (E === !1) { + s += " " + g + e(2486) + d + e(1723) + c[e(2710)] + "; "; + var C = f; + f = x[e(569)] + e(2214), s += e(2919) + g + e(1793); + var A = A || []; + A[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2410) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2929) + c.length + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(3168) + c[e(2710)] + " items' "), x.opts.verbose && (s += " , schema: false , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var O = s; + s = A[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + O + e(2300) : s += e(2213) + O + e(702) : s += " var err = " + O + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1411), f = C, l && (v += "}", s += " else { "); } var M = c; if (M) { - for (var F, q = -1, H = M[e(2910)] - 1; q < H; ) - if (F = M[q += 1], x[e(2977)][e(1033)] ? typeof F == "object" && Object[e(548)](F)[e(2910)] > 0 || F === !1 : x[e(2980)][e(2565)](F, x[e(1757)][e(2264)])) { - s += " " + k + e(2812) + f + e(1229) + q + e(1109); - var L = f + "[" + q + "]"; - p[e(1346)] = F, p[e(2269)] = d + "[" + q + "]", p[e(376)] = u + "/" + q, p[e(2731)] = x[e(2980)][e(2607)](x[e(2731)], q, x[e(2977)][e(1397)], !0), p[e(1671)][N] = q; - var z = x[e(2033)](p); - p[e(1620)] = C, x.util[e(2199)](z, T) < 2 ? s += " " + x[e(2980)][e(1772)](z, T, L) + " " : s += e(2459) + T + e(1990) + L + "; " + z + " ", s += e(2355), l && (s += e(2865) + k + e(1109), v += "}"); + for (var _, N = -1, z = M[e(2710)] - 1; N < z; ) + if (_ = M[N += 1], x.opts[e(868)] ? typeof _ == e(1304) && Object.keys(_).length > 0 || _ === !1 : x[e(1975)].schemaHasRules(_, x[e(2996)][e(1096)])) { + s += " " + k + " = true; if (" + d + ".length > " + N + e(2834); + var U = d + "[" + N + "]"; + m[e(1425)] = _, m[e(1262)] = u + "[" + N + "]", m.errSchemaPath = f + "/" + N, m[e(1935)] = x[e(1975)][e(2126)](x.errorPath, N, x[e(1544)][e(2761)], !0), m.dataPathArr[T] = N; + var H = x[e(3181)](m); + m[e(805)] = R, x.util[e(1109)](H, q) < 2 ? s += " " + x.util[e(650)](H, q, U) + " " : s += e(2675) + q + e(2486) + U + "; " + H + " ", s += e(2204), l && (s += " if (" + k + ") { ", v += "}"); } } - if (typeof I == e(2517) && (x[e(2977)][e(1033)] ? typeof I == "object" && Object[e(548)](I)[e(2910)] > 0 || I === !1 : x.util[e(2565)](I, x.RULES[e(2264)]))) { - p[e(1346)] = I, p[e(2269)] = x.schemaPath + e(567), p[e(376)] = x.errSchemaPath + "/additionalItems", s += " " + k + e(2812) + f + e(1229) + c[e(2910)] + e(524) + P + " = " + c.length + "; " + P + e(813) + f + e(859) + P + "++) { ", p[e(2731)] = x.util.getPathExpr(x[e(2731)], P, x.opts[e(1397)], !0); - var L = f + "[" + P + "]"; - p[e(1671)][N] = P; - var z = x.validate(p); - p[e(1620)] = C, x[e(2980)][e(2199)](z, T) < 2 ? s += " " + x[e(2980)][e(1772)](z, T, L) + " " : s += " var " + T + e(1990) + L + "; " + z + " ", l && (s += e(1478) + k + ") break; "), s += e(1486), l && (s += e(2865) + k + e(1109), v += "}"); + if (typeof E == "object" && (x[e(1544)][e(868)] ? typeof E == e(1304) && Object.keys(E)[e(2710)] > 0 || E === !1 : x[e(1975)][e(1733)](E, x[e(2996)][e(1096)]))) { + m.schema = E, m[e(1262)] = x[e(1262)] + ".additionalItems", m[e(569)] = x[e(569)] + e(2214), s += " " + k + e(769) + d + e(1620) + c[e(2710)] + ") { for (var " + P + e(2486) + c[e(2710)] + "; " + P + e(1662) + d + e(2838) + P + e(609), m[e(1935)] = x.util.getPathExpr(x[e(1935)], P, x[e(1544)].jsonPointers, !0); + var U = d + "[" + P + "]"; + m[e(662)][T] = P; + var H = x[e(3181)](m); + m[e(805)] = R, x[e(1975)][e(1109)](H, q) < 2 ? s += " " + x.util[e(650)](H, q, U) + " " : s += e(2675) + q + " = " + U + "; " + H + " ", l && (s += e(1102) + k + e(1418)), s += " } } ", l && (s += e(1754) + k + e(2834), v += "}"); } - } else if (x.opts[e(1033)] ? typeof c == "object" && Object[e(548)](c)[e(2910)] > 0 || c === !1 : x[e(2980)][e(2565)](c, x.RULES.all)) { - p[e(1346)] = c, p.schemaPath = d, p.errSchemaPath = u, s += e(2879) + P + e(1990) + 0 + "; " + P + e(813) + f + e(859) + P + e(1836), p[e(2731)] = x[e(2980)][e(2607)](x[e(2731)], P, x[e(2977)][e(1397)], !0); - var L = f + "[" + P + "]"; - p[e(1671)][N] = P; - var z = x[e(2033)](p); - p[e(1620)] = C, x[e(2980)][e(2199)](z, T) < 2 ? s += " " + x[e(2980)][e(1772)](z, T, L) + " " : s += e(2459) + T + e(1990) + L + "; " + z + " ", l && (s += e(1478) + k + e(2764)), s += " }"; + } else if (x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c)[e(2710)] > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)][e(1096)])) { + m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += e(1883) + P + e(2486) + 0 + "; " + P + e(1662) + d + e(2838) + P + e(609), m.errorPath = x.util[e(2126)](x[e(1935)], P, x.opts[e(2761)], !0); + var U = d + "[" + P + "]"; + m.dataPathArr[T] = P; + var H = x.validate(m); + m.baseId = R, x.util[e(1109)](H, q) < 2 ? s += " " + x.util.varReplace(H, q, U) + " " : s += e(2675) + q + e(2486) + U + "; " + H + " ", l && (s += e(1102) + k + e(1418)), s += " }"; } - return l && (s += " " + v + e(2865) + h + " == errors) {"), s; + return l && (s += " " + v + " if (" + h + " == errors) {"), s; }), yt; } -var vt, Rr; +var vt, _r; function Fr() { - return Rr || (Rr = 1, vt = function(x, t, r) { + return _r || (_r = 1, vt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)].allErrors, C, f = e(571) + (i || ""), b = x[e(2977)][e(2073)] && c && c[e(2073)], h; - b ? (s += " var schema" + n + e(1990) + x[e(2980)][e(568)](c[e(2073)], i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c; - var p = t == e(2793), v = e(p ? 2277 : 2987), k = x[e(1346)][v], P = x[e(2977)][e(2073)] && k && k.$data, N = p ? "<" : ">", T = p ? ">" : "<", C = void 0; - if (!(b || typeof c == e(1730) || c === void 0)) throw new Error(t + " must be number"); - if (!(P || k === void 0 || typeof k == e(1730) || typeof k == e(1964))) throw new Error(v + e(1669)); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, R, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; + g ? (s += e(1311) + n + e(2486) + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c; + var m = t == "maximum", v = e(m ? 3282 : 578), k = x[e(1425)][v], P = x[e(1544)][e(568)] && k && k[e(568)], T = m ? "<" : ">", q = m ? ">" : "<", R = void 0; + if (!(g || typeof c == e(2665) || c === void 0)) throw new Error(t + " must be number"); + if (!(P || k === void 0 || typeof k == e(2665) || typeof k == "boolean")) throw new Error(v + e(1590)); if (P) { - var I = x[e(2980)].getData(k[e(2073)], i, x[e(1671)]), R = e(2882) + n, O = e(2959) + n, D = e(2407) + n, M = "op" + n, F = e(375) + M + e(3021); - s += " var schemaExcl" + n + e(1990) + I + "; ", I = e(1453) + n, s += e(2459) + R + e(1851) + O + e(1114) + I + e(1331) + O + e(2252) + O + e(1602) + O + e(2832); - var C = v, q = q || []; - q[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: '" + (C || e(1891)) + e(733) + x[e(2731)] + " , schemaPath: " + x.util.toQuotedString(u) + e(782), x[e(2977)].messages !== !1 && (s += e(1266) + v + " should be boolean' "), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x[e(2269)] + " , data: " + f + " "), s += " } ") : s += e(1577); - var H = s; - s = q[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + H + e(2105) : s += " validate.errors = [" + H + e(2530) : s += e(2131) + H + e(2006), s += e(981), b && (s += " (" + h + e(1501) + h + e(1622)), s += " " + O + e(2151) + R + e(1990) + h + " === undefined || " + I + " " + N + "= " + h + e(415) + f + " " + T + "= " + I + e(970) + f + " " + T + " " + h + e(2086) + R + e(1990) + I + " === true) ? " + f + " " + T + "= " + h + " : " + f + " " + T + " " + h + e(1504) + f + e(844) + f + ") { var op" + n + " = " + R + " ? '" + N + "' : '" + N + "='; ", c === void 0 && (C = v, u = x[e(376)] + "/" + v, h = I, b = P); + var E = x[e(1975)].getData(k[e(568)], i, x[e(662)]), C = e(2257) + n, A = e(614) + n, O = "exclIsNumber" + n, M = "op" + n, _ = e(1064) + M + " + '"; + s += e(2895) + n + e(2486) + E + "; ", E = e(2142) + n, s += e(2675) + C + e(1691) + A + e(1715) + E + e(2318) + A + e(1864) + A + " != 'undefined' && " + A + " != 'number') { "; + var R = v, N = N || []; + N.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (R || e(2956)) + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + e(1676), x.opts[e(1696)] !== !1 && (s += e(1531) + v + " should be boolean' "), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var z = s; + s = N.pop(), !x[e(2612)] && l ? x.async ? s += e(1499) + z + "]); " : s += e(2213) + z + e(702) : s += e(2636) + z + e(2653), s += e(3069), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + A + e(2403) + C + " = " + h + e(2952) + E + " " + T + "= " + h + e(2856) + d + " " + q + "= " + E + e(1171) + d + " " + q + " " + h + " ) : ( (" + C + e(2486) + E + " === true) ? " + d + " " + q + "= " + h + e(1171) + d + " " + q + " " + h + e(671) + d + e(2781) + d + e(679) + n + e(2486) + C + " ? '" + T + e(2866) + T + "='; ", c === void 0 && (R = v, f = x[e(569)] + "/" + v, h = E, g = P); } else { - var D = typeof k == e(1730), F = N; - if (D && b) { - var M = "'" + F + "'"; - s += e(1597), b && (s += " (" + h + " !== undefined && typeof " + h + " != 'number') || "), s += e(2167) + h + " === undefined || " + k + " " + N + "= " + h + e(2822) + f + " " + T + "= " + k + e(970) + f + " " + T + " " + h + e(1504) + f + e(844) + f + e(1109); + var O = typeof k == e(2665), _ = T; + if (O && g) { + var M = "'" + _ + "'"; + s += e(836), g && (s += " (" + h + e(2439) + h + e(1712)), s += " ( " + h + e(2952) + k + " " + T + "= " + h + " ? " + d + " " + q + "= " + k + e(1171) + d + " " + q + " " + h + " ) || " + d + " !== " + d + e(2834); } else { - D && c === void 0 ? (R = !0, C = v, u = x[e(376)] + "/" + v, h = k, T += "=") : (D && (h = Math[e(p ? 2310 : 544)](k, c)), k === (D ? h : !0) ? (R = !0, C = v, u = x[e(376)] + "/" + v, T += "=") : (R = !1, F += "=")); - var M = "'" + F + "'"; - s += e(1597), b && (s += " (" + h + e(1501) + h + e(1622)), s += " " + f + " " + T + " " + h + e(1073) + f + e(844) + f + e(1109); + O && c === void 0 ? (C = !0, R = v, f = x[e(569)] + "/" + v, h = k, q += "=") : (O && (h = Math[e(m ? 521 : 753)](k, c)), k === (O ? h : !0) ? (C = !0, R = v, f = x[e(569)] + "/" + v, q += "=") : (C = !1, _ += "=")); + var M = "'" + _ + "'"; + s += e(836), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + d + " " + q + " " + h + e(1887) + d + e(2781) + d + e(2834); } } - C = C || t; - var q = q || []; - q[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: '" + (C || "_limit") + e(733) + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(2245) + M + e(983) + h + e(2557) + R + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(1913) + F + " ", b ? s += "' + " + h : s += "" + h + "'"), x[e(2977)][e(2168)] && (s += " , schema: ", b ? s += e(777) + d : s += "" + c, s += e(369) + x[e(2269)] + e(1275) + f + " "), s += e(1063)) : s += e(1577); - var H = s; - return s = q[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + H + e(2105) : s += " validate.errors = [" + H + "]; return false; " : s += e(2131) + H + e(2006), s += e(1063), l && (s += e(2293)), s; + R = R || t; + var N = N || []; + N[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (R || "_limit") + e(2387) + x.errorPath + e(2278) + x.util[e(1767)](f) + " , params: { comparison: " + M + e(2146) + h + e(1118) + C + e(1411), x.opts.messages !== !1 && (s += " , message: 'should be " + _ + " ", g ? s += e(1064) + h : s += "" + h + "'"), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + " , data: " + d + " "), s += " } ") : s += e(3261); + var z = s; + return s = N[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + z + "]); " : s += e(2213) + z + e(702) : s += e(2636) + z + e(2653), s += " } ", l && (s += e(1961)), s; }), vt; } -var wt, Nr; -function qr() { - return Nr || (Nr = 1, wt = function(x, t, r) { +var wt, Tr; +function Nr() { + return Tr || (Tr = 1, wt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x.schemaPath + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)].allErrors, v, f = e(571) + (i || ""), b = x.opts[e(2073)] && c && c[e(2073)], h; - if (b ? (s += e(494) + n + " = " + x[e(2980)][e(568)](c.$data, i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c, !(b || typeof c == e(1730))) throw new Error(t + e(1985)); - var p = t == "maxItems" ? ">" : "<"; - s += "if ( ", b && (s += " (" + h + " !== undefined && typeof " + h + " != 'number') || "), s += " " + f + e(1269) + p + " " + h + e(1109); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x.schemaPath + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, v, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; + if (g ? (s += e(1311) + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + e(1976)); + var m = t == "maxItems" ? ">" : "<"; + s += e(1932), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + d + e(2008) + m + " " + h + e(2834); var v = t, k = k || []; - k[e(816)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + (v || "_limitItems") + e(733) + x[e(2731)] + " , schemaPath: " + x.util[e(1766)](u) + e(2961) + h + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(1860), t == e(2157) ? s += e(450) : s += e(1121), s += e(1646), b ? s += "' + " + h + " + '" : s += "" + c, s += e(618)), x.opts.verbose && (s += " , schema: ", b ? s += e(777) + d : s += "" + c, s += " , parentSchema: validate.schema" + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += " {} "; + k.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (v || e(3157)) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { limit: " + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should NOT have ", t == "maxItems" ? s += e(2414) : s += "fewer", s += e(1333), g ? s += e(1064) + h + e(2519) : s += "" + c, s += e(2715)), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); var P = s; - return s = k[e(641)](), !x.compositeRule && l ? x[e(372)] ? s += e(2782) + P + e(2105) : s += e(1264) + P + e(2530) : s += e(2131) + P + e(2006), s += "} ", l && (s += e(2293)), s; + return s = k.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + "]; return false; " : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += e(1961)), s; }), wt; } -var St, Tr; +var St, qr; function Ar() { - return Tr || (Tr = 1, St = function(x, t, r) { + return qr || (qr = 1, St = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x.schema[t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)].allErrors, v, f = e(571) + (i || ""), b = x[e(2977)][e(2073)] && c && c.$data, h; - if (b ? (s += e(494) + n + " = " + x[e(2980)].getData(c.$data, i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c, !(b || typeof c == e(1730))) throw new Error(t + e(1985)); - var p = t == "maxLength" ? ">" : "<"; - s += e(2214), b && (s += " (" + h + " !== undefined && typeof " + h + e(1622)), x[e(2977)][e(974)] === !1 ? s += " " + f + e(1269) : s += e(821) + f + ") ", s += " " + p + " " + h + e(1109); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, v, d = e(2663) + (i || ""), g = x.opts[e(568)] && c && c.$data, h; + if (g ? (s += " var schema" + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + e(1976)); + var m = t == "maxLength" ? ">" : "<"; + s += e(1932), g && (s += " (" + h + e(2439) + h + e(1712)), x.opts[e(2714)] === !1 ? s += " " + d + e(2008) : s += e(1631) + d + ") ", s += " " + m + " " + h + e(2834); var v = t, k = k || []; - k[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + (v || e(380)) + e(733) + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(2961) + h + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(2085), t == e(496) ? s += e(2121) : s += e(2876), s += e(1646), b ? s += e(375) + h + e(3021) : s += "" + c, s += e(2847)), x[e(2977)].verbose && (s += e(1491), b ? s += "validate.schema" + d : s += "" + c, s += e(369) + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577); + k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (v || e(1098)) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { limit: " + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(3144), t == e(649) ? s += e(828) : s += e(1152), s += e(1333), g ? s += e(1064) + h + e(2519) : s += "" + c, s += e(3252)), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} "; var P = s; - return s = k[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + P + e(2105) : s += " validate.errors = [" + P + e(2530) : s += " var err = " + P + e(2006), s += "} ", l && (s += " else { "), s; + return s = k[e(2900)](), !x[e(2612)] && l ? x.async ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + e(2653), s += "} ", l && (s += " else { "), s; }), St; } -var kt, _r; -function Or() { - return _r || (_r = 1, kt = function(x, t, r) { +var kt, Or; +function Dr() { + return Or || (Or = 1, kt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x.util[e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], v, f = e(571) + (i || ""), b = x[e(2977)][e(2073)] && c && c[e(2073)], h; - if (b ? (s += e(494) + n + e(1990) + x[e(2980)].getData(c[e(2073)], i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c, !(b || typeof c == e(1730))) throw new Error(t + e(1985)); - var p = t == "maxProperties" ? ">" : "<"; - s += e(2214), b && (s += " (" + h + e(1501) + h + e(1622)), s += " Object.keys(" + f + e(1029) + p + " " + h + ") { "; + var s = " ", n = x.level, i = x.dataLevel, c = x[e(1425)][t], u = x.schemaPath + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], v, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; + if (g ? (s += " var schema" + n + " = " + x[e(1975)][e(1186)](c[e(568)], i, x[e(662)]) + "; ", h = e(1425) + n) : h = c, !(g || typeof c == "number")) throw new Error(t + e(1976)); + var m = t == e(1651) ? ">" : "<"; + s += e(1932), g && (s += " (" + h + e(2439) + h + " != 'number') || "), s += " Object.keys(" + d + e(2149) + m + " " + h + e(2834); var v = t, k = k || []; - k.push(s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + (v || e(1172)) + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(u) + e(2961) + h + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(1860), t == "maxProperties" ? s += "more" : s += e(1121), s += e(1646), b ? s += "' + " + h + e(3021) : s += "" + c, s += e(3015)), x[e(2977)][e(2168)] && (s += e(1491), b ? s += e(777) + d : s += "" + c, s += " , parentSchema: validate.schema" + x.schemaPath + " , data: " + f + " "), s += e(1063)) : s += e(1577); + k[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (v || "_limitProperties") + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(2929) + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(1687), t == "maxProperties" ? s += e(2414) : s += "fewer", s += " than ", g ? s += e(1064) + h + e(2519) : s += "" + c, s += " properties' "), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); var P = s; - return s = k[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + P + e(2105) : s += e(1264) + P + "]; return false; " : s += e(2131) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += e(2293)), s; + return s = k[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + P + e(2300) : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653), s += "} ", l && (s += e(1961)), s; }), kt; } -var Pt, Dr; -function Ic() { - return Dr || (Dr = 1, Pt = function(x, t, r) { +var Pt, jr; +function S2() { + return jr || (jr = 1, Pt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)].allErrors, f = e(571) + (i || ""), b = x[e(2977)][e(2073)] && c && c[e(2073)], h; - if (b ? (s += e(494) + n + e(1990) + x[e(2980)].getData(c.$data, i, x.dataPathArr) + "; ", h = e(1346) + n) : h = c, !(b || typeof c == e(1730))) throw new Error(t + " must be number"); - s += e(1149) + n + e(2136), b && (s += " " + h + " !== undefined && ( typeof " + h + e(1323)), s += e(2400) + n + e(1990) + f + e(1520) + h + ", ", x[e(2977)][e(1250)] ? s += e(1673) + n + e(1416) + n + e(2795) + x[e(2977)][e(1250)] + " " : s += " division" + n + " !== parseInt(division" + n + ") ", s += " ) ", b && (s += e(2406)), s += e(1017); - var p = p || []; - p.push(s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + e(2570) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(1638) + h + " } ", x.opts.messages !== !1 && (s += " , message: 'should be multiple of ", b ? s += "' + " + h : s += "" + h + "'"), x[e(2977)][e(2168)] && (s += e(1491), b ? s += e(777) + d : s += "" + c, s += e(369) + x.schemaPath + e(1275) + f + " "), s += " } ") : s += e(1577); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = x.opts[e(568)] && c && c[e(568)], h; + if (g ? (s += e(1311) + n + " = " + x[e(1975)][e(1186)](c.$data, i, x[e(662)]) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + " must be number"); + s += e(2058) + n + ";if (", g && (s += " " + h + e(652) + h + " != 'number' || "), s += e(785) + n + e(2486) + d + e(1973) + h + ", ", x[e(1544)][e(2808)] ? s += e(1369) + n + e(2845) + n + e(1641) + x[e(1544)].multipleOfPrecision + " " : s += e(792) + n + e(1848) + n + ") ", s += e(2368), g && (s += e(1644)), s += e(3047); + var m = m || []; + m[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + "multipleOf" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(1911) + h + e(1411), x[e(1544)].messages !== !1 && (s += e(2680), g ? s += e(1064) + h : s += "" + h + "'"), x.opts.verbose && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); var v = s; - return s = p[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + v + "]); " : s += e(1264) + v + e(2530) : s += e(2131) + v + e(2006), s += "} ", l && (s += e(2293)), s; + return s = m[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + v + e(2300) : s += " validate.errors = [" + v + e(702) : s += e(2636) + v + e(2653), s += "} ", l && (s += " else { "), s; }), Pt; } -var It, jr; -function Ec() { - return jr || (jr = 1, It = function(x, t, r) { +var It, Mr; +function k2() { + return Mr || (Mr = 1, It = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x.util[e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(2037) + n, h = x[e(2980)][e(1303)](x); - h[e(1332)]++; - var p = "valid" + h.level; - if (x[e(2977)][e(1033)] ? typeof c == e(2517) && Object.keys(c).length > 0 || c === !1 : x.util[e(2565)](c, x[e(1757)][e(2264)])) { - h[e(1346)] = c, h[e(2269)] = d, h[e(376)] = u, s += e(2459) + b + e(2043); - var v = x.compositeRule; - x[e(865)] = h[e(865)] = !0, h[e(1596)] = !1; + var s = " ", n = x.level, i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1870) + n, h = x[e(1975)][e(2615)](x); + h[e(1082)]++; + var m = e(1122) + h[e(1082)]; + if (x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c).length > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)][e(1096)])) { + h[e(1425)] = c, h.schemaPath = u, h.errSchemaPath = f, s += e(2675) + g + " = errors; "; + var v = x[e(2612)]; + x[e(2612)] = h[e(2612)] = !0, h[e(559)] = !1; var k; - h[e(2977)].allErrors && (k = h[e(2977)][e(2722)], h.opts[e(2722)] = !1), s += " " + x[e(2033)](h) + " ", h.createErrors = !0, k && (h[e(2977)][e(2722)] = k), x[e(865)] = h[e(865)] = v, s += e(2865) + p + e(1163); + h.opts[e(3009)] && (k = h[e(1544)][e(3009)], h[e(1544)].allErrors = !1), s += " " + x[e(3181)](h) + " ", h[e(559)] = !0, k && (h.opts.allErrors = k), x[e(2612)] = h[e(2612)] = v, s += e(1754) + m + e(1793); var P = P || []; - P[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: '" + e(685) + e(733) + x[e(2731)] + e(1938) + x.util[e(1766)](u) + e(782), x[e(2977)][e(2953)] !== !1 && (s += " , message: 'should NOT be valid' "), x[e(2977)].verbose && (s += " , schema: validate.schema" + d + e(2439) + x[e(2269)] + e(1275) + f + " "), s += e(1063)) : s += e(1577); - var N = s; - s = P.pop(), !x[e(865)] && l ? x.async ? s += e(2782) + N + "]); " : s += " validate.errors = [" + N + "]; return false; " : s += e(2131) + N + e(2006), s += e(806) + b + "; if (vErrors !== null) { if (" + b + e(2056) + b + "; else vErrors = null; } ", x.opts[e(2722)] && (s += e(1063)); - } else s += " var err = ", x[e(1596)] !== !1 ? (s += e(1962) + "not' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(u) + e(782), x[e(2977)][e(2953)] !== !1 && (s += e(1781)), x[e(2977)].verbose && (s += " , schema: validate.schema" + d + e(2439) + x[e(2269)] + e(1275) + f + " "), s += e(1063)) : s += e(1577), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l && (s += e(876)); + P[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + "not' , dataPath: (dataPath || '') + " + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x[e(1544)].messages !== !1 && (s += " , message: 'should NOT be valid' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += e(1411)) : s += e(3261); + var T = s; + s = P[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + T + e(2300) : s += e(2213) + T + e(702) : s += e(2636) + T + e(2653), s += " } else { errors = " + g + e(1606) + g + ") vErrors.length = " + g + e(1999), x[e(1544)].allErrors && (s += e(1411)); + } else s += e(1381), x[e(559)] !== !1 ? (s += e(1108) + e(2535) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(1676), x.opts.messages !== !1 && (s += e(2927)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261), s += e(2653), l && (s += e(2236)); return s; }), It; } -var Et, Mr; -function Cc() { - return Mr || (Mr = 1, Et = function(x, t, r) { +var Et, Lr; +function P2() { + return Lr || (Lr = 1, Et = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(1694) + n, h = "errs__" + n, p = x[e(2980)].copy(x), v = ""; - p[e(1332)]++; - var k = e(1694) + p.level, P = p[e(1620)], N = e(1061) + n, T = "passingSchemas" + n; - s += e(2718) + h + e(793) + N + e(2724) + b + e(2724) + T + e(2373); - var C = x[e(865)]; - x.compositeRule = p.compositeRule = !0; - var I = c; - if (I) - for (var R, O = -1, D = I[e(2910)] - 1; O < D; ) - R = I[O += 1], (x[e(2977)][e(1033)] ? typeof R == "object" && Object[e(548)](R)[e(2910)] > 0 || R === !1 : x[e(2980)][e(2565)](R, x.RULES[e(2264)])) ? (p.schema = R, p[e(2269)] = d + "[" + O + "]", p[e(376)] = u + "/" + O, s += " " + x.validate(p) + " ", p.baseId = P) : s += e(2459) + k + e(811), O && (s += e(2865) + k + " && " + N + e(1109) + b + e(3055) + T + e(1116) + T + ", " + O + e(1625), v += "}"), s += e(2865) + k + e(1109) + b + e(1990) + N + e(811) + T + e(1990) + O + e(2248); - return x[e(865)] = p[e(865)] = C, s += "" + v + e(1789) + b + e(2969), x[e(1596)] !== !1 ? (s += e(1962) + "oneOf" + e(733) + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(1005) + T + e(1063), x[e(2977)][e(2953)] !== !1 && (s += e(670)), x.opts[e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += " {} ", s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x.compositeRule && l && (x.async ? s += e(1755) : s += " validate.errors = vErrors; return false; "), s += e(2064) + h + "; if (vErrors !== null) { if (" + h + ") vErrors.length = " + h + "; else vErrors = null; }", x.opts.allErrors && (s += e(1063)), s; + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = "errs__" + n, m = x[e(1975)][e(2615)](x), v = ""; + m[e(1082)]++; + var k = e(1122) + m[e(1082)], P = m[e(805)], T = e(842) + n, q = "passingSchemas" + n; + s += e(612) + h + e(1711) + T + e(1323) + g + e(1323) + q + e(3278); + var R = x[e(2612)]; + x.compositeRule = m.compositeRule = !0; + var E = c; + if (E) + for (var C, A = -1, O = E[e(2710)] - 1; A < O; ) + C = E[A += 1], (x.opts[e(868)] ? typeof C == e(1304) && Object[e(2123)](C).length > 0 || C === !1 : x[e(1975)][e(1733)](C, x.RULES[e(1096)])) ? (m[e(1425)] = C, m.schemaPath = u + "[" + A + "]", m.errSchemaPath = f + "/" + A, s += " " + x.validate(m) + " ", m.baseId = P) : s += e(2675) + k + e(2411), A && (s += e(1754) + k + " && " + T + e(2834) + g + e(1500) + q + e(2498) + q + ", " + A + e(1308), v += "}"), s += e(1754) + k + ") { " + g + " = " + T + e(2411) + q + " = " + A + e(501); + return x.compositeRule = m.compositeRule = R, s += "" + v + e(1778) + g + ") { var err = ", x[e(559)] !== !1 ? (s += e(1108) + e(2547) + e(2387) + x[e(1935)] + e(2278) + x.util.toQuotedString(f) + " , params: { passingSchemas: " + q + " } ", x[e(1544)][e(1696)] !== !1 && (s += e(3008)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), s += e(1943) + h + e(1606) + h + e(2563) + h + e(598), x[e(1544)][e(3009)] && (s += e(1411)), s; }), Et; } -var Ct, Lr; -function Rc() { - return Lr || (Lr = 1, Ct = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x.schema[t], d = x.schemaPath + x[e(2980)][e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)].allErrors, f = e(571) + (i || ""), b = x.opts[e(2073)] && c && c[e(2073)], h; - b ? (s += " var schema" + n + e(1990) + x.util.getData(c[e(2073)], i, x[e(1671)]) + "; ", h = e(1346) + n) : h = c; - var p = b ? e(2498) + h + "))" : x.usePattern(c); - s += e(2214), b && (s += " (" + h + " !== undefined && typeof " + h + e(1471)), s += " !" + p + ".test(" + f + ") ) { "; - var v = v || []; - v[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + e(987) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(926), b ? s += "" + h : s += "" + x[e(2980)][e(1766)](c), s += e(1892), x[e(2977)][e(2953)] !== !1 && (s += ` , message: 'should match pattern "`, b ? s += e(375) + h + e(3021) : s += "" + x[e(2980)][e(1825)](c), s += e(532)), x.opts[e(2168)] && (s += e(1491), b ? s += e(777) + d : s += "" + x[e(2980)][e(1766)](c), s += e(369) + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577); - var k = s; - return s = v.pop(), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + k + e(2105) : s += e(1264) + k + e(2530) : s += e(2131) + k + e(2006), s += "} ", l && (s += e(2293)), s; - }), Ct; -} var Rt, $r; -function Fc() { +function I2() { return $r || ($r = 1, Rt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2551)], c = x.schema[t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(2037) + n, h = x[e(2980)].copy(x), p = ""; - h[e(1332)]++; - var v = e(1694) + h[e(1332)], k = "key" + n, P = "idx" + n, N = h.dataLevel = x[e(2551)] + 1, T = e(571) + N, C = "dataProperties" + n, I = Object[e(548)](c || {})[e(2951)](ue), R = x[e(1346)][e(2364)] || {}, O = Object[e(548)](R).filter(ue), D = x[e(1346)][e(1865)], M = I[e(2910)] || O[e(2910)], F = D === !1, q = typeof D == e(2517) && Object[e(548)](D).length, H = x[e(2977)][e(2330)], L = F || q || H, z = x[e(2977)][e(2187)], G = x[e(1620)], se = x.schema[e(2914)]; - if (se && !(x[e(2977)][e(2073)] && se[e(2073)]) && se[e(2910)] < x.opts[e(1968)]) var re = x.util[e(2457)](se); - function ue(Mx) { - return Mx !== "__proto__"; - } - if (s += e(2718) + b + " = errors;var " + v + e(1311), z && (s += " var " + C + e(2346)), L) { - if (z ? s += " " + C + " = " + C + e(485) + f + e(2256) + P + "=0; " + P + "<" + C + ".length; " + P + e(1315) + k + e(1990) + C + "[" + P + e(3037) : s += " for (var " + k + e(615) + f + e(1109), M) { - if (s += " var isAdditional" + n + e(2447), I[e(2910)]) - if (I.length > 8) s += e(1479) + d + e(2048) + k + ") "; - else { - var fe = I; - if (fe) - for (var le, we = -1, Ce = fe[e(2910)] - 1; we < Ce; ) - le = fe[we += 1], s += e(1073) + k + e(2728) + x[e(2980)].toQuotedString(le) + " "; - } - if (O[e(2910)]) { - var Me = O; - if (Me) - for (var Re, Je = -1, _ = Me[e(2910)] - 1; Je < _; ) - Re = Me[Je += 1], s += " || " + x[e(1624)](Re) + e(1880) + k + ") "; - } - s += " ); if (isAdditional" + n + e(1109); - } - if (H == e(2264)) s += e(1518) + f + "[" + k + e(3037); - else { - var A = x[e(2731)], j = e(375) + k + e(3021); - if (x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2980)][e(2607)](x[e(2731)], k, x[e(2977)].jsonPointers)), F) - if (H) s += e(1518) + f + "[" + k + e(3037); - else { - s += " " + v + e(3055); - var J = u; - u = x[e(376)] + e(2418); - var Q = Q || []; - Q.push(s), s = "", x[e(1596)] !== !1 ? (s += " { keyword: '" + e(1865) + e(733) + x[e(2731)] + " , schemaPath: " + x[e(2980)][e(1766)](u) + e(467) + j + e(2675), x[e(2977)][e(2953)] !== !1 && (s += e(1266), x.opts[e(2609)] ? s += e(896) : s += "should NOT have additional properties", s += "' "), x[e(2977)][e(2168)] && (s += e(912) + x.schemaPath + e(1275) + f + " "), s += " } ") : s += e(1577); - var V = s; - s = Q.pop(), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + V + "]); " : s += e(1264) + V + e(2530) : s += e(2131) + V + e(2006), u = J, l && (s += e(2076)); - } - else if (q) - if (H == e(1183)) { - s += e(2459) + b + e(2043); - var Y = x[e(865)]; - x.compositeRule = h[e(865)] = !0, h[e(1346)] = D, h[e(2269)] = x.schemaPath + e(910), h[e(376)] = x[e(376)] + "/additionalProperties", h[e(2731)] = x[e(2977)][e(2609)] ? x[e(2731)] : x[e(2980)][e(2607)](x.errorPath, k, x[e(2977)].jsonPointers); - var ce = f + "[" + k + "]"; - h[e(1671)][N] = k; - var ie = x[e(2033)](h); - h[e(1620)] = G, x.util[e(2199)](ie, T) < 2 ? s += " " + x[e(2980)][e(1772)](ie, T, ce) + " " : s += e(2459) + T + e(1990) + ce + "; " + ie + " ", s += e(1478) + v + e(1678) + b + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + f + "[" + k + "]; } ", x[e(865)] = h.compositeRule = Y; - } else { - h[e(1346)] = D, h.schemaPath = x[e(2269)] + e(910), h[e(376)] = x[e(376)] + e(2418), h.errorPath = x[e(2977)][e(2609)] ? x[e(2731)] : x[e(2980)][e(2607)](x[e(2731)], k, x.opts[e(1397)]); - var ce = f + "[" + k + "]"; - h[e(1671)][N] = k; - var ie = x[e(2033)](h); - h[e(1620)] = G, x[e(2980)][e(2199)](ie, T) < 2 ? s += " " + x[e(2980)][e(1772)](ie, T, ce) + " " : s += e(2459) + T + " = " + ce + "; " + ie + " ", l && (s += e(1478) + v + e(2764)); - } - x.errorPath = A; - } - M && (s += " } "), s += e(2355), l && (s += e(2865) + v + e(1109), p += "}"); - } - var xe = x[e(2977)][e(373)] && !x[e(865)]; - if (I.length) { - var Le = I; - if (Le) - for (var le, Ae = -1, He = Le.length - 1; Ae < He; ) { - le = Le[Ae += 1]; - var Se = c[le]; - if (x[e(2977)][e(1033)] ? typeof Se == e(2517) && Object.keys(Se)[e(2910)] > 0 || Se === !1 : x[e(2980)][e(2565)](Se, x[e(1757)][e(2264)])) { - var Ge = x.util.getProperty(le), ce = f + Ge, n0 = xe && Se[e(2889)] !== void 0; - h.schema = Se, h[e(2269)] = d + Ge, h[e(376)] = u + "/" + x[e(2980)][e(800)](le), h.errorPath = x[e(2980)].getPath(x.errorPath, le, x.opts.jsonPointers), h.dataPathArr[N] = x.util[e(1766)](le); - var ie = x[e(2033)](h); - if (h.baseId = G, x[e(2980)][e(2199)](ie, T) < 2) { - ie = x[e(2980)][e(1772)](ie, T, ce); - var Qe = ce; - } else { - var Qe = T; - s += e(2459) + T + e(1990) + ce + "; "; - } - if (n0) s += " " + ie + " "; - else { - if (re && re[le]) { - s += e(1597) + Qe + e(2146), z && (s += " || ! Object.prototype.hasOwnProperty.call(" + f + e(1997) + x[e(2980)][e(1825)](le) + "') "), s += ") { " + v + e(3055); - var A = x[e(2731)], J = u, _e = x.util[e(1825)](le); - x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2980)].getPath(A, le, x[e(2977)].jsonPointers)), u = x[e(376)] + "/required"; - var Q = Q || []; - Q[e(816)](s), s = "", x.createErrors !== !1 ? (s += e(1962) + e(2914) + e(733) + x.errorPath + e(1938) + x.util[e(1766)](u) + e(2181) + _e + e(2675), x[e(2977)].messages !== !1 && (s += " , message: '", x[e(2977)][e(2609)] ? s += e(990) : s += e(654) + _e + "\\'", s += "' "), x.opts[e(2168)] && (s += e(1888) + d + e(2439) + x[e(2269)] + e(1275) + f + " "), s += e(1063)) : s += e(1577); - var V = s; - s = Q[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + V + e(2105) : s += e(1264) + V + e(2530) : s += e(2131) + V + e(2006), u = J, x[e(2731)] = A, s += e(2584); - } else l ? (s += e(1597) + Qe + e(2146), z && (s += e(2405) + f + e(1997) + x[e(2980)].escapeQuotes(le) + e(1411)), s += e(1109) + v + e(2440)) : (s += " if (" + Qe + " !== undefined ", z && (s += e(2816) + f + e(1997) + x[e(2980)].escapeQuotes(le) + e(1411)), s += " ) { "); - s += " " + ie + e(1063); - } - } - l && (s += e(2865) + v + e(1109), p += "}"); - } - } - if (O[e(2910)]) { - var ze = O; - if (ze) - for (var Re, Ye = -1, N0 = ze.length - 1; Ye < N0; ) { - Re = ze[Ye += 1]; - var Se = R[Re]; - if (x[e(2977)].strictKeywords ? typeof Se == e(2517) && Object[e(548)](Se).length > 0 || Se === !1 : x.util[e(2565)](Se, x.RULES.all)) { - h.schema = Se, h[e(2269)] = x[e(2269)] + e(1328) + x[e(2980)][e(1980)](Re), h[e(376)] = x[e(376)] + e(1512) + x.util.escapeFragment(Re), z ? s += " " + C + " = " + C + " || Object.keys(" + f + e(2256) + P + e(2490) + P + "<" + C + e(859) + P + "++) { var " + k + " = " + C + "[" + P + "]; " : s += e(624) + k + " in " + f + e(1109), s += e(2865) + x[e(1624)](Re) + ".test(" + k + e(2089), h[e(2731)] = x[e(2980)].getPathExpr(x[e(2731)], k, x[e(2977)].jsonPointers); - var ce = f + "[" + k + "]"; - h[e(1671)][N] = k; - var ie = x.validate(h); - h[e(1620)] = G, x[e(2980)][e(2199)](ie, T) < 2 ? s += " " + x.util[e(1772)](ie, T, ce) + " " : s += e(2459) + T + e(1990) + ce + "; " + ie + " ", l && (s += e(1478) + v + ") break; "), s += " } ", l && (s += e(443) + v + e(811)), s += e(2355), l && (s += e(2865) + v + e(1109), p += "}"); - } - } - } - return l && (s += " " + p + e(2865) + b + " == errors) {"), s; + var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = x[e(1544)].$data && c && c[e(568)], h; + g ? (s += " var schema" + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = e(1425) + n) : h = c; + var m = g ? e(2931) + h + "))" : x[e(2399)](c); + s += "if ( ", g && (s += " (" + h + e(2439) + h + e(2232)), s += " !" + m + e(2947) + d + e(1042); + var v = v || []; + v[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(526) + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + " , params: { pattern: ", g ? s += "" + h : s += "" + x[e(1975)][e(1767)](c), s += e(3186), x[e(1544)][e(1696)] !== !1 && (s += e(2244), g ? s += e(1064) + h + e(2519) : s += "" + x.util.escapeQuotes(c), s += `"' `), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + x[e(1975)][e(1767)](c), s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var k = s; + return s = v[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + k + "]); " : s += e(2213) + k + e(702) : s += e(2636) + k + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += " else { "), s; }), Rt; } -var Ft, Ur; -function Nc() { - return Ur || (Ur = 1, Ft = function(x, t, r) { +var Ct, Ur; +function E2() { + return Ur || (Ur = 1, Ct = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x.schema[t], d = x[e(2269)] + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(2037) + n, h = x.util[e(1303)](x), p = ""; - h[e(1332)]++; - var v = e(1694) + h[e(1332)]; - if (s += e(2718) + b + e(2386), x[e(2977)][e(1033)] ? typeof c == e(2517) && Object.keys(c)[e(2910)] > 0 || c === !1 : x[e(2980)][e(2565)](c, x[e(1757)].all)) { - h.schema = c, h[e(2269)] = d, h[e(376)] = u; - var k = e(1741) + n, P = e(1186) + n, N = "i" + n, T = e(375) + k + e(3021), C = h[e(2551)] = x[e(2551)] + 1, I = "data" + C, R = e(2488) + n, O = x[e(2977)][e(2187)], D = x.baseId; - O && (s += e(2459) + R + e(2354)), O ? s += " " + R + " = " + R + " || Object.keys(" + f + e(2256) + P + e(2490) + P + "<" + R + e(859) + P + e(1315) + k + e(1990) + R + "[" + P + e(3037) : s += e(624) + k + " in " + f + ") { ", s += e(2773) + n + e(2178); - var M = k, F = x[e(865)]; - x[e(865)] = h[e(865)] = !0; - var q = x.validate(h); - h[e(1620)] = D, x[e(2980)][e(2199)](q, I) < 2 ? s += " " + x.util.varReplace(q, I, M) + " " : s += " var " + I + e(1990) + M + "; " + q + " ", x[e(865)] = h[e(865)] = F, s += " if (!" + v + ") { for (var " + N + e(2204) + n + "; " + N + e(625) + N + e(427) + N + e(2296) + k + "; } var err = ", x[e(1596)] !== !1 ? (s += e(1962) + e(587) + e(733) + x[e(2731)] + " , schemaPath: " + x[e(2980)].toQuotedString(u) + " , params: { propertyName: '" + T + e(2675), x.opts[e(2953)] !== !1 && (s += e(2556) + T + e(1588)), x[e(2977)][e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577), s += e(2006), !x[e(865)] && l && (x.async ? s += e(1755) : s += e(1026)), l && (s += " break; "), s += e(2571); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = "errs__" + n, h = x[e(1975)][e(2615)](x), m = ""; + h[e(1082)]++; + var v = e(1122) + h.level, k = e(480) + n, P = "idx" + n, T = h[e(1498)] = x[e(1498)] + 1, q = e(2663) + T, R = e(2541) + n, E = Object[e(2123)](c || {})[e(2581)](fe), C = x[e(1425)][e(1688)] || {}, A = Object.keys(C).filter(fe), O = x[e(1425)][e(1872)], M = E[e(2710)] || A[e(2710)], _ = O === !1, N = typeof O == e(1304) && Object.keys(O).length, z = x[e(1544)][e(3137)], U = _ || N || z, H = x[e(1544)][e(951)], G = x.baseId, re = x[e(1425)].required; + if (re && !(x.opts[e(568)] && re[e(568)]) && re[e(2710)] < x[e(1544)].loopRequired) var se = x[e(1975)][e(709)](re); + function fe(Lx) { + return Lx !== e(1134); } - return l && (s += " " + p + e(2865) + b + e(1957)), s; + if (s += "var " + g + e(1156) + v + e(879), H && (s += " var " + R + e(2809)), U) { + if (H ? s += " " + R + " = " + R + e(2865) + d + e(1427) + P + e(599) + P + "<" + R + e(2838) + P + "++) { var " + k + e(2486) + R + "[" + P + e(3243) : s += e(2682) + k + e(1760) + d + e(2834), M) { + if (s += " var isAdditional" + n + e(2217), E[e(2710)]) + if (E[e(2710)] > 8) s += " || validate.schema" + u + e(3085) + k + ") "; + else { + var de = E; + if (de) + for (var le, Se = -1, _e = de[e(2710)] - 1; Se < _e; ) + le = de[Se += 1], s += " || " + k + e(574) + x.util[e(1767)](le) + " "; + } + if (A[e(2710)]) { + var Me = A; + if (Me) + for (var Fe, Je = -1, D = Me[e(2710)] - 1; Je < D; ) + Fe = Me[Je += 1], s += e(1887) + x[e(2399)](Fe) + e(2947) + k + ") "; + } + s += e(687) + n + ") { "; + } + if (z == e(1096)) s += " delete " + d + "[" + k + e(3243); + else { + var F = x[e(1935)], j = e(1064) + k + e(2519); + if (x[e(1544)][e(3124)] && (x[e(1935)] = x.util.getPathExpr(x[e(1935)], k, x.opts[e(2761)])), _) + if (z) s += e(2536) + d + "[" + k + e(3243); + else { + s += " " + v + " = false; "; + var J = f; + f = x[e(569)] + e(1527); + var X = X || []; + X[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1872) + e(2387) + x.errorPath + e(2278) + x.util.toQuotedString(f) + e(1882) + j + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)]._errorDataPathProperty ? s += e(768) : s += e(2277), s += "' "), x[e(1544)][e(2491)] && (s += " , schema: false , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} "; + var V = s; + s = X[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + V + e(2300) : s += e(2213) + V + "]; return false; " : s += e(2636) + V + e(2653), f = J, l && (s += e(3239)); + } + else if (N) + if (z == "failing") { + s += e(2675) + g + e(493); + var Y = x[e(2612)]; + x[e(2612)] = h.compositeRule = !0, h[e(1425)] = O, h[e(1262)] = x[e(1262)] + e(2466), h[e(569)] = x[e(569)] + e(1527), h[e(1935)] = x[e(1544)][e(3124)] ? x[e(1935)] : x[e(1975)][e(2126)](x[e(1935)], k, x[e(1544)].jsonPointers); + var ce = d + "[" + k + "]"; + h[e(662)][T] = k; + var oe = x.validate(h); + h[e(805)] = G, x[e(1975)][e(1109)](oe, q) < 2 ? s += " " + x.util[e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", s += e(1102) + v + e(2578) + g + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + d + "[" + k + e(2209), x.compositeRule = h[e(2612)] = Y; + } else { + h[e(1425)] = O, h.schemaPath = x[e(1262)] + e(2466), h[e(569)] = x.errSchemaPath + e(1527), h[e(1935)] = x.opts[e(3124)] ? x[e(1935)] : x[e(1975)][e(2126)](x[e(1935)], k, x[e(1544)][e(2761)]); + var ce = d + "[" + k + "]"; + h[e(662)][T] = k; + var oe = x[e(3181)](h); + h[e(805)] = G, x[e(1975)].varOccurences(oe, q) < 2 ? s += " " + x[e(1975)][e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", l && (s += e(1102) + v + e(1418)); + } + x[e(1935)] = F; + } + M && (s += e(1411)), s += e(2204), l && (s += " if (" + v + ") { ", m += "}"); + } + var te = x[e(1544)][e(2088)] && !x[e(2612)]; + if (E[e(2710)]) { + var Le = E; + if (Le) + for (var le, Ae = -1, ze = Le[e(2710)] - 1; Ae < ze; ) { + le = Le[Ae += 1]; + var ke = c[le]; + if (x[e(1544)][e(868)] ? typeof ke == e(1304) && Object.keys(ke).length > 0 || ke === !1 : x[e(1975)].schemaHasRules(ke, x[e(2996)].all)) { + var Ge = x[e(1975)].getProperty(le), ce = d + Ge, n0 = te && ke[e(2485)] !== void 0; + h.schema = ke, h.schemaPath = u + Ge, h[e(569)] = f + "/" + x.util.escapeFragment(le), h[e(1935)] = x[e(1975)][e(3077)](x[e(1935)], le, x[e(1544)][e(2761)]), h.dataPathArr[T] = x.util[e(1767)](le); + var oe = x[e(3181)](h); + if (h[e(805)] = G, x.util.varOccurences(oe, q) < 2) { + oe = x[e(1975)][e(650)](oe, q, ce); + var Qe = ce; + } else { + var Qe = q; + s += e(2675) + q + e(2486) + ce + "; "; + } + if (n0) s += " " + oe + " "; + else { + if (se && se[le]) { + s += e(836) + Qe + " === undefined ", H && (s += e(1578) + d + e(1167) + x[e(1975)].escapeQuotes(le) + e(2901)), s += ") { " + v + e(1500); + var F = x[e(1935)], J = f, Oe = x[e(1975)].escapeQuotes(le); + x[e(1544)][e(3124)] && (x[e(1935)] = x[e(1975)][e(3077)](F, le, x[e(1544)][e(2761)])), f = x.errSchemaPath + e(1359); + var X = X || []; + X[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)].toQuotedString(f) + e(2549) + Oe + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += "is a required property" : s += "should have required property \\'" + Oe + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += " } ") : s += e(3261); + var V = s; + s = X[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += " throw new ValidationError([" + V + "]); " : s += e(2213) + V + "]; return false; " : s += " var err = " + V + e(2653), f = J, x[e(1935)] = F, s += e(761); + } else l ? (s += e(836) + Qe + e(562), H && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x.util[e(1265)](le) + e(2901)), s += ") { " + v + " = true; } else { ") : (s += e(1754) + Qe + e(1949), H && (s += " && Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](le) + e(2901)), s += e(774)); + s += " " + oe + e(1411); + } + } + l && (s += " if (" + v + e(2834), m += "}"); + } + } + if (A.length) { + var He = A; + if (He) + for (var Fe, Ye = -1, M0 = He[e(2710)] - 1; Ye < M0; ) { + Fe = He[Ye += 1]; + var ke = C[Fe]; + if (x[e(1544)][e(868)] ? typeof ke == e(1304) && Object.keys(ke)[e(2710)] > 0 || ke === !1 : x[e(1975)][e(1733)](ke, x[e(2996)][e(1096)])) { + h[e(1425)] = ke, h[e(1262)] = x[e(1262)] + ".patternProperties" + x[e(1975)][e(3039)](Fe), h[e(569)] = x.errSchemaPath + e(2107) + x[e(1975)][e(1675)](Fe), H ? s += " " + R + e(2486) + R + e(2865) + d + e(1427) + P + "=0; " + P + "<" + R + e(2838) + P + "++) { var " + k + e(2486) + R + "[" + P + "]; " : s += e(2682) + k + e(1760) + d + e(2834), s += " if (" + x[e(2399)](Fe) + e(2947) + k + e(2154), h[e(1935)] = x.util.getPathExpr(x[e(1935)], k, x[e(1544)][e(2761)]); + var ce = d + "[" + k + "]"; + h[e(662)][T] = k; + var oe = x[e(3181)](h); + h[e(805)] = G, x[e(1975)].varOccurences(oe, q) < 2 ? s += " " + x[e(1975)][e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", l && (s += e(1102) + v + ") break; "), s += e(1411), l && (s += e(2695) + v + e(2411)), s += e(2204), l && (s += e(1754) + v + e(2834), m += "}"); + } + } + } + return l && (s += " " + m + e(1754) + g + e(2448)), s; + }), Ct; +} +var _t, zr; +function R2() { + return zr || (zr = 1, _t = function(x, t, r) { + const e = K; + var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = "errs__" + n, h = x[e(1975)].copy(x), m = ""; + h[e(1082)]++; + var v = e(1122) + h.level; + if (s += e(612) + g + " = errors;", x[e(1544)].strictKeywords ? typeof c == e(1304) && Object[e(2123)](c).length > 0 || c === !1 : x[e(1975)][e(1733)](c, x.RULES[e(1096)])) { + h[e(1425)] = c, h.schemaPath = u, h.errSchemaPath = f; + var k = e(480) + n, P = e(1035) + n, T = "i" + n, q = e(1064) + k + e(2519), R = h[e(1498)] = x[e(1498)] + 1, E = "data" + R, C = e(2541) + n, A = x[e(1544)][e(951)], O = x[e(805)]; + A && (s += e(2675) + C + e(1415)), A ? s += " " + C + e(2486) + C + e(2865) + d + e(1427) + P + e(599) + P + "<" + C + e(2838) + P + e(1921) + k + " = " + C + "[" + P + e(3243) : s += e(2682) + k + e(1760) + d + e(2834), s += e(1103) + n + " = errors; "; + var M = k, _ = x[e(2612)]; + x[e(2612)] = h[e(2612)] = !0; + var N = x.validate(h); + h.baseId = O, x.util[e(1109)](N, E) < 2 ? s += " " + x.util[e(650)](N, E, M) + " " : s += " var " + E + " = " + M + "; " + N + " ", x[e(2612)] = h[e(2612)] = _, s += " if (!" + v + e(1163) + T + e(2651) + n + "; " + T + e(1989) + T + e(2599) + T + "].propertyName = " + k + e(1717), x[e(559)] !== !1 ? (s += e(1108) + "propertyNames" + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + " , params: { propertyName: '" + q + e(871), x.opts[e(1696)] !== !1 && (s += e(1086) + q + "\\' is invalid' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += " } ") : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), l && (s += e(3239)), s += e(1250); + } + return l && (s += " " + m + " if (" + g + e(2448)), s; + }), _t; +} +var Ft, Hr; +function C2() { + return Hr || (Hr = 1, Ft = function(x, t, r) { + const e = K; + var s = " ", n = x[e(1082)], i = x.dataLevel, c = x.schema[t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x.opts.allErrors, d = "data" + (i || ""), g = e(1122) + n, h = x[e(1544)][e(568)] && c && c[e(568)]; + h && (s += e(1311) + n + " = " + x[e(1975)].getData(c[e(568)], i, x[e(662)]) + "; "); + var m = e(1425) + n; + if (!h) + if (c[e(2710)] < x[e(1544)][e(3094)] && x[e(1425)][e(3005)] && Object[e(2123)](x[e(1425)][e(3005)]).length) { + var R = [], v = c; + if (v) + for (var k, P = -1, T = v[e(2710)] - 1; P < T; ) { + k = v[P += 1]; + var q = x[e(1425)][e(3005)][k]; + !(q && (x.opts.strictKeywords ? typeof q == e(1304) && Object[e(2123)](q)[e(2710)] > 0 || q === !1 : x[e(1975)][e(1733)](q, x[e(2996)][e(1096)]))) && (R[R[e(2710)]] = k); + } + } else var R = c; + if (h || R[e(2710)]) { + var E = x[e(1935)], C = h || R.length >= x.opts[e(3094)], A = x.opts[e(951)]; + if (l) + if (s += e(1488) + n + "; ", C) { + !h && (s += e(2675) + m + e(1699) + u + "; "); + var O = "i" + n, M = "schema" + n + "[" + O + "]", _ = e(1064) + M + e(2519); + x[e(1544)][e(3124)] && (x[e(1935)] = x[e(1975)][e(2126)](E, M, x[e(1544)][e(2761)])), s += e(2675) + g + e(2411), h && (s += e(3121) + n + e(1144) + g + e(3244) + n + e(1345) + g + e(991)), s += e(2682) + O + e(2174) + O + " < " + m + ".length; " + O + e(609) + g + e(2486) + d + "[" + m + "[" + O + e(1420), A && (s += e(2647) + d + ", " + m + "[" + O + e(2894)), s += e(1221) + g + e(1360), h && (s += e(2882)), s += e(2919) + g + e(1793); + var N = N || []; + N[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2549) + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x.schemaPath + e(1844) + d + " "), s += " } ") : s += " {} "; + var z = s; + s = N[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + z + e(2300) : s += e(2213) + z + e(702) : s += e(2636) + z + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } else { "; + } else { + s += " if ( "; + var U = R; + if (U) + for (var H, O = -1, G = U.length - 1; O < G; ) { + H = U[O += 1], O && (s += e(1887)); + var re = x.util[e(3039)](H), se = d + re; + s += e(1330) + se + e(562), A && (s += e(1578) + d + e(1167) + x[e(1975)][e(1265)](H) + "') "), s += e(3033) + n + e(2486) + x[e(1975)].toQuotedString(x.opts.jsonPointers ? H : re) + e(2130); + } + s += e(929); + var M = "missing" + n, _ = e(1064) + M + e(2519); + x.opts[e(3124)] && (x.errorPath = x[e(1544)].jsonPointers ? x[e(1975)][e(2126)](E, M, !0) : E + " + " + M); + var N = N || []; + N[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x.errorPath + " , schemaPath: " + x[e(1975)][e(1767)](f) + " , params: { missingProperty: '" + _ + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var z = s; + s = N[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + z + e(2300) : s += " validate.errors = [" + z + e(702) : s += e(2636) + z + e(2653), s += e(761); + } + else if (C) { + !h && (s += " var " + m + " = validate.schema" + u + "; "); + var O = "i" + n, M = e(1425) + n + "[" + O + "]", _ = "' + " + M + e(2519); + x[e(1544)]._errorDataPathProperty && (x[e(1935)] = x[e(1975)][e(2126)](E, M, x[e(1544)][e(2761)])), h && (s += e(1754) + m + " && !Array.isArray(" + m + e(1853), x.createErrors !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(2549) + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x.opts[e(3124)] ? s += "is a required property" : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261), s += e(1146) + m + e(2515)), s += " for (var " + O + " = 0; " + O + " < " + m + e(2838) + O + e(613) + d + "[" + m + "[" + O + e(825), A && (s += e(1578) + d + ", " + m + "[" + O + e(2894)), s += e(1939), x.createErrors !== !1 ? (s += e(1108) + e(2438) + e(2387) + x.errorPath + e(2278) + x.util[e(1767)](f) + e(2549) + _ + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x.opts[e(3124)] ? s += "is a required property" : s += "should have required property \\'" + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += " , schema: validate.schema" + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += " } ") : s += e(3261), s += e(1009), h && (s += e(2882)); + } else { + var fe = R; + if (fe) + for (var H, de = -1, le = fe[e(2710)] - 1; de < le; ) { + H = fe[de += 1]; + var re = x[e(1975)][e(3039)](H), _ = x.util.escapeQuotes(H), se = d + re; + x[e(1544)][e(3124)] && (x.errorPath = x[e(1975)].getPath(E, H, x.opts[e(2761)])), s += " if ( " + se + e(562), A && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](H) + e(2901)), s += e(1939), x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + " , params: { missingProperty: '" + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += "should have required property \\'" + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} ", s += e(2784); + } + } + x[e(1935)] = E; + } else l && (s += e(1107)); + return s; }), Ft; } -var Nt, Hr; -function qc() { - return Hr || (Hr = 1, Nt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1332)], i = x[e(2551)], c = x[e(1346)][t], d = x[e(2269)] + x.util.getProperty(t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f = e(571) + (i || ""), b = e(1694) + n, h = x[e(2977)][e(2073)] && c && c[e(2073)]; - h && (s += " var schema" + n + " = " + x[e(2980)].getData(c[e(2073)], i, x.dataPathArr) + "; "); - var p = e(1346) + n; - if (!h) - if (c[e(2910)] < x[e(2977)].loopRequired && x[e(1346)][e(1684)] && Object[e(548)](x[e(1346)][e(1684)])[e(2910)]) { - var C = [], v = c; - if (v) - for (var k, P = -1, N = v.length - 1; P < N; ) { - k = v[P += 1]; - var T = x[e(1346)][e(1684)][k]; - !(T && (x.opts[e(1033)] ? typeof T == "object" && Object[e(548)](T).length > 0 || T === !1 : x[e(2980)][e(2565)](T, x[e(1757)].all))) && (C[C[e(2910)]] = k); - } - } else var C = c; - if (h || C.length) { - var I = x[e(2731)], R = h || C.length >= x[e(2977)].loopRequired, O = x[e(2977)][e(2187)]; - if (l) - if (s += e(814) + n + "; ", R) { - !h && (s += e(2459) + p + e(2997) + d + "; "); - var D = "i" + n, M = e(1346) + n + "[" + D + "]", F = e(375) + M + e(3021); - x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2980)].getPathExpr(I, M, x.opts.jsonPointers)), s += " var " + b + e(811), h && (s += e(1089) + n + " === undefined) " + b + e(1612) + n + e(829) + b + e(790)), s += " for (var " + D + e(1243) + D + e(813) + p + e(859) + D + "++) { " + b + e(1990) + f + "[" + p + "[" + D + "]] !== undefined ", O && (s += e(2816) + f + ", " + p + "[" + D + e(1854)), s += e(1623) + b + e(2274), h && (s += " } "), s += " if (!" + b + e(1163); - var q = q || []; - q[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + "required" + e(733) + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(2181) + F + e(2675), x[e(2977)][e(2953)] !== !1 && (s += e(1266), x.opts[e(2609)] ? s += "is a required property" : s += "should have required property \\'" + F + "\\'", s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += " {} "; - var H = s; - s = q[e(641)](), !x.compositeRule && l ? x[e(372)] ? s += e(2782) + H + e(2105) : s += e(1264) + H + e(2530) : s += e(2131) + H + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } else { "; - } else { - s += e(1597); - var L = C; - if (L) - for (var z, D = -1, G = L[e(2910)] - 1; D < G; ) { - z = L[D += 1], D && (s += e(1073)); - var se = x[e(2980)][e(1980)](z), re = f + se; - s += e(711) + re + " === undefined ", O && (s += e(2405) + f + e(1997) + x[e(2980)][e(1825)](z) + e(1411)), s += e(3012) + n + e(1990) + x[e(2980)][e(1766)](x.opts[e(1397)] ? z : se) + e(640); - } - s += ") { "; - var M = "missing" + n, F = "' + " + M + e(3021); - x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2977)][e(1397)] ? x.util[e(2607)](I, M, !0) : I + e(509) + M); - var q = q || []; - q[e(816)](s), s = "", x[e(1596)] !== !1 ? (s += e(1962) + e(2914) + e(733) + x.errorPath + e(1938) + x[e(2980)][e(1766)](u) + " , params: { missingProperty: '" + F + e(2675), x.opts[e(2953)] !== !1 && (s += " , message: '", x[e(2977)]._errorDataPathProperty ? s += e(990) : s += e(654) + F + "\\'", s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x[e(2269)] + " , data: " + f + " "), s += " } ") : s += e(1577); - var H = s; - s = q[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + H + e(2105) : s += " validate.errors = [" + H + "]; return false; " : s += e(2131) + H + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } else { "; - } - else if (R) { - !h && (s += e(2459) + p + e(2997) + d + "; "); - var D = "i" + n, M = e(1346) + n + "[" + D + "]", F = e(375) + M + e(3021); - x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2980)][e(2607)](I, M, x[e(2977)].jsonPointers)), h && (s += e(2865) + p + " && !Array.isArray(" + p + e(2677), x[e(1596)] !== !1 ? (s += " { keyword: '" + e(2914) + e(733) + x.errorPath + e(1938) + x[e(2980)][e(1766)](u) + e(2181) + F + "' } ", x[e(2977)][e(2953)] !== !1 && (s += e(1266), x[e(2977)]._errorDataPathProperty ? s += e(990) : s += e(654) + F + "\\'", s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x.schemaPath + e(1275) + f + " "), s += e(1063)) : s += e(1577), s += e(1214) + p + e(1802)), s += e(624) + D + e(1243) + D + e(813) + p + ".length; " + D + e(371) + f + "[" + p + "[" + D + e(1278), O && (s += e(2405) + f + ", " + p + "[" + D + e(1854)), s += ") { var err = ", x[e(1596)] !== !1 ? (s += e(1962) + e(2914) + e(733) + x[e(2731)] + e(1938) + x[e(2980)].toQuotedString(u) + " , params: { missingProperty: '" + F + e(2675), x[e(2977)][e(2953)] !== !1 && (s += e(1266), x.opts[e(2609)] ? s += "is a required property" : s += e(654) + F + "\\'", s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + d + e(2439) + x.schemaPath + e(1275) + f + " "), s += " } ") : s += e(1577), s += e(702), h && (s += e(471)); - } else { - var ue = C; - if (ue) - for (var z, fe = -1, le = ue.length - 1; fe < le; ) { - z = ue[fe += 1]; - var se = x[e(2980)][e(1980)](z), F = x[e(2980)][e(1825)](z), re = f + se; - x[e(2977)][e(2609)] && (x[e(2731)] = x[e(2980)][e(1737)](I, z, x[e(2977)][e(1397)])), s += " if ( " + re + " === undefined ", O && (s += " || ! Object.prototype.hasOwnProperty.call(" + f + e(1997) + x.util[e(1825)](z) + e(1411)), s += ") { var err = ", x[e(1596)] !== !1 ? (s += e(1962) + e(2914) + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(2181) + F + e(2675), x[e(2977)][e(2953)] !== !1 && (s += e(1266), x[e(2977)][e(2609)] ? s += e(990) : s += e(654) + F + "\\'", s += "' "), x[e(2977)][e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x[e(2269)] + e(1275) + f + " "), s += " } ") : s += e(1577), s += e(1302); - } - } - x[e(2731)] = I; - } else l && (s += e(2513)); - return s; - }), Nt; -} -var qt, zr; -function Tc() { - return zr || (zr = 1, qt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1332)], i = x.dataLevel, c = x[e(1346)][t], d = x[e(2269)] + x[e(2980)].getProperty(t), u = x.errSchemaPath + "/" + t, l = !x[e(2977)][e(2722)], f = "data" + (i || ""), b = e(1694) + n, h = x[e(2977)][e(2073)] && c && c.$data, p; - if (h ? (s += e(494) + n + e(1990) + x[e(2980)][e(568)](c[e(2073)], i, x[e(1671)]) + "; ", p = e(1346) + n) : p = c, (c || h) && x[e(2977)].uniqueItems !== !1) { - h && (s += " var " + b + "; if (" + p + e(2237) + p + e(2403) + b + e(1538) + p + e(3026) + b + " = false; else { "), s += e(3046) + f + e(1395) + b + e(967); - var v = x[e(1346)][e(1141)] && x[e(1346)].items.type, k = Array[e(2573)](v); - if (!v || v == "object" || v == e(1517) || k && (v[e(1316)](e(2517)) >= 0 || v[e(1316)](e(1517)) >= 0)) s += e(1900) + f + e(2475) + f + e(1034) + b + e(2766); - else { - s += " var itemIndices = {}, item; for (;i--;) { var item = " + f + e(1736); - var P = "checkDataType" + (k ? "s" : ""); - s += e(2865) + x[e(2980)][P](v, e(2886), x[e(2977)][e(1111)], !0) + e(914), k && (s += e(2360)), s += e(2039) + b + e(1941); - } - s += " } ", h && (s += e(471)), s += e(1478) + b + e(1163); - var N = N || []; - N[e(816)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: 'uniqueItems" + e(733) + x[e(2731)] + e(1938) + x.util[e(1766)](u) + e(1575), x[e(2977)][e(2953)] !== !1 && (s += " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "), x[e(2977)][e(2168)] && (s += " , schema: ", h ? s += e(777) + d : s += "" + c, s += " , parentSchema: validate.schema" + x[e(2269)] + " , data: " + f + " "), s += e(1063)) : s += e(1577); - var T = s; - s = N[e(641)](), !x[e(865)] && l ? x[e(372)] ? s += e(2782) + T + e(2105) : s += e(1264) + T + e(2530) : s += e(2131) + T + e(2006), s += e(1063), l && (s += " else { "); - } else l && (s += e(1954)); - return s; - }), qt; -} var Tt, Vr; -function Ac() { - return Vr || (Vr = 1, Tt = { $ref: hc(), allOf: pc(), anyOf: mc(), $comment: bc(), const: gc(), contains: yc(), dependencies: vc(), enum: wc(), format: Sc(), if: kc(), items: Pc(), maximum: Fr(), minimum: Fr(), maxItems: qr(), minItems: qr(), maxLength: Ar(), minLength: Ar(), maxProperties: Or(), minProperties: Or(), multipleOf: Ic(), not: Ec(), oneOf: Cc(), pattern: Rc(), properties: Fc(), propertyNames: Nc(), required: qc(), uniqueItems: Tc(), validate: kn() }), Tt; +function _2() { + return Vr || (Vr = 1, Tt = function(x, t, r) { + const e = K; + var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = x.opts[e(568)] && c && c[e(568)], m; + if (h ? (s += " var schema" + n + e(2486) + x[e(1975)].getData(c.$data, i, x[e(662)]) + "; ", m = "schema" + n) : m = c, (c || h) && x[e(1544)][e(1684)] !== !1) { + h && (s += " var " + g + "; if (" + m + " === false || " + m + " === undefined) " + g + e(1564) + m + e(2093) + g + " = false; else { "), s += e(1546) + d + e(3248) + g + e(1483); + var v = x.schema[e(2286)] && x.schema[e(2286)][e(2076)], k = Array[e(3255)](v); + if (!v || v == e(1304) || v == e(529) || k && (v.indexOf(e(1304)) >= 0 || v[e(2436)](e(529)) >= 0)) s += e(834) + d + e(3127) + d + e(2702) + g + " = false; break outer; } } } "; + else { + s += e(850) + d + e(2533); + var P = e(1947) + (k ? "s" : ""); + s += e(1754) + x[e(1975)][P](v, e(2624), x[e(1544)][e(1565)], !0) + e(2248), k && (s += e(2067)), s += e(2593) + g + e(2600); + } + s += e(1411), h && (s += " } "), s += e(1102) + g + e(1793); + var T = T || []; + T.push(s), s = "", x.createErrors !== !1 ? (s += e(1108) + e(1684) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(1138), x[e(1544)][e(1696)] !== !1 && (s += e(883)), x[e(1544)].verbose && (s += e(2827), h ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + var q = s; + s = T[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + q + e(2300) : s += e(2213) + q + e(702) : s += " var err = " + q + e(2653), s += " } ", l && (s += " else { "); + } else l && (s += " if (true) { "); + return s; + }), Tt; } -var At, Br; -function _c() { - const o = a; - if (Br) return At; - Br = 1; - var x = Ac(), t = Z0()[o(2457)]; - return At = function() { - const e = o; - var s = [{ type: "number", rules: [{ maximum: ["exclusiveMaximum"] }, { minimum: [e(2987)] }, "multipleOf", e(1918)] }, { type: e(1443), rules: [e(496), e(2694), "pattern", "format"] }, { type: e(1517), rules: [e(2157), e(2805), e(1141), "contains", e(561)] }, { type: e(2517), rules: [e(1440), "minProperties", e(2914), e(2012), "propertyNames", { properties: [e(1865), e(2364)] }] }, { rules: [e(1753), e(1852), e(1662), "not", "anyOf", e(1195), e(1739), "if"] }], n = ["type", e(1081)], i = [e(2320), e(2922), "id", e(2073), e(1070), e(2877), e(852), e(2889), e(902), e(2306), e(2926), e(2389), e(1955), "contentEncoding", e(1547), e(857), e(1965)], c = [e(1730), e(2421), e(1443), e(1517), e(2517), "boolean", e(2973)]; - return s[e(2264)] = t(n), s.types = t(c), s[e(1548)](function(d) { - const u = e; - d[u(2870)] = d[u(2870)][u(1429)](function(l) { - const f = u; - var b; - if (typeof l == f(2517)) { - var h = Object[f(548)](l)[0]; - b = l[h], l = h, b.forEach(function(v) { - n[f(816)](v), s.all[v] = !0; +var Nt, Br; +function F2() { + return Br || (Br = 1, Nt = { $ref: f2(), allOf: l2(), anyOf: d2(), $comment: h2(), const: p2(), contains: m2(), dependencies: b2(), enum: g2(), format: y2(), if: v2(), items: w2(), maximum: Fr(), minimum: Fr(), maxItems: Nr(), minItems: Nr(), maxLength: Ar(), minLength: Ar(), maxProperties: Dr(), minProperties: Dr(), multipleOf: S2(), not: k2(), oneOf: P2(), pattern: I2(), properties: E2(), propertyNames: R2(), required: C2(), uniqueItems: _2(), validate: wn() }), Nt; +} +var qt, Wr; +function T2() { + if (Wr) return qt; + Wr = 1; + var o = F2(), x = W0().toHash; + return qt = function() { + const r = K; + var e = [{ type: r(2665), rules: [{ maximum: [r(3282)] }, { minimum: [r(578)] }, r(2798), "format"] }, { type: r(1361), rules: ["maxLength", r(1312), r(526), r(802)] }, { type: r(529), rules: [r(1335), r(1919), r(2286), r(688), "uniqueItems"] }, { type: "object", rules: [r(1651), r(2371), r(2438), r(1110), r(2238), { properties: [r(1872), r(1688)] }] }, { rules: [r(885), r(1603), r(2218), r(2535), r(2122), r(2547), r(704), "if"] }], s = [r(2076), "$comment"], n = ["$schema", r(3154), "id", r(568), "$async", r(2141), r(541), r(2485), r(2451), r(3078), r(1370), r(2604), r(3264), "contentEncoding", r(2410), r(2517), "else"], i = ["number", r(766), r(1361), r(529), r(1304), r(3106), "null"]; + return e[r(1096)] = x(s), e[r(2795)] = x(i), e[r(2617)](function(c) { + const u = r; + c[u(2293)] = c[u(2293)].map(function(f) { + const l = u; + var d; + if (typeof f == l(1304)) { + var g = Object[l(2123)](f)[0]; + d = f[g], f = g, d[l(2617)](function(m) { + const v = l; + s[v(3062)](m), e[v(1096)][m] = !0; }); } - n[f(816)](l); - var p = s[f(2264)][l] = { keyword: l, code: x[l], implements: b }; - return p; - }), s[u(2264)][u(1081)] = { keyword: "$comment", code: x.$comment }, d[u(506)] && (s[u(760)][d.type] = d); - }), s[e(931)] = t(n[e(653)](i)), s[e(899)] = {}, s; - }, At; + s[l(3062)](f); + var h = e[l(1096)][f] = { keyword: f, code: o[f], implements: d }; + return h; + }), e[u(1096)][u(2786)] = { keyword: u(2786), code: o[u(2786)] }, c[u(2076)] && (e[u(2795)][c[u(2076)]] = c); + }), e[r(1997)] = x(s[r(2700)](n)), e[r(1618)] = {}, e; + }, qt; } -var _t, Zr; -function Oc() { +var At, Zr; +function N2() { const o = a; - if (Zr) return _t; + if (Zr) return At; Zr = 1; - var x = [o(2570), o(2793), o(2277), o(2242), o(2987), o(496), o(2694), "pattern", o(1547), o(2157), o(2805), "uniqueItems", o(1440), o(2067), "required", "additionalProperties", o(1662), o(1918), "const"]; - return _t = function(t, r) { + var x = [o(2798), "maximum", o(3282), o(2226), o(578), o(649), o(1312), o(526), "additionalItems", o(1335), "minItems", o(1684), o(1651), "minProperties", "required", o(1872), o(2218), o(802), o(1603)]; + return At = function(t, r) { const e = o; - for (var s = 0; s < r[e(2910)]; s++) { - t = JSON.parse(JSON.stringify(t)); - var n = r[s][e(1389)]("/"), i = t, c; - for (c = 1; c < n[e(2910)]; c++) i = i[n[c]]; - for (c = 0; c < x[e(2910)]; c++) { - var d = x[c], u = i[d]; - u && (i[d] = { anyOf: [u, { $ref: e(1191) }] }); + for (var s = 0; s < r[e(2710)]; s++) { + t = JSON[e(2774)](JSON[e(1031)](t)); + var n = r[s][e(3263)]("/"), i = t, c; + for (c = 1; c < n[e(2710)]; c++) i = i[n[c]]; + for (c = 0; c < x.length; c++) { + var u = x[c], f = i[u]; + f && (i[u] = { anyOf: [f, { $ref: e(1253) }] }); } } return t; - }, _t; + }, At; } -var Ot, Wr; -function Dc() { +var Ot, Kr; +function q2() { const o = a; - if (Wr) return Ot; - Wr = 1; - var x = ha()[o(2062)]; + if (Kr) return Ot; + Kr = 1; + var x = ha()[o(2003)]; Ot = t; function t(r, e, s) { const n = o; var i = this; - if (typeof this[n(1797)].loadSchema != "function") throw new Error(n(1679)); - typeof e == n(2855) && (s = e, e = void 0); - var c = d(r)[n(857)](function() { + if (typeof this[n(1068)][n(2330)] != n(1936)) throw new Error(n(809)); + typeof e == n(1936) && (s = e, e = void 0); + var c = u(r)[n(2517)](function() { const l = n; - var f = i[l(2223)](r, void 0, e); - return f[l(2033)] || u(f); + var d = i[l(2669)](r, void 0, e); + return d[l(3181)] || f(d); }); - return s && c[n(857)](function(l) { + return s && c.then(function(l) { s(null, l); }, s), c; - function d(l) { - const f = n; - var b = l[f(2320)]; - return b && !i[f(612)](b) ? t.call(i, { $ref: b }, !0) : Promise[f(510)](); - } function u(l) { + const d = n; + var g = l[d(2144)]; + return g && !i[d(1535)](g) ? t[d(1522)](i, { $ref: g }, !0) : Promise[d(2457)](); + } + function f(l) { + const d = n; try { - return i._compile(l); - } catch (b) { - if (b instanceof x) return f(b); - throw b; + return i[d(1026)](l); + } catch (h) { + if (h instanceof x) return g(h); + throw h; } - function f(b) { - const h = K; - var p = b[h(622)]; - if (P(p)) throw new Error("Schema " + p + h(746) + b[h(1513)] + h(2123)); - var v = i._loadingSchemas[p]; - return !v && (v = i[h(651)][p] = i[h(1797)][h(1672)](p), v[h(857)](k, k)), v[h(857)](function(N) { - const T = h; - if (!P(p)) return d(N)[T(857)](function() { - const C = T; - P(p) || i[C(2771)](N, p, void 0, e); + function g(h) { + const m = d; + var v = h.missingSchema; + if (T(v)) throw new Error(m(2867) + v + m(2933) + h[m(2883)] + m(2868)); + var k = i._loadingSchemas[v]; + return !k && (k = i[m(2979)][v] = i._opts[m(2330)](v), k[m(2517)](P, P)), k[m(2517)](function(q) { + if (!T(v)) return u(q).then(function() { + const R = K; + T(v) || i[R(1461)](q, v, void 0, e); }); - })[h(857)](function() { - return u(l); + })[m(2517)](function() { + return f(l); }); - function k() { - const N = h; - delete i[N(651)][p]; + function P() { + const q = m; + delete i[q(2979)][v]; } - function P(N) { - const T = h; - return i._refs[N] || i[T(2166)][N]; + function T(q) { + const R = m; + return i[R(497)][q] || i[R(2265)][q]; } } } } return Ot; } -var Dt, Kr; -function jc() { - return Kr || (Kr = 1, Dt = function(x, t, r) { +var Dt, Gr; +function A2() { + return Gr || (Gr = 1, Dt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1332)], i = x.dataLevel, c = x[e(1346)][t], d = x.schemaPath + x[e(2980)][e(1980)](t), u = x[e(376)] + "/" + t, l = !x[e(2977)][e(2722)], f, b = e(571) + (i || ""), h = e(1694) + n, p = "errs__" + n, v = x[e(2977)][e(2073)] && c && c[e(2073)], k; - v ? (s += e(494) + n + e(1990) + x[e(2980)][e(568)](c.$data, i, x[e(1671)]) + "; ", k = e(1346) + n) : k = c; - var P = this, N = e(1118) + n, T = P[e(1118)], C = "", I, R, O, D, M; - if (v && T[e(2073)]) { - M = e(1963) + n; - var F = T.validateSchema; - s += " var " + N + e(1313) + t + e(2334) + M + e(1990) + N + e(2975); + var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d, g = "data" + (i || ""), h = e(1122) + n, m = e(1870) + n, v = x.opts[e(568)] && c && c.$data, k; + v ? (s += " var schema" + n + e(2486) + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; ", k = e(1425) + n) : k = c; + var P = this, T = e(1686) + n, q = P.definition, R = "", E, C, A, O, M; + if (v && q.$data) { + M = e(2325) + n; + var _ = q[e(2605)]; + s += e(2675) + T + " = RULES.custom['" + t + e(600) + M + e(2486) + T + e(2566); } else { - if (D = x.useCustomRule(P, c, x[e(1346)], x), !D) return; - k = e(777) + d, M = D[e(3068)], I = T[e(1494)], R = T[e(1738)], O = T[e(2329)]; + if (O = x[e(2908)](P, c, x[e(1425)], x), !O) return; + k = e(1063) + u, M = O[e(2427)], E = q.compile, C = q[e(3228)], A = q.macro; } - var q = M + e(2130), H = "i" + n, L = e(1339) + n, z = T[e(372)]; - if (z && !x[e(372)]) throw new Error(e(980)); - if (!(R || O) && (s += "" + q + " = null;"), s += e(2718) + p + " = errors;var " + h + ";", v && T[e(2073)] && (C += "}", s += e(2865) + k + " === undefined) { " + h + e(2440), F && (C += "}", s += " " + h + e(1990) + N + ".validateSchema(" + k + e(623) + h + e(1109))), R) T[e(1909)] ? s += " " + D[e(2033)] + " " : s += " " + h + e(1990) + D[e(2033)] + "; "; - else if (O) { - var G = x[e(2980)].copy(x), C = ""; - G[e(1332)]++; - var se = e(1694) + G[e(1332)]; - G[e(1346)] = D[e(2033)], G.schemaPath = ""; - var re = x[e(865)]; - x[e(865)] = G[e(865)] = !0; - var ue = x.validate(G)[e(1840)](/validate\.schema/g, M); - x[e(865)] = G.compositeRule = re, s += " " + ue; + var N = M + e(1554), z = "i" + n, U = e(2205) + n, H = q[e(2416)]; + if (H && !x[e(2416)]) throw new Error(e(1329)); + if (!(C || A) && (s += "" + N + e(2913)), s += "var " + m + e(1156) + h + ";", v && q[e(568)] && (R += "}", s += e(1754) + k + " === undefined) { " + h + " = true; } else { ", _ && (R += "}", s += " " + h + " = " + T + ".validateSchema(" + k + e(2857) + h + e(2834))), C) q[e(2367)] ? s += " " + O[e(3181)] + " " : s += " " + h + " = " + O[e(3181)] + "; "; + else if (A) { + var G = x[e(1975)][e(2615)](x), R = ""; + G[e(1082)]++; + var re = "valid" + G[e(1082)]; + G[e(1425)] = O.validate, G[e(1262)] = ""; + var se = x[e(2612)]; + x[e(2612)] = G[e(2612)] = !0; + var fe = x[e(3181)](G)[e(1521)](/validate\.schema/g, M); + x[e(2612)] = G.compositeRule = se, s += " " + fe; } else { - var fe = fe || []; - fe[e(816)](s), s = "", s += " " + M + e(2765), x[e(2977)][e(2196)] ? s += "this" : s += "self", I || T.schema === !1 ? s += e(1321) + b + " " : s += e(1321) + k + " , " + b + e(1041) + x[e(2269)] + " ", s += e(778), x[e(2731)] != '""' && (s += e(509) + x.errorPath); - var le = i ? "data" + (i - 1 || "") : "parentData", we = i ? x[e(1671)][i] : e(705); - s += e(1321) + le + e(1321) + we + e(1198); - var Ce = s; - s = fe.pop(), T.errors === !1 ? (s += " " + h + e(1990), z && (s += "await "), s += "" + Ce + "; ") : z ? (q = e(1256) + n, s += e(2459) + q + e(2681) + h + " = await " + Ce + "; } catch (e) { " + h + e(2209) + q + e(1716)) : s += " " + q + e(2373) + h + e(1990) + Ce + "; "; + var de = de || []; + de[e(3062)](s), s = "", s += " " + M + ".call( ", x[e(1544)][e(2698)] ? s += "this" : s += e(2007), E || q[e(1425)] === !1 ? s += e(3135) + g + " " : s += e(3135) + k + e(3135) + g + e(2390) + x.schemaPath + " ", s += e(2583), x[e(1935)] != '""' && (s += e(2693) + x[e(1935)]); + var le = i ? e(2663) + (i - 1 || "") : "parentData", Se = i ? x[e(662)][i] : "parentDataProperty"; + s += e(3135) + le + " , " + Se + e(2783); + var _e = s; + s = de[e(2900)](), q.errors === !1 ? (s += " " + h + e(2486), H && (s += e(2630)), s += "" + _e + "; ") : H ? (N = e(604) + n, s += e(2675) + N + e(1752) + h + e(1588) + _e + e(663) + h + e(659) + N + " = e.errors; else throw e; } ") : s += " " + N + e(3278) + h + e(2486) + _e + "; "; } - if (T[e(1760)] && (s += " if (" + le + ") " + b + e(1990) + le + "[" + we + "];"), s += "" + C, T[e(1694)]) l && (s += e(1954)); + if (q.modifying && (s += " if (" + le + ") " + g + " = " + le + "[" + Se + "];"), s += "" + R, q[e(1122)]) l && (s += e(523)); else { - s += e(1597), T[e(1694)] === void 0 ? (s += " !", O ? s += "" + se : s += "" + h) : s += " " + !T.valid + " ", s += e(1109), f = P.keyword; - var fe = fe || []; - fe[e(816)](s), s = ""; - var fe = fe || []; - fe[e(816)](s), s = "", x.createErrors !== !1 ? (s += e(1962) + (f || "custom") + "' , dataPath: (dataPath || '') + " + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + " , params: { keyword: '" + P[e(1379)] + e(2675), x[e(2977)][e(2953)] !== !1 && (s += e(517) + P[e(1379)] + e(1268)), x[e(2977)][e(2168)] && (s += e(1888) + d + " , parentSchema: validate.schema" + x.schemaPath + e(1275) + b + " "), s += e(1063)) : s += e(1577); + s += e(836), q[e(1122)] === void 0 ? (s += " !", A ? s += "" + re : s += "" + h) : s += " " + !q[e(1122)] + " ", s += e(2834), d = P[e(2442)]; + var de = de || []; + de[e(3062)](s), s = ""; + var de = de || []; + de[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (d || e(1618)) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(2540) + P[e(2442)] + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(3272) + P[e(2442)] + e(1266)), x.opts[e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + g + " "), s += e(1411)) : s += e(3261); var Me = s; - s = fe[e(641)](), !x.compositeRule && l ? x.async ? s += e(2782) + Me + e(2105) : s += e(1264) + Me + e(2530) : s += e(2131) + Me + e(2006); - var Re = s; - s = fe[e(641)](), R ? T[e(2311)] ? T[e(2311)] != "full" && (s += e(2879) + H + "=" + p + "; " + H + e(625) + H + "++) { var " + L + e(2057) + H + e(2216) + L + ".dataPath === undefined) " + L + ".dataPath = (dataPath || '') + " + x[e(2731)] + "; if (" + L + e(2529) + L + e(486) + u + e(972), x[e(2977)][e(2168)] && (s += " " + L + ".schema = " + k + "; " + L + e(1001) + b + "; "), s += e(1063)) : T[e(2311)] === !1 ? s += " " + Re + " " : (s += e(2865) + p + e(1012) + Re + e(3041) + H + "=" + p + "; " + H + e(625) + H + "++) { var " + L + e(2057) + H + e(2216) + L + e(867) + L + e(2050) + x.errorPath + e(1331) + L + e(2529) + L + e(486) + u + '"; } ', x.opts[e(2168)] && (s += " " + L + e(1654) + k + "; " + L + e(1001) + b + "; "), s += e(1665)) : O ? (s += e(958), x.createErrors !== !1 ? (s += e(1962) + (f || e(899)) + e(733) + x[e(2731)] + e(1938) + x[e(2980)][e(1766)](u) + e(2254) + P.keyword + e(2675), x[e(2977)].messages !== !1 && (s += e(517) + P[e(1379)] + e(1268)), x[e(2977)].verbose && (s += e(1888) + d + e(2439) + x[e(2269)] + e(1275) + b + " "), s += e(1063)) : s += e(1577), s += e(2006), !x[e(865)] && l && (x[e(372)] ? s += e(1755) : s += e(1026))) : T[e(2311)] === !1 ? s += " " + Re + " " : (s += e(1392) + q + e(1726) + q + e(2789) + q + e(2058) + H + "=" + p + "; " + H + e(625) + H + e(1315) + L + e(2057) + H + e(2216) + L + e(867) + L + e(2050) + x[e(2731)] + e(1456) + L + e(486) + u + e(1601), x.opts[e(2168)] && (s += " " + L + e(1654) + k + "; " + L + ".data = " + b + "; "), s += e(2220) + Re + e(1063)), s += e(1063), l && (s += e(2293)); + s = de.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + Me + e(2300) : s += e(2213) + Me + "]; return false; " : s += e(2636) + Me + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "; + var Fe = s; + s = de[e(2900)](), C ? q[e(2800)] ? q[e(2800)] != e(2977) && (s += e(1883) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + " = vErrors[" + z + e(2513) + U + e(1615) + U + e(1672) + x[e(1935)] + e(2318) + U + e(2046) + U + e(2298) + f + e(2554), x[e(1544)].verbose && (s += " " + U + e(1357) + k + "; " + U + e(2726) + g + "; "), s += e(1411)) : q.errors === !1 ? s += " " + Fe + " " : (s += e(1754) + m + e(794) + Fe + e(592) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + e(1224) + z + e(2513) + U + e(1615) + U + e(1672) + x[e(1935)] + e(2318) + U + ".schemaPath === undefined) { " + U + e(2298) + f + e(2554), x[e(1544)][e(2491)] && (s += " " + U + ".schema = " + k + "; " + U + ".data = " + g + "; "), s += e(870)) : A ? (s += e(2222), x[e(559)] !== !1 ? (s += " { keyword: '" + (d || e(1618)) + e(2387) + x.errorPath + e(2278) + x.util.toQuotedString(f) + e(2540) + P.keyword + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(3272) + P[e(2442)] + e(1266)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + g + " "), s += e(1411)) : s += " {} ", s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2612)] && l && (x.async ? s += e(903) : s += " validate.errors = vErrors; return false; ")) : q[e(2800)] === !1 ? s += " " + Fe + " " : (s += e(1472) + N + e(1300) + N + e(3260) + N + e(1741) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + e(1224) + z + e(2513) + U + e(1615) + U + ".dataPath = (dataPath || '') + " + x[e(1935)] + e(2884) + U + e(2298) + f + e(2620), x[e(1544)].verbose && (s += " " + U + e(1357) + k + "; " + U + e(2726) + g + "; "), s += " } } else { " + Fe + e(1411)), s += e(1411), l && (s += e(1961)); } return s; }), Dt; } -const Mc = "http://json-schema.org/draft-07/schema#", Lc = a(2110), $c = a(2797), Uc = { schemaArray: { type: a(1517), minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: a(2145) }, { default: 0 }] }, simpleTypes: { enum: [a(1517), "boolean", a(2421), a(2973), a(1730), "object", a(1443)] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Hc = ["object", "boolean"], zc = { $id: { type: a(1443), format: a(1309) }, $schema: { type: a(1443), format: a(3032) }, $ref: { type: a(1443), format: a(1309) }, $comment: { type: a(1443) }, title: { type: a(1443) }, description: { type: a(1443) }, default: !0, readOnly: { type: a(1964), default: !1 }, examples: { type: a(1517), items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: a(1730) }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: a(1730) }, maxLength: { $ref: a(2145) }, minLength: { $ref: a(2871) }, pattern: { type: a(1443), format: a(3019) }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: a(2145) }, minItems: { $ref: a(2871) }, uniqueItems: { type: a(1964), default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: a(2871) }, required: { $ref: a(2024) }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: a(2517), additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: a(2517), additionalProperties: { $ref: "#" }, propertyNames: { format: a(3019) }, default: {} }, dependencies: { type: a(2517), additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: a(2024) }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: a(1517), items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: a(1443) }, contentMediaType: { type: "string" }, contentEncoding: { type: a(1443) }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: a(1142) }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: a(1142) }, not: { $ref: "#" } }, Pn = { $schema: Mc, $id: Lc, title: $c, definitions: Uc, type: Hc, properties: zc, default: !0 }; -var jt, Gr; -function Vc() { +const O2 = a(840), D2 = a(840), j2 = a(2461), M2 = { schemaArray: { type: a(529), minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: a(766), minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: a(2574) }, { default: 0 }] }, simpleTypes: { enum: [a(529), a(3106), a(766), a(1959), a(2665), "object", a(1361)] }, stringArray: { type: "array", items: { type: a(1361) }, uniqueItems: !0, default: [] } }, L2 = [a(1304), a(3106)], $2 = { $id: { type: a(1361), format: a(518) }, $schema: { type: "string", format: "uri" }, $ref: { type: a(1361), format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: a(529), items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: a(2665) }, exclusiveMaximum: { type: a(2665) }, minimum: { type: a(2665) }, exclusiveMinimum: { type: a(2665) }, maxLength: { $ref: a(2574) }, minLength: { $ref: a(891) }, pattern: { type: a(1361), format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: a(2567) }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: a(891) }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: a(2574) }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: a(1201) }, additionalProperties: { $ref: "#" }, definitions: { type: a(1304), additionalProperties: { $ref: "#" }, default: {} }, properties: { type: a(1304), additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: a(1304), additionalProperties: { $ref: "#" }, propertyNames: { format: a(2338) }, default: {} }, dependencies: { type: a(1304), additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: a(1201) }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: a(529), items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: a(3207) }, { type: "array", items: { $ref: a(3207) }, minItems: 1, uniqueItems: !0 }] }, format: { type: a(1361) }, contentMediaType: { type: a(1361) }, contentEncoding: { type: a(1361) }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: a(2567) }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Sn = { $schema: O2, $id: D2, title: j2, definitions: M2, type: L2, properties: $2, default: !0 }; +var jt, Jr; +function U2() { const o = a; - if (Gr) return jt; - Gr = 1; - var x = Pn; - return jt = { $id: "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js", definitions: { simpleTypes: x.definitions[o(662)] }, type: o(2517), dependencies: { schema: [o(2033)], $data: [o(2033)], statements: [o(1738)], valid: { not: { required: [o(2329)] } } }, properties: { type: x[o(1684)].type, schema: { type: "boolean" }, statements: { type: o(1964) }, dependencies: { type: o(1517), items: { type: o(1443) } }, metaSchema: { type: o(2517) }, modifying: { type: "boolean" }, valid: { type: "boolean" }, $data: { type: o(1964) }, async: { type: o(1964) }, errors: { anyOf: [{ type: o(1964) }, { const: o(855) }] } } }, jt; -} -var Mt, Jr; -function Bc() { - if (Jr) return Mt; + if (Jr) return jt; Jr = 1; - var o = /^[a-z_$][a-z0-9_$-]*$/i, x = jc(), t = Vc(); + var x = Sn; + return jt = { $id: o(2733), definitions: { simpleTypes: x[o(2451)].simpleTypes }, type: o(1304), dependencies: { schema: [o(3181)], $data: [o(3181)], statements: ["inline"], valid: { not: { required: [o(1159)] } } }, properties: { type: x[o(3005)][o(2076)], schema: { type: o(3106) }, statements: { type: o(3106) }, dependencies: { type: "array", items: { type: o(1361) } }, metaSchema: { type: o(1304) }, modifying: { type: o(3106) }, valid: { type: o(3106) }, $data: { type: o(3106) }, async: { type: o(3106) }, errors: { anyOf: [{ type: o(3106) }, { const: o(2977) }] } } }, jt; +} +var Mt, Qr; +function z2() { + if (Qr) return Mt; + Qr = 1; + var o = /^[a-z_$][a-z0-9_$-]*$/i, x = A2(), t = U2(); Mt = { add: r, get: e, remove: s, validate: n }; function r(i, c) { - const d = K; - var u = this[d(1757)]; - if (u[d(931)][i]) throw new Error(d(2468) + i + d(2362)); - if (!o[d(2266)](i)) throw new Error(d(2468) + i + " is not a valid identifier"); + const u = K; + var f = this[u(2996)]; + if (f[u(1997)][i]) throw new Error("Keyword " + i + u(695)); + if (!o.test(i)) throw new Error(u(2905) + i + u(642)); if (c) { - this[d(2295)](c, !0); - var l = c[d(506)]; - if (Array[d(2573)](l)) - for (var f = 0; f < l[d(2910)]; f++) h(i, l[f], c); + this[u(958)](c, !0); + var l = c[u(2076)]; + if (Array[u(3255)](l)) + for (var d = 0; d < l[u(2710)]; d++) h(i, l[d], c); else h(i, l, c); - var b = c[d(911)]; - b && (c[d(2073)] && this[d(1797)].$data && (b = { anyOf: [b, { $ref: d(1191) }] }), c[d(1857)] = this[d(1494)](b, !0)); + var g = c[u(1643)]; + g && (c[u(568)] && this[u(1068)].$data && (g = { anyOf: [g, { $ref: u(1253) }] }), c[u(2605)] = this[u(1835)](g, !0)); } - u[d(931)][i] = u.all[i] = !0; - function h(p, v, k) { - const P = d; - for (var N, T = 0; T < u[P(2910)]; T++) { - var C = u[T]; - if (C.type == v) { - N = C; + f[u(1997)][i] = f[u(1096)][i] = !0; + function h(m, v, k) { + const P = u; + for (var T, q = 0; q < f.length; q++) { + var R = f[q]; + if (R[P(2076)] == v) { + T = R; break; } } - !N && (N = { type: v, rules: [] }, u[P(816)](N)); - var I = { keyword: p, definition: k, custom: !0, code: x, implements: k[P(1115)] }; - N[P(2870)][P(816)](I), u[P(899)][p] = I; + !T && (T = { type: v, rules: [] }, f[P(3062)](T)); + var E = { keyword: m, definition: k, custom: !0, code: x, implements: k.implements }; + T[P(2293)][P(3062)](E), f[P(1618)][m] = E; } return this; } function e(i) { const c = K; - var d = this[c(1757)][c(899)][i]; - return d ? d[c(1118)] : this[c(1757)].keywords[i] || !1; + var u = this.RULES[c(1618)][i]; + return u ? u.definition : this[c(2996)][c(1997)][i] || !1; } function s(i) { const c = K; - var d = this[c(1757)]; - delete d[c(931)][i], delete d[c(2264)][i], delete d[c(899)][i]; - for (var u = 0; u < d[c(2910)]; u++) - for (var l = d[u][c(2870)], f = 0; f < l.length; f++) - if (l[f].keyword == i) { - l.splice(f, 1); + var u = this[c(2996)]; + delete u[c(1997)][i], delete u[c(1096)][i], delete u[c(1618)][i]; + for (var f = 0; f < u[c(2710)]; f++) + for (var l = u[f].rules, d = 0; d < l.length; d++) + if (l[d].keyword == i) { + l[c(2881)](d, 1); break; } return this; } function n(i, c) { - const d = K; - n[d(2311)] = null; - var u = this[d(1046)] = this[d(1046)] || this[d(1494)](t, !0); - if (u(i)) return !0; - if (n[d(2311)] = u[d(2311)], c) throw new Error("custom keyword definition is invalid: " + this[d(2154)](u.errors)); + const u = K; + n[u(2800)] = null; + var f = this[u(2639)] = this._validateKeyword || this[u(1835)](t, !0); + if (f(i)) return !0; + if (n.errors = f[u(2800)], c) throw new Error(u(1368) + this[u(2766)](f[u(2800)])); return !1; } return Mt; } -const Zc = a(2110), Wc = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Kc = a(2519), Gc = "object", Jc = [a(2073)], Qc = { $data: { type: "string", anyOf: [{ format: a(3050) }, { format: a(500) }] } }, Xc = !1, Yc = { $schema: Zc, $id: Wc, description: Kc, type: Gc, required: Jc, properties: Qc, additionalProperties: Xc }; -var Lt, Qr; -function ed() { +const H2 = a(840), V2 = a(1253), B2 = "Meta-schema for $data reference (JSON Schema extension proposal)", W2 = a(1304), Z2 = [a(568)], K2 = { $data: { type: a(1361), anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, G2 = !1, J2 = { $schema: H2, $id: V2, description: B2, type: W2, required: Z2, properties: K2, additionalProperties: G2 }; +var Lt, Xr; +function Q2() { const o = a; - if (Qr) return Lt; - Qr = 1; - var x = uc(), t = fa(), r = lc(), e = wn(), s = Sn(), n = fc(), i = _c(), c = Oc(), d = Z0(); - Lt = p, p[o(560)][o(2033)] = v, p[o(560)].compile = k, p[o(560)][o(2771)] = P, p[o(560)][o(1932)] = N, p.prototype[o(1857)] = T, p[o(560)].getSchema = I, p[o(560)][o(531)] = D, p.prototype[o(1032)] = re, p[o(560)].errorsText = se, p[o(560)][o(2223)] = F, p[o(560)][o(2015)] = q, p[o(560)][o(2846)] = Dc(); - var u = Bc(); - p[o(560)].addKeyword = u[o(1604)], p[o(560)][o(3007)] = u[o(2620)], p[o(560)].removeKeyword = u[o(1369)], p.prototype[o(2295)] = u[o(2033)]; + if (Xr) return Lt; + Xr = 1; + var x = i2(), t = da(), r = c2(), e = yn(), s = vn(), n = u2(), i = T2(), c = N2(), u = W0(); + Lt = m, m[o(2587)].validate = v, m.prototype.compile = k, m.prototype[o(1461)] = P, m[o(2587)][o(496)] = T, m[o(2587)][o(2605)] = q, m.prototype[o(1535)] = E, m.prototype[o(1738)] = O, m[o(2587)][o(1389)] = se, m[o(2587)].errorsText = re, m.prototype[o(2669)] = _, m.prototype[o(1026)] = N, m.prototype[o(1493)] = q2(); + var f = z2(); + m[o(2587)].addKeyword = f.add, m[o(2587)][o(763)] = f[o(674)], m.prototype.removeKeyword = f[o(2582)], m.prototype[o(958)] = f[o(3181)]; var l = ha(); - p.ValidationError = l.Validation, p[o(966)] = l[o(2062)], p[o(551)] = c; - var f = "http://json-schema.org/draft-07/schema", b = ["removeAdditional", o(373), "coerceTypes", "strictDefaults"], h = [o(523)]; - function p(_) { - const A = o; - if (!(this instanceof p)) return new p(_); - _ = this._opts = d[A(1303)](_) || {}, Re(this), this[A(2166)] = {}, this[A(442)] = {}, this[A(2263)] = {}, this._formats = n(_[A(1918)]), this[A(2952)] = _[A(1506)] || new r(), this[A(651)] = {}, this[A(730)] = [], this[A(1757)] = i(), this[A(2516)] = H(_), _[A(1968)] = _[A(1968)] || 1 / 0, _[A(2524)] == A(476) && (_._errorDataPathProperty = !0), _[A(3065)] === void 0 && (_.serialize = s), this[A(1180)] = Me(this), _.formats && le(this), _[A(931)] && we(this), ue(this), typeof _[A(650)] == A(2517) && this[A(1932)](_[A(650)]), _[A(2259)] && this[A(954)]("nullable", { metaSchema: { type: A(1964) } }), fe(this); + m[o(1995)] = l[o(1434)], m[o(730)] = l[o(2003)], m[o(2589)] = c; + var d = o(2375), g = [o(3137), o(2088), o(2597), o(2674)], h = [o(2792)]; + function m(D) { + const F = o; + if (!(this instanceof m)) return new m(D); + D = this[F(1068)] = u[F(2615)](D) || {}, Fe(this), this[F(2265)] = {}, this._refs = {}, this[F(1399)] = {}, this[F(3036)] = n(D[F(802)]), this[F(811)] = D[F(3060)] || new r(), this[F(2979)] = {}, this[F(1837)] = [], this.RULES = i(), this[F(1776)] = z(D), D[F(3094)] = D[F(3094)] || 1 / 0, D[F(1805)] == F(648) && (D[F(3124)] = !0), D[F(3043)] === void 0 && (D[F(3043)] = s), this[F(937)] = Me(this), D[F(3155)] && le(this), D[F(1997)] && Se(this), fe(this), typeof D.meta == F(1304) && this[F(496)](D.meta), D[F(2644)] && this[F(2903)](F(2644), { metaSchema: { type: F(3106) } }), de(this); } - function v(_, A) { + function v(D, F) { const j = o; var J; - if (typeof _ == "string") { - if (J = this[j(612)](_), !J) throw new Error(j(2218) + _ + '"'); + if (typeof D == j(1361)) { + if (J = this.getSchema(D), !J) throw new Error(j(2777) + D + '"'); } else { - var Q = this[j(2223)](_); - J = Q[j(2033)] || this._compile(Q); + var X = this[j(2669)](D); + J = X[j(3181)] || this[j(1026)](X); } - var V = J(A); - return J[j(1070)] !== !0 && (this[j(2311)] = J[j(2311)]), V; + var V = J(F); + return J.$async !== !0 && (this[j(2800)] = J.errors), V; } - function k(_, A) { + function k(D, F) { const j = o; - var J = this[j(2223)](_, void 0, A); - return J[j(2033)] || this[j(2015)](J); + var J = this[j(2669)](D, void 0, F); + return J.validate || this[j(1026)](J); } - function P(_, A, j, J) { - const Q = o; - if (Array.isArray(_)) { - for (var V = 0; V < _[Q(2910)]; V++) this[Q(2771)](_[V], void 0, j, J); + function P(D, F, j, J) { + const X = o; + if (Array[X(3255)](D)) { + for (var V = 0; V < D[X(2710)]; V++) this.addSchema(D[V], void 0, j, J); return this; } - var Y = this[Q(2516)](_); - if (Y !== void 0 && typeof Y != Q(1443)) throw new Error(Q(1868)); - return A = t[Q(1651)](A || Y), Ce(this, A), this[Q(2166)][A] = this[Q(2223)](_, j, J, !0), this; + var Y = this[X(1776)](D); + if (Y !== void 0 && typeof Y != "string") throw new Error(X(1366)); + return F = t[X(3133)](F || Y), _e(this, F), this._schemas[F] = this[X(2669)](D, j, J, !0), this; } - function N(_, A, j) { - return this[o(2771)](_, A, j, !0), this; + function T(D, F, j) { + return this[o(1461)](D, F, j, !0), this; } - function T(_, A) { + function q(D, F) { const j = o; - var J = _[j(2320)]; - if (J !== void 0 && typeof J != "string") throw new Error(j(2947)); - if (J = J || this[j(1797)].defaultMeta || C(this), !J) return this[j(3053)][j(405)](j(2633)), this[j(2311)] = null, !0; - var Q = this[j(2033)](J, _); - if (!Q && A) { - var V = j(1543) + this[j(2154)](); - if (this[j(1797)].validateSchema == j(2613)) this[j(3053)].error(V); + var J = D[j(2144)]; + if (J !== void 0 && typeof J != j(1361)) throw new Error(j(1792)); + if (J = J || this[j(1068)][j(1188)] || R(this), !J) return this[j(2303)].warn(j(2432)), this[j(2800)] = null, !0; + var X = this[j(3181)](J, D); + if (!X && F) { + var V = "schema is invalid: " + this.errorsText(); + if (this[j(1068)][j(2605)] == j(1635)) this[j(2303)][j(490)](V); else throw new Error(V); } - return Q; + return X; } - function C(_) { - const A = o; - var j = _._opts[A(650)]; - return _._opts[A(2687)] = typeof j == "object" ? _._getId(j) || j : _.getSchema(f) ? f : void 0, _._opts.defaultMeta; + function R(D) { + const F = o; + var j = D[F(1068)].meta; + return D[F(1068)][F(1188)] = typeof j == F(1304) ? D._getId(j) || j : D[F(1535)](d) ? d : void 0, D[F(1068)][F(1188)]; } - function I(_) { - const A = o; - var j = O(this, _); + function E(D) { + const F = o; + var j = A(this, D); switch (typeof j) { - case "object": - return j.validate || this._compile(j); - case A(1443): - return this[A(612)](j); - case "undefined": - return R(this, _); + case F(1304): + return j.validate || this[F(1026)](j); + case F(1361): + return this[F(1535)](j); + case F(993): + return C(this, D); } } - function R(_, A) { + function C(D, F) { const j = o; - var J = t[j(1346)][j(1175)](_, { schema: {} }, A); + var J = t[j(1425)][j(1522)](D, { schema: {} }, F); if (J) { - var Q = J[j(1346)], V = J[j(1794)], Y = J[j(1620)], ce = x[j(1175)](_, Q, V, void 0, Y); - return _._fragments[A] = new e({ ref: A, fragment: !0, schema: Q, root: V, baseId: Y, validate: ce }), ce; + var X = J[j(1425)], V = J[j(2212)], Y = J.baseId, ce = x[j(1522)](D, X, V, void 0, Y); + return D[j(1399)][F] = new e({ ref: F, fragment: !0, schema: X, root: V, baseId: Y, validate: ce }), ce; } } - function O(_, A) { + function A(D, F) { const j = o; - return A = t[j(1651)](A), _[j(2166)][A] || _[j(442)][A] || _[j(2263)][A]; + return F = t[j(3133)](F), D[j(2265)][F] || D[j(497)][F] || D[j(1399)][F]; } - function D(_) { - const A = o; - if (_ instanceof RegExp) return M(this, this[A(2166)], _), M(this, this[A(442)], _), this; - switch (typeof _) { + function O(D) { + const F = o; + if (D instanceof RegExp) return M(this, this._schemas, D), M(this, this[F(497)], D), this; + switch (typeof D) { case "undefined": - return M(this, this[A(2166)]), M(this, this[A(442)]), this[A(2952)].clear(), this; - case "string": - var j = O(this, _); - return j && this[A(2952)][A(1558)](j[A(2170)]), delete this[A(2166)][_], delete this._refs[_], this; - case A(2517): - var J = this._opts[A(3065)], Q = J ? J(_) : _; - this._cache[A(1558)](Q); - var V = this[A(2516)](_); - V && (V = t[A(1651)](V), delete this[A(2166)][V], delete this[A(442)][V]); + return M(this, this[F(2265)]), M(this, this[F(497)]), this[F(811)].clear(), this; + case F(1361): + var j = A(this, D); + return j && this[F(811)][F(2150)](j[F(2656)]), delete this._schemas[D], delete this[F(497)][D], this; + case F(1304): + var J = this[F(1068)][F(3043)], X = J ? J(D) : D; + this._cache[F(2150)](X); + var V = this[F(1776)](D); + V && (V = t[F(3133)](V), delete this[F(2265)][V], delete this[F(497)][V]); } return this; } - function M(_, A, j) { + function M(D, F, j) { const J = o; - for (var Q in A) { - var V = A[Q]; - !V[J(650)] && (!j || j[J(2266)](Q)) && (_[J(2952)][J(1558)](V[J(2170)]), delete A[Q]); + for (var X in F) { + var V = F[X]; + !V[J(1166)] && (!j || j[J(2346)](X)) && (D._cache[J(2150)](V[J(2656)]), delete F[X]); } } - function F(_, A, j, J) { - const Q = o; - if (typeof _ != Q(2517) && typeof _ != Q(1964)) throw new Error(Q(688)); - var V = this[Q(1797)][Q(3065)], Y = V ? V(_) : _, ce = this[Q(2952)][Q(2620)](Y); + function _(D, F, j, J) { + const X = o; + if (typeof D != "object" && typeof D != X(3106)) throw new Error("schema should be object or boolean"); + var V = this[X(1068)][X(3043)], Y = V ? V(D) : D, ce = this[X(811)][X(674)](Y); if (ce) return ce; - J = J || this[Q(1797)].addUsedSchema !== !1; - var ie = t[Q(1651)](this[Q(2516)](_)); - ie && J && Ce(this, ie); - var xe = this._opts[Q(1857)] !== !1 && !A, Le; - xe && !(Le = ie && ie == t.normalizeId(_[Q(2320)])) && this[Q(1857)](_, !0); - var Ae = t.ids.call(this, _), He = new e({ id: ie, schema: _, localRefs: Ae, cacheKey: Y, meta: j }); - return ie[0] != "#" && J && (this[Q(442)][ie] = He), this[Q(2952)].put(Y, He), xe && Le && this[Q(1857)](_, !0), He; + J = J || this[X(1068)][X(2334)] !== !1; + var oe = t[X(3133)](this[X(1776)](D)); + oe && J && _e(this, oe); + var te = this[X(1068)].validateSchema !== !1 && !F, Le; + te && !(Le = oe && oe == t[X(3133)](D[X(2144)])) && this[X(2605)](D, !0); + var Ae = t[X(2707)][X(1522)](this, D), ze = new e({ id: oe, schema: D, localRefs: Ae, cacheKey: Y, meta: j }); + return oe[0] != "#" && J && (this[X(497)][oe] = ze), this[X(811)][X(1142)](Y, ze), te && Le && this.validateSchema(D, !0), ze; } - function q(_, A) { + function N(D, F) { const j = o; - if (_[j(2602)]) - return _.validate = V, V[j(1346)] = _[j(1346)], V[j(2311)] = null, V[j(1794)] = A || V, _[j(1346)].$async === !0 && (V[j(1070)] = !0), V; - _[j(2602)] = !0; + if (D[j(817)]) + return D.validate = V, V[j(1425)] = D[j(1425)], V[j(2800)] = null, V[j(2212)] = F || V, D[j(1425)][j(1101)] === !0 && (V[j(1101)] = !0), V; + D[j(817)] = !0; var J; - _[j(650)] && (J = this[j(1797)], this[j(1797)] = this[j(1180)]); - var Q; + D[j(1166)] && (J = this[j(1068)], this[j(1068)] = this[j(937)]); + var X; try { - Q = x[j(1175)](this, _[j(1346)], A, _[j(2092)]); + X = x.call(this, D[j(1425)], F, D[j(610)]); } catch (Y) { - throw delete _[j(2033)], Y; + throw delete D.validate, Y; } finally { - _[j(2602)] = !1, _[j(650)] && (this[j(1797)] = J); + D[j(817)] = !1, D[j(1166)] && (this[j(1068)] = J); } - return _.validate = Q, _[j(737)] = Q[j(737)], _[j(1257)] = Q[j(1257)], _[j(1794)] = Q[j(1794)], Q; + return D[j(3181)] = X, D[j(588)] = X[j(588)], D[j(1269)] = X.refVal, D[j(2212)] = X.root, X; function V() { const Y = j; - var ce = _.validate, ie = ce.apply(this, arguments); - return V[Y(2311)] = ce[Y(2311)], ie; + var ce = D[Y(3181)], oe = ce[Y(2692)](this, arguments); + return V[Y(2800)] = ce.errors, oe; } } - function H(_) { - const A = o; - switch (_[A(3e3)]) { - case A(1159): + function z(D) { + const F = o; + switch (D[F(623)]) { + case F(2627): return G; case "id": - return L; + return U; default: - return z; + return H; } } - function L(_) { - const A = o; - return _[A(2922)] && this.logger[A(405)](A(2608), _[A(2922)]), _.id; + function U(D) { + const F = o; + return D[F(3154)] && this[F(2303)][F(1114)]("schema $id ignored", D[F(3154)]), D.id; } - function z(_) { - const A = o; - return _.id && this.logger[A(405)]("schema id ignored", _.id), _.$id; + function H(D) { + const F = o; + return D.id && this[F(2303)][F(1114)](F(637), D.id), D.$id; } - function G(_) { - const A = o; - if (_[A(2922)] && _.id && _[A(2922)] != _.id) throw new Error(A(1733)); - return _[A(2922)] || _.id; + function G(D) { + const F = o; + if (D[F(3154)] && D.id && D[F(3154)] != D.id) throw new Error("schema $id is different from id"); + return D[F(3154)] || D.id; } - function se(_, A) { + function re(D, F) { const j = o; - if (_ = _ || this.errors, !_) return j(2540); - A = A || {}; - for (var J = A[j(763)] === void 0 ? ", " : A[j(763)], Q = A[j(2750)] === void 0 ? j(571) : A[j(2750)], V = "", Y = 0; Y < _[j(2910)]; Y++) { - var ce = _[Y]; - ce && (V += Q + ce[j(2465)] + " " + ce[j(2732)] + J); + if (D = D || this[j(2800)], !D) return j(1705); + F = F || {}; + for (var J = F[j(1680)] === void 0 ? ", " : F[j(1680)], X = F[j(3040)] === void 0 ? j(2663) : F[j(3040)], V = "", Y = 0; Y < D[j(2710)]; Y++) { + var ce = D[Y]; + ce && (V += X + ce.dataPath + " " + ce[j(1044)] + J); } - return V[j(2527)](0, -J[j(2910)]); + return V.slice(0, -J[j(2710)]); } - function re(_, A) { - const j = o; - return typeof A == j(1443) && (A = new RegExp(A)), this[j(2243)][_] = A, this; + function se(D, F) { + return typeof F == o(1361) && (F = new RegExp(F)), this._formats[D] = F, this; } - function ue(_) { - const A = o; + function fe(D) { + const F = o; var j; - if (_[A(1797)][A(2073)] && (j = Yc, _[A(1932)](j, j[A(2922)], !0)), _._opts[A(650)] !== !1) { - var J = Pn; - _[A(1797)][A(2073)] && (J = c(J, h)), _[A(1932)](J, f, !0), _._refs[A(939)] = f; + if (D[F(1068)][F(568)] && (j = J2, D.addMetaSchema(j, j[F(3154)], !0)), D[F(1068)][F(1166)] !== !1) { + var J = Sn; + D._opts[F(568)] && (J = c(J, h)), D.addMetaSchema(J, d, !0), D[F(497)][F(2207)] = d; } } - function fe(_) { - const A = o; - var j = _[A(1797)].schemas; + function de(D) { + const F = o; + var j = D._opts[F(2849)]; if (j) - if (Array[A(2573)](j)) _.addSchema(j); + if (Array[F(3255)](j)) D[F(1461)](j); else - for (var J in j) _[A(2771)](j[J], J); + for (var J in j) D.addSchema(j[J], J); } - function le(_) { - const A = o; - for (var j in _[A(1797)][A(1408)]) { - var J = _._opts[A(1408)][j]; - _[A(1032)](j, J); + function le(D) { + const F = o; + for (var j in D[F(1068)][F(3155)]) { + var J = D[F(1068)][F(3155)][j]; + D[F(1389)](j, J); } } - function we(_) { - const A = o; - for (var j in _[A(1797)][A(931)]) { - var J = _[A(1797)][A(931)][j]; - _.addKeyword(j, J); + function Se(D) { + const F = o; + for (var j in D[F(1068)][F(1997)]) { + var J = D[F(1068)][F(1997)][j]; + D.addKeyword(j, J); } } - function Ce(_, A) { + function _e(D, F) { const j = o; - if (_[j(2166)][A] || _[j(442)][A]) throw new Error('schema with key or id "' + A + j(2574)); + if (D[j(2265)][F] || D[j(497)][F]) throw new Error(j(1120) + F + j(1280)); } - function Me(_) { - const A = o; - for (var j = d.copy(_[A(1797)]), J = 0; J < b[A(2910)]; J++) delete j[b[J]]; + function Me(D) { + const F = o; + for (var j = u[F(2615)](D[F(1068)]), J = 0; J < g[F(2710)]; J++) delete j[g[J]]; return j; } - function Re(_) { - const A = o; - var j = _._opts[A(3053)]; - if (j === !1) _[A(3053)] = { log: Je, warn: Je, error: Je }; + function Fe(D) { + const F = o; + var j = D[F(1068)].logger; + if (j === !1) D.logger = { log: Je, warn: Je, error: Je }; else { - if (j === void 0 && (j = console), !(typeof j == A(2517) && j[A(2613)] && j.warn && j.error)) throw new Error(A(1984)); - _[A(3053)] = j; + if (j === void 0 && (j = console), !(typeof j == "object" && j[F(1635)] && j[F(1114)] && j[F(490)])) throw new Error(F(876)); + D.logger = j; } } function Je() { } return Lt; } -var xd = ed(); -const td = Ks(xd); -class ad extends sc { +var X2 = Q2(); +const Y2 = Ws(X2); +class eu extends t2 { constructor(x, t) { const r = a; var e; - super(t), this[r(2918)] = x, this._capabilities = (e = t == null ? void 0 : t[r(717)]) !== null && e !== void 0 ? e : {}, this._instructions = t == null ? void 0 : t[r(2097)], this.setRequestHandler(cn, (s) => this[r(1674)](s)), this[r(1977)](dn, () => { + super(t), this[r(651)] = x, this._capabilities = (e = t == null ? void 0 : t[r(2395)]) !== null && e !== void 0 ? e : {}, this[r(2176)] = t == null ? void 0 : t[r(2531)], this[r(1219)](nn, (s) => this[r(3134)](s)), this.setNotificationHandler(on, () => { const s = r; var n; - return (n = this[s(2558)]) === null || n === void 0 ? void 0 : n[s(1175)](this); + return (n = this[s(741)]) === null || n === void 0 ? void 0 : n.call(this); }); } - registerCapabilities(x) { + [a(1545)](x) { const t = a; - if (this[t(1130)]) throw new Error(t(1626)); - this[t(707)] = nc(this[t(707)], x); + if (this[t(516)]) throw new Error(t(1048)); + this._capabilities = a2(this[t(2911)], x); } - assertCapabilityForMethod(x) { + [a(557)](x) { const t = a; var r, e, s; switch (x) { - case "sampling/createMessage": - if (!(!((r = this._clientCapabilities) === null || r === void 0) && r[t(382)])) throw new Error(t(435) + x + ")"); + case t(2180): + if (!(!((r = this[t(1509)]) === null || r === void 0) && r[t(2398)])) throw new Error("Client does not support sampling (required for " + x + ")"); break; - case t(595): - if (!(!((e = this[t(1437)]) === null || e === void 0) && e[t(1822)])) throw new Error(t(1806) + x + ")"); + case t(1206): + if (!(!((e = this._clientCapabilities) === null || e === void 0) && e[t(2780)])) throw new Error(t(2106) + x + ")"); break; - case t(379): - if (!(!((s = this[t(1437)]) === null || s === void 0) && s[t(1463)])) throw new Error(t(611) + x + ")"); + case t(2089): + if (!(!((s = this[t(1509)]) === null || s === void 0) && s[t(2013)])) throw new Error(t(3052) + x + ")"); break; } } - assertNotificationCapability(x) { + [a(2670)](x) { const t = a; switch (x) { - case t(2640): - if (!this[t(707)][t(1804)]) throw new Error("Server does not support logging (required for " + x + ")"); + case t(989): + if (!this[t(2911)][t(1022)]) throw new Error(t(1295) + x + ")"); break; - case "notifications/resources/updated": - case t(555): - if (!this._capabilities[t(804)]) throw new Error(t(1643) + x + ")"); + case t(2014): + case t(1629): + if (!this[t(2911)].resources) throw new Error("Server does not support notifying about resources (required for " + x + ")"); break; case "notifications/tools/list_changed": - if (!this[t(707)][t(1077)]) throw new Error(t(1843) + x + ")"); + if (!this[t(2911)].tools) throw new Error("Server does not support notifying of tool list changes (required for " + x + ")"); break; - case "notifications/prompts/list_changed": - if (!this[t(707)][t(1890)]) throw new Error(t(1982) + x + ")"); + case t(2727): + if (!this._capabilities.prompts) throw new Error(t(2935) + x + ")"); break; } } - assertRequestHandlerCapability(x) { + [a(1465)](x) { const t = a; switch (x) { - case t(648): - if (!this[t(707)][t(382)]) throw new Error(t(389) + x + ")"); + case t(2180): + if (!this[t(2911)][t(2398)]) throw new Error(t(2079) + x + ")"); break; - case t(2267): - if (!this[t(707)][t(1804)]) throw new Error(t(2831) + x + ")"); + case "logging/setLevel": + if (!this[t(2911)][t(1022)]) throw new Error(t(1295) + x + ")"); break; - case t(848): - case t(2806): - if (!this[t(707)][t(1890)]) throw new Error("Server does not support prompts (required for " + x + ")"); + case t(1143): + case "prompts/list": + if (!this[t(2911)][t(2649)]) throw new Error("Server does not support prompts (required for " + x + ")"); break; - case "resources/list": - case "resources/templates/list": - case t(2309): - if (!this[t(707)][t(804)]) throw new Error("Server does not support resources (required for " + x + ")"); + case t(2002): + case t(2847): + case "resources/read": + if (!this[t(2911)][t(1673)]) throw new Error(t(1218) + x + ")"); break; - case t(3063): - case t(791): - if (!this[t(707)][t(1077)]) throw new Error("Server does not support tools (required for " + x + ")"); + case "tools/call": + case t(2744): + if (!this[t(2911)][t(2365)]) throw new Error(t(3215) + x + ")"); break; } } - async [a(1674)](x) { - const t = a, r = x[t(2863)][t(2182)]; - return this[t(1437)] = x.params.capabilities, this[t(512)] = x[t(2863)].clientInfo, { protocolVersion: a2[t(416)](r) ? r : en, capabilities: this[t(1208)](), serverInfo: this[t(2918)], ...this[t(2733)] && { instructions: this[t(2733)] } }; + async [a(3134)](x) { + const t = a, r = x[t(1656)][t(1861)]; + return this[t(1509)] = x[t(1656)][t(2395)], this[t(2464)] = x[t(1656)].clientInfo, { protocolVersion: ec[t(2978)](r) ? r : Xs, capabilities: this[t(1634)](), serverInfo: this._serverInfo, ...this[t(2176)] && { instructions: this[t(2176)] } }; } - [a(992)]() { - return this[a(1437)]; + getClientCapabilities() { + return this._clientCapabilities; } - [a(835)]() { - return this[a(512)]; + getClientVersion() { + return this[a(2464)]; } - [a(1208)]() { - return this._capabilities; + [a(1634)]() { + return this[a(2911)]; } - async [a(1319)]() { - const x = a; - return this.request({ method: x(1319) }, ta); + async [a(2509)]() { + return this[a(494)]({ method: "ping" }, ta); } async createMessage(x, t) { const r = a; - return this[r(714)]({ method: r(648), params: x }, gn, t); + return this.request({ method: r(2180), params: x }, mn, t); } - async elicitInput(x, t) { - const r = a, e = await this[r(714)]({ method: r(595), params: x }, yn, t); - if (e[r(362)] === r(710) && e[r(1525)]) try { - const s = new td(), n = s.compile(x[r(2294)]); - if (!n(e[r(1525)])) throw new _0(y0[r(2801)], r(1092) + s[r(2154)](n[r(2311)])); + async [a(1164)](x, t) { + const r = a, e = await this.request({ method: r(1206), params: x }, bn, t); + if (e.action === r(995) && e[r(3170)]) try { + const s = new Y2(), n = s[r(1835)](x[r(2920)]); + if (!n(e[r(3170)])) throw new q0(v0.InvalidParams, "Elicitation response content does not match requested schema: " + s[r(2766)](n.errors)); } catch (s) { - throw s instanceof _0 ? s : new _0(y0.InternalError, r(973) + s); + throw s instanceof q0 ? s : new q0(v0[r(2898)], r(1497) + s); } return e; } - async listRoots(x, t) { + async [a(808)](x, t) { const r = a; - return this[r(714)]({ method: r(379), params: x }, vn, t); + return this.request({ method: r(2089), params: x }, gn, t); } - async [a(2734)](x) { + async [a(2751)](x) { const t = a; - return this[t(766)]({ method: t(2640), params: x }); + return this[t(2487)]({ method: t(989), params: x }); } - async [a(2899)](x) { - return this[a(766)]({ method: "notifications/resources/updated", params: x }); + async [a(1270)](x) { + const t = a; + return this.notification({ method: t(2014), params: x }); } - async [a(2775)]() { - return this[a(766)]({ method: "notifications/resources/list_changed" }); - } - async [a(2572)]() { + async sendResourceListChanged() { const x = a; - return this[x(766)]({ method: x(2735) }); + return this[x(2487)]({ method: x(1629) }); } - async [a(565)]() { - return this[a(766)]({ method: "notifications/prompts/list_changed" }); + async [a(1277)]() { + const x = a; + return this.notification({ method: x(1600) }); + } + async [a(2982)]() { + const x = a; + return this.notification({ method: x(2727) }); } } -class rd extends Error { +class xu extends Error { constructor(x, t) { const r = a; - super(r(491) + x + r(412) + t + "ms"), this.name = r(1929); + super(r(1666) + x + r(1161) + t + "ms"), this.name = r(920); } } -const px = /* @__PURE__ */ new Map(); -class sd { +const mx = /* @__PURE__ */ new Map(); +class tu { constructor(x) { const t = a; - if (this[t(2577)] = [], this[t(1318)] = Date[t(2356)](), px[t(2239)](x.posterIdentifier)) { - const i = px[t(2620)](x[t(1723)]); - i && i.close(); + if (this[t(2729)] = [], this[t(1710)] = Date[t(3275)](), mx[t(2348)](x.posterIdentifier)) { + const i = mx[t(674)](x.posterIdentifier); + i && i[t(1489)](); } - this[t(1723)] = x[t(1723)], this.messagePoster = x.messagePoster, this[t(2016)] = x[t(2016)], this.removeMessageEventListener = x[t(2271)]; - const r = x[t(719)] ?? x.heartbeatTimeout, e = x.heartbeatTimeout ?? x[t(719)], s = this[t(1652)](r), n = this.normalizeDuration(e); - s && n && (this[t(719)] = s, this[t(2104)] = n), this[t(2618)] = x[t(2618)] ?? !1, px[t(2454)](this[t(1723)], this), this.listenMessageCallback = this[t(521)][t(2381)](this), this[t(1361)] = this[t(2016)](this[t(521)]); + this[t(3279)] = x[t(3279)], this[t(1066)] = x.messagePoster, this[t(987)] = x.addMessageEventListener, this[t(2532)] = x[t(2532)]; + const r = x.heartbeatInterval ?? x[t(2595)], e = x[t(2595)] ?? x.heartbeatInterval, s = this[t(2056)](r), n = this.normalizeDuration(e); + s && n && (this[t(1777)] = s, this[t(2595)] = n), this[t(2468)] = x[t(2468)] ?? !1, mx[t(780)](this[t(3279)], this), this[t(2393)] = this.listenMessageCallback[t(1386)](this), this[t(1036)] = this[t(987)](this.listenMessageCallback); } - [a(1652)](x) { - if (typeof x === a(1730) && !(!Number.isFinite(x) || x <= 0)) + [a(2056)](x) { + const t = a; + if (typeof x == "number" && !(!Number[t(643)](x) || x <= 0)) return x; } - [a(2192)]() { + isHeartbeatEnabled() { const x = a; - return typeof this[x(719)] == "number" && typeof this[x(2104)] === x(1730); + return typeof this[x(1777)] === x(2665) && typeof this[x(2595)] == "number"; } - [a(521)](x) { + [a(2393)](x) { const t = a; - if (x.posterIdentifier === this[t(1723)]) { - if (x[t(1373)] === "sdppp-heartbeat") { - x[t(506)] === t(1319) && !this.debugDisableHeartbeatResponse ? this[t(2445)]({ channel: "sdppp-heartbeat", posterIdentifier: this[t(1723)], type: t(434), timestamp: x.timestamp }) : x[t(506)] === t(434) && (this[t(1318)] = Date[t(2356)](), this[t(457)] && (clearTimeout(this.heartbeatTimeoutTimer), this[t(457)] = void 0)); + if (x.posterIdentifier === this[t(3279)]) { + if (x[t(2967)] === t(508)) { + x[t(2076)] === t(2509) && !this[t(2468)] ? this.messagePoster({ channel: t(508), posterIdentifier: this[t(3279)], type: "pong", timestamp: x[t(606)] }) : x[t(2076)] === t(1627) && (this[t(1710)] = Date[t(3275)](), this.heartbeatTimeoutTimer && (clearTimeout(this.heartbeatTimeoutTimer), this.heartbeatTimeoutTimer = void 0)); return; } - x[t(1373)] === t(1768) && (this[t(1981)] && "payload" in x ? this[t(1981)](x[t(1839)]) : t(1839) in x && this[t(2577)].push(x[t(1839)])); + x.channel === t(2516) && (this[t(1803)] && "payload" in x ? this.onmessage(x[t(1962)]) : t(1962) in x && this[t(2729)][t(3062)](x[t(1962)])); } } - async start() { + async [a(1392)]() { const x = a; - for (; this[x(2577)].length > 0; ) { - const t = this[x(2577)][x(613)](); - t && this[x(1981)] && this[x(1981)](t); + for (; this[x(2729)][x(2710)] > 0; ) { + const t = this.messageQueue[x(1263)](); + t && this[x(1803)] && this[x(1803)](t); } - this[x(2192)]() && this[x(1381)](); + this[x(807)]() && this[x(2564)](); } - [a(1381)]() { + startHeartbeat() { const x = a; - if (!this.isHeartbeatEnabled()) return; - const t = this[x(719)], r = this[x(2104)]; - this[x(2072)](), this[x(1327)] = setInterval(() => { - const e = x, s = Date[e(2356)](); - this.messagePoster({ channel: e(2298), posterIdentifier: this[e(1723)], type: "ping", timestamp: s }), this[e(457)] = setTimeout(() => { - const n = e, i = new rd(this[n(1723)], r); - this.onerror && this.onerror(i); + if (!this[x(807)]()) return; + const t = this[x(1777)], r = this[x(2595)]; + this[x(2545)](), this.heartbeatTimer = setInterval(() => { + const e = x, s = Date.now(); + this[e(1066)]({ channel: "sdppp-heartbeat", posterIdentifier: this.posterIdentifier, type: e(2509), timestamp: s }), this[e(2280)] = setTimeout(() => { + const n = e, i = new xu(this[n(3279)], r); + this[n(934)] && this[n(934)](i); }, r); }, t); } - [a(2072)]() { + [a(2545)]() { const x = a; - this[x(1327)] && (clearInterval(this[x(1327)]), this[x(1327)] = void 0), this[x(457)] && (clearTimeout(this[x(457)]), this[x(457)] = void 0); + this[x(2686)] && (clearInterval(this[x(2686)]), this.heartbeatTimer = void 0), this[x(2280)] && (clearTimeout(this[x(2280)]), this[x(2280)] = void 0); } - async [a(1237)](x, t) { + async [a(1838)](x, t) { const r = a; - this[r(2445)]({ channel: "sdppp", posterIdentifier: this[r(1723)], payload: x }); + this[r(1066)]({ channel: r(2516), posterIdentifier: this[r(3279)], payload: x }); } - async close() { + async [a(1489)]() { const x = a; - this[x(2072)](), px[x(1239)](this[x(1723)]), this[x(2271)](this[x(1361)]); + this.clearHeartbeatTimers(), mx[x(875)](this[x(3279)]), this[x(2532)](this[x(1036)]); } } -function Tx() { - const o = ["endTurn", "minItems", "prompts/list", " , message: 'should be equal to constant' ", "适配至选区", "done", "color: inherit", "Running", " = true; if (", "widgetable", "Stop", " */", " && Object.prototype.hasOwnProperty.call(", "Set text to layer", "pluralSeparator", "Layer", "Invalid proxy forwarding: current node ", "interpolationkey", " ? ", "getNodeIds", "executing", "SDPPP may not be installed or version mismatch (404)", "显示发送的图片", "Request handler failed: ", "getTransportToNode", "passthrough", "argumentsError", "Server does not support logging (required for ", " != 'number') { ", "toResolveHierarchy", "ltr", "Create document failed", "errs_", "int", "&", "_regex", "Selection", "actions:util", "acq", "Running...", "#FF3333", "userDefinedNsSeparator", "compileAsync", " characters' ", "selectColor", "store", "Cycle detected: ", "Please select AI service", "作为智能对象导入", "Current layer boundary", "ajv", "function", "ComfyUI - {{workflowName}}", " + ']'", "nonnegative", "isDuration", " validate.errors = vErrors; ", "getHandlerTypes", "URI can not be parsed.", "params", "graphChanged", " if (", "提示词", "_onerror", "Connect", "$t(", "rules", "#/definitions/nonNegativeIntegerDefault0", "任务未完成,当前状态: {{status}}", "size", "Full Canvas", "清空所有", "shorter", "title", "暂无视频", " for (var ", "当前没有活动图层", "equal", "exclusive", "maxRetries", "clearCache", "outputType", "item", "removeCatch", "maxDate", "default", "setupNodeBindings", "Error handling incoming message:", "timeoutId", "_parseAsync", "image", " (async", "returnObjects", "/type", "charAt", "sendResourceUpdated", "onerror", "requestsHandled", "flatten", "#00CC66", "getRule", "customRule", "dirty", "failed", "Masked", "notificationHandlers", "length", "Upload failed: ", "weeks", "获取图片", "required", "anyOf", " , schema: ", "Local video", "_serverInfo", "requestHandlers", "sdpppX2", " not found in graph definition", "$id", "WebkitAppearance", "refVal[", "Enter Google API Key", "readOnly", "Create document for preview", "Execute", "Number must be a multiple of ", "regexp", "missed to pass in variable ", "正在运行", "边界预览", "无法从文件创建文档", ".async; ", "ucs2length", 'key "', "获取选区失败", "messageHandlers", "yih", "Current", "safeParseAsync", " , message: 'should be equal to one of the allowed values' ", "+Alt 按选区裁剪", "Outgoing request interceptor failed: ", "OpenAI - Image Edit", "$schema must be a string", "widgetableStructure", "hasPath", "Fit to selection", "filter", "_cache", "messages", "ZodDefault", "ZodBoolean", "No workflow selected", "false schema", "mcp-mesh-router", "exclType", "canReachThroughConnectedNodes", " , params: { limit: ", " var errors = 0; ", "getNodes API 调用失败 - HTTP 错误,状态: {{status}}", "assertNotificationCapability", "?\\]?$", "parsedType", "RH Coins:", "ComfyUI加载中...", ") { var err = ", "aao", "Layer {{0}} is not a group", "Action ", "null", "269336uXJulD", ".validate;", "queue_remaining", "opts", "subscribe", "[^0-9]", "util", "NOT_QUERY", "__nwjs", "遮罩应用后未得到资源", "getItem", "_pendingDebouncedNotifications", "McpError", "exclusiveMinimum", " + '\\']'", "isOptional", "File", "暂无可用工作流。", "ZodUndefined", "init", "removeRequestHandler", "validation", "wait", " = validate.schema", "未配置上传器", "创建操作需要矩形坐标", "schemaId", "maxSize", "Stop auto run", "over", "#00CC33", "changeTracker", "新建文档", "getKeyword", "currentNodeId", "assistant", "graphToPrompt", "自定义AI工作流引擎", ") && (missing", "isClone", " }; return validate;", " properties' ", "next", "Fetch current layer with primary boundary", "nestingRegexp", "regex", "[\\+\\-\\.]", " + '", "[A-Za-z0-9\\-\\.\\_\\~", "comfy side transport.onerror", "Failed to get task status", "cancel", " != 'boolean') ", "escape", "getFallbackCodes", "errorMap", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "safeParse", "uri", "unknownKeys", "keyType", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", "getSuffix", "]; ", "Connection closed", "utils", "keySeparator", " } else { for (var ", "[0-9]", "smaller than or equal to", "isNullable", "req_", " var i = ", "_progressHandlers", "24DtmMPo", "Run", "relative-json-pointer", "getDataByLanguage", "executeHandlerAsync", "logger", "initImmediate", " = false; ", "自动同步: 开启", "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "Please select the image to get", "运行了 {{duration}} 秒,{{message}}", "hasOutgoingNotificationInterceptor", "cleanupConnection", "Click to restore default mask", "tools/call", "当前任务数:", "serialize", " when property ", " instanceof RegExp) && ", "code", "get_layer_info requires layer_identify", "objectValues", ", received ", "unicodeSupport", "action", "素材同步中", "resourceName", "Generating", "Internal error", "ars", "removeMiddleware", " , parentSchema: validate.schema", "preload", "++) { if (", "async", "useDefaults", "formData", "' + ", "errSchemaPath", "JWT", "failedLoading", "roots/list", "_limitLength", "finite", "sampling", "新建模板", "read", "urn", "_cached", "Sending...", "propsKeywords", "Server does not support sampling (required for ", "order", "createWithPreprocess", "method", "setItem", "context", "checkDataTypes", "Choose File", " === null) ", "registerProxyForwardHandler", "Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.", "hasDefaultValue", "#66CC33", " % 1)", "Validation", "resolvedOptions", "warn", "nestingPrefix", "performWorkflowReset: ", "setupAbortHandler", "))) { ", "languageDetector", "#00CC99", " after ", "deprecate", "getAccountStatus API failed - HTTP error! status: {{status}}", ") ? ", "includes", "MAX_SAFE_INTEGER", "getUsedParamsDetails", "使用当前选区边界", "Sending image...", "ComfyUI加载失败,HTTP状态码:{{code}}", "./api/manager/reboot", "checkDataType", "ParseError", "charCodeAt", "strict", "++) { vErrors[", "_notificationHandlers", "Error", "fallbackLng", "comfy-uxp", "state", " } if (", "pong", "Client does not support sampling (required for ", "parseAsync", "mcpMesh", "_setupTimeout", "#0099CC", "ZodObject", "newdoc_canvas", "_refs", " else ", " = 'else'; ", "some", "Empty selection mask", "Failed to check workflow state changes:", "usedParams", " self._opts.$comment(", "more", "Mask apply returned empty resource", "|0?0?", "+Alt 反转遮罩", "timeout", "waiters", " , params: { ref: '", "heartbeatTimeoutTimer", "mode", " = '' + ", "emergency", "画布范围", "Failed to send cancellation: ", "regExpQueue", "[^\\%\\:]", "fcName", "Get selection", " , params: { additionalProperty: '", "#3300FF", "Crop", "Save", " } ", "uxpHost", "executeOutgoingNotificationInterceptor", "addResourceBundle", "process", "property", "Input Image", "maxParallelReads", "请选择AI服务", "Negative Crop", "Already connected to node ", "Uncaught error in notification handler: ", "ZodNumber", "File not found: {{path}}", " || Object.keys(", '.schemaPath = "', "适配至画布", "onTimeout", "originalError", "#CCCC00", "Heartbeat timeout for poster ", "网关超时 (504)", "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", " var schema", "outgoingRequestInterceptors", "maxLength", "以主图边界获取画布", "[A-Za-z]", "自动获取中…", "json-pointer", "outputs API 调用失败 - {{reason}}", "[\\:\\@]", "服务器错误 (500)", "init: no languageDetector is used and no lng is defined", "_cachedPath", "type", "allKeys", "URN can not be parsed.", " + ", "resolve", " = defaults[", "_clientVersion", "#33CCFF", "Document {0} not found", "pluralRulesCache", "positive", ` , message: 'should pass "`, "image/png", "relative", "ZodSymbol", "listenMessageCallback", "yrs", "/properties", ") { for (var ", "stopSequence", "toFixed", "origin", "Boundary preview", "emoji", "Invalid enum value. Expected ", "removeSchema", `"' `, " already exists, which would be overridden", "buildDirectedAdjacencyList", "hbo", " var async", "#66CC00", "race", "Comfy Manager未安装,无法重启", "Login Successful", "正在连接 ComfyUI...", "joinArrays", "unknown", "max", "promise", "设为选区", "Note", "keys", "非法的名称: {{0}}", "step", "$dataMetaSchema", "user", "abs", "too_big", "notifications/resources/list_changed", "_getOrReturnCtx", "Mask resource is missing", "loadGraphData", "backendConnector", "prototype", "uniqueItems", "openWorkflow: ", "reconnecting", " levels up, current level is ", "sendPromptListChanged", "acx", ".additionalItems", "getData", "ZodReadonly", "statusText", "data", "3BIImrA", "Values", "addCached", "ydd", "hasLoadedNamespace: i18n.languages were undefined or empty", "notifications/prompts/list_changed", "Create layer failed", " , params: { property: '", "#FF3399", "保存提示词模板失败。", "1701966asSQmn", "This node defaults to current layer + mask", "missingKeyHandler", "merge", "如何获取APIKey和API Secret", "propertyNames", "initializeResponseQueue", "broadcastManager", "unionErrors", " = +", "exception_message", """, "_def", "elicitation/create", "returnDetails", "已添加遮罩", " not implemented for node ", "Your Workflows", "execution_success", "createGlobalDispatcherForType", "def", " -> ", '" as the namespace "', "ComfyManager not found, cannot reboot", "Click to get RunningHub APIKey", "Invalid name: {{0}}", "updateMissing", "locale", "{3}", "Client does not support listing roots (required for ", "getSchema", "shift", "secure", " in ", "Invalid boundary type: {{type}}", "SDPPP 2.0 不再需要此节点", " items' ", "Use entire canvas", "pendingCount", "', missingProperty: '", "missingSchema", "); if (", " for (var ", " 1) { ", "local", "ConnectionClosed", " : ", "_getInvalidInput", '"; } ', "Error validating elicitation response: ", "unicode", "capacity", "Gateway timeout (504)", "Invalid graph definition: ", "comfy", "Layer not found: {{0}}", "async keyword in sync schema", " } else if ( ", "exports", ", limit: ", "defaultError", "Please provide prompt content.", "formatter", "pattern", " == '", "Send to Selection", "is a required property", "通道连接中...", "getClientCapabilities", "当前图层范围", "Running for {{duration}} secs, {{message}}", "alwaysSet", "useDefault", " && ( ", "Shortcut selection feature requires login", "sourceNodeId", "Generating...", ".data = ", "hasAction", "substring", "getCurrentNodeId", " , params: { passingSchemas: ", "loadResources", "未授权 (401)", "选择文件失败,请重试", "Quality {{percent}}%", "schemaUnknownRules", "promptIds", " == errors) { ", "checkState", "uxp", "Canvas", "2024-10-07", " ) { ", "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.", "当前选项:文件", "高级选图", "插件可能正在拦截 PS 快捷键... ", "clone", "pbt", "Username: {{username}}", "Output to:", " validate.errors = vErrors; return false; ", "Please provide a template name.", "获取工作流列表失败。", ").length ", "use", "stats", "addFormat", "strictKeywords", "[j])) { ", "nonpositive", "RunningHub - {{webappId}}", "common", "isRequest", "api", "%c ", " , validate.schema", "设为当前图层", "actions", "ads", "createStreamState", "_validateKeyword", "快捷键选图功能仅登陆后可用", "ZodDiscriminatedUnion", "isInitialized", "\\:\\:", "Outpaint (positive crop)", ".type || 'string'; if (", "datetime", "fast", "async schema referenced by sync schema", "reject", "Enter a pixel value greater than 0", "_error", "Gemini 2.5 Flash 图像", "valueSchema", "prevValid", "选区除外", " } ", "workflowManager", "Received host version from UXP:", "valueOf", "[object RegExp]", "executed", "MethodNotFound", "$async", "save", "找不到图层: {{0}}", " || ", "invalid_union_discriminator", "上传中,如果图片过大,可能会卡顿...", "coerceTypes", "tools", `Get image & -Limit image boundary`, "Invalid function return type", " } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ", "$comment", "avl", "Import as New Document", "hours", "getConnectedNodeIds", "key '", "maxTokens", "跳转到最后一个", " if (schema", "execution_interrupted", "Save and run immediately", "Elicitation response content does not match requested schema: ", "Unsupported image input type", "_refinement", "(为空)", "ajp", "Get layer info", "broadcast", "schemaErrorMap", "sd-ppp-static/sdppp_images/", "Smart Object Layer", "Negative Prompt", "Import from disk", "version", "sqr", "at least", "_requestMessageId", "My Templates", ") { ", "assertRequestHandlerCapability", "strictNumbers", "getNodeStore", "ulid", " = typeof ", "implements", " = [", "Action {{0}} was not found", "definition", "reload", "zero", "fewer", ".pi-sign-out", "nss", "正在等待图片上传...", "assertEqual", "apd", "parseInt", "fromCharCode", "getTransportInternal", "transport", "正在发送图像...", "getNodes API 调用失败 - {{reason}}", "getOwnPropertyNames", "skipKeywords", "isRoot", "?\\:\\:", "ZodSet", "label", "Retry", "同步当前内容", "items", "#/definitions/schemaArray", "resolveComponents", "Loading...", "describe", "ZodDate", "under", "reference", "var division", "当前选项:画布", "services", "Cannot access property/index ", "json", "rtl", "_onnotification", "second", "ComfyUI connection not configured yet. Please set the address first.", "RequestTimeout", "auto", "Failed to update the {{part}} prompt: no matching widget binding.", "element", "ComfyUI not ready", ") { ", "resources/list", "Success", "It seems you are nesting recursively key: ", "\\%25|\\%(?!", "Template applied.", "storage", "connectionManager", "defineProperty", "_limitProperties", "relativetime", "isBase64url", "call", "New Document", " element(s)", "newlayer_curlayer", "getLanguagePartFromCode", "_metaOpts", " from id ", "自动同步未打开", "failing", "创建文档失败", "$el", "idx", "append", "unrecognized_keys", "symbol", "ids", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "node_id", "exists", "Image input and prompt are required", "oneOf", "comfy_api_key", "Failed to fetch form data", " , rootData ) ", "选择素材来源", "var pattern", "Graph must have at least one node", "addResource", "hasLoadedNamespace: i18next was not initialized", "status API 调用失败 - HTTP 错误,状态: {{status}}", "IPV4ADDRESS", "ZodAny", "invalid_enum_value", "getCapabilities", "sdppp_assets", "ZodTuple", "Shift-click or right-click to toggle auto send", "AI使用的区域与最大尺寸控制", "#FF9933", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", "sdpppHandshake", "i18nFormat", "seconds", "Failed to create document from file", "每批图像数", "skipOnVariables", "root.refVal[0]", "loaded", "cimode", "nodeProxies", "_processInputParams", "revoke", "isTransportReady", "#FF3366", ".length > ", "spa", "findPath", "重启ComfyUI失败", "resources/unsubscribe", "getImage", "Invalid date", "[\\:\\/\\?\\#\\[\\]\\@]", "send", "当前选项:图层", "delete", "使用整个画布", " in key: ", "getFixedT", " = 0; ", " not found on node ", "Desire bounds is null", "usedLng", "获取账户信息失败", "observers", "Cannot forward to node ", "multipleOfPrecision", "ZodUnion", "jwt", "#33CC66", ' !== "object")', "获取像素失败: {{0}}", "customErrors", "refVal", "AbortError", "setupGraphStoreSync", "greater than ", "fallbackRequestHandler", "millisecond", "valueType", " validate.errors = [", "years", " , message: '", "#FF6633", `" keyword validation' `, ".length ", "segment", "ifClause", 'unknown format "', "less than", "#33CC33", " , data: ", "base64", "~standard", "]] === undefined ", "./api/userdata/workflows%2F.index.json", "以主图边界获取当前图层", "ignoreJSONStructure", " (Members only)", "=== 选项 ===", "_parseSync", "整个画布", "&filename=", "sam", "select", "sessionId", "brand", " = errors;var ", "/then", "assertIs", "Node definition not found for current node ", " not found for node ", "(typeof ", "unsetOutgoingNotificationInterceptor", '" ignored in schema at path "', ">", "Required", "sdppp/broadcast", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ", "copy", "exact", "zod", "asyncIterator", "useColors", "schemaHasRulesExcept", "uri-reference", "getNodes API failed - {{reason}}", " = true;", "postProcess", " = RULES.custom['", "缺少主图资源", "++) { var ", "indexOf", "[GraphStoreSynchronizer] Error processing store update for ", "lastPongReceived", "ping", "Google Gemini 图像生成器", " , ", "更多操作", " != 'number' || ", "Rescoped", "firebug", " , params: { allowedValues: schema", "heartbeatTimer", ".patternProperties", "{0,1}", "Date must be ", "; if (", "level", "拖拽图片到此处松开完成上传", "Confirm", `((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`, "PluralRules", "[^\\%\\[\\]\\:]", " if (! ", "ruleErr", "hasResourceBundle", "ZodOptional", "uuid", "returnedObjectHandler", "刷新工作流列表", "postProcessor", "schema", " === null || (", "initializeProducer", "文件未找到: {{path}}", "./sdppp_upload2", "actionHandlers", "Modify", "获取任务状态失败", ") { var err = ", "changeLanguage", "getProtocol", "resource_link", "Select layer", "([+-]\\d{2}:?\\d{2})", " , params: { allowedValue: schema", "externalListenMessageCallback", "i18next:", "/*# sourceURL=", "yds", "反向裁剪(Inpaint)", "#FF33CC", "widgets", "从磁盘上传", "remove", "Generate", "Images", "resolveRunImages", "channel", "rootId", "[^\\%\\/\\@]", "Stop all", "removed", "从磁盘获取", "keyword", "_requestHandlers", "startHeartbeat", "Unexpected dot segment condition", "nestingSuffix", "#9900CC", "Waiting for ComfyUI to finish connecting…", "requestId", "~validate", "([^0-9])", "split", "queuePrompt", "Failed to convert widget {0}:", " if (Array.isArray(", "extend", "ValidationError", ".length , ", "fail", "jsonPointers", "languageChanged", "Get selection failed", "rootData", "store:update:", "UNRESERVED", "openWorkflow", "every", "Default", "overwrite", "isTop", "formats", "Primary boundary", " === 'true' || ", "') ", "Unknown error", "cancelled", "addIssues", "missingKey", ") - division", "[0]; ", "{0,2}", "invalid-input", "getAccountStatus API 调用失败 - HTTP 错误,状态: {{status}}", "0?[1-9]", ") || ", "queues", "stopAll", "画布变动后自动运行", "Model with affordable price, abundant community applications", " === 'false' || ", "resolveImage", "map", "执行成功", ", received '", "No edge defined from ", "#0099FF", "Get pixel of {{0}} failed", "originalQueuePrompt", "Gateway error (502)", "_clientCapabilities", "initialized", "revocable", "maxProperties", "nodeId", "#CC9900", "string", "ZodIntersection", "milliseconds", "isULID", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", "true", " - no connection available", "使用教程", ") { if (vErrors === null) vErrors = ", "emit", "schemaExcl", "Get mask from Current Layer", "应用ID:", "; ", "date", "outgoingNotificationInterceptors", "keyPrefix", " = false; else if (", "realTransport", "coerceToTypes", "roots", "hasError", "registerDirectRequestHandler", "发送至选区", `获取图像 & -限制图像范围`, "create", "diff", "从文件打开图像", " != 'string') || ", "success", "Delete Template", "sendStreamRequestorRequest", "Create document", "lngs", "Selection mask", " if (!", " || validate.schema", "getState", "Layer not found {{0}}", "Clear selection", "resolved promise for", "languageUtils", "[UnexpectedJSONParseError]: ", " } } ", "Hold Shift for more options; Ctrl for single fetch", "extendTranslation", "PS图片", "点击移除本地文件", " , schema: ", "failed parsing options string in nesting for key ", "error", "compile", "off", "shu", "isNaN", "; else vErrors = null; } ", "images", "isOpen", " !== undefined && typeof ", "less than or equal to", "#00CCFF", " ) || ", "console", "cache", "ESCAPE", "catch", "OpenAI API error", "Max size (px)", "createAsyncIterator", "/patternProperties/", "missingRef", "#9933FF", "reconnected", "appendNamespaceToCIMode", "array", " delete ", "cacheInBuiltFormats", " / ", '" is used in schema at path "', "close", "Reverse", "isEmoji", "content", "ZodLazy", " === 0 || ", "getTextInfo", "])) { ", "Illegal input >= 0x80 (not a basic code point)", "/else", "self", "创建文档", "提示词模板", "mergeObjectAsync", "coerced", "Prompt", " = true; else if (typeof ", "Output to", "bigint", `" won't get resolved as namespace "`, "query", "schema is invalid: ", "nest", "var refVal", "InvalidRequest", "additionalItems", "forEach", "Store not found for ", "模板已删除。", "#3366FF", "ayp", "external", "交集或缩放目标为空", "notifications/resources/updated", "absolutePath", "prp", "del", "确定要删除此模板吗?", "audio", "_addCheck", "RelativeTimeFormat", "yhd", "transform", "typ", "superRefine", "removeNotificationHandler", "file://", "([01]\\d|2[0-3]):[0-5]\\d(:", "Outgoing notification interceptor failed: ", "splice", "Failed to pick file. Please try again.", "Merge group failed", " !== undefined)", " , params: { i: i, j: j } ", "Uploading...", " {} ", "fallbackNS", '$ref: validation keywords used in schema at path "', "negative", "lng", "Host's domain name can not be converted to ", "auz", "parse", "keyword schema is invalid: ", "getDefaultValuesFromSchema", "disconnect", "\\' is invalid' ", "registerDirectRequestHandlerGeneric", "removeDotSegments", "callValidate", "createTemporary", "sourceCode", "defaultVariables", "isSafeInteger", "createErrors", " if ( ", "none", "initAsync", "选择图像来源", '"; ', " != 'undefined' && ", "#6633FF", "add", "Opening workflow", "mountTo", "mesh", "status API failed - {{reason}}", "acy", "strip", "Set as Canvas", " = true; else if (!Array.isArray(schema", "toJSON", "notice", "'else'", "以当前图层边界获取当前图层", "510", "#FF0066", "Refresh", "baseId", "uiWeightSum", " != 'number') || ", "; if (!", "usePattern", "]; } else { ", "Cannot register capabilities after connecting to transport", "Number must be ", "regexpUnescape", "ZodNever", "msec", "图像质量 (%)", "Node not found", "尚未配置 ComfyUI 连接,请先设置地址。", "停止自动运行", "Please select the mask to get", 'did not save key "', "ZodNull", " , params: { multipleOf: ", "filename", "Failed to update the {{part}} prompt. Please try again.", "isInitializing", "actionManager", "Server does not support notifying about resources (required for ", "邮箱: {{email}}", "hrs", " than ", "prepareLoading", "subfolder", "Validation failed but no issues detected.", "ctx", "normalizeId", "normalizeDuration", "Enter your RunningHub API Key", ".schema = ", " === 1) ", "+\\.", "发送到PS", "正向裁剪(Outpaint)", "Range 1-100", "loadNamespaces", "pathname", "enum", "initializeConsumer", "unescapeFragment", " } } ", "正在使用本地文件", "Generation failed", " !== undefined) ; ", " must be number or boolean", "Connecting to ComfyUI...", "dataPathArr", "loadSchema", " Math.abs(Math.round(division", "_oninitialize", "_onclose", "当前选区", "Current Tasks:", ") { errors = ", "options.loadSchema should be a function", ") {", "Intersection results could not be merged", "activeState", "handleIncomingNotification", "properties", "processCode", "interpolator", "mountedEndpoints", "Upload aborted", "exactly equal to ", "getScriptPartFromCode", "undefined", "style", " return errors === 0; ", "valid", "_getCached", "pipe", "Not connected", "assertCapabilityForMethod", " ", "userAgent", "[^]", "Tutorial", "initializedStoreOnce", "Defaults using", "setNodeTitle", "port", "app.queuePrompt caught", "fullPath", "智能对象图层", "Cannot access data ", "headers", "optional", "precision", "Bounds", ".length == 0) {", " = e.errors; else throw e; } ", "output", "<", "interpolate", "MCP error ", "resource", "未知错误({{code}})", "posterIdentifier", "getPrototypeOf", "toString", ")) { if (vErrors === null) vErrors = ", "fullFilename", "; } ", "streamRequest", "number", " === false) ", 'Invalid input: must end with "', "schema $id is different from id", "outputs API failed - {{reason}}", "mountedTransports", "[i]; ", "getPath", "inline", "allOf", "Edit Template", "key", "fallbackNotificationHandler", "accessing an object - but returnObjects options is not enabled!", "Edge references unknown source node: ", "extendRefs", "No images", "connect", "overflow", "stringify", "activeWorkflow", "#CC33FF", "New Template", "$ref", "[A-Fa-f]", " throw new ValidationError(vErrors); ", "dir", "RULES", "load", "暂无默认模板。", "modifying", "readonly", "exactly", "ZodPromise", "getDefaultValueFromField", "partialBundledLanguages", "toQuotedString", "Comfy.userId", "sdppp", "Fit to canvas", "errToObj", "NOT_USERINFO", "varReplace", "Select Source", "Clear", "long", "day", "ayn", "Select Workflow", "如何获取APIKey", "waitingReads", " , message: 'should NOT be valid' ", "#FFCC33", "fragment", "apply", "生成中...", "缺少遮罩资源", "nonstrict", "__proxy_forward", "if (!", "mergeShapes", "listWorkflows", "lowerCaseLng", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "root", "buildAdjacencyList", "progress", "_opts", "shape", "#0033CC", "pbu", "find", " !== undefined) { ", "manuallyExtractDefaults", "logging", "queueLoad", "Client does not support elicitation (required for ", "ZodString", "getDefinition", "right", "Request timed out", "Failed to save prompt templates.", "updateKey", "无法写入{{part}}提示词,请稍后重试。", "status API failed - HTTP error! status: {{status}}", "仅选区范围", "{0,3}", "getConnectionToNodeInternal", "urn:uuid", "Failed to send response: ", "dev", "创建图层失败", "elicitation", "trim", "3rdParty", "escapeQuotes", "not_multiple_of", "sdk", "本节点默认继承:", "Channel connecting...", "#CC0066", "运行中...", "Edge references unknown target node: ", "Cancel", '[\\"]', "#3399FF", "++) { ", "Invalid discriminator value. Expected ", "需要提供图像和提示词", "payload", "replace", "assign", "不裁剪", "Server does not support notifying of tool list changes (required for ", "从 当前图层 获取遮罩", "#99CC00", "从 选区 获取遮罩", "wss", "Input not instance of ", "default is ignored for: ", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "; var ", "const", "ssh", "]) ", "Waiting in queue", "Uploader not set", "validateSchema", "Paste WebApp ID here", "Layer mask", " , message: 'should NOT have ", "Invalid literal value, expected ", "sdppp/abort", "Manage reusable prompt templates", "Module", "additionalProperties", "Expected ", "joinValues", "schema id must be string", " character(s)", "控件 {0} 转换失败:", "Press Enter to open app: {{appName}}", "' && !(typeof ", "%[EFef]", "Selected", "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "days", "invalid_date", "新增槽位", "Add Template", ".test(", "validateHandlerType", "_onrequest", "partial", "invalid_literal", "NOT_SCHEME", "主图边界", "2[0-4]", " , schema: validate.schema", " } ", "prompts", "_exclusiveLimit", " } ", "CurLayer", "选择模型", "get_layer_info: 需要 layer_identify", "sdppp/directRequest", "请填写模板名称。", "resources/templates/list", "toStringTag", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "Close", "silent", "unsetRequestHandler", "startsWith", "Use current layer", "modules", "name", "[\\/\\?]", "statements", "arrayToEnum", "Unable to reboot ComfyUI", "unknownFormats", " , message: 'should be ", "addEventListener", "Invalid input", "'then'", "uploadImage API failed - {{reason}}", "format", "handleIncomingRequest", "isValidLookup", "质量{{percent}}%", "setResolvedLanguage", "registerHandler", "ZodNullable", "pst", "加载中...", "prompt_id", "_responseHandlers", "HeartbeatTimeoutError", "pes", "catchall", "addMetaSchema", "#3300CC", "2025-03-26", "cuid", "(.+?)", "parseMissingKeyHandler", " , schemaPath: ", "[MCPMiddleware]", "http", " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ", "week", "Array must contain ", "自动同步: 关闭", "#FF9900", "请选择要获取的图像", "invalid_type", "_parse", " = true; if ( ", "selection", "exception", "点击使用当前选区", ` , message: 'should match "' + `, " if (true) { ", "contentMediaType", "pickLocalFile", " == errors) {", "INTERCEPTOR_ERROR", "abortAllRequests", '$ref: keywords ignored in schema at path "', "resetRegExp", " { keyword: '", "keywordValidate", "boolean", "else", "未找到图层 {0}", "invalid_union", "loopRequired", "Auto fetching…", "Enum", "nodeStores", "Invalid function arguments", "abort", "Get mask from Canvas", "cleanCode", " == 'string' && ", "setNotificationHandler", "languages", "namespace", "getProperty", "onmessage", "Server does not support notifying of prompt list changes (required for ", "curlayer_curlayer", "logger must implement log, warn and error methods", " must be number", "formatType", "round", "messageType", "issues", " = ", " %c", "图层遮罩", "waiting for queue prompt", " not found for current node ", "duration", ".length == 1) { ", ", '", "url", "Invalid action: {{action}}", "if (", "快捷键选图功能仅在插件窗口聚焦时可用", "ComfyUI failed to load, HTTP status code: {{code}}", "void", "Default Templates", "{0,4}", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", "getSuffixes", "resourceStore", "signal", "pluralResolver", "#33CC99", "dependencies", "init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting", "formatSeparator", "_compile", "addMessageEventListener", "nanoid", " ) ", "destroy", "_getType", "Current Selection", "body", "notifications/initialized", "#/definitions/stringArray", "nullish", "Set as Current Selection", "false", "responseSchema", "Cannot reboot because ComfyManager is missing", "Gemini 2.5 Flash Image", "forwardBroadcast", "Failed", "validate", "convert widget {0} failed:", "mask", "isURL", "errs__", "#CC0099", " if (typeof itemIndices[item] == 'number') { ", "#3399CC", "Invalid attempt to destructure non-iterable instance", "&subfolder=", " = errors; ", "Request interceptor failed for ", "#CCCC33", "unsetOutgoingRequestInterceptor", "relatedRequestId", ".hasOwnProperty(", " , params: { failingKeyword: ", ".dataPath = (dataPath || '') + ", "languageOnly", "未返回图片", "pre", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "reverse", ") vErrors.length = ", " = vErrors[", "); errors = vErrors.length; for (var ", "任务已取消", " is present' ", "ary", "MissingRef", "pending", "} else { errors = ", " , message: 'should NOT have more than ", "nodes", "minProperties", "prepend", "and", 'custom keyword "', "toLowerCase", "clearHeartbeatTimers", "$data", "nodeErrors", "path", " break; ", "Crop by selection", "checks", " reference.", "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", "限制图片尺寸", "userDefinedKeySeparator", "Converting circular structure to JSON", "Auto Sync: off", " , message: 'should NOT be ", " ) : ( (", "startTime", "[\\uE000-\\uF8FF]", ")) { ", "greater than or equal to ", "使用当前图层", "localRefs", "应用模板失败。", "defaultNS", "String must contain ", "mesh:workflow", "instructions", "colors", "left", "No preview content yet", "alg", '"number"', "Outgoing message:", "heartbeatTimeout", "]); ", "enabled", "生成失败", "transports", "extractFromKey", "http://json-schema.org/draft-07/schema#", "Mask", "ZodArray", "getConnectionInfo", "ayl", "loadLanguages", "iri", "Array.isArray(", "syncStoresToNewConnection", " = false; ", "returnTypeError", "longer", "nestingOptionsSeparator", " cannot be resolved", "没有链接图层: {{0}}", "+Alt reversed mask", "can't resolve reference ", "catchValue", "invalid_string", "supportedLngs", ".errors", " var err = ", ".validate; } if ( ", "无效边界: 左边必须小于右边,上边必须小于下边", "海量模型,稳定服务", "按选区裁剪", ";if (", "ZodVoid", " if (!", "AbortSignal is already aborted", "ZodNativeEnum", "不支持的图像输入类型", "#3333CC", " failed", "keyof", "#/definitions/nonNegativeInteger", " === undefined ", "subject", "added", "clear", "findIndex", " == 'number' ? ( (", "formatParams", "pctDecChars", "errorsText", "输出区域", "zh-CN", "maxItems", "cmp", "prefix", "设为画布", "app", "comfy-user", "getTransport", " , params: { type: '", "broadcastCurrentState", "_schemas", " ( ", "verbose", "proxy", "cacheKey", "Failed to open file as document: {{path}}", "请登陆后使用插件", "发送所有", "画布变更后自动运行工作流", "Exclude current layer", "aeb", "连接 ComfyUI 失败(HTTP {{code}})", " = errors; ", "closeWorkflow", "workflow-run", " , params: { missingProperty: '", "protocolVersion", ".errors; else vErrors = vErrors.concat(", "nan", "token", "Prompt content", "ownProperties", "running", "decline", "appendNamespaceToMissingKey", "translation", "isHeartbeatEnabled", "isDate", "connectedNodes", "forward", "passContext", "requestIdSeq", "getRunningRequestsCount", "varOccurences", "exactUsedKey", "作为新文档导入", "Task cancel failed: {{error}}", "absolute", "=startErrs", "上传失败,请重试", "当前图层边界", "管理 Comfy Simple 工作流的提示词片段。", "; if (vErrors !== null) { if (", " = false; if (e instanceof ValidationError) ", "11394180jkOfdO", "getStats", "setupTransportHandlers", "以画布边界获取当前图层", "if ( ", "streamRequestorHandlers", "]; if (", "getter", 'no schema with key or ref "', "ZodPipeline", " } } else { ", "lastIndex", "Click to restore default boundary", "_addSchema", " try { await ", "#0066FF", ".type", "#6600FF", "DateTimeFormat", "No store found for node ", "; else if (", "./sdppp-custom.js", "host", ", validate.root.schema);", "domainHost", "postProcessPassResolved", "Select a model", " === false || ", " !== undefined) { ", "has", "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "网关错误 (502)", "minimum", "_formats", "nsSeparator", " , params: { comparison: ", "Options", "info", "; }", "停止并取消全部", "toUnicode", "refine", " != 'boolean' && ", "return", " , params: { keyword: '", "Image quality (%)", "); for (var ", "Delete current", "_cleanupTimeout", "nullable", "Fetch canvas with primary boundary", "[\\.]", "Save current", "_fragments", "all", "optionsMap", "test", "logging/setLevel", "Remove slot", "schemaPath", "errorHandlers", "removeMessageEventListener", "hasLanguageSomeTranslations", "openWorkflowJSON", ") break; } ", "结果获取已中止", "https", "exclusiveMaximum", "No crop", "uploadComfyImageFromUXP", "File upload failed", "closeHandlers", " == 'number' || ", " == 'object' && !(", "nodeTransports", "count", "保存并立即执行", "Task cancelled", "node", ") { ", "exec_info", "Action {{0}} 未找到", "Failed to open image file: {{error}}", " else { ", "requestedSchema", "validateKeyword", "].propertyName = ", "authInfo", "sdppp-heartbeat", "humanize", "Task incomplete, current status: {{status}}", "unknown keyword: ", "too_small", "_path", "reduce", "getResource", "examples", "handleIncomingMessage", "isInt", "resources/read", "min", "errors", "合并组失败", "xmn", "mergeArray", "parentElement", "BigInt must be ", "-latn", "Action handler ", "Logout", "$schema", "var missing", "Google Gemini - 图片生成", "values", " validate.errors = null; return true; ", "getRegExp", "invalid_return_type", "pick", "getNode", "macro", "removeAdditional", "acw", "response", "broadcastHandlers", "'].definition; var ", "regExpMap", "Failed to apply template.", "isBase64", "默认模板", "以画布边界获取画布", "flags", "Jump to last", "HTTP URIs must have a host.", "interpolation", "currency", "{0,6}", " = undefined;", "{6}", " , message: 'should have ", `获取图像 & -裁剪选区遮罩`, "#6633CC", "任务执行失败: {{error}}", " has duplicate value ", "No workflows available.", " = undefined; ", " } ", "now", "handleAsObject", "not_finite", "[0-9A-Fa-f]", ` if (typeof item == 'string') item = '"' + item; `, " if (errors === 0) return data; ", " is already defined", "请选择要获取的遮罩", "patternProperties", "index", "run API failed - HTTP error! status: {{status}}", "__DEFAULT__", "maxValue", ".else", "ComfyUI server reconnecting", "Template removed.", "resolveRef", " = null; ", "getConnectionCount", " = false;for (var ", "float", "documentElement", "Document {{0}} not found", "color: ", "simplifyPluralSuffix", "bind", "Inpaint (reverse crop)", "Failed to request initial state for ", "从 画布 获取遮罩", "formatArgs", " = errors;", "reset=false but needsReset: ", "isEmpty", "writeOnly", "val is not a non-empty string or a valid number. val=", "maxTotalTimeout", "Local file", "lte", "当前图层", "No active layer", "uploadImage API failed - HTTP error! status: {{status}}", "warning", "value", "comfyAPI", " (division", "overloadTranslationOptionHandler", "hijacked", " === undefined) ", '" was not yet loaded', " || ! Object.prototype.hasOwnProperty.call(", " ) ", "exclIsNumber", "abv", "ZodNaN", "comfyAPI is not initialized, maybe comfyUI is too old", "管理可复用的提示词模板", "正在上传...", "#FF6600", "调整输入设置", "Invalid forward path for proxy action", "direction", "2.1.0", "/additionalProperties", "点此获取RunningHub APIKey", "NOT_PATH", "integer", "本地图片包", "initializeNodeStores", "lazycreate", "favorites", "names", "InternalError", "Your powerful node-based workflow engine", "iterator", "#FF00CC", "Rectangle coordinates required for create action", "Auto send disabled", "rest", "sdppp/streamRequest", "getNodes API failed - HTTP error! status: {{status}}", "apc", " = ''; ", " = errors; var ", " , parentSchema: validate.schema", " = true; } else { ", "innerType", "Auto-run workflow after changes...", "prev", "userinfo", "messagePoster", " else if (", " = !(false ", " | ", "用户名: {{username}}", "Prompts", " == 'boolean' || ", "2025-06-18", "run API 调用失败 - HTTP 错误,状态: {{status}}", "set", "uploadImage API 调用失败 - HTTP 错误,状态: {{status}}", '[\\"\\\\]', "toHash", "退出登录", " var ", "allServers", "reset", "未实现 (501)", "mergeObjectSync", "createInstance", "dataPath", "click to restore", "你的工作流", "Keyword ", "Unicode", "disable", "discriminator", "sdppp/streamResponse", "更多设置", "backend", "[i], ", "从 画布 获取图像", "负面提示词内容", "_key", "alert", "coerce", "saveWorkflow", "pluralCategories", "Internal ZodObject error: invalid unknownKeys value.", "Primary image resource is missing", " === null || ", "Incoming message:", "base64url", "dataProperties", "resources/subscribe", "=0; ", "stack", "newlayer_selection", ".errors); errors = vErrors.length; } ", "{2}", " var vErrors = null; ", "ordinal", "模板名称", "(new RegExp(", "alwaysFormat", "curr", "请输入大于 0 的像素值", "deepPartial", "scheme", "Auto send enabled", "新图层", "translator", "[\\@]", "enable", "workflows", "isInteger", ", deps: '", "email", " if (true) {", "How to get APIKey", "skipCopy", "_getId", "object", "missingKeyNoValueFallbackToKey", "Meta-schema for $data reference (JSON Schema extension proposal)", "strictDefaults", " for language ", " !== undefined ", "ZodEffects", "errorDataPath", "Intersect or scaledDesire is null", "getResourceBundle", "slice", "after app.queuePrompt errors: ", ".schemaPath === undefined) { ", "]; return false; ", "protocol", "unshift", "resolvedLanguage", "freeze", "combo", "本地视频", "Not a ZodError: ", "Not current document", "Email address's domain name can not be converted to ASCII via punycode: ", "No errors", "Unrecognized key(s) in object: ", "sourceType", "Current selection: Layer {{layerName}}", " not in path ", "pga", "graph", "/%2F", "Current layer", "minSize", "needsPlural", "dataLevel", "5NKjgFs", "画布边界", "obj", "Fetch canvas with canvas boundary", " , message: 'property name \\'", ", exclusive: ", "oninitialized", "handleDirectProxyForward", "URI is not a ", "设为当前选区", "hostVersion", " && !(", "implementInternalAction", "schemaHasRules", "kind", "Back", "ayh", "', depsCount: ", "multipleOf", " } }", "sendToolListChanged", "isArray", '" already exists', "Create guide frame", "ZodFunction", "messageQueue", "#9900FF", "getAllReachableNodes", "getRegisteredActions", "safeValue", "_timeoutInfo", "非当前文档", " } else { ", "refinement", " var errs_", "ComfyUI服务器重连中", "(\\.\\d+)?", "Select AI Service Provider", "abh", "minValue", "Email address's domain name can not be converted to ", "disconnected", "api/view?type=", "1213860ATAJVS", ` , message: 'should match format "`, "one", ") : ", "Limit image size", "__cycle__", "ZodBigInt", "compiling", "Input Setting", "fromCodePoint", "continueOnInterceptorError", ` + '" schema' `, "getPathExpr", "schema $id ignored", "_errorDataPathProperty", "men", "augment", "extra", "log", "_resetTimeout", "选区边界", "addNamespaces", "__esModule", "debugDisableHeartbeatResponse", "completion/complete", "get", "language", "Remote", "debouncedNotificationMethods", "readingCalls", "ZodError", "suffix", "目标边界为空", "defaultValue", "#FF0033", "__origin", "never", "callback", "meta-schema not available", "Resize document for preview", "ZodBranded", ", rootData) ", "languageChanging", "registerStreamRequestorHandler", "Email: {{email}}", "notifications/message", "__internal_requestInitialState_", "Invalid JSON-pointer: ", "addIssue", "finally", "_transport", "Import as Smart Object", "nonempty", "#CC00FF", "mailto", "interceptorTimeout", "implementAction", "新增模板", "已限定范围", " === '' ", "removeNamespaces", "objectKeys", "You are passing a wrong module! Please check the object you are passing to i18next.use()", "2.0", "click", "自动同步中…", "applyPostProcessor", "lastIndexOf", 'id "', "onprogress", "env", "arz", "assert", "other", "Status check aborted", "addLookupKeys", "未知错误", "_any", "Failed to send an error response: ", " = false; for (var ", "' } ", "run API failed - nodeInfoList unavailable. Please call getNodes() first.", ")) { var err = ", "Refreshing preview...", "setupGeneralBroadcastHandler", "编辑模板", " = null; try { ", "newlayer_canvas", "停止全部", "No active document", "invalid_intersection_types", "localeCompare", "defaultMeta", " = true; break; }", "namespaces", "PCT_ENCODED", "isIP", "isNotification", "constructor", "minLength", "任务取消失败: {{error}}", "Scan", "runningRequests", "ZodCatch", "选择 AI 服务提供商", "jsonrpc", "arrayKeywords", "inlineRefs", "++) if (equal(", "'[' + ", "_onprogress", "Aborted", "组 {{0}} 中没有第一个相关图层", "finished", "unescapePrefix", "当前无法应用模板。", "Async refinement encountered during synchronous parse operation. Use .parseAsync instead.", "result", "Get image from Current Layer", "Failed to get result: {{error}}", "sdppp 运行 Photoshop Action", "skips", "自动填入画布关闭", "var ", "; else vErrors = null; } ", "\\.\\d{", "ZodEnum", "allErrors", "请输入您的 Google API Key", " = false , ", "from", "removeResourceBundle", "offset", " == ", "notifications/roots/list_changed", "给发送的图片创建文档", "errorPath", "message", "_instructions", "sendLoggingMessage", "notifications/tools/list_changed", "Batch Count", "curlayer", "effect", "edges", "contextualErrorMap", "Action set {{0}} was not found", "escapeComponent", "Using local file", "创建参考线框架", "Notification interceptor failed for ", "Current selection: Layer", "Reset", "empty", "Layer {0} not found", "dataVar", "_onresponse", "validateStreamRequestorRequest", "forkResourceStore", "Google Gemini - Image Generation", "notificationsHandled", "smaller than", "addRule", "Selection boundary", "No videos yet", ")' returned an object instead of string.", "Positive Crop", "newdoc", "Hold Shift key to import as new document", ") break; ", ".call( ", " = false; break outer; } } } ", ", (dataPath || '')", "exactLength", "#0066CC", "saveMissing", "addSchema", "hour", " var startErrs", "curlayer_selection", "sendResourceListChanged", "property ", "设置图层的文本", "sdppp_widgetable_title", "onclose", "resetTimeoutOnProgress", "abortRequest", " throw new ValidationError([", "keySchema", "arq", "minute", "sort", "Workflow not found", " == null) ", "; else vErrors = vErrors.concat(", "resetStats", "toUpperCase", "AI 生成任务", "maximum", "afb", ") > 1e-", "Timeout", "Core schema meta-schema", "请求超时 (408)", "ZodLiteral", 'Only layer kind "TEXT" is supported, invalid layer: {{0}}', "InvalidParams", "\\$&", "ASCII"]; - return Tx = function() { - return o; - }, Tx(); -} -const nd = ox[a(1393)](a(1607)); -async function In() { +const au = ix[a(919)](a(2415)); +async function kn() { const o = a; - if (!window[o(472)]) return; - const x = new sd({ posterIdentifier: "comfy-uxp", messagePoster: (e) => { - window.uxpHost.postMessage(e, "*"); + if (!window[o(2458)]) return; + const x = new tu({ posterIdentifier: "comfy-uxp", messagePoster: (e) => { + const s = o; + window[s(2458)][s(2794)](e, "*"); }, addMessageEventListener: (e) => { const s = o, n = (i) => { - e(i[K(571)]); + e(i.data); }; - return window[s(1914)](s(2732), n), n; + return window[s(731)](s(1044), n), n; }, removeMessageEventListener: (e) => { const s = o; - window.removeEventListener(s(2732), e); + window[s(2234)](s(1044), e); } }); - x[o(2900)] = (e) => { - nd(o(3023), e); + x[o(934)] = (e) => { + au(o(2526), e); }; - const t = new ad({ name: o(431), version: "1.0.0" }, {}), r = new To(t); - return await r.connect(x), window.uxpHost.postMessage({ channel: o(2958), meshName: "comfy", action: o(1747), version: o(1617) }, "*"), await ke[o(1747)](o(1014), r); + const t = new eu({ name: "comfy-uxp", version: o(2319) }, {}), r = new _o(t); + return await r[o(1645)](x), window.uxpHost[o(2794)]({ channel: o(942), meshName: o(886), action: o(1645), version: o(1319) }, "*"), await Ie[o(1645)]("uxp", r); } -const od = Object[a(2534)](Object.defineProperty({ __proto__: null, connectUXP: In, mcpMesh: ke }, Symbol[a(1899)], { value: a(1864) })); -function En(o) { - const x = a, t = Ne[x(1064)] || Ne.extensionManager[x(713)], r = t[x(1750)]; - if (o && o[x(750)] && o[x(750)].id !== r[x(1682)].id) return; - const e = ke[x(2849)][x(1480)]()[x(2948)], s = ea(Ne[x(2546)], r); - Rn(s, e) && ke[x(2849)][x(964)]({ widgetableStructure: s }), ke.store[x(964)]({ widgetableValues: Nx(Ne[x(2546)]) }); +const ru = Object[a(1100)](Object[a(2796)]({ __proto__: null, connectUXP: kn, mcpMesh: Ie }, Symbol.toStringTag, { value: a(639) })); +function Pn(o) { + const x = a, t = Te[x(2542)] || Te.extensionManager.workflow, r = t[x(3176)]; + if (o && o[x(788)] && o.detail.id !== r[x(3266)].id) return; + const e = Ie[x(872)][x(1079)]().widgetableStructure, s = ea(Te.graph, r); + En(s, e) && Ie[x(872)][x(738)]({ widgetableStructure: s }), Ie[x(872)][x(738)]({ widgetableValues: Nx(Te[x(1843)]) }); } -E0[a(1914)](a(2864), En), E0[a(1914)](a(1068), () => { +R0[a(731)](a(693), Pn), R0.addEventListener(a(544), () => { const o = a; - ke.store[o(964)]({ widgetableValues: Nx(Ne.graph) }); + Ie.store[o(738)]({ widgetableValues: Nx(Te[o(1843)]) }); }); -let Xr = 0, Yr = !0, es = ""; -function Cn() { +let Yr = 0, es = !0, xs = ""; +function In() { const o = a; - requestAnimationFrame(Cn); - const x = Ne[o(1064)] || Ne[o(812)][o(713)], t = x.activeWorkflow, r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(2075)]) || "", s = (t == null ? void 0 : t.isPersisted) || !0; - if (r === Xr && e === es && s === Yr) return; - const n = Date[o(2356)](); - Xr = r, es = e, Yr = s; - const i = ea(Ne[o(2546)], t), c = Nx(Ne[o(2546)]); - ke.store[o(964)]({ widgetableStructure: i, widgetableValues: c }), console[o(2613)]("graph update cost " + (Date[o(2356)]() - n) + "ms"), setTimeout(() => { - const d = o; - if (t !== x[d(1750)]) return; - const u = ea(Ne.graph, t), l = Nx(Ne.graph); - Rn(u, i) && ke[d(2849)].setState({ widgetableStructure: u }), ke.store[d(964)]({ widgetableValues: l }); + requestAnimationFrame(In); + const x = Te[o(2542)] || Te[o(1797)][o(538)], t = x[o(3176)], r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(2474)]) || "", s = (t == null ? void 0 : t[o(1260)]) || !0; + if (r === Yr && e === xs && s === es) return; + const n = Date.now(); + Yr = r, xs = e, es = s; + const i = ea(Te[o(1843)], t), c = Nx(Te[o(1843)]); + Ie.store[o(738)]({ widgetableStructure: i, widgetableValues: c }), console[o(1635)](o(2586) + (Date.now() - n) + "ms"), setTimeout(() => { + const u = o; + if (t !== x[u(3176)]) return; + const f = ea(Te[u(1843)], t), l = Nx(Te.graph); + En(f, i) && Ie[u(872)][u(738)]({ widgetableStructure: f }), Ie[u(872)][u(738)]({ widgetableValues: l }); }, 800); } -requestAnimationFrame(Cn); -function Rn(o, x) { +requestAnimationFrame(In); +function En(o, x) { const t = a; - return o[t(925)][t(2910)] !== x.nodeIndexes[t(2910)] || JSON[t(1749)](o.nodeIndexes) !== JSON[t(1749)](x[t(925)]) || JSON[t(1749)](o[t(2066)]) !== JSON[t(1749)](x.nodes); + return o[t(2522)].length !== x[t(2522)][t(2710)] || JSON.stringify(o[t(2522)]) !== JSON[t(1031)](x[t(2522)]) || JSON[t(1031)](o.nodes) !== JSON.stringify(x[t(669)]); } -let xs = !1; -async function id() { +let ts = !1; +async function su() { const o = a; - if (xs) return Promise.resolve(); - E0[o(552)] && ke[o(2849)].setState({ comfyUserToken: E0.user }), xs = !0; + if (ts) return Promise[o(2457)](); + R0[o(1747)] && Ie[o(872)][o(738)]({ comfyUserToken: R0[o(1747)] }), ts = !0; } -ox.extend("comfy-entry"); -async function cd(o, x, t) { +ix[a(919)](a(1704)); +async function nu(o, x, t) { const r = a; - x[r(1914)](r(1796), ({ detail: n }) => { + x.addEventListener(r(2560), ({ detail: n }) => { const i = r; if (!n) return; - let c = 0, d = 0; - !isNaN(n[i(2398)] / n.max) && (c = Math[i(1987)](n[i(2398)] / n.max * 100)); - const u = n[i(2288)], l = graph[i(2066)][i(1801)]((f) => f.id == u); - if (l && l.order) { - const f = 100 / graph.nodes[i(2910)]; - d = Math[i(1987)](l[i(390)] * f) + (c ? c / 100 * f : 0); + let c = 0, u = 0; + !isNaN(n[i(2446)] / n.max) && (c = Math.round(n[i(2446)] / n[i(753)] * 100)); + const f = n[i(2480)], l = graph[i(669)][i(3146)]((d) => d.id == f); + if (l && l[i(1744)]) { + const d = 100 / graph[i(669)][i(2710)]; + u = Math.round(l[i(1744)] * d) + (c ? c / 100 * d : 0); } - ke[i(2849)][i(964)]({ progress: c, graphProgress: d }); - }), x[r(1914)](r(735), (n) => { + Ie[i(872)][i(738)]({ progress: c, graphProgress: u }); + }), x[r(731)](r(1227), (n) => { var c; const i = r; - (c = n[i(750)]) != null && c[i(2290)] && ke[i(2849)][i(964)]({ queueSize: n[i(750)].exec_info[i(2976)] }); - }), x[r(1914)]("execution_error", ({ detail: n }) => { + (c = n.detail) != null && c[i(725)] && Ie[i(872)][i(738)]({ queueSize: n.detail[i(725)][i(2201)] }); + }), x[r(731)](r(711), ({ detail: n }) => { const i = r; - if (ke[i(2849)][i(964)]({ executingNodeTitle: "", executingNodeID: "", lastError: n[i(592)] }), n[i(1192)]) { - const c = o.graph.nodes[i(1801)]((d) => d.id == n[i(1192)]); - ke.store.setState({ widgetableErrors: { [n[i(1192)]]: "[" + ((c == null ? void 0 : c[i(2877)]) || n[i(1192)]) + "]" + n[i(592)] } }); + if (Ie[i(872)][i(738)]({ executingNodeTitle: "", executingNodeID: "", lastError: n.exception_message }), n[i(666)]) { + const c = o.graph[i(669)][i(3146)]((u) => u.id == n.node_id); + Ie[i(872)][i(738)]({ widgetableErrors: { [n[i(666)]]: "[" + ((c == null ? void 0 : c.title) || n[i(666)]) + "]" + n.exception_message } }); } - }), x.addEventListener(r(2824), (n) => { - const i = r, c = n[i(750)], d = graph[i(2066)][i(1801)]((u) => u.id == c); - if (d) { - const u = 100 / graph.nodes.length; - ke.store[i(964)]({ executingNodeTitle: d.title, executingNodeID: d.id, graphProgress: Math.round(d[i(390)] * u) }); + }), x[r(731)](r(593), (n) => { + const i = r, c = n[i(788)], u = graph[i(669)].find((f) => f.id == c); + if (u) { + const f = 100 / graph[i(669)][i(2710)]; + Ie[i(872)].setState({ executingNodeTitle: u[i(2141)], executingNodeID: u.id, graphProgress: Math.round(u[i(1744)] * f) }); } - }), x[r(1914)](r(1090), () => { + }), x[r(731)]("execution_interrupted", () => { const n = r; - ke[n(2849)][n(964)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - }), x[r(1914)]("execution_start", ({ detail: n }) => { + Ie.store[n(738)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + }), x[r(731)]("execution_start", ({ detail: n }) => { const i = r; - ke.store[i(964)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date.now() }); + Ie[i(872)].setState({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date[i(3275)]() }); }); const e = /* @__PURE__ */ new Map(); - x[r(1914)](r(600), (n) => { + x[r(731)]("execution_success", (n) => { const i = r; - ke[i(2849)].setState({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - const c = (e[i(2620)](n[i(750)][i(1927)]) || [])[i(1429)]((d) => ({ url: d, thumbnail: d })); - Zi(n[i(750)].prompt_id, c), e[i(1239)](n[i(750)][i(1927)]); - }), x.addEventListener(r(1068), (n) => { - const i = r, c = e.get(n.detail[i(1927)]) || []; - n[i(750)][i(1717)] && Array[i(2573)](n[i(750)][i(1717)][i(1499)]) && n[i(750)][i(1717)][i(1499)][i(2910)] > 0 && c[i(816)](...n[i(750)][i(1717)].images.filter((d) => d[i(506)] == "output")[i(1429)]((d) => { - const u = i; - return location[u(527)] + location[u(1661)] + u(2594) + d[u(506)] + u(1286) + encodeURIComponent(d[u(1639)]) + (d.subfolder ? u(2042) + encodeURIComponent(d[u(1648)]) : ""); - })), n[i(750)][i(1717)] && Array[i(2573)](n[i(750)].output[i(1209)]) && n[i(750)].output.sdppp_assets.length > 0 && c[i(816)](...n[i(750)].output[i(1209)].map((d) => { - const u = i; - return location[u(527)] + location.pathname + u(1100) + encodeURIComponent(d); - })), e[i(2454)](n.detail[i(1927)], c); + Ie[i(872)][i(738)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + const c = (e[i(674)](n[i(788)].prompt_id) || [])[i(1930)]((u) => ({ url: u, thumbnail: u })); + Hi(n[i(788)][i(931)], c), e[i(875)](n[i(788)].prompt_id); + }), x.addEventListener(r(544), (n) => { + const i = r, c = e.get(n[i(788)][i(931)]) || []; + n.detail[i(1121)] && Array.isArray(n[i(788)].output[i(3222)]) && n[i(788)][i(1121)].images[i(2710)] > 0 && c[i(3062)](...n[i(788)][i(1121)][i(3222)].filter((u) => u[i(2076)] == i(1121)).map((u) => { + const f = i; + return location[f(1230)] + location[f(2167)] + f(1552) + u[f(2076)] + "&filename=" + encodeURIComponent(u[f(1165)]) + (u[f(1563)] ? "&subfolder=" + encodeURIComponent(u[f(1563)]) : ""); + })), n[i(788)][i(1121)] && Array.isArray(n[i(788)].output[i(1574)]) && n[i(788)].output[i(1574)][i(2710)] > 0 && c[i(3062)](...n[i(788)][i(1121)][i(1574)].map((u) => { + const f = i; + return location[f(1230)] + location.pathname + f(491) + encodeURIComponent(u); + })), e.set(n[i(788)][i(931)], c); }); let s = null; - x[r(1914)](r(563), (n) => { + x[r(731)]("reconnecting", (n) => { s = setTimeout(() => { const i = K; - ke[i(2849)][i(964)]({ comfyWSState: "reconnecting" }); + Ie.store[i(738)]({ comfyWSState: i(1097) }); }, 1e3); - }), x[r(1914)](r(1515), (n) => { + }), x[r(731)]("reconnected", (n) => { const i = r; - ke.store.setState({ comfyWSState: i(639) }), clearTimeout(s); + Ie[i(872)][i(738)]({ comfyWSState: i(1880) }), clearTimeout(s); }); } let $t = []; (async function() { var x, t, r, e, s, n; const o = a; - if (!(typeof gradioApp < "u")) { + if (typeof gradioApp == o(993)) { try { - const i = (t = (x = window[o(2399)]) == null ? void 0 : x[o(2161)]) == null ? void 0 : t[o(2161)], c = (e = (r = window[o(2399)]) == null ? void 0 : r.ui) == null ? void 0 : e.$el, d = (n = (s = window[o(2399)]) == null ? void 0 : s.api) == null ? void 0 : n[o(1039)]; - if (!i || !d || !c) throw new Error(o(2410)); - await id(), await In(), await cd(i, d, c), import(o(2231))[o(857)]((u) => { - u.default(xx, 2); + const i = (t = (x = window[o(1608)]) == null ? void 0 : x.app) == null ? void 0 : t[o(2012)], c = (e = (r = window[o(1608)]) == null ? void 0 : r.ui) == null ? void 0 : e[o(2787)], u = (n = (s = window[o(1608)]) == null ? void 0 : s[o(706)]) == null ? void 0 : n.api; + if (!i || !u || !c) throw new Error("comfyAPI is not initialized, maybe comfyUI is too old"); + await su(), await kn(), await nu(i, u, c), import(o(1821))[o(2517)]((f) => { + f[o(2485)](tx, 2); }); } catch (i) { - $t[o(816)](i[o(2491)] || i[o(2732)] || i); + $t[o(3062)](i[o(2101)] || i[o(1044)] || i); } - await new Promise((i) => setTimeout(i, 2e3)), $t.length && console[o(1493)]($t[0]); + await new Promise((i) => setTimeout(i, 2e3)), $t[o(2710)] && console[o(490)]($t[0]); } })(); diff --git a/package.json b/package.json index 238370f..cadceb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sdppp", - "version": "1.9.21", + "version": "2.0.0", "type": "module", "scripts": { "watch": "nodemon -w typescripts -e mjs,js,jsx,mts,ts,tsx,json,css,html -x node typescripts/src/build/index.build.ts", diff --git a/plugins/photoshop/dist/index.js b/plugins/photoshop/dist/index.js index 49842b1..82102d3 100644 --- a/plugins/photoshop/dist/index.js +++ b/plugins/photoshop/dist/index.js @@ -1 +1,3 @@ -"use strict";(()=>{var Ho=Object.create;var lo=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Vo=Object.getOwnPropertyNames;var Ko=Object.getPrototypeOf,Oo=Object.prototype.hasOwnProperty;var j=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var H=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Y=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Vo(e))!Oo.call(o,a)&&a!==t&&lo(o,a,{get:()=>e[a],enumerable:!(s=Fo(e,a))||s.enumerable});return o},co=(o,e,t)=>(Y(o,e,"default"),t&&Y(t,e,"default")),n=(o,e,t)=>(t=o!=null?Ho(Ko(o)):{},Y(e||!o||!o.__esModule?lo(t,"default",{value:o,enumerable:!0}):t,o));var uo=H((ee,po)=>{"use strict";po.exports=window.SDPPPInternal});var w=H((ce,ho)=>{"use strict";ho.exports=window.React});var l=H((pe,wo)=>{"use strict";wo.exports=window.ReactJSXRuntime});var Bo=H((it,_o)=>{"use strict";_o.exports=window.ReactDOMClient});var i={};co(i,n(uo(),1));var oo={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var eo={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var fo=typeof j<"u"?j:void 0,to="en";typeof navigator<"u"&&navigator.language?to=navigator.language=="zh-CN"?"zhcn":"en":fo&&(to=fo("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function p(o,...e){let t=to=="zhcn"?eo[o]:o in oo?oo[o]:o;if(!t)throw new Error(`i18n key not found: ${o}`);return t.replace(/{(\d+)}/g,function(s,a){return typeof e[a]<"u"?e[a]:s})}function mo(o){return o in eo}var vo=n(w(),1),go=n(l(),1),k=class extends vo.default.Component{render(){return(0,go.jsx)("div",{className:`action-button ${this.props.highlight?"highlight":""}`,onClick:this.props.onClick,children:this.props.children})}};var Po=n(w(),1),F=n(l(),1),z=class extends Po.default.Component{render(){let e=this.props.size||1;return(0,F.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,F.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,F.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z"})})})}};var yo=n(w(),1),V=n(l(),1),E=class extends yo.default.Component{render(){let e=this.props.size||1;return(0,V.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,V.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z"})})})}};var Co=n(w(),1),b=n(l(),1),y=class extends Co.default.Component{render(){let e=this.props.size||1;return(0,b.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,b.jsxs)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("path",{fill:"currentColor",d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z"}),(0,b.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.2 9.08L9.068 7 6.2 4.92v4.16zM5 4.214v5.574a.8.8 0 001.212.686l4.445-2.787a.8.8 0 000-1.372L6.212 3.527A.8.8 0 005 4.213z"})]})})}};var So=n(w(),1),K=n(l(),1),C=class extends So.default.Component{render(){let e=this.props.size||1;return(0,K.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,K.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,K.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M4.2 10.88L10.668 7 4.2 3.12v7.76zM3 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L4.212 1.727A.8.8 0 003 2.413z"})})})}};var d=n(l(),1),O=.6,N={LIST_ITEM:"client-list-item",LIST_ITEM_LEFT:"client-list-item-left",LIST_ITEM_RIGHT:"client-list-item-right",TIPS_ICON:"tips-icon",CHECKED:"checked"},no=({isChecked:o=!1,children:e,rightContent:t,onClick:s})=>(0,d.jsxs)("li",{className:`${N.LIST_ITEM}${o?` ${N.CHECKED}`:""}`,onClick:s,children:[(0,d.jsx)("sp-label",{className:N.LIST_ITEM_LEFT,children:e}),t&&(0,d.jsx)("div",{className:N.LIST_ITEM_RIGHT,children:t})]}),io=({path:o,dirname:e,onDirectorySet:t})=>(0,d.jsxs)(no,{onClick:()=>{if(o==="../"){let a=e||"",c=a.lastIndexOf("/");c===-1||a[c-1]==="/"?t?.(""):t?.(a.slice(0,c))}else t?.(o)},children:[(0,d.jsx)(E,{size:O}),(0,d.jsx)("div",{style:{marginLeft:3},children:o.slice(0,-1).split("/").pop()})]}),ko=({isChecked:o,onEdit:e,onAutoRun:t,onRun:s})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:N.TIPS_ICON,children:(0,d.jsx)(z,{size:O,onClick:e})}),t&&(0,d.jsx)(k,{highlight:o,onClick:t,children:(0,d.jsx)(y,{size:O})}),(0,d.jsx)(k,{onClick:s,children:(0,d.jsx)(C,{size:O})})]}),bo=({isChecked:o,workflow:e,onRun:t,setEditorMode:s})=>{let{setAutoRunning:a,workflowAgentSID:c}=(0,i.useSDPPPContext)(),{openWorkflow:g}=(0,i.useSDPPPComfyCaller)(),m=()=>{s(!0),g(c,e.path)};return(0,d.jsx)(no,{isChecked:o,rightContent:(0,d.jsx)(ko,{isChecked:o,onEdit:m,onAutoRun:()=>{a(o?null:{type:"workflow",value:e.path})},onRun:()=>t(e.path)}),onClick:m,children:e.error?e.error.replace("sdppp PS side error:",""):e.path.split("/").pop()})},ro=({onRun:o,path:e,title:t,setEditorMode:s})=>{let{openWorkflow:a}=(0,i.useSDPPPComfyCaller)(),{workflowAgentSID:c}=(0,i.useSDPPPContext)(),g=async()=>{e&&await a(c,e),s(!0)};return(0,d.jsx)(no,{rightContent:(0,d.jsx)(ko,{onEdit:g,onRun:o}),onClick:g,children:t})};var v=n(l(),1),Xo=({setEditorMode:o})=>{let{autoRunning:e,workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runWorkflow:s,runPage:a}=(0,i.useSDPPPComfyCaller)(),{workflows:c,workflowsError:g,currentViewingDirectory:m,setCurrentViewingDirectory:h,showingList:f}=(0,i.useSDPPPWorkflowList)(),S=null;return g?(0,v.jsx)("div",{className:"workflow-list",children:(0,v.jsx)("sp-label",{children:g})}):(0,v.jsxs)("div",{className:"workflow-list",children:[(0,v.jsxs)("ul",{className:"client-list",children:[m?(0,v.jsx)(io,{path:"../",dirname:m.slice(0,-1),onDirectorySet:U=>{h(U)}},m):null,f.map(U=>{let A=U.path,Go=c[A],Uo=e?.value==A;return U.isDir?(0,v.jsx)(io,{path:A,dirname:m.slice(0,-1),onDirectorySet:J=>{h(J)}},A):(0,v.jsx)(bo,{setEditorMode:o,isChecked:Uo,workflow:Go,onRun:async J=>{await s(J)}},A)})]}),(0,v.jsx)("sp-divider",{}),(0,v.jsxs)("ul",{className:"client-list",children:[(0,v.jsx)(ro,{setEditorMode:o,path:"",title:p("### Active Workflow ###"),onRun:async()=>{await a(t)}}),(0,v.jsx)(ro,{setEditorMode:o,path:"sdppp://Sample_SDXL.json",title:p("### Example SDXL ###"),onRun:async()=>{await a(t)}})]}),e?.type=="workflow"?(0,v.jsx)("sp-label",{class:"autorun-desc",children:p("auto run workflow [{0}] after change..",c[e?.value]?.path)}):""]})},Io=Xo;var M=n(w(),1);var P=n(w(),1);var Lo=n(w(),1),X=n(l(),1),_=class extends Lo.default.Component{render(){let e=this.props.size||1;return(0,X.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,X.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,X.jsx)("path",{fill:"currentColor",d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z"})})})}};var Do=n(w(),1),I=n(l(),1),B=class extends Do.default.Component{render(){return(0,I.jsx)("div",{slot:"icon",className:"sdppp-icon",style:{strokeWidth:1},children:(0,I.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M11.083 12.25H2.917a1.167 1.167 0 01-1.167-1.167V2.917A1.167 1.167 0 012.917 1.75h6.416l2.917 2.917v6.416a1.167 1.167 0 01-1.167 1.167z"}),(0,I.jsx)("path",{d:"M9.917 12.25V7.583H4.083v4.667M4.083 1.75v2.917H8.75"})]})})}};var Ro=n(w(),1),L=n(l(),1),Q=class extends Ro.default.Component{render(){return(0,L.jsxs)("div",{slot:"icon",className:"sdppp-icon",children:[(0,L.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5.2 10.88L11.668 7 5.2 3.12v7.76zM4 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L5.212 1.727A.8.8 0 004 2.413zM1.5 1.6a.6.6 0 01.6.6v9.6a.6.6 0 11-1.2 0V2.2a.6.6 0 01.6-.6z"}),(0,L.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M.963 1.932a.6.6 0 01.805-.268l1 .5a.6.6 0 01-.536 1.073l-1-.5a.6.6 0 01-.269-.805zM3.037 11.132a.6.6 0 01-.269.805l-1 .5a.6.6 0 01-.536-1.073l1-.5a.6.6 0 01.805.268z"})]}),this.props.count]})}};var xo=n(w(),1),D=n(l(),1),T=class extends xo.default.Component{render(){return(0,D.jsx)("div",{slot:"icon",className:"sdppp-icon",style:{strokeWidth:1},children:(0,D.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,D.jsx)("path",{transform:"scale(0.7)",fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z"}),(0,D.jsx)("path",{transform:"scale(0.5) translate(12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z"})]})})}};var Mo=n(w(),1),R=n(l(),1),$=class extends Mo.default.Component{render(){return(0,R.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,R.jsxs)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,R.jsx)("path",{d:"M11.7879 2.2121C12.0732 2.49737 12.0732 2.96723 11.7879 3.2525L3.2525 11.7879C2.96723 12.0732 2.49737 12.0732 2.2121 11.7879C1.92684 11.5026 1.92684 11.0328 2.2121 10.7475L10.7475 2.2121C11.0328 1.92684 11.5026 1.92684 11.7879 2.2121Z",fill:"currentColor"}),(0,R.jsx)("path",{d:"M2.2121 2.2121C2.49737 1.92684 2.96723 1.92684 3.2525 2.2121L11.7879 10.7475C12.0732 11.0328 12.0732 11.5026 11.7879 11.7879C11.5026 12.0732 11.0328 12.0732 10.7475 11.7879L2.2121 3.2525C1.92684 2.96723 1.92684 2.49737 2.2121 2.2121Z",fill:"currentColor"})]})})}};var Ao=n(w(),1),q=n(l(),1),Z=class extends Ao.default.Component{render(){return(0,q.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,q.jsx)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,q.jsx)("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:"currentColor"})})})}};var zo=n(w(),1),x=n(l(),1),W=class extends zo.default.Component{render(){return(0,x.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,x.jsxs)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("path",{d:"M2.35 10.95L3.05 11.65L11.65 3.05L10.95 2.35L2.35 10.95Z",fill:"currentColor"}),(0,x.jsx)("path",{d:"M7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14ZM7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13Z",fill:"currentColor"})]})})}};var r=n(l(),1);var Qo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{saveWorkflow:s,reopenWorkflow:a}=(0,i.useSDPPPComfyCaller)(),c=(0,P.useCallback)(async()=>{await s(t)},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:c,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(B,{})})};var $o=({onMouseEnter:o,onMouseLeave:e})=>{let{interrupt:t}=(0,i.useSDPPPComfyCaller)(),{clearQueue:s}=(0,i.useSDPPPComfyCaller)(),a=(0,P.useCallback)(async()=>{await s(),await t()},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:a,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(W,{})})},qo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{reopenWorkflow:s}=(0,i.useSDPPPComfyCaller)(),a=(0,P.useCallback)(()=>{s(t)},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:a,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(_,{})})};var Zo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t,autoRunning:s,setAutoRunning:a}=(0,i.useSDPPPContext)();return(0,r.jsx)("sp-action-button",{class:s?.value==t?"highlight":"",onClick:()=>{s?.value==t?a(null):a({type:"page",value:t})},onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(y,{})})},Jo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t,webviewAgentSID:s,toggleWebviewDialog:a}=(0,i.useSDPPPContext)(),c=t==s;return(0,r.jsx)("sp-action-button",{...c?{}:{disabled:!0},onClick:()=>{a()},title:c?p("Edit in ComfyUI"):p("disabled when running in browser page"),onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(T,{})})},Yo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runPage:s}=(0,i.useSDPPPComfyCaller)();return(0,r.jsx)("sp-action-button",{onClick:()=>{s(t)},onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(C,{})})},jo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runPage:s}=(0,i.useSDPPPComfyCaller)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,2)},onMouseEnter:o,onMouseLeave:e,children:"x2"}),(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,5)},onMouseEnter:o,onMouseLeave:e,children:"x5"}),(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,9)},onMouseEnter:o,onMouseLeave:e,children:"x9"})]})};function Eo({WorkflowEditPhotoshop:o}){let{workflowAgentSID:e,autoRunning:t}=(0,i.useSDPPPContext)(),{ssid:s,queueSize:a}=(0,i.useAgentState)(e),{lastError:c,progress:g,executingNodeTitle:m}=(0,i.useAgentState)(e),[h,f]=(0,P.useState)(null),S=(0,P.useMemo)(()=>h=="save"?p("Save workflow to ComfyUI"):h=="refresh"?p("Reload workflow"):h=="stopAndCancel"?p("Stop and cancel all"):h=="autoRun"?t?p("Stop auto run"):p("Start auto running after change"):h=="edit"?p("Edit in ComfyUI"):h=="run"?p("Run workflow"):h=="runMulti"?p("Run workflow xN"):"",[h,p]);return(0,P.useMemo)(()=>(0,r.jsxs)("div",{className:"workflow-edit-wrap",children:[(0,r.jsx)("div",{className:"workflow-edit-top",children:(0,r.jsxs)("div",{className:"workflow-edit-controls",children:[(0,r.jsxs)("div",{className:"workflow-edit-controls-left",children:[(0,r.jsxs)("div",{className:"workflow-edit-button-line workflow-edit-button-lineone",children:[(0,r.jsxs)("div",{className:"workflow-edit-button-line-left",children:[(0,r.jsx)(Qo,{onMouseEnter:()=>f("save"),onMouseLeave:()=>f(null)}),(0,r.jsx)(qo,{onMouseEnter:()=>f("refresh"),onMouseLeave:()=>f(null)})]}),(0,r.jsxs)("div",{className:"workflow-edit-button-line-right",children:[(0,r.jsx)($o,{onMouseEnter:()=>f("stopAndCancel"),onMouseLeave:()=>f(null)}),(0,r.jsx)(Zo,{onMouseEnter:()=>f("autoRun"),onMouseLeave:()=>f(null)})]})]}),(0,r.jsxs)("div",{className:"workflow-edit-button-line workflow-edit-controls-linetwo",children:[(0,r.jsxs)("div",{className:"workflow-run-status",children:[c?(0,r.jsx)("sp-label",{class:"error-label",children:c}):"",!c&&!m&&t?(0,r.jsx)("sp-label",{children:p("auto run workflow after change..")}):"",!c&&!m&&S?(0,r.jsx)("sp-label",{children:S}):""]}),(0,r.jsx)(Jo,{onMouseEnter:()=>f("edit"),onMouseLeave:()=>f(null)})]})]}),(0,r.jsx)("div",{className:"workflow-edit-controls-center",children:(0,r.jsx)(Yo,{onMouseEnter:()=>f("run"),onMouseLeave:()=>f(null)})}),(0,r.jsx)("div",{className:"workflow-edit-controls-right",children:(0,r.jsx)(jo,{onMouseEnter:()=>f("runMulti"),onMouseLeave:()=>f(null)})})]})}),(0,r.jsx)("sp-divider",{}),(0,r.jsx)(o,{})]}),[s,a,h,t,c,g,m,S,o])}globalThis.sdpppX=globalThis.sdpppX||{};var so=globalThis.sdpppX;var u=n(l(),1);function No({connectState:o,AddressBar:e,WorkflowEditPhotoshop:t}){let[s,a]=(0,M.useState)(!1),{workflowAgentSID:c,webviewAgentSID:g,lastConnectErrorMessage:m}=(0,i.useSDPPPContext)(),h=s?1:0,[f,S]=(0,M.useState)(!1);return(0,M.useEffect)(()=>{c?S(c!=g):f&&a(!1)},[c]),(0,M.useEffect)(()=>{o==="disconnected"&&a(!1)},[o]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.Promote,{}),(0,u.jsx)("div",{className:"header-container",children:(0,u.jsxs)("div",{className:"connect-box",children:[so.logo?(0,u.jsx)("img",{src:so.logo,alt:"logo",style:{width:"28px",height:"28px",cursor:"pointer",marginRight:"2px"},title:p("Back to workflow list"),onClick:()=>{a(!1)}}):s?(0,u.jsx)("sp-action-button",{onClick:()=>{a(!1)},children:"\u2190"}):(0,u.jsx)("div",{className:"status-bar "+o,children:(0,u.jsx)("div",{className:"status-icon",title:m?.toString()||p(o),children:"\u2B24"})}),(0,u.jsx)(e,{})]})}),m?(0,u.jsx)("div",{children:(0,u.jsx)("sp-label",{class:"error-label",children:mo(m)?p(m):m})}):"",o==="connected"&&(0,u.jsxs)("div",{className:"panel-body",children:[(0,u.jsx)("div",{className:"editor-card",style:h===0?{}:{display:"none"},children:(0,u.jsx)("div",{className:"comfy-list-wrap",children:(0,u.jsx)(Io,{setEditorMode:a})})}),(0,u.jsx)("div",{className:"editor-card",style:s?{}:{display:"none"},children:s&&c&&(0,u.jsx)(Eo,{WorkflowEditPhotoshop:t})})]})]})}var G=n(l(),1);function ao(){return(0,G.jsx)(i.SDPPPProvider,{loginAppID:"",children:(0,G.jsx)("div",{className:"container",children:(0,G.jsx)(i.SDPPP,{renderContent:(o,e,t)=>(0,G.jsx)(No,{connectState:o,AddressBar:e,WorkflowEditPhotoshop:t})})})})}var To=n(Bo(),1),Wo=n(l(),1);globalThis.sdppp=globalThis.sdppp||{};globalThis.sdppp.renderPhotoshopPlugin=o=>{(0,To.createRoot)(o).render((0,Wo.jsx)(ao,{}))};})(); +"use strict";(()=>{var Ho=Object.create;var lo=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Vo=Object.getOwnPropertyNames;var Ko=Object.getPrototypeOf,Oo=Object.prototype.hasOwnProperty;var j=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var H=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Y=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Vo(e))!Oo.call(o,a)&&a!==t&&lo(o,a,{get:()=>e[a],enumerable:!(s=Fo(e,a))||s.enumerable});return o},co=(o,e,t)=>(Y(o,e,"default"),t&&Y(t,e,"default")),n=(o,e,t)=>(t=o!=null?Ho(Ko(o)):{},Y(e||!o||!o.__esModule?lo(t,"default",{value:o,enumerable:!0}):t,o));var uo=H((ee,po)=>{"use strict";po.exports=window.SDPPPInternal});var w=H((ce,ho)=>{"use strict";ho.exports=window.React});var l=H((pe,wo)=>{"use strict";wo.exports=window.ReactJSXRuntime});var _o=H((it,To)=>{"use strict";To.exports=window.ReactDOMClient});var i={};co(i,n(uo(),1));var oo={"SDPPP Get Document":"DEPRECATED! Get Document","SDPPP Get Layer By ID":"DEPRECATED! Get Layer","SDPPP Get Linked Layers":"DEPRECATED! Get Linked Layers","SDPPP Get Layers In Group":"DEPRECATED! Get Layers In Group","SDPPP Get Text From Layer":"DEPRECATED! Get Text From Layer","SDPPP Parse Layer Info":"DEPRECATED! Parse Layer Info","SDPPP Get Selection":"DEPRECATED! Get Selection","SDPPP Get Image From Photoshop":"DEPRECATED! Get Image From Photoshop","SDPPP Send Images To Photoshop":"DEPRECATED! Send Images To Photoshop","SDPPP Send Text To Layer":"DEPRECATED! Send Text To Layer","SDPPP Select Layer And Run PS Action":"DEPRECATED! Select Layer And Run PS Action","Photoshop Disconnected!":`Photoshop Disconnected! +(2.0+ use LoadImage node)`};var eo={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u5E9F\u5F03\u8282\u70B9! \u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u5E9F\u5F03\u8282\u70B9! \u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":`Photoshop \u672A\u8FDE\u63A5\uFF01 +(2.0+ \u8BF7\u6539\u7528LoadImage\u8282\u70B9)`,rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var fo=typeof j<"u"?j:void 0,to="en";typeof navigator<"u"&&navigator.language?to=navigator.language=="zh-CN"?"zhcn":"en":fo&&(to=fo("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function p(o,...e){let t=to=="zhcn"?eo[o]:o in oo?oo[o]:o;if(!t)throw new Error(`i18n key not found: ${o}`);return t.replace(/{(\d+)}/g,function(s,a){return typeof e[a]<"u"?e[a]:s})}function mo(o){return o in eo}var vo=n(w(),1),go=n(l(),1),k=class extends vo.default.Component{render(){return(0,go.jsx)("div",{className:`action-button ${this.props.highlight?"highlight":""}`,onClick:this.props.onClick,children:this.props.children})}};var Po=n(w(),1),F=n(l(),1),M=class extends Po.default.Component{render(){let e=this.props.size||1;return(0,F.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,F.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,F.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z"})})})}};var yo=n(w(),1),V=n(l(),1),z=class extends yo.default.Component{render(){let e=this.props.size||1;return(0,V.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,V.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z"})})})}};var Co=n(w(),1),b=n(l(),1),y=class extends Co.default.Component{render(){let e=this.props.size||1;return(0,b.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,b.jsxs)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("path",{fill:"currentColor",d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z"}),(0,b.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.2 9.08L9.068 7 6.2 4.92v4.16zM5 4.214v5.574a.8.8 0 001.212.686l4.445-2.787a.8.8 0 000-1.372L6.212 3.527A.8.8 0 005 4.213z"})]})})}};var So=n(w(),1),K=n(l(),1),C=class extends So.default.Component{render(){let e=this.props.size||1;return(0,K.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,K.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,K.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M4.2 10.88L10.668 7 4.2 3.12v7.76zM3 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L4.212 1.727A.8.8 0 003 2.413z"})})})}};var d=n(l(),1),O=.6,N={LIST_ITEM:"client-list-item",LIST_ITEM_LEFT:"client-list-item-left",LIST_ITEM_RIGHT:"client-list-item-right",TIPS_ICON:"tips-icon",CHECKED:"checked"},no=({isChecked:o=!1,children:e,rightContent:t,onClick:s})=>(0,d.jsxs)("li",{className:`${N.LIST_ITEM}${o?` ${N.CHECKED}`:""}`,onClick:s,children:[(0,d.jsx)("sp-label",{className:N.LIST_ITEM_LEFT,children:e}),t&&(0,d.jsx)("div",{className:N.LIST_ITEM_RIGHT,children:t})]}),io=({path:o,dirname:e,onDirectorySet:t})=>(0,d.jsxs)(no,{onClick:()=>{if(o==="../"){let a=e||"",c=a.lastIndexOf("/");c===-1||a[c-1]==="/"?t?.(""):t?.(a.slice(0,c))}else t?.(o)},children:[(0,d.jsx)(z,{size:O}),(0,d.jsx)("div",{style:{marginLeft:3},children:o.slice(0,-1).split("/").pop()})]}),ko=({isChecked:o,onEdit:e,onAutoRun:t,onRun:s})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:N.TIPS_ICON,children:(0,d.jsx)(M,{size:O,onClick:e})}),t&&(0,d.jsx)(k,{highlight:o,onClick:t,children:(0,d.jsx)(y,{size:O})}),(0,d.jsx)(k,{onClick:s,children:(0,d.jsx)(C,{size:O})})]}),bo=({isChecked:o,workflow:e,onRun:t,setEditorMode:s})=>{let{setAutoRunning:a,workflowAgentSID:c}=(0,i.useSDPPPContext)(),{openWorkflow:g}=(0,i.useSDPPPComfyCaller)(),m=()=>{s(!0),g(c,e.path)};return(0,d.jsx)(no,{isChecked:o,rightContent:(0,d.jsx)(ko,{isChecked:o,onEdit:m,onAutoRun:()=>{a(o?null:{type:"workflow",value:e.path})},onRun:()=>t(e.path)}),onClick:m,children:e.error?e.error.replace("sdppp PS side error:",""):e.path.split("/").pop()})},ro=({onRun:o,path:e,title:t,setEditorMode:s})=>{let{openWorkflow:a}=(0,i.useSDPPPComfyCaller)(),{workflowAgentSID:c}=(0,i.useSDPPPContext)(),g=async()=>{e&&await a(c,e),s(!0)};return(0,d.jsx)(no,{rightContent:(0,d.jsx)(ko,{onEdit:g,onRun:o}),onClick:g,children:t})};var v=n(l(),1),Xo=({setEditorMode:o})=>{let{autoRunning:e,workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runWorkflow:s,runPage:a}=(0,i.useSDPPPComfyCaller)(),{workflows:c,workflowsError:g,currentViewingDirectory:m,setCurrentViewingDirectory:h,showingList:f}=(0,i.useSDPPPWorkflowList)(),S=null;return g?(0,v.jsx)("div",{className:"workflow-list",children:(0,v.jsx)("sp-label",{children:g})}):(0,v.jsxs)("div",{className:"workflow-list",children:[(0,v.jsxs)("ul",{className:"client-list",children:[m?(0,v.jsx)(io,{path:"../",dirname:m.slice(0,-1),onDirectorySet:U=>{h(U)}},m):null,f.map(U=>{let x=U.path,Go=c[x],Uo=e?.value==x;return U.isDir?(0,v.jsx)(io,{path:x,dirname:m.slice(0,-1),onDirectorySet:J=>{h(J)}},x):(0,v.jsx)(bo,{setEditorMode:o,isChecked:Uo,workflow:Go,onRun:async J=>{await s(J)}},x)})]}),(0,v.jsx)("sp-divider",{}),(0,v.jsxs)("ul",{className:"client-list",children:[(0,v.jsx)(ro,{setEditorMode:o,path:"",title:p("### Active Workflow ###"),onRun:async()=>{await a(t)}}),(0,v.jsx)(ro,{setEditorMode:o,path:"sdppp://Sample_SDXL.json",title:p("### Example SDXL ###"),onRun:async()=>{await a(t)}})]}),e?.type=="workflow"?(0,v.jsx)("sp-label",{class:"autorun-desc",children:p("auto run workflow [{0}] after change..",c[e?.value]?.path)}):""]})},Io=Xo;var E=n(w(),1);var P=n(w(),1);var Do=n(w(),1),X=n(l(),1),T=class extends Do.default.Component{render(){let e=this.props.size||1;return(0,X.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,X.jsx)("svg",{width:20*e,height:20*e,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,X.jsx)("path",{fill:"currentColor",d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z"})})})}};var Lo=n(w(),1),I=n(l(),1),_=class extends Lo.default.Component{render(){return(0,I.jsx)("div",{slot:"icon",className:"sdppp-icon",style:{strokeWidth:1},children:(0,I.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M11.083 12.25H2.917a1.167 1.167 0 01-1.167-1.167V2.917A1.167 1.167 0 012.917 1.75h6.416l2.917 2.917v6.416a1.167 1.167 0 01-1.167 1.167z"}),(0,I.jsx)("path",{d:"M9.917 12.25V7.583H4.083v4.667M4.083 1.75v2.917H8.75"})]})})}};var Ro=n(w(),1),D=n(l(),1),Q=class extends Ro.default.Component{render(){return(0,D.jsxs)("div",{slot:"icon",className:"sdppp-icon",children:[(0,D.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,D.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5.2 10.88L11.668 7 5.2 3.12v7.76zM4 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L5.212 1.727A.8.8 0 004 2.413zM1.5 1.6a.6.6 0 01.6.6v9.6a.6.6 0 11-1.2 0V2.2a.6.6 0 01.6-.6z"}),(0,D.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M.963 1.932a.6.6 0 01.805-.268l1 .5a.6.6 0 01-.536 1.073l-1-.5a.6.6 0 01-.269-.805zM3.037 11.132a.6.6 0 01-.269.805l-1 .5a.6.6 0 01-.536-1.073l1-.5a.6.6 0 01.805.268z"})]}),this.props.count]})}};var Ao=n(w(),1),L=n(l(),1),B=class extends Ao.default.Component{render(){return(0,L.jsx)("div",{slot:"icon",className:"sdppp-icon",style:{strokeWidth:1},children:(0,L.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{transform:"scale(0.7)",fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z"}),(0,L.jsx)("path",{transform:"scale(0.5) translate(12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z"})]})})}};var Eo=n(w(),1),R=n(l(),1),$=class extends Eo.default.Component{render(){return(0,R.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,R.jsxs)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,R.jsx)("path",{d:"M11.7879 2.2121C12.0732 2.49737 12.0732 2.96723 11.7879 3.2525L3.2525 11.7879C2.96723 12.0732 2.49737 12.0732 2.2121 11.7879C1.92684 11.5026 1.92684 11.0328 2.2121 10.7475L10.7475 2.2121C11.0328 1.92684 11.5026 1.92684 11.7879 2.2121Z",fill:"currentColor"}),(0,R.jsx)("path",{d:"M2.2121 2.2121C2.49737 1.92684 2.96723 1.92684 3.2525 2.2121L11.7879 10.7475C12.0732 11.0328 12.0732 11.5026 11.7879 11.7879C11.5026 12.0732 11.0328 12.0732 10.7475 11.7879L2.2121 3.2525C1.92684 2.96723 1.92684 2.49737 2.2121 2.2121Z",fill:"currentColor"})]})})}};var xo=n(w(),1),q=n(l(),1),Z=class extends xo.default.Component{render(){return(0,q.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,q.jsx)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,q.jsx)("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:"currentColor"})})})}};var Mo=n(w(),1),A=n(l(),1),W=class extends Mo.default.Component{render(){return(0,A.jsx)("div",{slot:"icon",className:"sdppp-icon",children:(0,A.jsxs)("svg",{width:this.props.size||20,height:this.props.size||20,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,A.jsx)("path",{d:"M2.35 10.95L3.05 11.65L11.65 3.05L10.95 2.35L2.35 10.95Z",fill:"currentColor"}),(0,A.jsx)("path",{d:"M7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14ZM7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13Z",fill:"currentColor"})]})})}};var r=n(l(),1);var Qo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{saveWorkflow:s,reopenWorkflow:a}=(0,i.useSDPPPComfyCaller)(),c=(0,P.useCallback)(async()=>{await s(t)},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:c,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(_,{})})};var $o=({onMouseEnter:o,onMouseLeave:e})=>{let{interrupt:t}=(0,i.useSDPPPComfyCaller)(),{clearQueue:s}=(0,i.useSDPPPComfyCaller)(),a=(0,P.useCallback)(async()=>{await s(),await t()},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:a,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(W,{})})},qo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{reopenWorkflow:s}=(0,i.useSDPPPComfyCaller)(),a=(0,P.useCallback)(()=>{s(t)},[s,t]);return(0,r.jsx)("sp-action-button",{onClick:a,onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(T,{})})};var Zo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t,autoRunning:s,setAutoRunning:a}=(0,i.useSDPPPContext)();return(0,r.jsx)("sp-action-button",{class:s?.value==t?"highlight":"",onClick:()=>{s?.value==t?a(null):a({type:"page",value:t})},onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(y,{})})},Jo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t,webviewAgentSID:s,toggleWebviewDialog:a}=(0,i.useSDPPPContext)(),c=t==s;return(0,r.jsx)("sp-action-button",{...c?{}:{disabled:!0},onClick:()=>{a()},title:c?p("Edit in ComfyUI"):p("disabled when running in browser page"),onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(B,{})})},Yo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runPage:s}=(0,i.useSDPPPComfyCaller)();return(0,r.jsx)("sp-action-button",{onClick:()=>{s(t)},onMouseEnter:o,onMouseLeave:e,children:(0,r.jsx)(C,{})})},jo=({onMouseEnter:o,onMouseLeave:e})=>{let{workflowAgentSID:t}=(0,i.useSDPPPContext)(),{runPage:s}=(0,i.useSDPPPComfyCaller)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,2)},onMouseEnter:o,onMouseLeave:e,children:"x2"}),(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,5)},onMouseEnter:o,onMouseLeave:e,children:"x5"}),(0,r.jsx)("div",{className:"action-button",onClick:()=>{s(t,9)},onMouseEnter:o,onMouseLeave:e,children:"x9"})]})};function zo({WorkflowEditPhotoshop:o}){let{workflowAgentSID:e,autoRunning:t}=(0,i.useSDPPPContext)(),{ssid:s,queueSize:a}=(0,i.useAgentState)(e),{lastError:c,progress:g,executingNodeTitle:m}=(0,i.useAgentState)(e),[h,f]=(0,P.useState)(null),S=(0,P.useMemo)(()=>h=="save"?p("Save workflow to ComfyUI"):h=="refresh"?p("Reload workflow"):h=="stopAndCancel"?p("Stop and cancel all"):h=="autoRun"?t?p("Stop auto run"):p("Start auto running after change"):h=="edit"?p("Edit in ComfyUI"):h=="run"?p("Run workflow"):h=="runMulti"?p("Run workflow xN"):"",[h,p]);return(0,P.useMemo)(()=>(0,r.jsxs)("div",{className:"workflow-edit-wrap",children:[(0,r.jsx)("div",{className:"workflow-edit-top",children:(0,r.jsxs)("div",{className:"workflow-edit-controls",children:[(0,r.jsxs)("div",{className:"workflow-edit-controls-left",children:[(0,r.jsxs)("div",{className:"workflow-edit-button-line workflow-edit-button-lineone",children:[(0,r.jsxs)("div",{className:"workflow-edit-button-line-left",children:[(0,r.jsx)(Qo,{onMouseEnter:()=>f("save"),onMouseLeave:()=>f(null)}),(0,r.jsx)(qo,{onMouseEnter:()=>f("refresh"),onMouseLeave:()=>f(null)})]}),(0,r.jsxs)("div",{className:"workflow-edit-button-line-right",children:[(0,r.jsx)($o,{onMouseEnter:()=>f("stopAndCancel"),onMouseLeave:()=>f(null)}),(0,r.jsx)(Zo,{onMouseEnter:()=>f("autoRun"),onMouseLeave:()=>f(null)})]})]}),(0,r.jsxs)("div",{className:"workflow-edit-button-line workflow-edit-controls-linetwo",children:[(0,r.jsxs)("div",{className:"workflow-run-status",children:[c?(0,r.jsx)("sp-label",{class:"error-label",children:c}):"",!c&&!m&&t?(0,r.jsx)("sp-label",{children:p("auto run workflow after change..")}):"",!c&&!m&&S?(0,r.jsx)("sp-label",{children:S}):""]}),(0,r.jsx)(Jo,{onMouseEnter:()=>f("edit"),onMouseLeave:()=>f(null)})]})]}),(0,r.jsx)("div",{className:"workflow-edit-controls-center",children:(0,r.jsx)(Yo,{onMouseEnter:()=>f("run"),onMouseLeave:()=>f(null)})}),(0,r.jsx)("div",{className:"workflow-edit-controls-right",children:(0,r.jsx)(jo,{onMouseEnter:()=>f("runMulti"),onMouseLeave:()=>f(null)})})]})}),(0,r.jsx)("sp-divider",{}),(0,r.jsx)(o,{})]}),[s,a,h,t,c,g,m,S,o])}globalThis.sdpppX=globalThis.sdpppX||{};var so=globalThis.sdpppX;var u=n(l(),1);function No({connectState:o,AddressBar:e,WorkflowEditPhotoshop:t}){let[s,a]=(0,E.useState)(!1),{workflowAgentSID:c,webviewAgentSID:g,lastConnectErrorMessage:m}=(0,i.useSDPPPContext)(),h=s?1:0,[f,S]=(0,E.useState)(!1);return(0,E.useEffect)(()=>{c?S(c!=g):f&&a(!1)},[c]),(0,E.useEffect)(()=>{o==="disconnected"&&a(!1)},[o]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.Promote,{}),(0,u.jsx)("div",{className:"header-container",children:(0,u.jsxs)("div",{className:"connect-box",children:[so.logo?(0,u.jsx)("img",{src:so.logo,alt:"logo",style:{width:"28px",height:"28px",cursor:"pointer",marginRight:"2px"},title:p("Back to workflow list"),onClick:()=>{a(!1)}}):s?(0,u.jsx)("sp-action-button",{onClick:()=>{a(!1)},children:"\u2190"}):(0,u.jsx)("div",{className:"status-bar "+o,children:(0,u.jsx)("div",{className:"status-icon",title:m?.toString()||p(o),children:"\u2B24"})}),(0,u.jsx)(e,{})]})}),m?(0,u.jsx)("div",{children:(0,u.jsx)("sp-label",{class:"error-label",children:mo(m)?p(m):m})}):"",o==="connected"&&(0,u.jsxs)("div",{className:"panel-body",children:[(0,u.jsx)("div",{className:"editor-card",style:h===0?{}:{display:"none"},children:(0,u.jsx)("div",{className:"comfy-list-wrap",children:(0,u.jsx)(Io,{setEditorMode:a})})}),(0,u.jsx)("div",{className:"editor-card",style:s?{}:{display:"none"},children:s&&c&&(0,u.jsx)(zo,{WorkflowEditPhotoshop:t})})]})]})}var G=n(l(),1);function ao(){return(0,G.jsx)(i.SDPPPProvider,{loginAppID:"",children:(0,G.jsx)("div",{className:"container",children:(0,G.jsx)(i.SDPPP,{renderContent:(o,e,t)=>(0,G.jsx)(No,{connectState:o,AddressBar:e,WorkflowEditPhotoshop:t})})})})}var Bo=n(_o(),1),Wo=n(l(),1);globalThis.sdppp=globalThis.sdppp||{};globalThis.sdppp.renderPhotoshopPlugin=o=>{(0,Bo.createRoot)(o).render((0,Wo.jsx)(ao,{}))};})(); diff --git a/plugins/photoshop/dist/index.js.map b/plugins/photoshop/dist/index.js.map index 4cf2565..0a7f3da 100644 --- a/plugins/photoshop/dist/index.js.map +++ b/plugins/photoshop/dist/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["external-global-plugin:SDPPPInternal", "external-global-plugin:react", "external-global-plugin:react/jsx-runtime", "external-global-plugin:react-dom/client", "../../../typescripts/modules/photoshop/src/tsx/SDPPPInternalBridge.tsx", "../../../typescripts/src/common/en.mts", "../../../typescripts/src/common/zh-cn.mts", "../../../typescripts/src/common/i18n.mts", "../../../typescripts/modules/photoshop/src/tsx/ActionButton.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/EditIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/FolderIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/LivePaintingIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/PlayIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowListItem.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowList.tsx", "../../../typescripts/modules/photoshop/src/tsx/Content.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowEditWrap.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/RefreshIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/SaveIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/PlayMultiIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/WebEditIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/CrossIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/StopIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/CancelIcon.tsx", "../../../typescripts/src/common/sdpppX.mts", "../../../typescripts/modules/photoshop/src/tsx/Main.tsx", "../../../typescripts/modules/photoshop/src/entry.tsx"], - "sourcesContent": ["module.exports = window.SDPPPInternal", "module.exports = window.React", "module.exports = window.ReactJSXRuntime", "module.exports = window.ReactDOMClient", "export * from \"SDPPPInternal\";", "export default {\n 'SDPPP Get Document': 'Get Document',\n 'SDPPP Get Layer By ID': 'Get Layer',\n 'SDPPP Get Linked Layers': 'Get Linked Layers',\n 'SDPPP Get Layers In Group': 'Get Layers In Group',\n 'SDPPP Get Text From Layer': 'Get Text From Layer',\n 'SDPPP Parse Layer Info': 'Parse Layer Info',\n 'SDPPP Get Selection': 'Get Selection', \n 'SDPPP Get Image From Photoshop': 'Get Image From Photoshop',\n 'SDPPP Send Images To Photoshop': 'Send Images To Photoshop',\n 'SDPPP Select Layer And Run PS Action': 'Select Layer And Run PS Action',\n\n}", "export default {\n // speicial document/ layer\n '### Active Document ###': '### \u5F53\u524D\u6587\u6863 ###',\n '### The Canvas ###': '### \u6574\u4E2A\u753B\u5E03 ###',\n '### New Layer ###': '### \u65B0\u56FE\u5C42 ###',\n '### Selected Layer ###': '### \u6240\u9009\u56FE\u5C42 ###',\n '### Keep Size or Fit Canvas ###': '### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###',\n '_SDPPP_PSD_': '_SDPPP_PSD_',\n\n // A1111 UI\n 'Save and run immediately': '\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C',\n 'Close': '\u5173\u95ED',\n 'Select a {0}': `\u9009\u62E9\u4E00\u4E2A {0}`,\n\n // comfyui dialog\n 'How to use .ccx file': '\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6',\n '1. If you have installed Adobe Creative Cloud': '1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud', \n 'Just double click the .ccx file, it will install the plugin automatically': '\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5',\n \"2. If you don't have Adobe Creative Cloud\": '2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud',\n 'Rename .ccx to .zip and extract it into ': '\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230',\n 'or': '\u6216',\n 'Photoshop directory': 'Photoshop \u5B89\u88C5\u76EE\u5F55',\n\n // comfyui error\n 'Cannot connect multiple different document widgets with same value': '\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6',\n 'You can only have one SDPPP Settings node in a workflow': '\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9',\n 'convert widget {0} failed:': '\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A',\n 'hidden webview load failed: {0}, please select a browser page to continue': '\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED',\n \n // comfy node title\n 'SDPPP Get Document': '\u83B7\u53D6\u6587\u6863(GetDocument)',\n 'SDPPP Get Layer By ID': '\u83B7\u53D6\u56FE\u5C42(GetLayer)',\n 'SDPPP Get Linked Layers': '\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)',\n 'SDPPP Get Layers In Group': '\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)',\n 'SDPPP Get Text From Layer': '\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)',\n 'SDPPP Parse Layer Info': '\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)',\n 'SDPPP Get Selection': '\u83B7\u53D6\u9009\u533A(GetSelection)', \n 'SDPPP Get Image From Photoshop': '\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)',\n 'SDPPP Send Images To Photoshop': '\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)',\n 'SDPPP Send Text To Layer': '\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)',\n 'SDPPP Select Layer And Run PS Action': '\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)',\n\n// comfy widget/input\n 'download PS plugin (.ccx)': '\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)',\n 'current ComfyUI pageid: {0}': '\u5F53\u524D ComfyUI \u9875\u9762ID: {0}',\n 'current A1111 pageid: {0}': '\u5F53\u524D A1111 \u9875\u9762ID: {0}',\n 'document linked': '\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'layer linked': '\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'bound linked': '\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'document': '\u6587\u6863', \n 'Document': '\u6587\u6863', \n 'DOCUMENT': '\u6587\u6863', \n 'document_name': '\u6587\u6863\u540D\u5B57id',\n 'layer_nameid': '\u56FE\u5C42\u540D\u5B57id',\n 'layer_name': '\u56FE\u5C42\u540D\u5B57',\n 'layer_info': '\u56FE\u5C42\u4FE1\u606F',\n 'bound_top': '\u8303\u56F4\u4E0A\u8FB9\u8DDD',\n 'bound_left': '\u8303\u56F4\u5DE6\u8FB9\u8DDD',\n 'bound_width': '\u8303\u56F4\u5BBD\u5EA6',\n 'bound_height': '\u8303\u56F4\u9AD8\u5EA6',\n 'center_x': '\u4E2D\u5FC3\u70B9x',\n 'center_y': '\u4E2D\u5FC3\u70B9y',\n 'opacity': '\u900F\u660E\u5EA6',\n 'layer': '\u56FE\u5C42',\n 'layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'Layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'bound': '\u8303\u56F4',\n 'bounds': '\u8303\u56F4',\n 'bounds [optional]': '\u8303\u56F4[\u53EF\u9009]',\n 'boundary': '\u8303\u56F4',\n 'Boundary': '\u8303\u56F4',\n 'canvas_boundary': '\u753B\u5E03\u8303\u56F4',\n 'canvas_bound': '\u753B\u5E03\u8303\u56F4',\n 'layer_boundary': '\u56FE\u5C42\u8303\u56F4',\n 'layer_bound': '\u56FE\u5C42\u8303\u56F4',\n \"Photoshop Disconnected!\" : \"Photoshop \u672A\u8FDE\u63A5\uFF01\",\n 'rgb_out': 'RGB\u8F93\u51FA',\n 'alpha_out': 'Alpha\u8F93\u51FA',\n 'images': '\u56FE\u50CF',\n 'text': '\u6587\u672C',\n 'ID_mode': '\u7CBE\u786EID\u6A21\u5F0F',\n 'name_mode': '\u540D\u5B57\u5339\u914D\u6A21\u5F0F',\n 'select': '\u9009\u62E9',\n 'document boundary': '\u6587\u6863\u8303\u56F4',\n 'layer boundary': '\u56FE\u5C42\u8303\u56F4',\n 'selection boundary': '\u9009\u4E2D\u8303\u56F4',\n 'save .psd to this workflow': '\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41',\n 'extract saved .psd to Photoshop': '\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop',\n 'sample .psd': '\u793A\u4F8B.psd',\n 'mask': '\u906E\u7F69',\n 'name': '\u540D\u79F0',\n 'quality': '\u56FE\u50CF\u8D28\u91CF',\n 'action_set': '\u52A8\u4F5C\u7EC4',\n 'action': '\u52A8\u4F5C',\n \n // photoshop UI\n 'Runner': '\u8FD0\u884C\u8F7D\u4F53',\n 'PS Webview': 'PS \u5185\u7F6E\u7F51\u9875',\n 'Browser {0}': '\u6D4F\u89C8\u5668\u9875\u9762 {0}',\n 'timeout': '\u8D85\u65F6',\n 'Loading...': '\u52A0\u8F7D\u4E2D...',\n '--multi-user Not Login!': '--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01',\n 'Logout': '\u767B\u51FA',\n 'User: ': '\u7528\u6237: ',\n 'connect': '\u8FDE\u63A5',\n 'connected': '\u5DF2\u8FDE\u63A5',\n 'disconnect': '\u65AD\u5F00',\n 'disconnected': '\u5DF2\u65AD\u5F00\u8FDE\u63A5',\n 'reconnecting...': '\u91CD\u8FDE\u4E2D...', \n 'connecting': '\u8FDE\u63A5\u4E2D', \n 'webpages': '\u7F51\u9875\u5217\u8868',\n 'workflows': '\u5DE5\u4F5C\u6D41',\n 'workflow': '\u5DE5\u4F5C\u6D41',\n 'auto run page [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..',\n 'auto run workflow [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..',\n 'auto run workflow after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..',\n 'selection_only': '\u4EC5\u9009\u533A',\n 'Queue:': '\u961F\u5217:',\n 'Set As:': '\u8BBE\u7F6E\u4E3A:',\n 'Error {0}... please contact me via Discord/Github': '\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211',\n 'Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System': 'Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF',\n 'ComfyUI with --multi-user is only available for sponsors': '\u5E26\"--multi-user\"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',\n 'Workflow Runner is loading...': '\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...',\n '(Page ID: {0})Queue: {1}': '(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}',\n 'no suitable node to control in this workflow': '\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9',\n \"Save\": \"\u4FDD\u5B58\",\n \"Edit\": \"\u7F16\u8F91\",\n \"Edit in ComfyUI\": \"\u5728 ComfyUI \u4E2D\u7F16\u8F91\",\n \"using browser page [{0}] for workflow running\": '\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'workflow running by hidden webview': '\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C',\n 'Lock Image': '\u9501\u5B9A\u56FE\u50CF',\n 'Unlock Image': '\u89E3\u9501\u56FE\u50CF',\n 'search...': '\u641C\u7D22...',\n 'disabled when running in browser page': '\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528',\n 'only supported in Photoshop': '\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301',\n 'Login': '\u767B\u5F55',\n 'Invitation Code': '\u9080\u8BF7\u7801',\n 'Username': '\u7528\u6237\u540D',\n 'Password': '\u5BC6\u7801',\n 'Please input invitation code': '\u8BF7\u8F93\u5165\u9080\u8BF7\u7801',\n 'Please input username': '\u8BF7\u8F93\u5165\u7528\u6237\u540D',\n 'Please input password': '\u8BF7\u8F93\u5165\u5BC6\u7801',\n 'Open more ComfyUI pages to see more options here': '\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879',\n 'Comfy multi-user: ': 'Comfy \u591A\u7528\u6237: ',\n 'Not Login': '\u672A\u767B\u5F55',\n 'Comfy API-Key: ': 'Comfy API-Key: ',\n 'Login/Auth': '\u767B\u5F55/\u8BA4\u8BC1',\n 'Logged in by email/password': '\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55',\n 'Set API Key': '\u8BBE\u7F6E API Key',\n 'Please input API key (will reload Runner)': '\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)',\n '### Active Workflow ###': '### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###',\n '### Example SDXL ###': '### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###',\n 'Open ComfyUI in the browser to see more options': '\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879',\n 'Webview load timeout, please switch to a different runner': 'Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53',\n 'Save workflow to ComfyUI': '\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI',\n 'Reload workflow': '\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41',\n 'Stop and cancel all': '\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709',\n 'Start auto running after change': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C',\n 'Stop auto run': '\u505C\u6B62\u81EA\u52A8\u8FD0\u884C',\n 'Run workflow': '\u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'Run workflow xN': '\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21',\n 'Back to workflow list': '\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868',\n\n // photoshop connect error\n '502: Maybe the server is not running': '502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C',\n '404: Maybe SDPPP is not installed or failed to run in ComfyUI': '404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25',\n '{0}. reconnecting...': '{0}. \u91CD\u8FDE\u4E2D...',\n 'disconnected to {0} failed {1}': `\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}`,\n 'version mismatch, please reinstall PS plugin': '\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6',\n 'instance type not recognized': '\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B',\n 'Error: {0}': '\u9519\u8BEF: {0}',\n 'Verification Error': '\u9A8C\u8BC1\u9519\u8BEF',\n\n // photoshop event error\n 'document {0} not found': '\u627E\u4E0D\u5230\u6587\u6863: {0}',\n 'only layer kind \"TEXT\" is supported, invalid layer: {0}': '\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}',\n 'create layer failed': '\u521B\u5EFA\u56FE\u5C42\u5931\u8D25',\n 'layer not found {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'no linked layer for {0}': '\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}',\n 'layer {0} is not a group': '\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4',\n 'no layer in group {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42',\n 'layer not found: {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'No upload_name': '\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25',\n 'get pixel of {0} failed': '\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}',\n 'merge group failed': '\u5408\u5E76\u7EC4\u5931\u8D25',\n 'invalid name: {0}': '\u975E\u6CD5\u7684\u540D\u79F0: {0}',\n 'get_layer_info: layer_identify required': 'get_layer_info: \u9700\u8981 layer_identify',\n 'invalid action: {0}': '\u65E0\u6548\u7684\u64CD\u4F5C: {0}',\n 'create document failed': '\u521B\u5EFA\u6587\u6863\u5931\u8D25',\n 'create document for preview': '\u521B\u5EFA\u9884\u89C8\u6587\u6863',\n 'resize document for preview': '\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8',\n 'no first related layer in {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42',\n \"imageDataError: data length is not multiple of width * height\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570\",\n \"imageDataError: originComponents must be 1 or 3\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3\",\n 'unexpected connection lost, please try to reconnect': '\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5',\n \"Workflow list is empty, please save a workflow by Comfy's lastest UI\": '\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41',\n 'No opened ComfyUI pages': '\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762',\n 'comfyAPI is not initialized, maybe comfyUI is too old': '\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7',\n 'unsupported channel counts: {0}': '\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}',\n 'Timeout, Maybe the URL is wrong': '\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF',\n 'Workflow list loading failed: {0}': '\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}',\n 'Please register a user in ComfyUI': '\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237',\n 'GetSelection need Photoshop version 25+': 'GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C',\n 'Action {0} not found': 'Action {0} \u672A\u627E\u5230',\n 'Action set {0} not found': 'ActionSet {0} \u672A\u627E\u5230',\n '{0} cannot be used in Photoshop Action Node': '{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528',\n 'Group layers': '\u56FE\u5C42\u7EC4',\n 'Show All Groups': '\u663E\u793A\u6240\u6709\u7EC4',\n\n // photoshop modal state\n 'create document for sent images': '\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863',\n 'show sent images': '\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n 'fallback show sent images': '\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n \"get content of layer {0}\": \"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9\",\n 'fallback get content of layer {0}': '\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9',\n 'get layer info': '\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F',\n 'sdppp extract PSD': 'sdppp \u5BFC\u5165 PSD',\n 'sdppp get PSD': 'sdppp \u83B7\u53D6 PSD', \n 'set text to layer': '\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C',\n 'run Photoshop Action': 'sdppp \u8FD0\u884C Photoshop Action',\n 'select layer': 'sdppp \u9009\u4E2D\u56FE\u5C42',\n \n // photoshop dialog/widget\n '{0} wants to extract a PSD file to Photoshop, are you sure?': '{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F',\n 'should sdppp refuse extracting PSD to Photoshop in this session anymore?': '\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F',\n 'Wide Mode': '\u5BBD\u5C4F\u6A21\u5F0F',\n 'Quick Set': '\u5FEB\u901F\u8BBE\u7F6E',\n 'Selected Layer': '\u9009\u4E2D\u56FE\u5C42',\n 'Selected Layer (invert)': '\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)',\n 'Canvas': '\u753B\u5E03',\n 'Selection': '\u9009\u533A',\n 'Manual': '\u624B\u52A8\u6A21\u5F0F',\n 'Auto': '\u81EA\u52A8\u6A21\u5F0F',\n\n // about\n 'This plugin is based on sd-ppp': '\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1',\n 'And follows its open source license:': '\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A',\n \"Cloud\": \"\u4E91\u7AEF\u63A8\u8350\",\n \"Sponsors\": \"\u8D5E\u52A9\",\n \"waiting...\": '\u865A\u4F4D\u4EE5\u5F85',\n 'Links': '\u53CB\u60C5\u94FE\u63A5',\n 'Community': '\u793E\u533A',\n 'LICENSE:': '\u8BB8\u53EF\u8BC1\uFF1A',\n 'Official Site': '\u5B98\u65B9\u7F51\u7AD9',\n\n // comfy popup\n \"upload\": \"\u4E0A\u4F20\",\n \"Simplify Workflow\": \"\u7B80\u5316\u5DE5\u4F5C\u6D41\",\n \"Photoshop\": \"Photoshop\",\n \"Photoshop plugin settings\": \"Photoshop \u63D2\u4EF6\u8BBE\u7F6E\",\n \"Photoshop plugin\": \"Photoshop \u63D2\u4EF6\",\n \"SDPPP Settings/Misc\": \"SDPPP \u8BBE\u7F6E/\u6742\u9879\",\n \"Sample .PSD for this workflow:\": \"\u793A\u4F8B.PSD\",\n \"Download Example .PSD\": \"\u4E0B\u8F7D\u793A\u4F8B.PSD\",\n \"Maximum Image Size (px):\": \"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)\",\n \"Download\": \"\u4E0B\u8F7D\",\n \"Upload\": \"\u4E0A\u4F20\",\n \"Reset\": \"\u91CD\u7F6E\",\n 'Refresh': '\u5237\u65B0',\n 'Comfy URL (You can copy it to connect ComfyUI in the plugin):': 'Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):',\n 'use slider for number widget:': '\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757',\n 'Photoshop is not connected': 'Photoshop \u672A\u8FDE\u63A5',\n 'select...': '\u8BF7\u9009\u62E9',\n 'click to edit': '\u70B9\u51FB\u7F16\u8F91',\n\n // comfy call error\n 'ComfyManager not found, cannot reboot': 'Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F',\n 'Failed to reboot ComfyUI': '\u91CD\u542FComfyUI\u5931\u8D25',\n}\n", "import en from './en.mjs';\nimport zhcn from './zh-cn.mjs';\n//@ts-ignore\nconst require_ = typeof require != 'undefined' ? require : undefined\n\nlet locale = 'en'\nif (typeof navigator !== 'undefined' && navigator.language) {\n locale = navigator.language == \"zh-CN\" ? 'zhcn' : 'en'\n} else if (require_) {\n locale = require_('uxp').host.uiLocale.startsWith(\"zh\") ? 'zhcn' : 'en';\n}\n\nexport type I18nKey = keyof typeof zhcn;\n\nexport default function i18n(key: keyof typeof zhcn, ...args: any[]) {\n const formatStr: string = locale == 'zhcn' ? zhcn[key] : (key in en ? (en as any)[key] : key);\n if (!formatStr) throw new Error(`i18n key not found: ${key}`);\n\n return formatStr.replace(/{(\\d+)}/g, function (match, number) {\n return typeof args[number] != 'undefined' ? args[number] : match\n });\n}\n\nexport function isValidI18nKey(key: string) {\n return key in zhcn;\n}\n\nexport function isI18nOf(key: keyof typeof zhcn, str: string) {\n return key == str || zhcn[key] == str;\n}\n\nexport function getI18nLocale() {\n return locale;\n}\n", "import React from \"react\";\n\nexport default class ActionButton extends React.Component<{\n onClick?: (...args: any[]) => any\n highlight?: boolean\n children?: React.ReactNode\n}> {\n render() {\n return (\n
\n {this.props.children}\n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class EditIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class FolderIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class LivePaintingIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n \n
\n )\n }\n}", "import React from \"react\";\n\nexport default class PlayIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\nimport ActionButton from \"./ActionButton.js\";\nimport EditIcon from \"./icons/EditIcon.js\";\nimport FolderIcon from \"./icons/FolderIcon.js\";\nimport LivePaintingIcon from \"./icons/LivePaintingIcon.js\";\nimport PlayIcon from \"./icons/PlayIcon.js\";\nimport { useSDPPPContext, useSDPPPComfyCaller } from \"./SDPPPInternalBridge.js\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\n\nconst ICON_SIZE = 0.6;\nconst CLASS_NAMES = {\n LIST_ITEM: \"client-list-item\",\n LIST_ITEM_LEFT: \"client-list-item-left\",\n LIST_ITEM_RIGHT: \"client-list-item-right\",\n TIPS_ICON: \"tips-icon\",\n CHECKED: \"checked\"\n};\n\ninterface BaseListItemProps {\n isChecked?: boolean;\n children: React.ReactNode;\n rightContent?: React.ReactNode;\n onClick?: () => void;\n}\n\nconst BaseListItem: React.FC = ({\n isChecked = false,\n children,\n rightContent,\n onClick\n}) => {\n return (\n
  • \n \n {children}\n \n {rightContent && (\n
    \n {rightContent}\n
    \n )}\n
  • \n );\n};\n\ninterface DirectoryItemProps {\n path: string;\n dirname: string;\n onDirectorySet: (path: string) => void;\n}\n\nconst DirectoryItem: React.FC = ({\n path,\n dirname,\n onDirectorySet\n}) => {\n const handleClick = () => {\n if (path === '../') {\n const directoryWithoutSuffix = dirname || '';\n const lastSlashIndex = directoryWithoutSuffix.lastIndexOf('/');\n // no slash anymore. or meet the protocol name\n if (lastSlashIndex === -1 || directoryWithoutSuffix[lastSlashIndex - 1] === '/') {\n onDirectorySet?.('');\n } else {\n onDirectorySet?.(directoryWithoutSuffix.slice(0, lastSlashIndex));\n }\n } else {\n onDirectorySet?.(path);\n }\n };\n\n return (\n \n \n
    {path.slice(0, -1).split('/').pop()}
    \n
    \n );\n};\n\ninterface WorkflowItemProps {\n isChecked: boolean;\n workflow: {\n path: string;\n error: string;\n };\n onRun: (path: string) => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\ninterface ActiveWorkflowItemProps {\n path: string | null;\n title: string;\n onRun: () => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\nconst WorkflowActions: React.FC<{\n isChecked?: boolean;\n onEdit: () => void;\n onAutoRun?: () => void;\n onRun: () => void;\n}> = ({ isChecked, onEdit, onAutoRun, onRun }) => {\n return (\n <>\n
    \n \n
    \n {onAutoRun && (\n \n \n \n )}\n \n \n \n \n );\n};\n\nconst WorkflowItem: React.FC = ({\n isChecked,\n workflow,\n onRun,\n setEditorMode\n}) => {\n const {\n setAutoRunning,\n workflowAgentSID\n } = useSDPPPContext();\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n\n const handleEditClick = () => {\n setEditorMode(true);\n openWorkflow(workflowAgentSID, workflow.path);\n };\n\n const handleAutoRunClick = () => {\n if (!isChecked) {\n setAutoRunning({ type: 'workflow', value: workflow.path });\n } else {\n setAutoRunning(null);\n }\n };\n \n return (\n onRun(workflow.path)}\n />\n }\n onClick={handleEditClick}\n >\n {workflow.error ? workflow.error.replace('sdppp PS side error:', '') : workflow.path.split('/').pop()}\n \n );\n};\n\nconst SpecialWorkflowItem: React.FC = ({\n onRun,\n path,\n title,\n setEditorMode\n}) => {\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n const {\n workflowAgentSID\n } = useSDPPPContext();\n\n const handleEditClick = async () => {\n path && await openWorkflow(workflowAgentSID, path);\n setEditorMode(true);\n };\n\n return (\n \n }\n onClick={handleEditClick}\n >\n {title}\n \n );\n};\n\nexport {\n DirectoryItem,\n WorkflowItem,\n SpecialWorkflowItem\n};\n", "import React from \"react\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\nimport { SpecialWorkflowItem, DirectoryItem, WorkflowItem } from \"./WorkflowListItem.js\";\nimport {\n useSDPPPComfyCaller, useAgentState,\n useSDPPPContext, useSDPPPWorkflowList\n} from \"./SDPPPInternalBridge.js\";\n\ninterface WorkflowListProps {\n setEditorMode: (editorMode: boolean) => void\n}\n\nconst WorkflowList: React.FC = ({ setEditorMode }) => {\n const {\n autoRunning,\n workflowAgentSID,\n } = useSDPPPContext();\n\n const {\n runWorkflow,\n runPage\n } = useSDPPPComfyCaller();\n\n const {\n workflows,\n workflowsError,\n currentViewingDirectory,\n setCurrentViewingDirectory,\n showingList\n } = useSDPPPWorkflowList();\n\n let listReplacer = null;\n if (workflowsError)\n return
    \n {workflowsError}\n
    \n\n return (\n
    \n
      \n {\n currentViewingDirectory ?\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n : null\n }\n {\n showingList.map((item: { path: string, isDir: boolean }) => {\n const path = item.path;\n const workflow = workflows[path]\n const checked = autoRunning?.value == path;\n if (item.isDir) {\n return (\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n )\n }\n return (\n {\n await runWorkflow(path);\n }}\n />\n )\n })\n }\n\n
    \n \n
      \n {\n await runPage(workflowAgentSID);\n }}\n />\n {\n await runPage(workflowAgentSID);\n }}\n />\n
    \n\n {autoRunning?.type == 'workflow' ? {i18n(`auto run workflow [{0}] after change..`, workflows[autoRunning?.value]?.path)} : ''}\n
    \n );\n};\n\nexport default WorkflowList;", "import { useSDPPPContext, Promote, Auths } from \"./SDPPPInternalBridge.js\";\nimport i18n, { isValidI18nKey } from \"../../../../src/common/i18n.mjs\";\nimport WorkflowList from \"./WorkflowList.js\";\nimport { useEffect, useState } from \"react\";\nimport { WorkflowEditWrap } from \"./WorkflowEditWrap.js\";\nimport type { AddressBarType, WorkflowEditPhotoshopType } from \"./SDPPPInternalBridge.js\";\nimport { sdpppX } from \"../../../../src/common/sdpppX.mjs\";\n\nexport function Content({\n connectState,\n AddressBar,\n WorkflowEditPhotoshop,\n}: {\n connectState: 'connected' | 'disconnected' | 'connecting',\n AddressBar: AddressBarType,\n WorkflowEditPhotoshop: WorkflowEditPhotoshopType,\n}) {\n const [editorMode, setEditorMode] = useState(false);\n\n const {\n workflowAgentSID,\n webviewAgentSID,\n lastConnectErrorMessage,\n\n } = useSDPPPContext();\n\n const editorCardShowingIndex = editorMode ? 1 : 0;\n\n const [prevIsNotWebview, setPrevIsNotWebview] = useState(false);\n\n // when disconnect and the agent is not webview, set editor mode to false\n useEffect(() => {\n if (workflowAgentSID) {\n setPrevIsNotWebview(workflowAgentSID != webviewAgentSID);\n } else {\n if (prevIsNotWebview) {\n setEditorMode(false);\n }\n }\n }, [workflowAgentSID]);\n useEffect(() => {\n if (connectState === 'disconnected') {\n setEditorMode(false);\n }\n }, [connectState]);\n return (\n <>\n \n
    \n
    \n { \n sdpppX.logo ? \"logo\"\n {\n setEditorMode(false);\n }}\n /> : (\n !editorMode ?\n
    \n
    \u2B24
    \n
    \n :\n {\n setEditorMode(false);\n }}\n >\u2190\n )\n }\n \n
    \n
    \n {\n lastConnectErrorMessage ? (\n
    \n \n {isValidI18nKey(lastConnectErrorMessage) ? i18n(lastConnectErrorMessage as any) : lastConnectErrorMessage}\n \n
    \n ) : ''\n }\n\n {/* */}\n\n {\n connectState === \"connected\" &&\n
    \n
    \n
    \n {/* */}\n \n
    \n
    \n
    \n {editorMode && workflowAgentSID && }\n
    \n
    \n }\n\n \n );\n}\n\n\n", "import { useCallback, useMemo, useState } from \"react\"\nimport i18n from \"../../../../src/common/i18n.mjs\"\nimport LivePaintingIcon from \"./icons/LivePaintingIcon\"\nimport PlayIcon from \"./icons/PlayIcon\"\nimport {\n useSDPPPComfyCaller,\n useSDPPPContext,\n useAgentState,\n} from \"./SDPPPInternalBridge\"\nimport RefreshIcon from \"./icons/RefreshIcon\"\nimport SaveIcon from \"./icons/SaveIcon\"\nimport PlayMultiIcon from \"./icons/PlayMultiIcon\"\nimport WebEditIcon from \"./icons/WebEditIcon\"\nimport CrossIcon from \"./icons/CrossIcon\"\nimport StopIcon from \"./icons/StopIcon\"\nimport CancelIcon from \"./icons/CancelIcon\"\nimport { action } from \"photoshop\";\n\ninterface HoverableButtonProps {\n onMouseEnter: () => void;\n onMouseLeave: () => void;\n}\n\n// \u72B6\u6001\u663E\u793A\u7EC4\u4EF6\nconst WorkflowStatus = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n\n return (\n
    \n {autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {lastError ? {lastError} : ''}\n {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''}\n
    \n );\n};\n\n// \u4FDD\u5B58\u548C\u5237\u65B0\u6309\u94AE\u7EC4\nconst SaveButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { saveWorkflow, reopenWorkflow } = useSDPPPComfyCaller();\n\n const onSave = useCallback(async () => {\n await saveWorkflow(workflowAgentSID);\n }, [saveWorkflow, workflowAgentSID]);\n\n return (\n \n \n \n );\n};\nconst ClearButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClear = useCallback(() => {\n clearQueue();\n }, [clearQueue]);\n\n return \n \n \n}\n\nconst RebootButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reboot } = useSDPPPComfyCaller();\n const onReboot = useCallback(() => {\n reboot();\n }, [reboot]);\n\n return \u91CD\u542F\n}\n\nconst StopButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { interrupt } = useSDPPPComfyCaller();\n const onInterrupt = useCallback(() => {\n interrupt();\n }, [interrupt]);\n\n return \n \n \n}\nconst StopAndCancelButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { interrupt } = useSDPPPComfyCaller();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClearAndInterrupt = useCallback(async () => {\n await clearQueue();\n await interrupt();\n }, [clearQueue, interrupt]);\n\n return \n \n \n}\n\nconst RefreshButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reopenWorkflow } = useSDPPPComfyCaller();\n const onReopen = useCallback(() => {\n reopenWorkflow(workflowAgentSID);\n }, [reopenWorkflow, workflowAgentSID]);\n\n return \n \n \n}\n\nconst PlayMultiButtons = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return <>\n {!autoRunning ? { runPage(workflowAgentSID, 10) }}>\n \n : ''}\n {!autoRunning ? { runPage(workflowAgentSID, 3) }}>\n \n : ''}\n \n}\n\n// \u81EA\u52A8\u8FD0\u884C\u6309\u94AE\nconst AutoRunButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, autoRunning, setAutoRunning } = useSDPPPContext();\n\n return (\n {\n if (autoRunning?.value == workflowAgentSID) {\n setAutoRunning(null);\n } else {\n setAutoRunning({\n type: 'page',\n value: workflowAgentSID\n });\n }\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\n\n// \u7F16\u8F91\u6309\u94AE\nconst EditButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, webviewAgentSID, toggleWebviewDialog } = useSDPPPContext();\n const usingWebview = workflowAgentSID == webviewAgentSID;\n\n return (\n { toggleWebviewDialog() }}\n title={!usingWebview ? i18n('disabled when running in browser page') : i18n('Edit in ComfyUI')}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n \n \n );\n};\n\n// \u8FD0\u884C\u6309\u94AE\nconst RunButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n {\n runPage(workflowAgentSID);\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\nconst RunMultiButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n <>\n
    { runPage(workflowAgentSID, 2) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x2
    \n
    { runPage(workflowAgentSID, 5) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x5
    \n
    { runPage(workflowAgentSID, 9) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x9
    \n \n )\n}\n\n// const TestButtons = () => {\n// const { interrupt, clearQueue, reboot } = useSDPPPComfyCaller();\n\n// return (\n// { reboot() }}>\n// \n// \n// )\n// }\n\nexport function WorkflowEditWrap({\n WorkflowEditPhotoshop\n}: {\n WorkflowEditPhotoshop: any,\n}) {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { ssid, queueSize } = useAgentState(workflowAgentSID);\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n const [hoveringButton, setHoveringButton] = useState(null);\n const tips = useMemo(() => {\n if (hoveringButton == 'save') {\n return i18n('Save workflow to ComfyUI');\n }\n if (hoveringButton == 'refresh') {\n return i18n('Reload workflow');\n }\n if (hoveringButton == 'stopAndCancel') {\n return i18n('Stop and cancel all');\n }\n if (hoveringButton == 'autoRun') {\n return autoRunning ? i18n('Stop auto run') : i18n('Start auto running after change');\n }\n if (hoveringButton == 'edit') {\n return i18n('Edit in ComfyUI');\n }\n if (hoveringButton == 'run') {\n return i18n('Run workflow');\n }\n if (hoveringButton == 'runMulti') {\n return i18n('Run workflow xN');\n }\n return '';\n }, [hoveringButton, i18n]);\n\n\n return useMemo(() => {\n return (\n
    \n
    \n {/* {i18n('(Page ID: {0})Queue: {1}', ssid, queueSize)} */}\n
    \n
    \n
    \n
    \n setHoveringButton('save')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('refresh')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('stopAndCancel')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('autoRun')}\n onMouseLeave={() => setHoveringButton(null)} />\n {/* */}\n
    \n
    \n
    \n\n
    \n {lastError ? {lastError} : ''}\n {/* {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''} */}\n {!lastError && !executingNodeTitle && autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {!lastError && !executingNodeTitle && tips ? {tips} : ''}\n
    \n {/* */}\n setHoveringButton('edit')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n setHoveringButton('run')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('runMulti')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n \n \n
    \n );\n }, [ssid, queueSize, hoveringButton, autoRunning, lastError, progress, executingNodeTitle, tips, WorkflowEditPhotoshop]);\n}\n", "import React from \"react\";\n\nexport default class RefreshIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class SaveIcon extends React.Component {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class PlayMultiIcon extends React.Component<{ count: number }> {\n render() {\n return (\n
    \n \n \n \n {this.props.count}\n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class WebEditIcon extends React.Component {\n render() {\n return (\n
    \n \n \n\n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CrossIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}", "import React from \"react\";\n\nexport default class StopIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CancelIcon extends React.Component<{\n size?: number,\n}> {\n render() {\n return (\n
    \n \n {/* Single diagonal line from bottom-left to top-right */}\n \n \n {/* Circle outline */}\n \n \n
    \n )\n }\n}", "// @ts-ignore\nglobalThis.sdpppX = globalThis.sdpppX || {};\nexport const sdpppX = (globalThis as any).sdpppX;", "import { Content } from \"./Content.js\";\nimport { SDPPP, SDPPPProvider } from \"./SDPPPInternalBridge.js\";\n\nexport default function Main() {\n return (\n \n
    \n {\n return (\n \n )\n }}\n />\n
    \n
    \n )\n}", "import Main from \"./tsx/Main.js\";\nimport { createRoot } from \"react-dom/client\";\n\ndeclare const globalThis: any;\nglobalThis.sdppp = globalThis.sdppp || {};\nglobalThis.sdppp.renderPhotoshopPlugin = (rootElement: HTMLElement) => {\n createRoot(rootElement).render(
    );\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA,0CAAc;;;ACAd,MAAO,aAAQ;AAAA,IACX,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,wCAAwC;AAAA,EAE5C;;;ACZA,MAAO,gBAAQ;AAAA;AAAA,IAEX,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,0BAA0B;AAAA,IAC1B,mCAAmC;AAAA,IACnC,eAAe;AAAA;AAAA,IAGf,4BAA4B;AAAA,IAC5B,SAAS;AAAA,IACT,gBAAgB;AAAA;AAAA,IAGhB,wBAAwB;AAAA,IACxB,iDAAiD;AAAA,IACjD,6EAA6E;AAAA,IAC7E,6CAA6C;AAAA,IAC7C,4CAA4C;AAAA,IAC5C,MAAM;AAAA,IACN,uBAAuB;AAAA;AAAA,IAGvB,sEAAsE;AAAA,IACtE,2DAA2D;AAAA,IAC3D,8BAA8B;AAAA,IAC9B,6EAA6E;AAAA;AAAA,IAG7E,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,4BAA4B;AAAA,IAC5B,wCAAwC;AAAA;AAAA,IAGxC,6BAA6B;AAAA,IAC7B,+BAA+B;AAAA,IAC/B,6BAA6B;AAAA,IAC7B,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,IACb,cAAc;AAAA,IACd,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,SAAS;AAAA,IACT,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,2BAA4B;AAAA,IAC5B,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,IACtB,8BAA8B;AAAA,IAC9B,mCAAmC;AAAA,IACnC,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,cAAc;AAAA,IACd,UAAU;AAAA;AAAA,IAGV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,IACb,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,sCAAsC;AAAA,IACtC,0CAA0C;AAAA,IAC1C,oCAAoC;AAAA,IACpC,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV,WAAW;AAAA,IACX,qDAAqD;AAAA,IACrD,wGAAwG;AAAA,IACxG,4DAA4D;AAAA,IAC5D,iCAAiC;AAAA,IACjC,4BAA4B;AAAA,IAC5B,gDAAgD;AAAA,IAChD,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,mBAAmB;AAAA,IACnB,iDAAiD;AAAA,IACjD,sCAAsC;AAAA,IACtC,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,yCAAyC;AAAA,IACzC,+BAA+B;AAAA,IAC/B,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gCAAgC;AAAA,IAChC,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,oDAAoD;AAAA,IACpD,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,+BAA+B;AAAA,IAC/B,eAAe;AAAA,IACf,6CAA6C;AAAA,IAC7C,2BAA2B;AAAA,IAC3B,wBAAwB;AAAA,IACxB,mDAAmD;AAAA,IACnD,6DAA6D;AAAA,IAC7D,4BAA4B;AAAA,IAC5B,mBAAmB;AAAA,IACnB,uBAAuB;AAAA,IACvB,mCAAmC;AAAA,IACnC,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA;AAAA,IAGzB,wCAAwC;AAAA,IACxC,iEAAiE;AAAA,IACjE,wBAAwB;AAAA,IACxB,kCAAkC;AAAA,IAClC,gDAAgD;AAAA,IAChD,gCAAgC;AAAA,IAChC,cAAc;AAAA,IACd,sBAAsB;AAAA;AAAA,IAGtB,0BAA0B;AAAA,IAC1B,2DAA2D;AAAA,IAC3D,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,IACvB,2BAA2B;AAAA,IAC3B,4BAA4B;AAAA,IAC5B,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,2CAA2C;AAAA,IAC3C,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,+BAA+B;AAAA,IAC/B,iCAAiC;AAAA,IACjC,iEAAiE;AAAA,IACjE,mDAAmD;AAAA,IACnD,uDAAuD;AAAA,IACvD,wEAAwE;AAAA,IACxE,2BAA2B;AAAA,IAC3B,yDAAyD;AAAA,IACzD,mCAAmC;AAAA,IACnC,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,qCAAqC;AAAA,IACrC,2CAA2C;AAAA,IAC3C,wBAAwB;AAAA,IACxB,4BAA4B;AAAA,IAC5B,+CAA+C;AAAA,IAC/C,gBAAgB;AAAA,IAChB,mBAAmB;AAAA;AAAA,IAGnB,mCAAmC;AAAA,IACnC,oBAAoB;AAAA,IACpB,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,qCAAqC;AAAA,IACrC,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA;AAAA,IAGhB,+DAA+D;AAAA,IAC/D,4EAA4E;AAAA,IAC5E,aAAa;AAAA,IACb,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA;AAAA,IAGR,kCAAkC;AAAA,IAClC,wCAAwC;AAAA,IACxC,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,iBAAiB;AAAA;AAAA,IAGjB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,oBAAoB;AAAA,IACpB,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,yBAAyB;AAAA,IACzB,4BAA4B;AAAA,IAC5B,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,IACX,iEAAiE;AAAA,IACjE,iCAAiC;AAAA,IACjC,8BAA8B;AAAA,IAC9B,aAAa;AAAA,IACb,iBAAiB;AAAA;AAAA,IAGjB,yCAAyC;AAAA,IACzC,4BAA4B;AAAA,EAChC;;;ACzQA,MAAM,WAAW,OAAO,aAAW,cAAc,YAAU;AAE3D,MAAI,SAAS;AACb,MAAI,OAAO,cAAc,eAAe,UAAU,UAAU;AACxD,aAAS,UAAU,YAAY,UAAU,SAAS;AAAA,EACtD,WAAW,UAAU;AACjB,aAAS,SAAS,KAAK,EAAE,KAAK,SAAS,WAAW,IAAI,IAAI,SAAS;AAAA,EACvE;AAIe,WAAR,KAAsB,QAA2B,MAAa;AACjE,UAAM,YAAoB,UAAU,SAAS,cAAK,GAAG,IAAK,OAAO,aAAM,WAAW,GAAG,IAAI;AACzF,QAAI,CAAC,UAAW,OAAM,IAAI,MAAM,uBAAuB,GAAG,EAAE;AAE5D,WAAO,UAAU,QAAQ,YAAY,SAAU,OAAO,QAAQ;AAC1D,aAAO,OAAO,KAAK,MAAM,KAAK,cAAc,KAAK,MAAM,IAAI;AAAA,IAC/D,CAAC;AAAA,EACL;AAEO,WAAS,eAAe,KAAa;AACxC,WAAO,OAAO;AAAA,EAClB;;;ACzBA,qBAAkB;AASN;AAPZ,MAAqB,eAArB,cAA0C,aAAAA,QAAM,UAI7C;AAAA,IACC,SAAS;AACL,aACI,4CAAC,SAAI,WAAW,iBAAiB,KAAK,MAAM,YAAY,cAAc,EAAE,IAAI,SAAS,KAAK,MAAM,SAC3F,eAAK,MAAM,UAChB;AAAA,IAER;AAAA,EACJ;;;ACdA,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV,GACtZ,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,aAArB,cAAwC,cAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,+JAA8J,GACpO,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAUF,MAAAC,sBAAA;AARhB,MAAqB,mBAArB,cAA8C,cAAAC,QAAM,UAGjD;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E;AAAA,qDAAC,UAAK,MAAK,gBAAe,GAAE,gTAAgT;AAAA,QAC5U,6CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gIAA+H;AAAA,SACrM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACjBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAEzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,kIAAiI,GACvM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACiBQ,MAAAC,sBAAA;AAvBR,MAAM,YAAY;AAClB,MAAM,cAAc;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AASA,MAAM,eAA4C,CAAC;AAAA,IAC/C,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,WACI,8CAAC,QAAG,WAAW,GAAG,YAAY,SAAS,GAAG,YAAY,IAAI,YAAY,OAAO,KAAK,EAAE,IAAI,SACpF;AAAA,mDAAC,cAAS,WAAW,YAAY,gBAC5B,UACL;AAAA,MACC,gBACG,6CAAC,SAAI,WAAW,YAAY,iBACvB,wBACL;AAAA,OAER;AAAA,EAER;AAQA,MAAM,gBAA8C,CAAC;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM,cAAc,MAAM;AACtB,UAAI,SAAS,OAAO;AAChB,cAAM,yBAAyB,WAAW;AAC1C,cAAM,iBAAiB,uBAAuB,YAAY,GAAG;AAE7D,YAAI,mBAAmB,MAAM,uBAAuB,iBAAiB,CAAC,MAAM,KAAK;AAC7E,2BAAiB,EAAE;AAAA,QACvB,OAAO;AACH,2BAAiB,uBAAuB,MAAM,GAAG,cAAc,CAAC;AAAA,QACpE;AAAA,MACJ,OAAO;AACH,yBAAiB,IAAI;AAAA,MACzB;AAAA,IACJ;AAEA,WACI,8CAAC,gBAAa,SAAS,aACnB;AAAA,mDAAC,cAAW,MAAM,WAAW;AAAA,MAC7B,6CAAC,SAAI,OAAO,EAAE,YAAY,EAAE,GAAI,eAAK,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,GAAE;AAAA,OACvE;AAAA,EAER;AAmBA,MAAM,kBAKD,CAAC,EAAE,WAAW,QAAQ,WAAW,MAAM,MAAM;AAC9C,WACI,8EACI;AAAA,mDAAC,SAAI,WAAW,YAAY,WACxB,uDAAC,YAAS,MAAM,WAAW,SAAS,QAAQ,GAChD;AAAA,MACC,aACG,6CAAC,gBAAa,WAAW,WAAW,SAAS,WACzC,uDAAC,oBAAiB,MAAM,WAAW,GACvC;AAAA,MAEJ,6CAAC,gBAAa,SAAS,OACnB,uDAAC,YAAS,MAAM,WAAW,GAC/B;AAAA,OACJ;AAAA,EAER;AAEA,MAAM,eAA4C,CAAC;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AACpB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM,kBAAkB,MAAM;AAC1B,oBAAc,IAAI;AAClB,mBAAa,kBAAkB,SAAS,IAAI;AAAA,IAChD;AAEA,UAAM,qBAAqB,MAAM;AAC7B,UAAI,CAAC,WAAW;AACZ,uBAAe,EAAE,MAAM,YAAY,OAAO,SAAS,KAAK,CAAC;AAAA,MAC7D,OAAO;AACH,uBAAe,IAAI;AAAA,MACvB;AAAA,IACJ;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,cACI;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,QAAQ;AAAA,YACR,WAAW;AAAA,YACX,OAAO,MAAM,MAAM,SAAS,IAAI;AAAA;AAAA,QACpC;AAAA,QAEJ,SAAS;AAAA,QAER,mBAAS,QAAQ,SAAS,MAAM,QAAQ,wBAAwB,EAAE,IAAI,SAAS,KAAK,MAAM,GAAG,EAAE,IAAI;AAAA;AAAA,IACxG;AAAA,EAER;AAEA,MAAM,sBAAyD,CAAC;AAAA,IAC5D;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AACxB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM,kBAAkB,YAAY;AAChC,cAAQ,MAAM,aAAa,kBAAkB,IAAI;AACjD,oBAAc,IAAI;AAAA,IACtB;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG,cACI;AAAA,UAAC;AAAA;AAAA,YACG,QAAQ;AAAA,YACR;AAAA;AAAA,QACJ;AAAA,QAEJ,SAAS;AAAA,QAER;AAAA;AAAA,IACL;AAAA,EAER;;;ACjKY,MAAAC,sBAAA;AAtBZ,MAAM,eAA4C,CAAC,EAAE,cAAc,MAAM;AACrE,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ,QAAI,kDAAqB;AAEzB,QAAI,eAAe;AACnB,QAAI;AACA,aAAO,6CAAC,SAAI,WAAU,iBAClB,uDAAC,cAAU,0BAAe,GAC9B;AAEJ,WACI,8CAAC,SAAI,WAAU,iBACX;AAAA,oDAAC,QAAG,WAAU,eAEN;AAAA,kCACI;AAAA,UAAC;AAAA;AAAA,YAEG,MAAK;AAAA,YACL,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,YAC5C,gBAAgB,CAAC,YAAoB;AACjC,yCAA2B,OAAO;AAAA,YACtC;AAAA;AAAA,UALK;AAAA,QAMT,IACE;AAAA,QAGN,YAAY,IAAI,CAAC,SAA2C;AACxD,gBAAM,OAAO,KAAK;AAClB,gBAAM,WAAW,UAAU,IAAI;AAC/B,gBAAM,UAAU,aAAa,SAAS;AACtC,cAAI,KAAK,OAAO;AACZ,mBACI;AAAA,cAAC;AAAA;AAAA,gBAEG;AAAA,gBACA,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,gBAC5C,gBAAgB,CAAC,YAAoB;AACjC,6CAA2B,OAAO;AAAA,gBACtC;AAAA;AAAA,cALK;AAAA,YAMT;AAAA,UAER;AACA,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cAEA,WAAW;AAAA,cACX;AAAA,cACA,OAAO,OAAOC,UAAiB;AAC3B,sBAAM,YAAYA,KAAI;AAAA,cAC1B;AAAA;AAAA,YALK;AAAA,UAMT;AAAA,QAER,CAAC;AAAA,SAGT;AAAA,MACA,6CAAC,gBAAW;AAAA,MACZ,8CAAC,QAAG,WAAU,eACV;AAAA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,yBAAyB;AAAA,YACrC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,sBAAsB;AAAA,YAClC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,SACJ;AAAA,MAEC,aAAa,QAAQ,aAAa,6CAAC,cAAS,OAAM,gBAAgB,eAAK,0CAA0C,UAAU,aAAa,KAAK,GAAG,IAAI,GAAE,IAAc;AAAA,OACzK;AAAA,EAER;AAEA,MAAO,uBAAQ;;;AC1Gf,MAAAC,iBAAoC;;;ACHpC,MAAAC,iBAA+C;;;ACA/C,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAG5C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,GAAE,yMAAwM,GACxO,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAQF,MAAAC,sBAAA;AANhB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAAU;AAAA,IAClD,SAAS;AACL,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,OAAO;AAAA,QAC3C,aAAa;AAAA,MACjB,GACI,wDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,qDAAC,UAAK,GAAE,2IAA0I;AAAA,QAClJ,6CAAC,UAAK,GAAE,wDAAuD;AAAA,SACnE,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAMF,MAAAC,uBAAA;AAJhB,MAAqB,gBAArB,cAA2C,cAAAC,QAAM,UAA6B;AAAA,IAC1E,SAAS;AACL,aACI,+CAAC,SAAI,MAAK,QAAO,WAAU,cACvB;AAAA,uDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,wDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gMAA+L;AAAA,UACjQ,8CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,0KAAyK;AAAA,WAC/O;AAAA,QAAO,KAAK,MAAM;AAAA,SACtB;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,gBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAAU;AAAA,IACrD,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAQ,WAAU,cAAa,OAAO;AAAA,QAC5C,aAAa;AAAA,MACjB,GACI,yDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,sDAAC,UAAK,WAAU,cAAa,UAAS,WAAU,UAAS,WAAU,GAAE,+rBAA8rB;AAAA,QAEnwB,8CAAC,UAAK,WAAU,gCAA+B,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV;AAAA,SAC3a,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASF,MAAAC,uBAAA;AAPhB,MAAqB,YAArB,cAAuC,eAAAC,QAAM,UAG1C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACpG;AAAA,sDAAC,UAAK,GAAE,8OAA6O,MAAK,gBAAe;AAAA,QACzQ,8CAAC,UAAK,GAAE,6OAA4O,MAAK,gBAAe;AAAA,SAC5Q,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASmI,MAAAC,uBAAA;AAPrJ,MAAqB,WAArB,cAAsC,eAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAA6B,wDAAC,UAAK,GAAE,uFAAsF,MAAK,gBAAe,GAAO,GAClQ;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,iBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,aAArB,cAAwC,eAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAEpG;AAAA,sDAAC,UAAK,GAAE,4DAA2D,MAAK,gBAAc;AAAA,QAGtF,8CAAC,UAAK,GAAE,wNAAuN,MAAK,gBAAc;AAAA,SACtP,GACJ;AAAA,IAER;AAAA,EACJ;;;APY2B,MAAAC,uBAAA;AAW3B,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,cAAc,eAAe,QAAI,iDAAoB;AAE7D,UAAM,aAAS,4BAAY,YAAY;AACnC,YAAM,aAAa,gBAAgB;AAAA,IACvC,GAAG,CAAC,cAAc,gBAAgB,CAAC;AAEnC,WACI,8CAAC,sBAAiB,SAAS,QAAQ,cAA4B,cAC3D,wDAAC,YAAS,GACd;AAAA,EAER;AAkCA,MAAM,sBAAsB,CAAC;AAAA,IACzB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,UAAU,QAAI,iDAAoB;AAC1C,UAAM,EAAE,WAAW,QAAI,iDAAoB;AAC3C,UAAM,0BAAsB,4BAAY,YAAY;AAChD,YAAM,WAAW;AACjB,YAAM,UAAU;AAAA,IACpB,GAAG,CAAC,YAAY,SAAS,CAAC;AAE1B,WAAO,8CAAC,sBAAiB,SAAS,qBAAqB,cAA4B,cAC/E,wDAAC,cAAW,GAChB;AAAA,EACJ;AAEA,MAAM,gBAAgB,CAAC;AAAA,IACnB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,eAAe,QAAI,iDAAoB;AAC/C,UAAM,eAAW,4BAAY,MAAM;AAC/B,qBAAe,gBAAgB;AAAA,IACnC,GAAG,CAAC,gBAAgB,gBAAgB,CAAC;AAErC,WAAO,8CAAC,sBAAiB,SAAS,UAAU,cAA4B,cACpE,wDAAC,eAAY,GACjB;AAAA,EACJ;AAiBA,MAAM,iBAAiB,CAAC;AAAA,IACpB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,aAAa,eAAe,QAAI,6CAAgB;AAE1E,WACI,8CAAC,sBAAiB,OAAO,aAAa,SAAS,mBAAmB,cAAc,IAAI,SAAS,MAAM;AAC/F,UAAI,aAAa,SAAS,kBAAkB;AACxC,uBAAe,IAAI;AAAA,MACvB,OAAO;AACH,uBAAe;AAAA,UACX,MAAM;AAAA,UACN,OAAO;AAAA,QACX,CAAC;AAAA,MACL;AAAA,IACJ,GAAG,cAA4B,cAC3B,wDAAC,oBAAiB,GACtB;AAAA,EAER;AAGA,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,iBAAiB,oBAAoB,QAAI,6CAAgB;AACnF,UAAM,eAAe,oBAAoB;AAEzC,WACI;AAAA,MAAC;AAAA;AAAA,QACI,GAAI,CAAC,eAAe,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,QAC3C,SAAS,MAAM;AAAE,8BAAoB;AAAA,QAAE;AAAA,QACvC,OAAO,CAAC,eAAe,KAAK,uCAAuC,IAAI,KAAK,iBAAiB;AAAA,QAC7F;AAAA,QACA;AAAA,QAEA,wDAAC,eAAY;AAAA;AAAA,IACjB;AAAA,EAER;AAGA,MAAM,YAAY,CAAC;AAAA,IACf;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,8CAAC,sBAAiB,SAAS,MAAM;AAC7B,cAAQ,gBAAgB;AAAA,IAC5B,GAAG,cAA4B,cAC3B,wDAAC,YAAS,GACd;AAAA,EAER;AACA,MAAM,kBAAkB,CAAC;AAAA,IACrB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,gFACI;AAAA,oDAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,OAC9I;AAAA,EAER;AAYO,WAAS,iBAAiB;AAAA,IAC7B;AAAA,EACJ,GAEG;AACC,UAAM,EAAE,kBAAkB,YAAY,QAAI,6CAAgB;AAC1D,UAAM,EAAE,MAAM,UAAU,QAAI,2CAAc,gBAAgB;AAC1D,UAAM,EAAE,WAAW,UAAU,mBAAmB,QAAI,2CAAc,gBAAgB;AAClF,UAAM,CAAC,gBAAgB,iBAAiB,QAAI,yBAAwB,IAAI;AACxE,UAAM,WAAO,wBAAQ,MAAM;AACvB,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,0BAA0B;AAAA,MAC1C;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,iBAAiB;AACnC,eAAO,KAAK,qBAAqB;AAAA,MACrC;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,cAAc,KAAK,eAAe,IAAI,KAAK,iCAAiC;AAAA,MACvF;AACA,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,OAAO;AACzB,eAAO,KAAK,cAAc;AAAA,MAC9B;AACA,UAAI,kBAAkB,YAAY;AAC9B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,aAAO;AAAA,IACX,GAAG,CAAC,gBAAgB,IAAI,CAAC;AAGzB,eAAO,wBAAQ,MAAM;AACjB,aACI,+CAAC,SAAI,WAAU,sBACX;AAAA,sDAAC,SAAI,WAAU,qBAEX,yDAAC,SAAI,WAAU,0BACX;AAAA,yDAAC,SAAI,WAAU,+BACX;AAAA,2DAAC,SAAI,WAAU,0DACX;AAAA,6DAAC,SAAI,WAAU,kCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,oBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBACrD;AAAA,cACA,+CAAC,SAAI,WAAU,mCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,eAAe;AAAA,oBACrD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBAErD;AAAA,eACJ;AAAA,YACA,+CAAC,SAAI,WAAU,4DAEX;AAAA,6DAAC,SAAI,WAAU,uBACV;AAAA,4BAAY,8CAAC,cAAS,OAAM,eAAe,qBAAU,IAAc;AAAA,gBAKnE,CAAC,aAAa,CAAC,sBAAsB,cAAc,8CAAC,cAAU,eAAK,kCAAkC,GAAE,IAAc;AAAA,gBACrH,CAAC,aAAa,CAAC,sBAAsB,OAAO,8CAAC,cAAU,gBAAK,IAAc;AAAA,iBAC/E;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,kBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,cAAG;AAAA,eACrD;AAAA,aACJ;AAAA,UACA,8CAAC,SAAI,WAAU,iCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,KAAK;AAAA,cAC3C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,UACA,8CAAC,SAAI,WAAU,gCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,UAAU;AAAA,cAChD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,WACJ,GACJ;AAAA,QACA,8CAAC,gBAAW;AAAA,QACZ,8CAAC,yBAAsB;AAAA,SAC3B;AAAA,IAER,GAAG,CAAC,MAAM,WAAW,gBAAgB,aAAa,WAAW,UAAU,oBAAoB,MAAM,qBAAqB,CAAC;AAAA,EAC3H;;;AQ5TA,aAAW,SAAS,WAAW,UAAU,CAAC;AACnC,MAAM,SAAU,WAAmB;;;AT4ClC,MAAAC,uBAAA;AAtCD,WAAS,QAAQ;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAIG;AACC,UAAM,CAAC,YAAY,aAAa,QAAI,yBAAS,KAAK;AAElD,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,IAEJ,QAAI,6CAAgB;AAEpB,UAAM,yBAAyB,aAAa,IAAI;AAEhD,UAAM,CAAC,kBAAkB,mBAAmB,QAAI,yBAAS,KAAK;AAG9D,kCAAU,MAAM;AACZ,UAAI,kBAAkB;AAClB,4BAAoB,oBAAoB,eAAe;AAAA,MAC3D,OAAO;AACH,YAAI,kBAAkB;AAClB,wBAAc,KAAK;AAAA,QACvB;AAAA,MACJ;AAAA,IACJ,GAAG,CAAC,gBAAgB,CAAC;AACrB,kCAAU,MAAM;AACZ,UAAI,iBAAiB,gBAAgB;AACjC,sBAAc,KAAK;AAAA,MACvB;AAAA,IACJ,GAAG,CAAC,YAAY,CAAC;AACjB,WACI,gFACI;AAAA,oDAAC,uCAAQ;AAAA,MACT,8CAAC,SAAI,WAAU,oBACX,yDAAC,SAAI,WAAU,eAEP;AAAA,eAAO,OAAO;AAAA,UAAC;AAAA;AAAA,YAAI,KAAK,OAAO;AAAA,YAAM,KAAI;AAAA,YACrC,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,WAAW,aAAa,MAAM;AAAA,YAC9E,OAAO,KAAK,uBAAuB;AAAA,YACnC,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA;AAAA,QACJ,IACI,CAAC,aACG,8CAAC,SAAI,WAAW,gBAAgB,cAC5B,wDAAC,SAAI,WAAU,eAAc,OAAO,yBAAyB,SAAS,KAAK,KAAK,YAAY,GAAG,oBAAC,GACpG,IAEA;AAAA,UAAC;AAAA;AAAA,YACG,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA,YACH;AAAA;AAAA,QAAC;AAAA,QAGd,8CAAC,cAAW;AAAA,SAChB,GACJ;AAAA,MAEI,0BACI,8CAAC,SACG,wDAAC,cAAS,OAAM,eACX,yBAAe,uBAAuB,IAAI,KAAK,uBAA8B,IAAI,yBACtF,GACJ,IACA;AAAA,MAMJ,iBAAiB,eACjB,+CAAC,SAAI,WAAU,cACX;AAAA,sDAAC,SAAI,WAAU,eAAc,OAAO,2BAA2B,IAAI,CAAC,IAAI,EAAE,SAAS,OAAO,GACtF,wDAAC,SAAI,WAAU,mBAEX,wDAAC,wBAAa,eAA8B,GAChD,GACJ;AAAA,QACA,8CAAC,SAAI,WAAU,eAAc,OAAO,aAAa,CAAC,IAAI,EAAE,SAAS,OAAO,GACnE,wBAAc,oBAAoB,8CAAC,oBAAiB,uBAA8C,GACvG;AAAA,SACJ;AAAA,OAGR;AAAA,EAER;;;AUxF4B,MAAAC,uBAAA;AAXb,WAAR,OAAwB;AAC3B,WACI,8CAAC,6CAAc,YAAY,IACvB,wDAAC,SAAI,WAAU,aACX;AAAA,MAAC;AAAA;AAAA,QACG,eAAe,CACX,cACA,YACA,0BACC;AACD,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACJ;AAAA,QAER;AAAA;AAAA,IACJ,GACJ,GACJ;AAAA,EAER;;;ACxBA,sBAA2B;AAKQ,MAAAC,uBAAA;AAFnC,aAAW,QAAQ,WAAW,SAAS,CAAC;AACxC,aAAW,MAAM,wBAAwB,CAAC,gBAA6B;AACnE,kCAAW,WAAW,EAAE,OAAO,8CAAC,QAAK,CAAE;AAAA,EAC3C;", + "sourcesContent": ["module.exports = window.SDPPPInternal", "module.exports = window.React", "module.exports = window.ReactJSXRuntime", "module.exports = window.ReactDOMClient", "export * from \"SDPPPInternal\";", "export default {\n 'SDPPP Get Document': 'DEPRECATED! Get Document',\n 'SDPPP Get Layer By ID': 'DEPRECATED! Get Layer',\n 'SDPPP Get Linked Layers': 'DEPRECATED! Get Linked Layers',\n 'SDPPP Get Layers In Group': 'DEPRECATED! Get Layers In Group',\n 'SDPPP Get Text From Layer': 'DEPRECATED! Get Text From Layer',\n 'SDPPP Parse Layer Info': 'DEPRECATED! Parse Layer Info',\n 'SDPPP Get Selection': 'DEPRECATED! Get Selection', \n 'SDPPP Get Image From Photoshop': 'DEPRECATED! Get Image From Photoshop',\n 'SDPPP Send Images To Photoshop': 'DEPRECATED! Send Images To Photoshop',\n 'SDPPP Send Text To Layer': 'DEPRECATED! Send Text To Layer',\n 'SDPPP Select Layer And Run PS Action': 'DEPRECATED! Select Layer And Run PS Action',\n \"Photoshop Disconnected!\" : \"Photoshop Disconnected!\\n(2.0+ use LoadImage node)\",\n\n}\n", "export default {\n // speicial document/ layer\n '### Active Document ###': '### \u5F53\u524D\u6587\u6863 ###',\n '### The Canvas ###': '### \u6574\u4E2A\u753B\u5E03 ###',\n '### New Layer ###': '### \u65B0\u56FE\u5C42 ###',\n '### Selected Layer ###': '### \u6240\u9009\u56FE\u5C42 ###',\n '### Keep Size or Fit Canvas ###': '### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###',\n '_SDPPP_PSD_': '_SDPPP_PSD_',\n\n // A1111 UI\n 'Save and run immediately': '\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C',\n 'Close': '\u5173\u95ED',\n 'Select a {0}': `\u9009\u62E9\u4E00\u4E2A {0}`,\n\n // comfyui dialog\n 'How to use .ccx file': '\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6',\n '1. If you have installed Adobe Creative Cloud': '1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud', \n 'Just double click the .ccx file, it will install the plugin automatically': '\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5',\n \"2. If you don't have Adobe Creative Cloud\": '2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud',\n 'Rename .ccx to .zip and extract it into ': '\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230',\n 'or': '\u6216',\n 'Photoshop directory': 'Photoshop \u5B89\u88C5\u76EE\u5F55',\n\n // comfyui error\n 'Cannot connect multiple different document widgets with same value': '\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6',\n 'You can only have one SDPPP Settings node in a workflow': '\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9',\n 'convert widget {0} failed:': '\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A',\n 'hidden webview load failed: {0}, please select a browser page to continue': '\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED',\n \n // comfy node title\n 'SDPPP Get Document': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u6587\u6863(GetDocument)',\n 'SDPPP Get Layer By ID': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42(GetLayer)',\n 'SDPPP Get Linked Layers': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)',\n 'SDPPP Get Layers In Group': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)',\n 'SDPPP Get Text From Layer': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)',\n 'SDPPP Parse Layer Info': '\u5E9F\u5F03\u8282\u70B9! \u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)',\n 'SDPPP Get Selection': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u9009\u533A(GetSelection)', \n 'SDPPP Get Image From Photoshop': '\u5E9F\u5F03\u8282\u70B9! \u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)',\n 'SDPPP Send Images To Photoshop': '\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)',\n 'SDPPP Send Text To Layer': '\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)',\n 'SDPPP Select Layer And Run PS Action': '\u5E9F\u5F03\u8282\u70B9! \u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)',\n\n// comfy widget/input\n 'download PS plugin (.ccx)': '\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)',\n 'current ComfyUI pageid: {0}': '\u5F53\u524D ComfyUI \u9875\u9762ID: {0}',\n 'current A1111 pageid: {0}': '\u5F53\u524D A1111 \u9875\u9762ID: {0}',\n 'document linked': '\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'layer linked': '\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'bound linked': '\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'document': '\u6587\u6863', \n 'Document': '\u6587\u6863', \n 'DOCUMENT': '\u6587\u6863', \n 'document_name': '\u6587\u6863\u540D\u5B57id',\n 'layer_nameid': '\u56FE\u5C42\u540D\u5B57id',\n 'layer_name': '\u56FE\u5C42\u540D\u5B57',\n 'layer_info': '\u56FE\u5C42\u4FE1\u606F',\n 'bound_top': '\u8303\u56F4\u4E0A\u8FB9\u8DDD',\n 'bound_left': '\u8303\u56F4\u5DE6\u8FB9\u8DDD',\n 'bound_width': '\u8303\u56F4\u5BBD\u5EA6',\n 'bound_height': '\u8303\u56F4\u9AD8\u5EA6',\n 'center_x': '\u4E2D\u5FC3\u70B9x',\n 'center_y': '\u4E2D\u5FC3\u70B9y',\n 'opacity': '\u900F\u660E\u5EA6',\n 'layer': '\u56FE\u5C42',\n 'layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'Layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'bound': '\u8303\u56F4',\n 'bounds': '\u8303\u56F4',\n 'bounds [optional]': '\u8303\u56F4[\u53EF\u9009]',\n 'boundary': '\u8303\u56F4',\n 'Boundary': '\u8303\u56F4',\n 'canvas_boundary': '\u753B\u5E03\u8303\u56F4',\n 'canvas_bound': '\u753B\u5E03\u8303\u56F4',\n 'layer_boundary': '\u56FE\u5C42\u8303\u56F4',\n 'layer_bound': '\u56FE\u5C42\u8303\u56F4',\n \"Photoshop Disconnected!\" : \"Photoshop \u672A\u8FDE\u63A5\uFF01\\n(2.0+ \u8BF7\u6539\u7528LoadImage\u8282\u70B9)\",\n 'rgb_out': 'RGB\u8F93\u51FA',\n 'alpha_out': 'Alpha\u8F93\u51FA',\n 'images': '\u56FE\u50CF',\n 'text': '\u6587\u672C',\n 'ID_mode': '\u7CBE\u786EID\u6A21\u5F0F',\n 'name_mode': '\u540D\u5B57\u5339\u914D\u6A21\u5F0F',\n 'select': '\u9009\u62E9',\n 'document boundary': '\u6587\u6863\u8303\u56F4',\n 'layer boundary': '\u56FE\u5C42\u8303\u56F4',\n 'selection boundary': '\u9009\u4E2D\u8303\u56F4',\n 'save .psd to this workflow': '\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41',\n 'extract saved .psd to Photoshop': '\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop',\n 'sample .psd': '\u793A\u4F8B.psd',\n 'mask': '\u906E\u7F69',\n 'name': '\u540D\u79F0',\n 'quality': '\u56FE\u50CF\u8D28\u91CF',\n 'action_set': '\u52A8\u4F5C\u7EC4',\n 'action': '\u52A8\u4F5C',\n \n // photoshop UI\n 'Runner': '\u8FD0\u884C\u8F7D\u4F53',\n 'PS Webview': 'PS \u5185\u7F6E\u7F51\u9875',\n 'Browser {0}': '\u6D4F\u89C8\u5668\u9875\u9762 {0}',\n 'timeout': '\u8D85\u65F6',\n 'Loading...': '\u52A0\u8F7D\u4E2D...',\n '--multi-user Not Login!': '--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01',\n 'Logout': '\u767B\u51FA',\n 'User: ': '\u7528\u6237: ',\n 'connect': '\u8FDE\u63A5',\n 'connected': '\u5DF2\u8FDE\u63A5',\n 'disconnect': '\u65AD\u5F00',\n 'disconnected': '\u5DF2\u65AD\u5F00\u8FDE\u63A5',\n 'reconnecting...': '\u91CD\u8FDE\u4E2D...', \n 'connecting': '\u8FDE\u63A5\u4E2D', \n 'webpages': '\u7F51\u9875\u5217\u8868',\n 'workflows': '\u5DE5\u4F5C\u6D41',\n 'workflow': '\u5DE5\u4F5C\u6D41',\n 'auto run page [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..',\n 'auto run workflow [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..',\n 'auto run workflow after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..',\n 'selection_only': '\u4EC5\u9009\u533A',\n 'Queue:': '\u961F\u5217:',\n 'Set As:': '\u8BBE\u7F6E\u4E3A:',\n 'Error {0}... please contact me via Discord/Github': '\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211',\n 'Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System': 'Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF',\n 'ComfyUI with --multi-user is only available for sponsors': '\u5E26\"--multi-user\"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',\n 'Workflow Runner is loading...': '\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...',\n '(Page ID: {0})Queue: {1}': '(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}',\n 'no suitable node to control in this workflow': '\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9',\n \"Save\": \"\u4FDD\u5B58\",\n \"Edit\": \"\u7F16\u8F91\",\n \"Edit in ComfyUI\": \"\u5728 ComfyUI \u4E2D\u7F16\u8F91\",\n \"using browser page [{0}] for workflow running\": '\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'workflow running by hidden webview': '\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C',\n 'Lock Image': '\u9501\u5B9A\u56FE\u50CF',\n 'Unlock Image': '\u89E3\u9501\u56FE\u50CF',\n 'search...': '\u641C\u7D22...',\n 'disabled when running in browser page': '\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528',\n 'only supported in Photoshop': '\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301',\n 'Login': '\u767B\u5F55',\n 'Invitation Code': '\u9080\u8BF7\u7801',\n 'Username': '\u7528\u6237\u540D',\n 'Password': '\u5BC6\u7801',\n 'Please input invitation code': '\u8BF7\u8F93\u5165\u9080\u8BF7\u7801',\n 'Please input username': '\u8BF7\u8F93\u5165\u7528\u6237\u540D',\n 'Please input password': '\u8BF7\u8F93\u5165\u5BC6\u7801',\n 'Open more ComfyUI pages to see more options here': '\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879',\n 'Comfy multi-user: ': 'Comfy \u591A\u7528\u6237: ',\n 'Not Login': '\u672A\u767B\u5F55',\n 'Comfy API-Key: ': 'Comfy API-Key: ',\n 'Login/Auth': '\u767B\u5F55/\u8BA4\u8BC1',\n 'Logged in by email/password': '\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55',\n 'Set API Key': '\u8BBE\u7F6E API Key',\n 'Please input API key (will reload Runner)': '\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)',\n '### Active Workflow ###': '### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###',\n '### Example SDXL ###': '### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###',\n 'Open ComfyUI in the browser to see more options': '\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879',\n 'Webview load timeout, please switch to a different runner': 'Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53',\n 'Save workflow to ComfyUI': '\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI',\n 'Reload workflow': '\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41',\n 'Stop and cancel all': '\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709',\n 'Start auto running after change': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C',\n 'Stop auto run': '\u505C\u6B62\u81EA\u52A8\u8FD0\u884C',\n 'Run workflow': '\u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'Run workflow xN': '\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21',\n 'Back to workflow list': '\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868',\n\n // photoshop connect error\n '502: Maybe the server is not running': '502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C',\n '404: Maybe SDPPP is not installed or failed to run in ComfyUI': '404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25',\n '{0}. reconnecting...': '{0}. \u91CD\u8FDE\u4E2D...',\n 'disconnected to {0} failed {1}': `\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}`,\n 'version mismatch, please reinstall PS plugin': '\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6',\n 'instance type not recognized': '\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B',\n 'Error: {0}': '\u9519\u8BEF: {0}',\n 'Verification Error': '\u9A8C\u8BC1\u9519\u8BEF',\n\n // photoshop event error\n 'document {0} not found': '\u627E\u4E0D\u5230\u6587\u6863: {0}',\n 'only layer kind \"TEXT\" is supported, invalid layer: {0}': '\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}',\n 'create layer failed': '\u521B\u5EFA\u56FE\u5C42\u5931\u8D25',\n 'layer not found {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'no linked layer for {0}': '\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}',\n 'layer {0} is not a group': '\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4',\n 'no layer in group {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42',\n 'layer not found: {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'No upload_name': '\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25',\n 'get pixel of {0} failed': '\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}',\n 'merge group failed': '\u5408\u5E76\u7EC4\u5931\u8D25',\n 'invalid name: {0}': '\u975E\u6CD5\u7684\u540D\u79F0: {0}',\n 'get_layer_info: layer_identify required': 'get_layer_info: \u9700\u8981 layer_identify',\n 'invalid action: {0}': '\u65E0\u6548\u7684\u64CD\u4F5C: {0}',\n 'create document failed': '\u521B\u5EFA\u6587\u6863\u5931\u8D25',\n 'create document for preview': '\u521B\u5EFA\u9884\u89C8\u6587\u6863',\n 'resize document for preview': '\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8',\n 'no first related layer in {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42',\n \"imageDataError: data length is not multiple of width * height\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570\",\n \"imageDataError: originComponents must be 1 or 3\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3\",\n 'unexpected connection lost, please try to reconnect': '\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5',\n \"Workflow list is empty, please save a workflow by Comfy's lastest UI\": '\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41',\n 'No opened ComfyUI pages': '\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762',\n 'comfyAPI is not initialized, maybe comfyUI is too old': '\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7',\n 'unsupported channel counts: {0}': '\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}',\n 'Timeout, Maybe the URL is wrong': '\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF',\n 'Workflow list loading failed: {0}': '\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}',\n 'Please register a user in ComfyUI': '\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237',\n 'GetSelection need Photoshop version 25+': 'GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C',\n 'Action {0} not found': 'Action {0} \u672A\u627E\u5230',\n 'Action set {0} not found': 'ActionSet {0} \u672A\u627E\u5230',\n '{0} cannot be used in Photoshop Action Node': '{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528',\n 'Group layers': '\u56FE\u5C42\u7EC4',\n 'Show All Groups': '\u663E\u793A\u6240\u6709\u7EC4',\n\n // photoshop modal state\n 'create document for sent images': '\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863',\n 'show sent images': '\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n 'fallback show sent images': '\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n \"get content of layer {0}\": \"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9\",\n 'fallback get content of layer {0}': '\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9',\n 'get layer info': '\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F',\n 'sdppp extract PSD': 'sdppp \u5BFC\u5165 PSD',\n 'sdppp get PSD': 'sdppp \u83B7\u53D6 PSD', \n 'set text to layer': '\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C',\n 'run Photoshop Action': 'sdppp \u8FD0\u884C Photoshop Action',\n 'select layer': 'sdppp \u9009\u4E2D\u56FE\u5C42',\n \n // photoshop dialog/widget\n '{0} wants to extract a PSD file to Photoshop, are you sure?': '{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F',\n 'should sdppp refuse extracting PSD to Photoshop in this session anymore?': '\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F',\n 'Wide Mode': '\u5BBD\u5C4F\u6A21\u5F0F',\n 'Quick Set': '\u5FEB\u901F\u8BBE\u7F6E',\n 'Selected Layer': '\u9009\u4E2D\u56FE\u5C42',\n 'Selected Layer (invert)': '\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)',\n 'Canvas': '\u753B\u5E03',\n 'Selection': '\u9009\u533A',\n 'Manual': '\u624B\u52A8\u6A21\u5F0F',\n 'Auto': '\u81EA\u52A8\u6A21\u5F0F',\n\n // about\n 'This plugin is based on sd-ppp': '\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1',\n 'And follows its open source license:': '\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A',\n \"Cloud\": \"\u4E91\u7AEF\u63A8\u8350\",\n \"Sponsors\": \"\u8D5E\u52A9\",\n \"waiting...\": '\u865A\u4F4D\u4EE5\u5F85',\n 'Links': '\u53CB\u60C5\u94FE\u63A5',\n 'Community': '\u793E\u533A',\n 'LICENSE:': '\u8BB8\u53EF\u8BC1\uFF1A',\n 'Official Site': '\u5B98\u65B9\u7F51\u7AD9',\n\n // comfy popup\n \"upload\": \"\u4E0A\u4F20\",\n \"Simplify Workflow\": \"\u7B80\u5316\u5DE5\u4F5C\u6D41\",\n \"Photoshop\": \"Photoshop\",\n \"Photoshop plugin settings\": \"Photoshop \u63D2\u4EF6\u8BBE\u7F6E\",\n \"Photoshop plugin\": \"Photoshop \u63D2\u4EF6\",\n \"SDPPP Settings/Misc\": \"SDPPP \u8BBE\u7F6E/\u6742\u9879\",\n \"Sample .PSD for this workflow:\": \"\u793A\u4F8B.PSD\",\n \"Download Example .PSD\": \"\u4E0B\u8F7D\u793A\u4F8B.PSD\",\n \"Maximum Image Size (px):\": \"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)\",\n \"Download\": \"\u4E0B\u8F7D\",\n \"Upload\": \"\u4E0A\u4F20\",\n \"Reset\": \"\u91CD\u7F6E\",\n 'Refresh': '\u5237\u65B0',\n 'Comfy URL (You can copy it to connect ComfyUI in the plugin):': 'Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):',\n 'use slider for number widget:': '\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757',\n 'Photoshop is not connected': 'Photoshop \u672A\u8FDE\u63A5',\n 'select...': '\u8BF7\u9009\u62E9',\n 'click to edit': '\u70B9\u51FB\u7F16\u8F91',\n\n // comfy call error\n 'ComfyManager not found, cannot reboot': 'Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F',\n 'Failed to reboot ComfyUI': '\u91CD\u542FComfyUI\u5931\u8D25',\n}\n", "import en from './en.mjs';\nimport zhcn from './zh-cn.mjs';\n//@ts-ignore\nconst require_ = typeof require != 'undefined' ? require : undefined\n\nlet locale = 'en'\nif (typeof navigator !== 'undefined' && navigator.language) {\n locale = navigator.language == \"zh-CN\" ? 'zhcn' : 'en'\n} else if (require_) {\n locale = require_('uxp').host.uiLocale.startsWith(\"zh\") ? 'zhcn' : 'en';\n}\n\nexport type I18nKey = keyof typeof zhcn;\n\nexport default function i18n(key: keyof typeof zhcn, ...args: any[]) {\n const formatStr: string = locale == 'zhcn' ? zhcn[key] : (key in en ? (en as any)[key] : key);\n if (!formatStr) throw new Error(`i18n key not found: ${key}`);\n\n return formatStr.replace(/{(\\d+)}/g, function (match, number) {\n return typeof args[number] != 'undefined' ? args[number] : match\n });\n}\n\nexport function isValidI18nKey(key: string) {\n return key in zhcn;\n}\n\nexport function isI18nOf(key: keyof typeof zhcn, str: string) {\n return key == str || zhcn[key] == str;\n}\n\nexport function getI18nLocale() {\n return locale;\n}\n", "import React from \"react\";\n\nexport default class ActionButton extends React.Component<{\n onClick?: (...args: any[]) => any\n highlight?: boolean\n children?: React.ReactNode\n}> {\n render() {\n return (\n
    \n {this.props.children}\n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class EditIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class FolderIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class LivePaintingIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n \n
    \n )\n }\n}", "import React from \"react\";\n\nexport default class PlayIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\nimport ActionButton from \"./ActionButton.js\";\nimport EditIcon from \"./icons/EditIcon.js\";\nimport FolderIcon from \"./icons/FolderIcon.js\";\nimport LivePaintingIcon from \"./icons/LivePaintingIcon.js\";\nimport PlayIcon from \"./icons/PlayIcon.js\";\nimport { useSDPPPContext, useSDPPPComfyCaller } from \"./SDPPPInternalBridge.js\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\n\nconst ICON_SIZE = 0.6;\nconst CLASS_NAMES = {\n LIST_ITEM: \"client-list-item\",\n LIST_ITEM_LEFT: \"client-list-item-left\",\n LIST_ITEM_RIGHT: \"client-list-item-right\",\n TIPS_ICON: \"tips-icon\",\n CHECKED: \"checked\"\n};\n\ninterface BaseListItemProps {\n isChecked?: boolean;\n children: React.ReactNode;\n rightContent?: React.ReactNode;\n onClick?: () => void;\n}\n\nconst BaseListItem: React.FC = ({\n isChecked = false,\n children,\n rightContent,\n onClick\n}) => {\n return (\n
  • \n \n {children}\n \n {rightContent && (\n
    \n {rightContent}\n
    \n )}\n
  • \n );\n};\n\ninterface DirectoryItemProps {\n path: string;\n dirname: string;\n onDirectorySet: (path: string) => void;\n}\n\nconst DirectoryItem: React.FC = ({\n path,\n dirname,\n onDirectorySet\n}) => {\n const handleClick = () => {\n if (path === '../') {\n const directoryWithoutSuffix = dirname || '';\n const lastSlashIndex = directoryWithoutSuffix.lastIndexOf('/');\n // no slash anymore. or meet the protocol name\n if (lastSlashIndex === -1 || directoryWithoutSuffix[lastSlashIndex - 1] === '/') {\n onDirectorySet?.('');\n } else {\n onDirectorySet?.(directoryWithoutSuffix.slice(0, lastSlashIndex));\n }\n } else {\n onDirectorySet?.(path);\n }\n };\n\n return (\n \n \n
    {path.slice(0, -1).split('/').pop()}
    \n
    \n );\n};\n\ninterface WorkflowItemProps {\n isChecked: boolean;\n workflow: {\n path: string;\n error: string;\n };\n onRun: (path: string) => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\ninterface ActiveWorkflowItemProps {\n path: string | null;\n title: string;\n onRun: () => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\nconst WorkflowActions: React.FC<{\n isChecked?: boolean;\n onEdit: () => void;\n onAutoRun?: () => void;\n onRun: () => void;\n}> = ({ isChecked, onEdit, onAutoRun, onRun }) => {\n return (\n <>\n
    \n \n
    \n {onAutoRun && (\n \n \n \n )}\n \n \n \n \n );\n};\n\nconst WorkflowItem: React.FC = ({\n isChecked,\n workflow,\n onRun,\n setEditorMode\n}) => {\n const {\n setAutoRunning,\n workflowAgentSID\n } = useSDPPPContext();\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n\n const handleEditClick = () => {\n setEditorMode(true);\n openWorkflow(workflowAgentSID, workflow.path);\n };\n\n const handleAutoRunClick = () => {\n if (!isChecked) {\n setAutoRunning({ type: 'workflow', value: workflow.path });\n } else {\n setAutoRunning(null);\n }\n };\n \n return (\n onRun(workflow.path)}\n />\n }\n onClick={handleEditClick}\n >\n {workflow.error ? workflow.error.replace('sdppp PS side error:', '') : workflow.path.split('/').pop()}\n \n );\n};\n\nconst SpecialWorkflowItem: React.FC = ({\n onRun,\n path,\n title,\n setEditorMode\n}) => {\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n const {\n workflowAgentSID\n } = useSDPPPContext();\n\n const handleEditClick = async () => {\n path && await openWorkflow(workflowAgentSID, path);\n setEditorMode(true);\n };\n\n return (\n \n }\n onClick={handleEditClick}\n >\n {title}\n \n );\n};\n\nexport {\n DirectoryItem,\n WorkflowItem,\n SpecialWorkflowItem\n};\n", "import React from \"react\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\nimport { SpecialWorkflowItem, DirectoryItem, WorkflowItem } from \"./WorkflowListItem.js\";\nimport {\n useSDPPPComfyCaller, useAgentState,\n useSDPPPContext, useSDPPPWorkflowList\n} from \"./SDPPPInternalBridge.js\";\n\ninterface WorkflowListProps {\n setEditorMode: (editorMode: boolean) => void\n}\n\nconst WorkflowList: React.FC = ({ setEditorMode }) => {\n const {\n autoRunning,\n workflowAgentSID,\n } = useSDPPPContext();\n\n const {\n runWorkflow,\n runPage\n } = useSDPPPComfyCaller();\n\n const {\n workflows,\n workflowsError,\n currentViewingDirectory,\n setCurrentViewingDirectory,\n showingList\n } = useSDPPPWorkflowList();\n\n let listReplacer = null;\n if (workflowsError)\n return
    \n {workflowsError}\n
    \n\n return (\n
    \n
      \n {\n currentViewingDirectory ?\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n : null\n }\n {\n showingList.map((item: { path: string, isDir: boolean }) => {\n const path = item.path;\n const workflow = workflows[path]\n const checked = autoRunning?.value == path;\n if (item.isDir) {\n return (\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n )\n }\n return (\n {\n await runWorkflow(path);\n }}\n />\n )\n })\n }\n\n
    \n \n
      \n {\n await runPage(workflowAgentSID);\n }}\n />\n {\n await runPage(workflowAgentSID);\n }}\n />\n
    \n\n {autoRunning?.type == 'workflow' ? {i18n(`auto run workflow [{0}] after change..`, workflows[autoRunning?.value]?.path)} : ''}\n
    \n );\n};\n\nexport default WorkflowList;", "import { useSDPPPContext, Promote, Auths } from \"./SDPPPInternalBridge.js\";\nimport i18n, { isValidI18nKey } from \"../../../../src/common/i18n.mjs\";\nimport WorkflowList from \"./WorkflowList.js\";\nimport { useEffect, useState } from \"react\";\nimport { WorkflowEditWrap } from \"./WorkflowEditWrap.js\";\nimport type { AddressBarType, WorkflowEditPhotoshopType } from \"./SDPPPInternalBridge.js\";\nimport { sdpppX } from \"../../../../src/common/sdpppX.mjs\";\n\nexport function Content({\n connectState,\n AddressBar,\n WorkflowEditPhotoshop,\n}: {\n connectState: 'connected' | 'disconnected' | 'connecting',\n AddressBar: AddressBarType,\n WorkflowEditPhotoshop: WorkflowEditPhotoshopType,\n}) {\n const [editorMode, setEditorMode] = useState(false);\n\n const {\n workflowAgentSID,\n webviewAgentSID,\n lastConnectErrorMessage,\n\n } = useSDPPPContext();\n\n const editorCardShowingIndex = editorMode ? 1 : 0;\n\n const [prevIsNotWebview, setPrevIsNotWebview] = useState(false);\n\n // when disconnect and the agent is not webview, set editor mode to false\n useEffect(() => {\n if (workflowAgentSID) {\n setPrevIsNotWebview(workflowAgentSID != webviewAgentSID);\n } else {\n if (prevIsNotWebview) {\n setEditorMode(false);\n }\n }\n }, [workflowAgentSID]);\n useEffect(() => {\n if (connectState === 'disconnected') {\n setEditorMode(false);\n }\n }, [connectState]);\n return (\n <>\n \n
    \n
    \n { \n sdpppX.logo ? \"logo\"\n {\n setEditorMode(false);\n }}\n /> : (\n !editorMode ?\n
    \n
    \u2B24
    \n
    \n :\n {\n setEditorMode(false);\n }}\n >\u2190\n )\n }\n \n
    \n
    \n {\n lastConnectErrorMessage ? (\n
    \n \n {isValidI18nKey(lastConnectErrorMessage) ? i18n(lastConnectErrorMessage as any) : lastConnectErrorMessage}\n \n
    \n ) : ''\n }\n\n {/* */}\n\n {\n connectState === \"connected\" &&\n
    \n
    \n
    \n {/* */}\n \n
    \n
    \n
    \n {editorMode && workflowAgentSID && }\n
    \n
    \n }\n\n \n );\n}\n\n\n", "import { useCallback, useMemo, useState } from \"react\"\nimport i18n from \"../../../../src/common/i18n.mjs\"\nimport LivePaintingIcon from \"./icons/LivePaintingIcon\"\nimport PlayIcon from \"./icons/PlayIcon\"\nimport {\n useSDPPPComfyCaller,\n useSDPPPContext,\n useAgentState,\n} from \"./SDPPPInternalBridge\"\nimport RefreshIcon from \"./icons/RefreshIcon\"\nimport SaveIcon from \"./icons/SaveIcon\"\nimport PlayMultiIcon from \"./icons/PlayMultiIcon\"\nimport WebEditIcon from \"./icons/WebEditIcon\"\nimport CrossIcon from \"./icons/CrossIcon\"\nimport StopIcon from \"./icons/StopIcon\"\nimport CancelIcon from \"./icons/CancelIcon\"\nimport { action } from \"photoshop\";\n\ninterface HoverableButtonProps {\n onMouseEnter: () => void;\n onMouseLeave: () => void;\n}\n\n// \u72B6\u6001\u663E\u793A\u7EC4\u4EF6\nconst WorkflowStatus = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n\n return (\n
    \n {autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {lastError ? {lastError} : ''}\n {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''}\n
    \n );\n};\n\n// \u4FDD\u5B58\u548C\u5237\u65B0\u6309\u94AE\u7EC4\nconst SaveButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { saveWorkflow, reopenWorkflow } = useSDPPPComfyCaller();\n\n const onSave = useCallback(async () => {\n await saveWorkflow(workflowAgentSID);\n }, [saveWorkflow, workflowAgentSID]);\n\n return (\n \n \n \n );\n};\nconst ClearButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClear = useCallback(() => {\n clearQueue();\n }, [clearQueue]);\n\n return \n \n \n}\n\nconst RebootButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reboot } = useSDPPPComfyCaller();\n const onReboot = useCallback(() => {\n reboot();\n }, [reboot]);\n\n return \u91CD\u542F\n}\n\nconst StopButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { interrupt } = useSDPPPComfyCaller();\n const onInterrupt = useCallback(() => {\n interrupt();\n }, [interrupt]);\n\n return \n \n \n}\nconst StopAndCancelButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { interrupt } = useSDPPPComfyCaller();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClearAndInterrupt = useCallback(async () => {\n await clearQueue();\n await interrupt();\n }, [clearQueue, interrupt]);\n\n return \n \n \n}\n\nconst RefreshButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reopenWorkflow } = useSDPPPComfyCaller();\n const onReopen = useCallback(() => {\n reopenWorkflow(workflowAgentSID);\n }, [reopenWorkflow, workflowAgentSID]);\n\n return \n \n \n}\n\nconst PlayMultiButtons = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return <>\n {!autoRunning ? { runPage(workflowAgentSID, 10) }}>\n \n : ''}\n {!autoRunning ? { runPage(workflowAgentSID, 3) }}>\n \n : ''}\n \n}\n\n// \u81EA\u52A8\u8FD0\u884C\u6309\u94AE\nconst AutoRunButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, autoRunning, setAutoRunning } = useSDPPPContext();\n\n return (\n {\n if (autoRunning?.value == workflowAgentSID) {\n setAutoRunning(null);\n } else {\n setAutoRunning({\n type: 'page',\n value: workflowAgentSID\n });\n }\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\n\n// \u7F16\u8F91\u6309\u94AE\nconst EditButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, webviewAgentSID, toggleWebviewDialog } = useSDPPPContext();\n const usingWebview = workflowAgentSID == webviewAgentSID;\n\n return (\n { toggleWebviewDialog() }}\n title={!usingWebview ? i18n('disabled when running in browser page') : i18n('Edit in ComfyUI')}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n \n \n );\n};\n\n// \u8FD0\u884C\u6309\u94AE\nconst RunButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n {\n runPage(workflowAgentSID);\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\nconst RunMultiButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n <>\n
    { runPage(workflowAgentSID, 2) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x2
    \n
    { runPage(workflowAgentSID, 5) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x5
    \n
    { runPage(workflowAgentSID, 9) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x9
    \n \n )\n}\n\n// const TestButtons = () => {\n// const { interrupt, clearQueue, reboot } = useSDPPPComfyCaller();\n\n// return (\n// { reboot() }}>\n// \n// \n// )\n// }\n\nexport function WorkflowEditWrap({\n WorkflowEditPhotoshop\n}: {\n WorkflowEditPhotoshop: any,\n}) {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { ssid, queueSize } = useAgentState(workflowAgentSID);\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n const [hoveringButton, setHoveringButton] = useState(null);\n const tips = useMemo(() => {\n if (hoveringButton == 'save') {\n return i18n('Save workflow to ComfyUI');\n }\n if (hoveringButton == 'refresh') {\n return i18n('Reload workflow');\n }\n if (hoveringButton == 'stopAndCancel') {\n return i18n('Stop and cancel all');\n }\n if (hoveringButton == 'autoRun') {\n return autoRunning ? i18n('Stop auto run') : i18n('Start auto running after change');\n }\n if (hoveringButton == 'edit') {\n return i18n('Edit in ComfyUI');\n }\n if (hoveringButton == 'run') {\n return i18n('Run workflow');\n }\n if (hoveringButton == 'runMulti') {\n return i18n('Run workflow xN');\n }\n return '';\n }, [hoveringButton, i18n]);\n\n\n return useMemo(() => {\n return (\n
    \n
    \n {/* {i18n('(Page ID: {0})Queue: {1}', ssid, queueSize)} */}\n
    \n
    \n
    \n
    \n setHoveringButton('save')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('refresh')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('stopAndCancel')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('autoRun')}\n onMouseLeave={() => setHoveringButton(null)} />\n {/* */}\n
    \n
    \n
    \n\n
    \n {lastError ? {lastError} : ''}\n {/* {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''} */}\n {!lastError && !executingNodeTitle && autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {!lastError && !executingNodeTitle && tips ? {tips} : ''}\n
    \n {/* */}\n setHoveringButton('edit')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n setHoveringButton('run')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('runMulti')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n \n \n
    \n );\n }, [ssid, queueSize, hoveringButton, autoRunning, lastError, progress, executingNodeTitle, tips, WorkflowEditPhotoshop]);\n}\n", "import React from \"react\";\n\nexport default class RefreshIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class SaveIcon extends React.Component {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class PlayMultiIcon extends React.Component<{ count: number }> {\n render() {\n return (\n
    \n \n \n \n {this.props.count}\n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class WebEditIcon extends React.Component {\n render() {\n return (\n
    \n \n \n\n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CrossIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}", "import React from \"react\";\n\nexport default class StopIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CancelIcon extends React.Component<{\n size?: number,\n}> {\n render() {\n return (\n
    \n \n {/* Single diagonal line from bottom-left to top-right */}\n \n \n {/* Circle outline */}\n \n \n
    \n )\n }\n}", "// @ts-ignore\nglobalThis.sdpppX = globalThis.sdpppX || {};\nexport const sdpppX = (globalThis as any).sdpppX;", "import { Content } from \"./Content.js\";\nimport { SDPPP, SDPPPProvider } from \"./SDPPPInternalBridge.js\";\n\nexport default function Main() {\n return (\n \n
    \n {\n return (\n \n )\n }}\n />\n
    \n
    \n )\n}", "import Main from \"./tsx/Main.js\";\nimport { createRoot } from \"react-dom/client\";\n\ndeclare const globalThis: any;\nglobalThis.sdppp = globalThis.sdppp || {};\nglobalThis.sdppp.renderPhotoshopPlugin = (rootElement: HTMLElement) => {\n createRoot(rootElement).render(
    );\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA,0CAAc;;;ACAd,MAAO,aAAQ;AAAA,IACX,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,4BAA4B;AAAA,IAC5B,wCAAwC;AAAA,IACxC,2BAA4B;AAAA,EAEhC;;;ACdA,MAAO,gBAAQ;AAAA;AAAA,IAEX,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,0BAA0B;AAAA,IAC1B,mCAAmC;AAAA,IACnC,eAAe;AAAA;AAAA,IAGf,4BAA4B;AAAA,IAC5B,SAAS;AAAA,IACT,gBAAgB;AAAA;AAAA,IAGhB,wBAAwB;AAAA,IACxB,iDAAiD;AAAA,IACjD,6EAA6E;AAAA,IAC7E,6CAA6C;AAAA,IAC7C,4CAA4C;AAAA,IAC5C,MAAM;AAAA,IACN,uBAAuB;AAAA;AAAA,IAGvB,sEAAsE;AAAA,IACtE,2DAA2D;AAAA,IAC3D,8BAA8B;AAAA,IAC9B,6EAA6E;AAAA;AAAA,IAG7E,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,4BAA4B;AAAA,IAC5B,wCAAwC;AAAA;AAAA,IAGxC,6BAA6B;AAAA,IAC7B,+BAA+B;AAAA,IAC/B,6BAA6B;AAAA,IAC7B,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,IACb,cAAc;AAAA,IACd,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,SAAS;AAAA,IACT,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,2BAA4B;AAAA,IAC5B,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,IACtB,8BAA8B;AAAA,IAC9B,mCAAmC;AAAA,IACnC,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,cAAc;AAAA,IACd,UAAU;AAAA;AAAA,IAGV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,IACb,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,sCAAsC;AAAA,IACtC,0CAA0C;AAAA,IAC1C,oCAAoC;AAAA,IACpC,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV,WAAW;AAAA,IACX,qDAAqD;AAAA,IACrD,wGAAwG;AAAA,IACxG,4DAA4D;AAAA,IAC5D,iCAAiC;AAAA,IACjC,4BAA4B;AAAA,IAC5B,gDAAgD;AAAA,IAChD,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,mBAAmB;AAAA,IACnB,iDAAiD;AAAA,IACjD,sCAAsC;AAAA,IACtC,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,yCAAyC;AAAA,IACzC,+BAA+B;AAAA,IAC/B,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gCAAgC;AAAA,IAChC,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,oDAAoD;AAAA,IACpD,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,+BAA+B;AAAA,IAC/B,eAAe;AAAA,IACf,6CAA6C;AAAA,IAC7C,2BAA2B;AAAA,IAC3B,wBAAwB;AAAA,IACxB,mDAAmD;AAAA,IACnD,6DAA6D;AAAA,IAC7D,4BAA4B;AAAA,IAC5B,mBAAmB;AAAA,IACnB,uBAAuB;AAAA,IACvB,mCAAmC;AAAA,IACnC,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA;AAAA,IAGzB,wCAAwC;AAAA,IACxC,iEAAiE;AAAA,IACjE,wBAAwB;AAAA,IACxB,kCAAkC;AAAA,IAClC,gDAAgD;AAAA,IAChD,gCAAgC;AAAA,IAChC,cAAc;AAAA,IACd,sBAAsB;AAAA;AAAA,IAGtB,0BAA0B;AAAA,IAC1B,2DAA2D;AAAA,IAC3D,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,IACvB,2BAA2B;AAAA,IAC3B,4BAA4B;AAAA,IAC5B,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,2CAA2C;AAAA,IAC3C,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,+BAA+B;AAAA,IAC/B,iCAAiC;AAAA,IACjC,iEAAiE;AAAA,IACjE,mDAAmD;AAAA,IACnD,uDAAuD;AAAA,IACvD,wEAAwE;AAAA,IACxE,2BAA2B;AAAA,IAC3B,yDAAyD;AAAA,IACzD,mCAAmC;AAAA,IACnC,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,qCAAqC;AAAA,IACrC,2CAA2C;AAAA,IAC3C,wBAAwB;AAAA,IACxB,4BAA4B;AAAA,IAC5B,+CAA+C;AAAA,IAC/C,gBAAgB;AAAA,IAChB,mBAAmB;AAAA;AAAA,IAGnB,mCAAmC;AAAA,IACnC,oBAAoB;AAAA,IACpB,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,qCAAqC;AAAA,IACrC,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA;AAAA,IAGhB,+DAA+D;AAAA,IAC/D,4EAA4E;AAAA,IAC5E,aAAa;AAAA,IACb,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA;AAAA,IAGR,kCAAkC;AAAA,IAClC,wCAAwC;AAAA,IACxC,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,iBAAiB;AAAA;AAAA,IAGjB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,oBAAoB;AAAA,IACpB,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,yBAAyB;AAAA,IACzB,4BAA4B;AAAA,IAC5B,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,IACX,iEAAiE;AAAA,IACjE,iCAAiC;AAAA,IACjC,8BAA8B;AAAA,IAC9B,aAAa;AAAA,IACb,iBAAiB;AAAA;AAAA,IAGjB,yCAAyC;AAAA,IACzC,4BAA4B;AAAA,EAChC;;;ACzQA,MAAM,WAAW,OAAO,aAAW,cAAc,YAAU;AAE3D,MAAI,SAAS;AACb,MAAI,OAAO,cAAc,eAAe,UAAU,UAAU;AACxD,aAAS,UAAU,YAAY,UAAU,SAAS;AAAA,EACtD,WAAW,UAAU;AACjB,aAAS,SAAS,KAAK,EAAE,KAAK,SAAS,WAAW,IAAI,IAAI,SAAS;AAAA,EACvE;AAIe,WAAR,KAAsB,QAA2B,MAAa;AACjE,UAAM,YAAoB,UAAU,SAAS,cAAK,GAAG,IAAK,OAAO,aAAM,WAAW,GAAG,IAAI;AACzF,QAAI,CAAC,UAAW,OAAM,IAAI,MAAM,uBAAuB,GAAG,EAAE;AAE5D,WAAO,UAAU,QAAQ,YAAY,SAAU,OAAO,QAAQ;AAC1D,aAAO,OAAO,KAAK,MAAM,KAAK,cAAc,KAAK,MAAM,IAAI;AAAA,IAC/D,CAAC;AAAA,EACL;AAEO,WAAS,eAAe,KAAa;AACxC,WAAO,OAAO;AAAA,EAClB;;;ACzBA,qBAAkB;AASN;AAPZ,MAAqB,eAArB,cAA0C,aAAAA,QAAM,UAI7C;AAAA,IACC,SAAS;AACL,aACI,4CAAC,SAAI,WAAW,iBAAiB,KAAK,MAAM,YAAY,cAAc,EAAE,IAAI,SAAS,KAAK,MAAM,SAC3F,eAAK,MAAM,UAChB;AAAA,IAER;AAAA,EACJ;;;ACdA,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV,GACtZ,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,aAArB,cAAwC,cAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,+JAA8J,GACpO,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAUF,MAAAC,sBAAA;AARhB,MAAqB,mBAArB,cAA8C,cAAAC,QAAM,UAGjD;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E;AAAA,qDAAC,UAAK,MAAK,gBAAe,GAAE,gTAAgT;AAAA,QAC5U,6CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gIAA+H;AAAA,SACrM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACjBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAEzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,kIAAiI,GACvM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACiBQ,MAAAC,sBAAA;AAvBR,MAAM,YAAY;AAClB,MAAM,cAAc;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AASA,MAAM,eAA4C,CAAC;AAAA,IAC/C,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,WACI,8CAAC,QAAG,WAAW,GAAG,YAAY,SAAS,GAAG,YAAY,IAAI,YAAY,OAAO,KAAK,EAAE,IAAI,SACpF;AAAA,mDAAC,cAAS,WAAW,YAAY,gBAC5B,UACL;AAAA,MACC,gBACG,6CAAC,SAAI,WAAW,YAAY,iBACvB,wBACL;AAAA,OAER;AAAA,EAER;AAQA,MAAM,gBAA8C,CAAC;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM,cAAc,MAAM;AACtB,UAAI,SAAS,OAAO;AAChB,cAAM,yBAAyB,WAAW;AAC1C,cAAM,iBAAiB,uBAAuB,YAAY,GAAG;AAE7D,YAAI,mBAAmB,MAAM,uBAAuB,iBAAiB,CAAC,MAAM,KAAK;AAC7E,2BAAiB,EAAE;AAAA,QACvB,OAAO;AACH,2BAAiB,uBAAuB,MAAM,GAAG,cAAc,CAAC;AAAA,QACpE;AAAA,MACJ,OAAO;AACH,yBAAiB,IAAI;AAAA,MACzB;AAAA,IACJ;AAEA,WACI,8CAAC,gBAAa,SAAS,aACnB;AAAA,mDAAC,cAAW,MAAM,WAAW;AAAA,MAC7B,6CAAC,SAAI,OAAO,EAAE,YAAY,EAAE,GAAI,eAAK,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,GAAE;AAAA,OACvE;AAAA,EAER;AAmBA,MAAM,kBAKD,CAAC,EAAE,WAAW,QAAQ,WAAW,MAAM,MAAM;AAC9C,WACI,8EACI;AAAA,mDAAC,SAAI,WAAW,YAAY,WACxB,uDAAC,YAAS,MAAM,WAAW,SAAS,QAAQ,GAChD;AAAA,MACC,aACG,6CAAC,gBAAa,WAAW,WAAW,SAAS,WACzC,uDAAC,oBAAiB,MAAM,WAAW,GACvC;AAAA,MAEJ,6CAAC,gBAAa,SAAS,OACnB,uDAAC,YAAS,MAAM,WAAW,GAC/B;AAAA,OACJ;AAAA,EAER;AAEA,MAAM,eAA4C,CAAC;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AACpB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM,kBAAkB,MAAM;AAC1B,oBAAc,IAAI;AAClB,mBAAa,kBAAkB,SAAS,IAAI;AAAA,IAChD;AAEA,UAAM,qBAAqB,MAAM;AAC7B,UAAI,CAAC,WAAW;AACZ,uBAAe,EAAE,MAAM,YAAY,OAAO,SAAS,KAAK,CAAC;AAAA,MAC7D,OAAO;AACH,uBAAe,IAAI;AAAA,MACvB;AAAA,IACJ;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,cACI;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,QAAQ;AAAA,YACR,WAAW;AAAA,YACX,OAAO,MAAM,MAAM,SAAS,IAAI;AAAA;AAAA,QACpC;AAAA,QAEJ,SAAS;AAAA,QAER,mBAAS,QAAQ,SAAS,MAAM,QAAQ,wBAAwB,EAAE,IAAI,SAAS,KAAK,MAAM,GAAG,EAAE,IAAI;AAAA;AAAA,IACxG;AAAA,EAER;AAEA,MAAM,sBAAyD,CAAC;AAAA,IAC5D;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AACxB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM,kBAAkB,YAAY;AAChC,cAAQ,MAAM,aAAa,kBAAkB,IAAI;AACjD,oBAAc,IAAI;AAAA,IACtB;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG,cACI;AAAA,UAAC;AAAA;AAAA,YACG,QAAQ;AAAA,YACR;AAAA;AAAA,QACJ;AAAA,QAEJ,SAAS;AAAA,QAER;AAAA;AAAA,IACL;AAAA,EAER;;;ACjKY,MAAAC,sBAAA;AAtBZ,MAAM,eAA4C,CAAC,EAAE,cAAc,MAAM;AACrE,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ,QAAI,kDAAqB;AAEzB,QAAI,eAAe;AACnB,QAAI;AACA,aAAO,6CAAC,SAAI,WAAU,iBAClB,uDAAC,cAAU,0BAAe,GAC9B;AAEJ,WACI,8CAAC,SAAI,WAAU,iBACX;AAAA,oDAAC,QAAG,WAAU,eAEN;AAAA,kCACI;AAAA,UAAC;AAAA;AAAA,YAEG,MAAK;AAAA,YACL,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,YAC5C,gBAAgB,CAAC,YAAoB;AACjC,yCAA2B,OAAO;AAAA,YACtC;AAAA;AAAA,UALK;AAAA,QAMT,IACE;AAAA,QAGN,YAAY,IAAI,CAAC,SAA2C;AACxD,gBAAM,OAAO,KAAK;AAClB,gBAAM,WAAW,UAAU,IAAI;AAC/B,gBAAM,UAAU,aAAa,SAAS;AACtC,cAAI,KAAK,OAAO;AACZ,mBACI;AAAA,cAAC;AAAA;AAAA,gBAEG;AAAA,gBACA,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,gBAC5C,gBAAgB,CAAC,YAAoB;AACjC,6CAA2B,OAAO;AAAA,gBACtC;AAAA;AAAA,cALK;AAAA,YAMT;AAAA,UAER;AACA,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cAEA,WAAW;AAAA,cACX;AAAA,cACA,OAAO,OAAOC,UAAiB;AAC3B,sBAAM,YAAYA,KAAI;AAAA,cAC1B;AAAA;AAAA,YALK;AAAA,UAMT;AAAA,QAER,CAAC;AAAA,SAGT;AAAA,MACA,6CAAC,gBAAW;AAAA,MACZ,8CAAC,QAAG,WAAU,eACV;AAAA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,yBAAyB;AAAA,YACrC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,sBAAsB;AAAA,YAClC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,SACJ;AAAA,MAEC,aAAa,QAAQ,aAAa,6CAAC,cAAS,OAAM,gBAAgB,eAAK,0CAA0C,UAAU,aAAa,KAAK,GAAG,IAAI,GAAE,IAAc;AAAA,OACzK;AAAA,EAER;AAEA,MAAO,uBAAQ;;;AC1Gf,MAAAC,iBAAoC;;;ACHpC,MAAAC,iBAA+C;;;ACA/C,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAG5C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,GAAE,yMAAwM,GACxO,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAQF,MAAAC,sBAAA;AANhB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAAU;AAAA,IAClD,SAAS;AACL,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,OAAO;AAAA,QAC3C,aAAa;AAAA,MACjB,GACI,wDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,qDAAC,UAAK,GAAE,2IAA0I;AAAA,QAClJ,6CAAC,UAAK,GAAE,wDAAuD;AAAA,SACnE,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAMF,MAAAC,uBAAA;AAJhB,MAAqB,gBAArB,cAA2C,cAAAC,QAAM,UAA6B;AAAA,IAC1E,SAAS;AACL,aACI,+CAAC,SAAI,MAAK,QAAO,WAAU,cACvB;AAAA,uDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,wDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gMAA+L;AAAA,UACjQ,8CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,0KAAyK;AAAA,WAC/O;AAAA,QAAO,KAAK,MAAM;AAAA,SACtB;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,gBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAAU;AAAA,IACrD,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAQ,WAAU,cAAa,OAAO;AAAA,QAC5C,aAAa;AAAA,MACjB,GACI,yDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,sDAAC,UAAK,WAAU,cAAa,UAAS,WAAU,UAAS,WAAU,GAAE,+rBAA8rB;AAAA,QAEnwB,8CAAC,UAAK,WAAU,gCAA+B,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV;AAAA,SAC3a,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASF,MAAAC,uBAAA;AAPhB,MAAqB,YAArB,cAAuC,eAAAC,QAAM,UAG1C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACpG;AAAA,sDAAC,UAAK,GAAE,8OAA6O,MAAK,gBAAe;AAAA,QACzQ,8CAAC,UAAK,GAAE,6OAA4O,MAAK,gBAAe;AAAA,SAC5Q,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASmI,MAAAC,uBAAA;AAPrJ,MAAqB,WAArB,cAAsC,eAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAA6B,wDAAC,UAAK,GAAE,uFAAsF,MAAK,gBAAe,GAAO,GAClQ;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,iBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,aAArB,cAAwC,eAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAEpG;AAAA,sDAAC,UAAK,GAAE,4DAA2D,MAAK,gBAAc;AAAA,QAGtF,8CAAC,UAAK,GAAE,wNAAuN,MAAK,gBAAc;AAAA,SACtP,GACJ;AAAA,IAER;AAAA,EACJ;;;APY2B,MAAAC,uBAAA;AAW3B,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,cAAc,eAAe,QAAI,iDAAoB;AAE7D,UAAM,aAAS,4BAAY,YAAY;AACnC,YAAM,aAAa,gBAAgB;AAAA,IACvC,GAAG,CAAC,cAAc,gBAAgB,CAAC;AAEnC,WACI,8CAAC,sBAAiB,SAAS,QAAQ,cAA4B,cAC3D,wDAAC,YAAS,GACd;AAAA,EAER;AAkCA,MAAM,sBAAsB,CAAC;AAAA,IACzB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,UAAU,QAAI,iDAAoB;AAC1C,UAAM,EAAE,WAAW,QAAI,iDAAoB;AAC3C,UAAM,0BAAsB,4BAAY,YAAY;AAChD,YAAM,WAAW;AACjB,YAAM,UAAU;AAAA,IACpB,GAAG,CAAC,YAAY,SAAS,CAAC;AAE1B,WAAO,8CAAC,sBAAiB,SAAS,qBAAqB,cAA4B,cAC/E,wDAAC,cAAW,GAChB;AAAA,EACJ;AAEA,MAAM,gBAAgB,CAAC;AAAA,IACnB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,eAAe,QAAI,iDAAoB;AAC/C,UAAM,eAAW,4BAAY,MAAM;AAC/B,qBAAe,gBAAgB;AAAA,IACnC,GAAG,CAAC,gBAAgB,gBAAgB,CAAC;AAErC,WAAO,8CAAC,sBAAiB,SAAS,UAAU,cAA4B,cACpE,wDAAC,eAAY,GACjB;AAAA,EACJ;AAiBA,MAAM,iBAAiB,CAAC;AAAA,IACpB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,aAAa,eAAe,QAAI,6CAAgB;AAE1E,WACI,8CAAC,sBAAiB,OAAO,aAAa,SAAS,mBAAmB,cAAc,IAAI,SAAS,MAAM;AAC/F,UAAI,aAAa,SAAS,kBAAkB;AACxC,uBAAe,IAAI;AAAA,MACvB,OAAO;AACH,uBAAe;AAAA,UACX,MAAM;AAAA,UACN,OAAO;AAAA,QACX,CAAC;AAAA,MACL;AAAA,IACJ,GAAG,cAA4B,cAC3B,wDAAC,oBAAiB,GACtB;AAAA,EAER;AAGA,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,iBAAiB,oBAAoB,QAAI,6CAAgB;AACnF,UAAM,eAAe,oBAAoB;AAEzC,WACI;AAAA,MAAC;AAAA;AAAA,QACI,GAAI,CAAC,eAAe,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,QAC3C,SAAS,MAAM;AAAE,8BAAoB;AAAA,QAAE;AAAA,QACvC,OAAO,CAAC,eAAe,KAAK,uCAAuC,IAAI,KAAK,iBAAiB;AAAA,QAC7F;AAAA,QACA;AAAA,QAEA,wDAAC,eAAY;AAAA;AAAA,IACjB;AAAA,EAER;AAGA,MAAM,YAAY,CAAC;AAAA,IACf;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,8CAAC,sBAAiB,SAAS,MAAM;AAC7B,cAAQ,gBAAgB;AAAA,IAC5B,GAAG,cAA4B,cAC3B,wDAAC,YAAS,GACd;AAAA,EAER;AACA,MAAM,kBAAkB,CAAC;AAAA,IACrB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,gFACI;AAAA,oDAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,OAC9I;AAAA,EAER;AAYO,WAAS,iBAAiB;AAAA,IAC7B;AAAA,EACJ,GAEG;AACC,UAAM,EAAE,kBAAkB,YAAY,QAAI,6CAAgB;AAC1D,UAAM,EAAE,MAAM,UAAU,QAAI,2CAAc,gBAAgB;AAC1D,UAAM,EAAE,WAAW,UAAU,mBAAmB,QAAI,2CAAc,gBAAgB;AAClF,UAAM,CAAC,gBAAgB,iBAAiB,QAAI,yBAAwB,IAAI;AACxE,UAAM,WAAO,wBAAQ,MAAM;AACvB,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,0BAA0B;AAAA,MAC1C;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,iBAAiB;AACnC,eAAO,KAAK,qBAAqB;AAAA,MACrC;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,cAAc,KAAK,eAAe,IAAI,KAAK,iCAAiC;AAAA,MACvF;AACA,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,OAAO;AACzB,eAAO,KAAK,cAAc;AAAA,MAC9B;AACA,UAAI,kBAAkB,YAAY;AAC9B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,aAAO;AAAA,IACX,GAAG,CAAC,gBAAgB,IAAI,CAAC;AAGzB,eAAO,wBAAQ,MAAM;AACjB,aACI,+CAAC,SAAI,WAAU,sBACX;AAAA,sDAAC,SAAI,WAAU,qBAEX,yDAAC,SAAI,WAAU,0BACX;AAAA,yDAAC,SAAI,WAAU,+BACX;AAAA,2DAAC,SAAI,WAAU,0DACX;AAAA,6DAAC,SAAI,WAAU,kCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,oBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBACrD;AAAA,cACA,+CAAC,SAAI,WAAU,mCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,eAAe;AAAA,oBACrD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBAErD;AAAA,eACJ;AAAA,YACA,+CAAC,SAAI,WAAU,4DAEX;AAAA,6DAAC,SAAI,WAAU,uBACV;AAAA,4BAAY,8CAAC,cAAS,OAAM,eAAe,qBAAU,IAAc;AAAA,gBAKnE,CAAC,aAAa,CAAC,sBAAsB,cAAc,8CAAC,cAAU,eAAK,kCAAkC,GAAE,IAAc;AAAA,gBACrH,CAAC,aAAa,CAAC,sBAAsB,OAAO,8CAAC,cAAU,gBAAK,IAAc;AAAA,iBAC/E;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,kBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,cAAG;AAAA,eACrD;AAAA,aACJ;AAAA,UACA,8CAAC,SAAI,WAAU,iCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,KAAK;AAAA,cAC3C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,UACA,8CAAC,SAAI,WAAU,gCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,UAAU;AAAA,cAChD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,WACJ,GACJ;AAAA,QACA,8CAAC,gBAAW;AAAA,QACZ,8CAAC,yBAAsB;AAAA,SAC3B;AAAA,IAER,GAAG,CAAC,MAAM,WAAW,gBAAgB,aAAa,WAAW,UAAU,oBAAoB,MAAM,qBAAqB,CAAC;AAAA,EAC3H;;;AQ5TA,aAAW,SAAS,WAAW,UAAU,CAAC;AACnC,MAAM,SAAU,WAAmB;;;AT4ClC,MAAAC,uBAAA;AAtCD,WAAS,QAAQ;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAIG;AACC,UAAM,CAAC,YAAY,aAAa,QAAI,yBAAS,KAAK;AAElD,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,IAEJ,QAAI,6CAAgB;AAEpB,UAAM,yBAAyB,aAAa,IAAI;AAEhD,UAAM,CAAC,kBAAkB,mBAAmB,QAAI,yBAAS,KAAK;AAG9D,kCAAU,MAAM;AACZ,UAAI,kBAAkB;AAClB,4BAAoB,oBAAoB,eAAe;AAAA,MAC3D,OAAO;AACH,YAAI,kBAAkB;AAClB,wBAAc,KAAK;AAAA,QACvB;AAAA,MACJ;AAAA,IACJ,GAAG,CAAC,gBAAgB,CAAC;AACrB,kCAAU,MAAM;AACZ,UAAI,iBAAiB,gBAAgB;AACjC,sBAAc,KAAK;AAAA,MACvB;AAAA,IACJ,GAAG,CAAC,YAAY,CAAC;AACjB,WACI,gFACI;AAAA,oDAAC,uCAAQ;AAAA,MACT,8CAAC,SAAI,WAAU,oBACX,yDAAC,SAAI,WAAU,eAEP;AAAA,eAAO,OAAO;AAAA,UAAC;AAAA;AAAA,YAAI,KAAK,OAAO;AAAA,YAAM,KAAI;AAAA,YACrC,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,WAAW,aAAa,MAAM;AAAA,YAC9E,OAAO,KAAK,uBAAuB;AAAA,YACnC,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA;AAAA,QACJ,IACI,CAAC,aACG,8CAAC,SAAI,WAAW,gBAAgB,cAC5B,wDAAC,SAAI,WAAU,eAAc,OAAO,yBAAyB,SAAS,KAAK,KAAK,YAAY,GAAG,oBAAC,GACpG,IAEA;AAAA,UAAC;AAAA;AAAA,YACG,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA,YACH;AAAA;AAAA,QAAC;AAAA,QAGd,8CAAC,cAAW;AAAA,SAChB,GACJ;AAAA,MAEI,0BACI,8CAAC,SACG,wDAAC,cAAS,OAAM,eACX,yBAAe,uBAAuB,IAAI,KAAK,uBAA8B,IAAI,yBACtF,GACJ,IACA;AAAA,MAMJ,iBAAiB,eACjB,+CAAC,SAAI,WAAU,cACX;AAAA,sDAAC,SAAI,WAAU,eAAc,OAAO,2BAA2B,IAAI,CAAC,IAAI,EAAE,SAAS,OAAO,GACtF,wDAAC,SAAI,WAAU,mBAEX,wDAAC,wBAAa,eAA8B,GAChD,GACJ;AAAA,QACA,8CAAC,SAAI,WAAU,eAAc,OAAO,aAAa,CAAC,IAAI,EAAE,SAAS,OAAO,GACnE,wBAAc,oBAAoB,8CAAC,oBAAiB,uBAA8C,GACvG;AAAA,SACJ;AAAA,OAGR;AAAA,EAER;;;AUxF4B,MAAAC,uBAAA;AAXb,WAAR,OAAwB;AAC3B,WACI,8CAAC,6CAAc,YAAY,IACvB,wDAAC,SAAI,WAAU,aACX;AAAA,MAAC;AAAA;AAAA,QACG,eAAe,CACX,cACA,YACA,0BACC;AACD,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACJ;AAAA,QAER;AAAA;AAAA,IACJ,GACJ,GACJ;AAAA,EAER;;;ACxBA,sBAA2B;AAKQ,MAAAC,uBAAA;AAFnC,aAAW,QAAQ,WAAW,SAAS,CAAC;AACxC,aAAW,MAAM,wBAAwB,CAAC,gBAA6B;AACnE,kCAAW,WAAW,EAAE,OAAO,8CAAC,QAAK,CAAE;AAAA,EAC3C;", "names": ["React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_jsx_runtime", "import_jsx_runtime", "path", "import_react", "import_react", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_jsx_runtime", "import_jsx_runtime", "import_jsx_runtime", "import_jsx_runtime"] } diff --git a/plugins/photoshop/dist/librarys.js b/plugins/photoshop/dist/librarys.js index 41e7c59..69e018c 100644 --- a/plugins/photoshop/dist/librarys.js +++ b/plugins/photoshop/dist/librarys.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to2,from2,except,desc)=>{if(from2&&typeof from2=="object"||typeof from2=="function")for(let key of __getOwnPropNames(from2))!__hasOwnProp.call(to2,key)&&key!==except&&__defProp(to2,key,{get:()=>from2[key],enumerable:!(desc=__getOwnPropDesc(from2,key))||desc.enumerable});return to2};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var require_react_development=__commonJS({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports,module2){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ReactVersion="18.3.1",REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactCurrentDispatcher={current:null},ReactCurrentBatchConfig={transition:null},ReactCurrentActQueue={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ReactCurrentOwner={current:null},ReactDebugCurrentFrame={},currentExtraStackFrame=null;function setExtraStackFrame(stack){currentExtraStackFrame=stack}ReactDebugCurrentFrame.setExtraStackFrame=function(stack){currentExtraStackFrame=stack},ReactDebugCurrentFrame.getCurrentStack=null,ReactDebugCurrentFrame.getStackAddendum=function(){var stack="";currentExtraStackFrame&&(stack+=currentExtraStackFrame);var impl=ReactDebugCurrentFrame.getCurrentStack;return impl&&(stack+=impl()||""),stack};var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,ReactSharedInternals={ReactCurrentDispatcher,ReactCurrentBatchConfig,ReactCurrentOwner};ReactSharedInternals.ReactDebugCurrentFrame=ReactDebugCurrentFrame,ReactSharedInternals.ReactCurrentActQueue=ReactCurrentActQueue;function warn(format){{for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var didWarnStateUpdateForUnmountedComponent={};function warnNoop(publicInstance,callerName){{var _constructor=publicInstance.constructor,componentName=_constructor&&(_constructor.displayName||_constructor.name)||"ReactClass",warningKey=componentName+"."+callerName;if(didWarnStateUpdateForUnmountedComponent[warningKey])return;error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,componentName),didWarnStateUpdateForUnmountedComponent[warningKey]=!0}}var ReactNoopUpdateQueue={isMounted:function(publicInstance){return!1},enqueueForceUpdate:function(publicInstance,callback,callerName){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState,callback,callerName){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState,callback,callerName){warnNoop(publicInstance,"setState")}},assign=Object.assign,emptyObject={};Object.freeze(emptyObject);function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};{var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},defineDeprecationWarning=function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})};for(var fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName])}function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var isArrayImpl=Array.isArray;function isArray2(a2){return isArrayImpl(a2)}function typeName(value2){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value2[Symbol.toStringTag]||value2.constructor.name||"Object";return type}}function willCoercionThrow(value2){try{return testStringCoercion(value2),!1}catch{return!0}}function testStringCoercion(value2){return""+value2}function checkKeyStringCoercion(value2){if(willCoercionThrow(value2))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value2)),testStringCoercion(value2)}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init2=lazyComponent._init;try{return getComponentNameFromType(init2(payload))}catch{return null}}}return null}var hasOwnProperty=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function defineRefPropWarningGetter(props,displayName){var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}function warnIfStringRefCannotBeAutoConverted(config){if(typeof config.ref=="string"&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){var componentName=getComponentNameFromType(ReactCurrentOwner.current.type);didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',componentName,config.ref),didWarnAboutStringRefs[componentName]=!0)}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function createElement(type,config,children){var propName,props={},key=null,ref=null,self2=null,source=null;if(config!=null){hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config)),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),self2=config.__self===void 0?null:config.__self,source=config.__source===void 0?null:config.__source;for(propName in config)hasOwnProperty.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i2=0;i21){for(var childArray=Array(childrenLength),i2=0;i2 is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Provider},set:function(_Provider){context.Provider=_Provider}},_currentValue:{get:function(){return context._currentValue},set:function(_currentValue){context._currentValue=_currentValue}},_currentValue2:{get:function(){return context._currentValue2},set:function(_currentValue2){context._currentValue2=_currentValue2}},_threadCount:{get:function(){return context._threadCount},set:function(_threadCount){context._threadCount=_threadCount}},Consumer:{get:function(){return hasWarnedAboutUsingNestedContextConsumers||(hasWarnedAboutUsingNestedContextConsumers=!0,error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Consumer}},displayName:{get:function(){return context.displayName},set:function(displayName){hasWarnedAboutDisplayNameOnConsumer||(warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",displayName),hasWarnedAboutDisplayNameOnConsumer=!0)}}}),context.Consumer=Consumer}return context._currentRenderer=null,context._currentRenderer2=null,context}var Uninitialized=-1,Pending=0,Resolved=1,Rejected=2;function lazyInitializer(payload){if(payload._status===Uninitialized){var ctor=payload._result,thenable=ctor();if(thenable.then(function(moduleObject2){if(payload._status===Pending||payload._status===Uninitialized){var resolved=payload;resolved._status=Resolved,resolved._result=moduleObject2}},function(error2){if(payload._status===Pending||payload._status===Uninitialized){var rejected=payload;rejected._status=Rejected,rejected._result=error2}}),payload._status===Uninitialized){var pending=payload;pending._status=Pending,pending._result=thenable}}if(payload._status===Resolved){var moduleObject=payload._result;return moduleObject===void 0&&error(`lazy: Expected the result of a dynamic import() call. Instead received: %s +"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to2,from2,except,desc)=>{if(from2&&typeof from2=="object"||typeof from2=="function")for(let key of __getOwnPropNames(from2))!__hasOwnProp.call(to2,key)&&key!==except&&__defProp(to2,key,{get:()=>from2[key],enumerable:!(desc=__getOwnPropDesc(from2,key))||desc.enumerable});return to2};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var require_react_development=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react@18.3.1/node_modules/react/cjs/react.development.js"(exports,module2){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ReactVersion="18.3.1",REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactCurrentDispatcher={current:null},ReactCurrentBatchConfig={transition:null},ReactCurrentActQueue={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ReactCurrentOwner={current:null},ReactDebugCurrentFrame={},currentExtraStackFrame=null;function setExtraStackFrame(stack){currentExtraStackFrame=stack}ReactDebugCurrentFrame.setExtraStackFrame=function(stack){currentExtraStackFrame=stack},ReactDebugCurrentFrame.getCurrentStack=null,ReactDebugCurrentFrame.getStackAddendum=function(){var stack="";currentExtraStackFrame&&(stack+=currentExtraStackFrame);var impl=ReactDebugCurrentFrame.getCurrentStack;return impl&&(stack+=impl()||""),stack};var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,ReactSharedInternals={ReactCurrentDispatcher,ReactCurrentBatchConfig,ReactCurrentOwner};ReactSharedInternals.ReactDebugCurrentFrame=ReactDebugCurrentFrame,ReactSharedInternals.ReactCurrentActQueue=ReactCurrentActQueue;function warn(format){{for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var didWarnStateUpdateForUnmountedComponent={};function warnNoop(publicInstance,callerName){{var _constructor=publicInstance.constructor,componentName=_constructor&&(_constructor.displayName||_constructor.name)||"ReactClass",warningKey=componentName+"."+callerName;if(didWarnStateUpdateForUnmountedComponent[warningKey])return;error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,componentName),didWarnStateUpdateForUnmountedComponent[warningKey]=!0}}var ReactNoopUpdateQueue={isMounted:function(publicInstance){return!1},enqueueForceUpdate:function(publicInstance,callback,callerName){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState,callback,callerName){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState,callback,callerName){warnNoop(publicInstance,"setState")}},assign=Object.assign,emptyObject={};Object.freeze(emptyObject);function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};{var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},defineDeprecationWarning=function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})};for(var fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName])}function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var isArrayImpl=Array.isArray;function isArray2(a2){return isArrayImpl(a2)}function typeName(value2){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value2[Symbol.toStringTag]||value2.constructor.name||"Object";return type}}function willCoercionThrow(value2){try{return testStringCoercion(value2),!1}catch{return!0}}function testStringCoercion(value2){return""+value2}function checkKeyStringCoercion(value2){if(willCoercionThrow(value2))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value2)),testStringCoercion(value2)}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init2=lazyComponent._init;try{return getComponentNameFromType(init2(payload))}catch{return null}}}return null}var hasOwnProperty=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function defineRefPropWarningGetter(props,displayName){var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}function warnIfStringRefCannotBeAutoConverted(config){if(typeof config.ref=="string"&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){var componentName=getComponentNameFromType(ReactCurrentOwner.current.type);didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',componentName,config.ref),didWarnAboutStringRefs[componentName]=!0)}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function createElement(type,config,children){var propName,props={},key=null,ref=null,self2=null,source=null;if(config!=null){hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config)),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),self2=config.__self===void 0?null:config.__self,source=config.__source===void 0?null:config.__source;for(propName in config)hasOwnProperty.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i2=0;i21){for(var childArray=Array(childrenLength),i2=0;i2 is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Provider},set:function(_Provider){context.Provider=_Provider}},_currentValue:{get:function(){return context._currentValue},set:function(_currentValue){context._currentValue=_currentValue}},_currentValue2:{get:function(){return context._currentValue2},set:function(_currentValue2){context._currentValue2=_currentValue2}},_threadCount:{get:function(){return context._threadCount},set:function(_threadCount){context._threadCount=_threadCount}},Consumer:{get:function(){return hasWarnedAboutUsingNestedContextConsumers||(hasWarnedAboutUsingNestedContextConsumers=!0,error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Consumer}},displayName:{get:function(){return context.displayName},set:function(displayName){hasWarnedAboutDisplayNameOnConsumer||(warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",displayName),hasWarnedAboutDisplayNameOnConsumer=!0)}}}),context.Consumer=Consumer}return context._currentRenderer=null,context._currentRenderer2=null,context}var Uninitialized=-1,Pending=0,Resolved=1,Rejected=2;function lazyInitializer(payload){if(payload._status===Uninitialized){var ctor=payload._result,thenable=ctor();if(thenable.then(function(moduleObject2){if(payload._status===Pending||payload._status===Uninitialized){var resolved=payload;resolved._status=Resolved,resolved._result=moduleObject2}},function(error2){if(payload._status===Pending||payload._status===Uninitialized){var rejected=payload;rejected._status=Rejected,rejected._result=error2}}),payload._status===Uninitialized){var pending=payload;pending._status=Pending,pending._result=thenable}}if(payload._status===Resolved){var moduleObject=payload._result;return moduleObject===void 0&&error(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) @@ -20,7 +20,7 @@ Check the render method of \``+name+"`."}return""}function getSourceInfoErrorAdd Check your code at `+fileName+":"+lineNumber+"."}return""}function getSourceInfoErrorAddendumForProps(elementProps){return elementProps!=null?getSourceInfoErrorAddendum(elementProps.__source):""}var ownerHasKeyUseWarning={};function getCurrentComponentErrorInfo(parentType){var info=getDeclarationErrorAddendum();if(!info){var parentName=typeof parentType=="string"?parentType:parentType.displayName||parentType.name;parentName&&(info=` -Check the top-level render call using <`+parentName+">.")}return info}function validateExplicitKey(element,parentType){if(!(!element._store||element._store.validated||element.key!=null)){element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(!ownerHasKeyUseWarning[currentComponentErrorInfo]){ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentNameFromType(element._owner.type)+"."),setCurrentlyValidatingElement$1(element),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement$1(null)}}}function validateChildKeys(node,parentType){if(typeof node=="object"){if(isArray2(node))for(var i2=0;i2",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=createElement.apply(this,arguments);if(element==null)return element;if(validType)for(var i2=2;i210&&warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),currentTransition._updatedFibers.clear()}}}var didWarnAboutMessageChannel=!1,enqueueTaskImpl=null;function enqueueTask(task){if(enqueueTaskImpl===null)try{var requireString=("require"+Math.random()).slice(0,7),nodeRequire=module2&&module2[requireString];enqueueTaskImpl=nodeRequire.call(module2,"timers").setImmediate}catch{enqueueTaskImpl=function(callback){didWarnAboutMessageChannel===!1&&(didWarnAboutMessageChannel=!0,typeof MessageChannel>"u"&&error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}var actScopeDepth=0,didWarnNoAwaitAct=!1;function act(callback){{var prevActScopeDepth=actScopeDepth;actScopeDepth++,ReactCurrentActQueue.current===null&&(ReactCurrentActQueue.current=[]);var prevIsBatchingLegacy=ReactCurrentActQueue.isBatchingLegacy,result;try{if(ReactCurrentActQueue.isBatchingLegacy=!0,result=callback(),!prevIsBatchingLegacy&&ReactCurrentActQueue.didScheduleLegacyUpdate){var queue=ReactCurrentActQueue.current;queue!==null&&(ReactCurrentActQueue.didScheduleLegacyUpdate=!1,flushActQueue(queue))}}catch(error2){throw popActScope(prevActScopeDepth),error2}finally{ReactCurrentActQueue.isBatchingLegacy=prevIsBatchingLegacy}if(result!==null&&typeof result=="object"&&typeof result.then=="function"){var thenableResult=result,wasAwaited=!1,thenable={then:function(resolve3,reject2){wasAwaited=!0,thenableResult.then(function(returnValue2){popActScope(prevActScopeDepth),actScopeDepth===0?recursivelyFlushAsyncActWork(returnValue2,resolve3,reject2):resolve3(returnValue2)},function(error2){popActScope(prevActScopeDepth),reject2(error2)})}};return!didWarnNoAwaitAct&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){wasAwaited||(didWarnNoAwaitAct=!0,error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),thenable}else{var returnValue=result;if(popActScope(prevActScopeDepth),actScopeDepth===0){var _queue=ReactCurrentActQueue.current;_queue!==null&&(flushActQueue(_queue),ReactCurrentActQueue.current=null);var _thenable={then:function(resolve3,reject2){ReactCurrentActQueue.current===null?(ReactCurrentActQueue.current=[],recursivelyFlushAsyncActWork(returnValue,resolve3,reject2)):resolve3(returnValue)}};return _thenable}else{var _thenable2={then:function(resolve3,reject2){resolve3(returnValue)}};return _thenable2}}}}function popActScope(prevActScopeDepth){prevActScopeDepth!==actScopeDepth-1&&error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve3,reject2){{var queue=ReactCurrentActQueue.current;if(queue!==null)try{flushActQueue(queue),enqueueTask(function(){queue.length===0?(ReactCurrentActQueue.current=null,resolve3(returnValue)):recursivelyFlushAsyncActWork(returnValue,resolve3,reject2)})}catch(error2){reject2(error2)}else resolve3(returnValue)}}var isFlushing=!1;function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i2=0;try{for(;i20;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(compare(parent,node)>0)heap[parentIndex]=node,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node,i2){for(var index=i2,length=heap.length,halfLength=length>>>1;indexcurrentTime&&(!hasTimeRemaining||shouldYieldToHost()));){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var didUserCallbackTimeout=currentTask.expirationTime<=currentTime,continuationCallback=callback(didUserCallbackTimeout);currentTime=exports.unstable_now(),typeof continuationCallback=="function"?currentTask.callback=continuationCallback:currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek(timerQueue);return firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),!1}function unstable_runWithPriority(priorityLevel,eventHandler){switch(priorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:case LowPriority:case IdlePriority:break;default:priorityLevel=NormalPriority}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_next(eventHandler){var priorityLevel;switch(currentPriorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:priorityLevel=NormalPriority;break;default:priorityLevel=currentPriorityLevel;break}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_wrapCallback(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}function unstable_scheduleCallback(priorityLevel,callback,options){var currentTime=exports.unstable_now(),startTime2;if(typeof options=="object"&&options!==null){var delay=options.delay;typeof delay=="number"&&delay>0?startTime2=currentTime+delay:startTime2=currentTime}else startTime2=currentTime;var timeout;switch(priorityLevel){case ImmediatePriority:timeout=IMMEDIATE_PRIORITY_TIMEOUT;break;case UserBlockingPriority:timeout=USER_BLOCKING_PRIORITY_TIMEOUT;break;case IdlePriority:timeout=IDLE_PRIORITY_TIMEOUT;break;case LowPriority:timeout=LOW_PRIORITY_TIMEOUT;break;case NormalPriority:default:timeout=NORMAL_PRIORITY_TIMEOUT;break}var expirationTime=startTime2+timeout,newTask={id:taskIdCounter++,callback,priorityLevel,startTime:startTime2,expirationTime,sortIndex:-1};return startTime2>currentTime?(newTask.sortIndex=startTime2,push(timerQueue,newTask),peek(taskQueue)===null&&newTask===peek(timerQueue)&&(isHostTimeoutScheduled?cancelHostTimeout():isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,startTime2-currentTime))):(newTask.sortIndex=expirationTime,push(taskQueue,newTask),!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))),newTask}function unstable_pauseExecution(){}function unstable_continueExecution(){!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))}function unstable_getFirstCallbackNode(){return peek(taskQueue)}function unstable_cancelCallback(task){task.callback=null}function unstable_getCurrentPriorityLevel(){return currentPriorityLevel}var isMessageLoopRunning=!1,scheduledHostCallback=null,taskTimeoutID=-1,frameInterval=frameYieldMs,startTime=-1;function shouldYieldToHost(){var timeElapsed=exports.unstable_now()-startTime;return!(timeElapsed125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}fps>0?frameInterval=Math.floor(1e3/fps):frameInterval=frameYieldMs}var performWorkUntilDeadline=function(){if(scheduledHostCallback!==null){var currentTime=exports.unstable_now();startTime=currentTime;var hasTimeRemaining=!0,hasMoreWork=!0;try{hasMoreWork=scheduledHostCallback(hasTimeRemaining,currentTime)}finally{hasMoreWork?schedulePerformWorkUntilDeadline():(isMessageLoopRunning=!1,scheduledHostCallback=null)}}else isMessageLoopRunning=!1},schedulePerformWorkUntilDeadline;if(typeof localSetImmediate=="function")schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostCallback(callback){scheduledHostCallback=callback,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())}function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports.unstable_now())},ms)}function cancelHostTimeout(){localClearTimeout(taskTimeoutID),taskTimeoutID=-1}var unstable_requestPaint=requestPaint,unstable_Profiling=null;exports.unstable_IdlePriority=IdlePriority,exports.unstable_ImmediatePriority=ImmediatePriority,exports.unstable_LowPriority=LowPriority,exports.unstable_NormalPriority=NormalPriority,exports.unstable_Profiling=unstable_Profiling,exports.unstable_UserBlockingPriority=UserBlockingPriority,exports.unstable_cancelCallback=unstable_cancelCallback,exports.unstable_continueExecution=unstable_continueExecution,exports.unstable_forceFrameRate=forceFrameRate,exports.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel,exports.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode,exports.unstable_next=unstable_next,exports.unstable_pauseExecution=unstable_pauseExecution,exports.unstable_requestPaint=unstable_requestPaint,exports.unstable_runWithPriority=unstable_runWithPriority,exports.unstable_scheduleCallback=unstable_scheduleCallback,exports.unstable_shouldYield=shouldYieldToHost,exports.unstable_wrapCallback=unstable_wrapCallback,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_scheduler=__commonJS({"../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js"(exports,module2){"use strict";module2.exports=require_scheduler_development()}});var require_react_dom_development=__commonJS({"../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js"(exports){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var React2=require_react(),Scheduler=require_scheduler(),ReactSharedInternals=React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,suppressWarning=!1;function setSuppressWarning(newSuppressWarning){suppressWarning=newSuppressWarning}function warn(format){if(!suppressWarning){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){if(!suppressWarning){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var FunctionComponent=0,ClassComponent=1,IndeterminateComponent=2,HostRoot=3,HostPortal=4,HostComponent=5,HostText=6,Fragment=7,Mode=8,ContextConsumer=9,ContextProvider=10,ForwardRef=11,Profiler=12,SuspenseComponent=13,MemoComponent=14,SimpleMemoComponent=15,LazyComponent=16,IncompleteClassComponent=17,DehydratedFragment=18,SuspenseListComponent=19,ScopeComponent=21,OffscreenComponent=22,LegacyHiddenComponent=23,CacheComponent=24,TracingMarkerComponent=25,enableClientRenderFallbackOnTextMismatch=!0,enableNewReconciler=!1,enableLazyContextPropagation=!1,enableLegacyHidden=!1,enableSuspenseAvoidThisFallback=!1,disableCommentsAsDOMContainers=!0,enableCustomElementPropertySupport=!1,warnAboutStringRefs=!0,enableSchedulingProfiler=!0,enableProfilerTimer=!0,enableProfilerCommitHooks=!0,allNativeEvents=new Set,registrationNameDependencies={},possibleRegistrationNames={};function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){registrationNameDependencies[registrationName]&&error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",registrationName),registrationNameDependencies[registrationName]=dependencies;{var lowerCasedName=registrationName.toLowerCase();possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName)}for(var i2=0;i22&&(name[0]==="o"||name[0]==="O")&&(name[1]==="n"||name[1]==="N")}function shouldRemoveAttributeWithWarning(name,value2,propertyInfo,isCustomComponentTag){if(propertyInfo!==null&&propertyInfo.type===RESERVED)return!1;switch(typeof value2){case"function":case"symbol":return!0;case"boolean":{if(isCustomComponentTag)return!1;if(propertyInfo!==null)return!propertyInfo.acceptsBooleans;var prefix2=name.toLowerCase().slice(0,5);return prefix2!=="data-"&&prefix2!=="aria-"}default:return!1}}function shouldRemoveAttribute(name,value2,propertyInfo,isCustomComponentTag){if(value2===null||typeof value2>"u"||shouldRemoveAttributeWithWarning(name,value2,propertyInfo,isCustomComponentTag))return!0;if(isCustomComponentTag)return!1;if(propertyInfo!==null)switch(propertyInfo.type){case BOOLEAN:return!value2;case OVERLOADED_BOOLEAN:return value2===!1;case NUMERIC:return isNaN(value2);case POSITIVE_NUMERIC:return isNaN(value2)||value2<1}return!1}function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null}function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL2,removeEmptyString){this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL2,this.removeEmptyString=removeEmptyString}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(name){properties[name]=new PropertyInfoRecord(name,RESERVED,!1,name,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_ref){var name=_ref[0],attributeName=_ref[1];properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!1,name.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!0,name,null,!1,!1)}),["capture","download"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,OVERLOADED_BOOLEAN,!1,name,null,!1,!1)}),["cols","rows","size","span"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,POSITIVE_NUMERIC,!1,name,null,!1,!1)}),["rowSpan","start"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,NUMERIC,!1,name.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize=function(token){return token[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!0,!0)});var isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,didWarn=!1;function sanitizeURL(url2){!didWarn&&isJavaScriptProtocol.test(url2)&&(didWarn=!0,error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(url2)))}function getValueForProperty(node,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node[propertyName]}else{checkAttributeStringCoercion(expected,name),propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node.hasAttribute(attributeName)){var value2=node.getAttribute(attributeName);return value2===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value2:value2===""+expected?expected:value2}}else if(node.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node,name,expected,isCustomComponentTag){{if(!isAttributeNameSafe(name))return;if(!node.hasAttribute(name))return expected===void 0?void 0:null;var value2=node.getAttribute(name);return checkAttributeStringCoercion(expected,name),value2===""+expected?expected:value2}}function setValueForProperty(node,name,value2,isCustomComponentTag){var propertyInfo=getPropertyInfo(name);if(!shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag)){if(shouldRemoveAttribute(name,value2,propertyInfo,isCustomComponentTag)&&(value2=null),isCustomComponentTag||propertyInfo===null){if(isAttributeNameSafe(name)){var _attributeName=name;value2===null?node.removeAttribute(_attributeName):(checkAttributeStringCoercion(value2,name),node.setAttribute(_attributeName,""+value2))}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value2===null){var type=propertyInfo.type;node[propertyName]=type===BOOLEAN?!1:""}else node[propertyName]=value2;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value2===null)node.removeAttribute(attributeName);else{var _type=propertyInfo.type,attributeValue;_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value2===!0?attributeValue="":(checkAttributeStringCoercion(value2,attributeName),attributeValue=""+value2,propertyInfo.sanitizeURL&&sanitizeURL(attributeValue.toString())),attributeNamespace?node.setAttributeNS(attributeNamespace,attributeName,attributeValue):node.setAttribute(attributeName,attributeValue)}}}var REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_SCOPE_TYPE=Symbol.for("react.scope"),REACT_DEBUG_TRACING_MODE_TYPE=Symbol.for("react.debug_trace_mode"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=Symbol.for("react.legacy_hidden"),REACT_CACHE_TYPE=Symbol.for("react.cache"),REACT_TRACING_MARKER_TYPE=Symbol.for("react.tracing_marker"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x2){var match=x2.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return` +Check the top-level render call using <`+parentName+">.")}return info}function validateExplicitKey(element,parentType){if(!(!element._store||element._store.validated||element.key!=null)){element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(!ownerHasKeyUseWarning[currentComponentErrorInfo]){ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentNameFromType(element._owner.type)+"."),setCurrentlyValidatingElement$1(element),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement$1(null)}}}function validateChildKeys(node,parentType){if(typeof node=="object"){if(isArray2(node))for(var i2=0;i2",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=createElement.apply(this,arguments);if(element==null)return element;if(validType)for(var i2=2;i210&&warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),currentTransition._updatedFibers.clear()}}}var didWarnAboutMessageChannel=!1,enqueueTaskImpl=null;function enqueueTask(task){if(enqueueTaskImpl===null)try{var requireString=("require"+Math.random()).slice(0,7),nodeRequire=module2&&module2[requireString];enqueueTaskImpl=nodeRequire.call(module2,"timers").setImmediate}catch{enqueueTaskImpl=function(callback){didWarnAboutMessageChannel===!1&&(didWarnAboutMessageChannel=!0,typeof MessageChannel>"u"&&error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}var actScopeDepth=0,didWarnNoAwaitAct=!1;function act(callback){{var prevActScopeDepth=actScopeDepth;actScopeDepth++,ReactCurrentActQueue.current===null&&(ReactCurrentActQueue.current=[]);var prevIsBatchingLegacy=ReactCurrentActQueue.isBatchingLegacy,result;try{if(ReactCurrentActQueue.isBatchingLegacy=!0,result=callback(),!prevIsBatchingLegacy&&ReactCurrentActQueue.didScheduleLegacyUpdate){var queue=ReactCurrentActQueue.current;queue!==null&&(ReactCurrentActQueue.didScheduleLegacyUpdate=!1,flushActQueue(queue))}}catch(error2){throw popActScope(prevActScopeDepth),error2}finally{ReactCurrentActQueue.isBatchingLegacy=prevIsBatchingLegacy}if(result!==null&&typeof result=="object"&&typeof result.then=="function"){var thenableResult=result,wasAwaited=!1,thenable={then:function(resolve3,reject2){wasAwaited=!0,thenableResult.then(function(returnValue2){popActScope(prevActScopeDepth),actScopeDepth===0?recursivelyFlushAsyncActWork(returnValue2,resolve3,reject2):resolve3(returnValue2)},function(error2){popActScope(prevActScopeDepth),reject2(error2)})}};return!didWarnNoAwaitAct&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){wasAwaited||(didWarnNoAwaitAct=!0,error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),thenable}else{var returnValue=result;if(popActScope(prevActScopeDepth),actScopeDepth===0){var _queue=ReactCurrentActQueue.current;_queue!==null&&(flushActQueue(_queue),ReactCurrentActQueue.current=null);var _thenable={then:function(resolve3,reject2){ReactCurrentActQueue.current===null?(ReactCurrentActQueue.current=[],recursivelyFlushAsyncActWork(returnValue,resolve3,reject2)):resolve3(returnValue)}};return _thenable}else{var _thenable2={then:function(resolve3,reject2){resolve3(returnValue)}};return _thenable2}}}}function popActScope(prevActScopeDepth){prevActScopeDepth!==actScopeDepth-1&&error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve3,reject2){{var queue=ReactCurrentActQueue.current;if(queue!==null)try{flushActQueue(queue),enqueueTask(function(){queue.length===0?(ReactCurrentActQueue.current=null,resolve3(returnValue)):recursivelyFlushAsyncActWork(returnValue,resolve3,reject2)})}catch(error2){reject2(error2)}else resolve3(returnValue)}}var isFlushing=!1;function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i2=0;try{for(;i20;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(compare(parent,node)>0)heap[parentIndex]=node,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node,i2){for(var index=i2,length=heap.length,halfLength=length>>>1;indexcurrentTime&&(!hasTimeRemaining||shouldYieldToHost()));){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var didUserCallbackTimeout=currentTask.expirationTime<=currentTime,continuationCallback=callback(didUserCallbackTimeout);currentTime=exports.unstable_now(),typeof continuationCallback=="function"?currentTask.callback=continuationCallback:currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek(timerQueue);return firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),!1}function unstable_runWithPriority(priorityLevel,eventHandler){switch(priorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:case LowPriority:case IdlePriority:break;default:priorityLevel=NormalPriority}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_next(eventHandler){var priorityLevel;switch(currentPriorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:priorityLevel=NormalPriority;break;default:priorityLevel=currentPriorityLevel;break}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_wrapCallback(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}function unstable_scheduleCallback(priorityLevel,callback,options){var currentTime=exports.unstable_now(),startTime2;if(typeof options=="object"&&options!==null){var delay=options.delay;typeof delay=="number"&&delay>0?startTime2=currentTime+delay:startTime2=currentTime}else startTime2=currentTime;var timeout;switch(priorityLevel){case ImmediatePriority:timeout=IMMEDIATE_PRIORITY_TIMEOUT;break;case UserBlockingPriority:timeout=USER_BLOCKING_PRIORITY_TIMEOUT;break;case IdlePriority:timeout=IDLE_PRIORITY_TIMEOUT;break;case LowPriority:timeout=LOW_PRIORITY_TIMEOUT;break;case NormalPriority:default:timeout=NORMAL_PRIORITY_TIMEOUT;break}var expirationTime=startTime2+timeout,newTask={id:taskIdCounter++,callback,priorityLevel,startTime:startTime2,expirationTime,sortIndex:-1};return startTime2>currentTime?(newTask.sortIndex=startTime2,push(timerQueue,newTask),peek(taskQueue)===null&&newTask===peek(timerQueue)&&(isHostTimeoutScheduled?cancelHostTimeout():isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,startTime2-currentTime))):(newTask.sortIndex=expirationTime,push(taskQueue,newTask),!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))),newTask}function unstable_pauseExecution(){}function unstable_continueExecution(){!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))}function unstable_getFirstCallbackNode(){return peek(taskQueue)}function unstable_cancelCallback(task){task.callback=null}function unstable_getCurrentPriorityLevel(){return currentPriorityLevel}var isMessageLoopRunning=!1,scheduledHostCallback=null,taskTimeoutID=-1,frameInterval=frameYieldMs,startTime=-1;function shouldYieldToHost(){var timeElapsed=exports.unstable_now()-startTime;return!(timeElapsed125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}fps>0?frameInterval=Math.floor(1e3/fps):frameInterval=frameYieldMs}var performWorkUntilDeadline=function(){if(scheduledHostCallback!==null){var currentTime=exports.unstable_now();startTime=currentTime;var hasTimeRemaining=!0,hasMoreWork=!0;try{hasMoreWork=scheduledHostCallback(hasTimeRemaining,currentTime)}finally{hasMoreWork?schedulePerformWorkUntilDeadline():(isMessageLoopRunning=!1,scheduledHostCallback=null)}}else isMessageLoopRunning=!1},schedulePerformWorkUntilDeadline;if(typeof localSetImmediate=="function")schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostCallback(callback){scheduledHostCallback=callback,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())}function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports.unstable_now())},ms)}function cancelHostTimeout(){localClearTimeout(taskTimeoutID),taskTimeoutID=-1}var unstable_requestPaint=requestPaint,unstable_Profiling=null;exports.unstable_IdlePriority=IdlePriority,exports.unstable_ImmediatePriority=ImmediatePriority,exports.unstable_LowPriority=LowPriority,exports.unstable_NormalPriority=NormalPriority,exports.unstable_Profiling=unstable_Profiling,exports.unstable_UserBlockingPriority=UserBlockingPriority,exports.unstable_cancelCallback=unstable_cancelCallback,exports.unstable_continueExecution=unstable_continueExecution,exports.unstable_forceFrameRate=forceFrameRate,exports.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel,exports.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode,exports.unstable_next=unstable_next,exports.unstable_pauseExecution=unstable_pauseExecution,exports.unstable_requestPaint=unstable_requestPaint,exports.unstable_runWithPriority=unstable_runWithPriority,exports.unstable_scheduleCallback=unstable_scheduleCallback,exports.unstable_shouldYield=shouldYieldToHost,exports.unstable_wrapCallback=unstable_wrapCallback,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_scheduler=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/scheduler@0.23.2/node_modules/scheduler/index.js"(exports,module2){"use strict";module2.exports=require_scheduler_development()}});var require_react_dom_development=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js"(exports){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var React2=require_react(),Scheduler=require_scheduler(),ReactSharedInternals=React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,suppressWarning=!1;function setSuppressWarning(newSuppressWarning){suppressWarning=newSuppressWarning}function warn(format){if(!suppressWarning){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){if(!suppressWarning){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var FunctionComponent=0,ClassComponent=1,IndeterminateComponent=2,HostRoot=3,HostPortal=4,HostComponent=5,HostText=6,Fragment=7,Mode=8,ContextConsumer=9,ContextProvider=10,ForwardRef=11,Profiler=12,SuspenseComponent=13,MemoComponent=14,SimpleMemoComponent=15,LazyComponent=16,IncompleteClassComponent=17,DehydratedFragment=18,SuspenseListComponent=19,ScopeComponent=21,OffscreenComponent=22,LegacyHiddenComponent=23,CacheComponent=24,TracingMarkerComponent=25,enableClientRenderFallbackOnTextMismatch=!0,enableNewReconciler=!1,enableLazyContextPropagation=!1,enableLegacyHidden=!1,enableSuspenseAvoidThisFallback=!1,disableCommentsAsDOMContainers=!0,enableCustomElementPropertySupport=!1,warnAboutStringRefs=!0,enableSchedulingProfiler=!0,enableProfilerTimer=!0,enableProfilerCommitHooks=!0,allNativeEvents=new Set,registrationNameDependencies={},possibleRegistrationNames={};function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){registrationNameDependencies[registrationName]&&error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",registrationName),registrationNameDependencies[registrationName]=dependencies;{var lowerCasedName=registrationName.toLowerCase();possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName)}for(var i2=0;i22&&(name[0]==="o"||name[0]==="O")&&(name[1]==="n"||name[1]==="N")}function shouldRemoveAttributeWithWarning(name,value2,propertyInfo,isCustomComponentTag){if(propertyInfo!==null&&propertyInfo.type===RESERVED)return!1;switch(typeof value2){case"function":case"symbol":return!0;case"boolean":{if(isCustomComponentTag)return!1;if(propertyInfo!==null)return!propertyInfo.acceptsBooleans;var prefix2=name.toLowerCase().slice(0,5);return prefix2!=="data-"&&prefix2!=="aria-"}default:return!1}}function shouldRemoveAttribute(name,value2,propertyInfo,isCustomComponentTag){if(value2===null||typeof value2>"u"||shouldRemoveAttributeWithWarning(name,value2,propertyInfo,isCustomComponentTag))return!0;if(isCustomComponentTag)return!1;if(propertyInfo!==null)switch(propertyInfo.type){case BOOLEAN:return!value2;case OVERLOADED_BOOLEAN:return value2===!1;case NUMERIC:return isNaN(value2);case POSITIVE_NUMERIC:return isNaN(value2)||value2<1}return!1}function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null}function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL2,removeEmptyString){this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL2,this.removeEmptyString=removeEmptyString}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(name){properties[name]=new PropertyInfoRecord(name,RESERVED,!1,name,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_ref){var name=_ref[0],attributeName=_ref[1];properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!1,name.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!0,name,null,!1,!1)}),["capture","download"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,OVERLOADED_BOOLEAN,!1,name,null,!1,!1)}),["cols","rows","size","span"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,POSITIVE_NUMERIC,!1,name,null,!1,!1)}),["rowSpan","start"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,NUMERIC,!1,name.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize=function(token){return token[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!0,!0)});var isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,didWarn=!1;function sanitizeURL(url2){!didWarn&&isJavaScriptProtocol.test(url2)&&(didWarn=!0,error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(url2)))}function getValueForProperty(node,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node[propertyName]}else{checkAttributeStringCoercion(expected,name),propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node.hasAttribute(attributeName)){var value2=node.getAttribute(attributeName);return value2===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value2:value2===""+expected?expected:value2}}else if(node.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node,name,expected,isCustomComponentTag){{if(!isAttributeNameSafe(name))return;if(!node.hasAttribute(name))return expected===void 0?void 0:null;var value2=node.getAttribute(name);return checkAttributeStringCoercion(expected,name),value2===""+expected?expected:value2}}function setValueForProperty(node,name,value2,isCustomComponentTag){var propertyInfo=getPropertyInfo(name);if(!shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag)){if(shouldRemoveAttribute(name,value2,propertyInfo,isCustomComponentTag)&&(value2=null),isCustomComponentTag||propertyInfo===null){if(isAttributeNameSafe(name)){var _attributeName=name;value2===null?node.removeAttribute(_attributeName):(checkAttributeStringCoercion(value2,name),node.setAttribute(_attributeName,""+value2))}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value2===null){var type=propertyInfo.type;node[propertyName]=type===BOOLEAN?!1:""}else node[propertyName]=value2;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value2===null)node.removeAttribute(attributeName);else{var _type=propertyInfo.type,attributeValue;_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value2===!0?attributeValue="":(checkAttributeStringCoercion(value2,attributeName),attributeValue=""+value2,propertyInfo.sanitizeURL&&sanitizeURL(attributeValue.toString())),attributeNamespace?node.setAttributeNS(attributeNamespace,attributeName,attributeValue):node.setAttribute(attributeName,attributeValue)}}}var REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_SCOPE_TYPE=Symbol.for("react.scope"),REACT_DEBUG_TRACING_MODE_TYPE=Symbol.for("react.debug_trace_mode"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=Symbol.for("react.legacy_hidden"),REACT_CACHE_TYPE=Symbol.for("react.cache"),REACT_TRACING_MARKER_TYPE=Symbol.for("react.tracing_marker"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x2){var match=x2.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return` `+prefix+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher.current,ReactCurrentDispatcher.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x2){control=x2}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x2){control=x2}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x2){control=x2}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(` `),controlLines=control.stack.split(` `),s2=sampleLines.length-1,c2=controlLines.length-1;s2>=1&&c2>=0&&sampleLines[s2]!==controlLines[c2];)c2--;for(;s2>=1&&c2>=0;s2--,c2--)if(sampleLines[s2]!==controlLines[c2]){if(s2!==1||c2!==1)do if(s2--,c2--,c2<0||sampleLines[s2]!==controlLines[c2]){var _frame=` @@ -142,7 +142,7 @@ Check the render method of %s.`,getComponentNameFromFiber(current)||"Unknown")); let root = createRoot(domContainer); root.render();`),options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError),options2.transitionCallbacks!==void 0&&(transitionCallbacks=options2.transitionCallbacks));var root2=createContainer(container,ConcurrentRoot,null,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);markContainerAsRoot(root2.current,container);var rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(rootContainerElement),new ReactDOMRoot(root2)}function ReactDOMHydrationRoot(internalRoot){this._internalRoot=internalRoot}function scheduleHydration(target){target&&queueExplicitHydrationTarget(target)}ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=scheduleHydration;function hydrateRoot(container,initialChildren,options2){if(!isValidContainer(container))throw new Error("hydrateRoot(...): Target container is not a DOM element.");warnIfReactDOMContainerInDEV(container),initialChildren===void 0&&error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, )");var hydrationCallbacks=options2??null,mutableSources=options2!=null&&options2.hydratedSources||null,isStrictMode=!1,concurrentUpdatesByDefaultOverride=!1,identifierPrefix="",onRecoverableError=defaultOnRecoverableError;options2!=null&&(options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError));var root2=createHydrationContainer(initialChildren,null,container,ConcurrentRoot,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);if(markContainerAsRoot(root2.current,container),listenToAllSupportedEvents(container),mutableSources)for(var i2=0;i22&&arguments[2]!==void 0?arguments[2]:null;if(!isValidContainer(container))throw new Error("Target container is not a DOM element.");return createPortal(children,container,null,key)}function renderSubtreeIntoContainer(parentComponent,element,containerNode,callback){return unstable_renderSubtreeIntoContainer(parentComponent,element,containerNode,callback)}var Internals={usingClientEntryPoint:!1,Events:[getInstanceFromNode,getNodeFromInstance,getFiberCurrentPropsFromNode,enqueueStateRestore,restoreStateIfNeeded,batchedUpdates$1]};function createRoot$1(container,options2){return Internals.usingClientEntryPoint||error('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),createRoot(container,options2)}function hydrateRoot$1(container,initialChildren,options2){return Internals.usingClientEntryPoint||error('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),hydrateRoot(container,initialChildren,options2)}function flushSync$1(fn){return isAlreadyRendering()&&error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),flushSync(fn)}var foundDevTools=injectIntoDevTools({findFiberByHostInstance:getClosestInstanceFromNode,bundleType:1,version:ReactVersion,rendererPackageName:"react-dom"});if(!foundDevTools&&canUseDOM&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var protocol4=window.location.protocol;/^(https?|file):$/.test(protocol4)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(protocol4==="file:"?` -You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Internals,exports.createPortal=createPortal$1,exports.createRoot=createRoot$1,exports.findDOMNode=findDOMNode,exports.flushSync=flushSync$1,exports.hydrate=hydrate,exports.hydrateRoot=hydrateRoot$1,exports.render=render,exports.unmountComponentAtNode=unmountComponentAtNode,exports.unstable_batchedUpdates=batchedUpdates$1,exports.unstable_renderSubtreeIntoContainer=renderSubtreeIntoContainer,exports.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_react_dom=__commonJS({"../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"(exports,module2){"use strict";module2.exports=require_react_dom_development()}});var require_client=__commonJS({"../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js"(exports){"use strict";var m=require_react_dom();i2=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,exports.createRoot=function(c2,o2){i2.usingClientEntryPoint=!0;try{return m.createRoot(c2,o2)}finally{i2.usingClientEntryPoint=!1}},exports.hydrateRoot=function(c2,h2,o2){i2.usingClientEntryPoint=!0;try{return m.hydrateRoot(c2,h2,o2)}finally{i2.usingClientEntryPoint=!1}};var i2}});var require_react_jsx_runtime_development=__commonJS({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports){"use strict";(function(){"use strict";var React2=require_react(),REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactSharedInternals=React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function error(format){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==void 0))}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init2=lazyComponent._init;try{return getComponentNameFromType(init2(payload))}catch{return null}}}return null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x2){var match=x2.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return` +You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Internals,exports.createPortal=createPortal$1,exports.createRoot=createRoot$1,exports.findDOMNode=findDOMNode,exports.flushSync=flushSync$1,exports.hydrate=hydrate,exports.hydrateRoot=hydrateRoot$1,exports.render=render,exports.unmountComponentAtNode=unmountComponentAtNode,exports.unstable_batchedUpdates=batchedUpdates$1,exports.unstable_renderSubtreeIntoContainer=renderSubtreeIntoContainer,exports.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_react_dom=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"(exports,module2){"use strict";module2.exports=require_react_dom_development()}});var require_client=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js"(exports){"use strict";var m=require_react_dom();i2=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,exports.createRoot=function(c2,o2){i2.usingClientEntryPoint=!0;try{return m.createRoot(c2,o2)}finally{i2.usingClientEntryPoint=!1}},exports.hydrateRoot=function(c2,h2,o2){i2.usingClientEntryPoint=!0;try{return m.hydrateRoot(c2,h2,o2)}finally{i2.usingClientEntryPoint=!1}};var i2}});var require_react_jsx_runtime_development=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports){"use strict";(function(){"use strict";var React2=require_react(),REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactSharedInternals=React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function error(format){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==void 0))}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init2=lazyComponent._init;try{return getComponentNameFromType(init2(payload))}catch{return null}}}return null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x2){var match=x2.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return` `+prefix+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher.current,ReactCurrentDispatcher.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x2){control=x2}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x2){control=x2}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x2){control=x2}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(` `),controlLines=control.stack.split(` `),s2=sampleLines.length-1,c2=controlLines.length-1;s2>=1&&c2>=0&&sampleLines[s2]!==controlLines[c2];)c2--;for(;s2>=1&&c2>=0;s2--,c2--)if(sampleLines[s2]!==controlLines[c2]){if(s2!==1||c2!==1)do if(s2--,c2--,c2<0||sampleLines[s2]!==controlLines[c2]){var _frame=` @@ -157,7 +157,7 @@ Check the top-level render call using <`+parentName+">.")}return info}}function <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; - <%s key={someKey} {...props} />`,beforeExample,componentName,afterExample,componentName),didWarnAboutKeySpread[componentName+beforeExample]=!0}}return type===REACT_FRAGMENT_TYPE?validateFragmentProps(element):validatePropTypes(element),element}}function jsxWithValidationStatic(type,props,key){return jsxWithValidation(type,props,key,!0)}function jsxWithValidationDynamic(type,props,key){return jsxWithValidation(type,props,key,!1)}var jsx=jsxWithValidationDynamic,jsxs=jsxWithValidationStatic;exports.Fragment=REACT_FRAGMENT_TYPE,exports.jsx=jsx,exports.jsxs=jsxs})()}});var require_jsx_runtime=__commonJS({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(exports,module2){"use strict";module2.exports=require_react_jsx_runtime_development()}});var require_base64_js=__commonJS({"../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports){"use strict";exports.byteLength=byteLength3;exports.toByteArray=toByteArray2;exports.fromByteArray=fromByteArray2;var lookup4=[],revLookup2=[],Arr2=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i2=0,len=code.length;i20)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength3(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray2(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr2(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i3;for(i3=0;i3>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup2[b64.charCodeAt(i3)]<<2|revLookup2[b64.charCodeAt(i3+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup2[b64.charCodeAt(i3)]<<10|revLookup2[b64.charCodeAt(i3+1)]<<4|revLookup2[b64.charCodeAt(i3+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase642(num){return lookup4[num>>18&63]+lookup4[num>>12&63]+lookup4[num>>6&63]+lookup4[num&63]}function encodeChunk2(uint8,start,end){for(var tmp,output=[],i3=start;i3len22?len22:i3+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts2.push(lookup4[tmp>>2]+lookup4[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts2.push(lookup4[tmp>>10]+lookup4[tmp>>4&63]+lookup4[tmp<<2&63]+"=")),parts2.join("")}}});var require_ieee754=__commonJS({"../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js"(exports){"use strict";exports.read=function(buffer,offset,isLE,mLen,nBytes){var e4,m,eLen=nBytes*8-mLen-1,eMax=(1<>1,nBits=-7,i2=isLE?nBytes-1:0,d=isLE?-1:1,s2=buffer[offset+i2];for(i2+=d,e4=s2&(1<<-nBits)-1,s2>>=-nBits,nBits+=eLen;nBits>0;e4=e4*256+buffer[offset+i2],i2+=d,nBits-=8);for(m=e4&(1<<-nBits)-1,e4>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i2],i2+=d,nBits-=8);if(e4===0)e4=1-eBias;else{if(e4===eMax)return m?NaN:(s2?-1:1)*(1/0);m=m+Math.pow(2,mLen),e4=e4-eBias}return(s2?-1:1)*m*Math.pow(2,e4-mLen)};exports.write=function(buffer,value2,offset,isLE,mLen,nBytes){var e4,m,c2,eLen=nBytes*8-mLen-1,eMax=(1<>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i2=isLE?0:nBytes-1,d=isLE?1:-1,s2=value2<0||value2===0&&1/value2<0?1:0;for(value2=Math.abs(value2),isNaN(value2)||value2===1/0?(m=isNaN(value2)?1:0,e4=eMax):(e4=Math.floor(Math.log(value2)/Math.LN2),value2*(c2=Math.pow(2,-e4))<1&&(e4--,c2*=2),e4+eBias>=1?value2+=rt/c2:value2+=rt*Math.pow(2,1-eBias),value2*c2>=2&&(e4++,c2/=2),e4+eBias>=eMax?(m=0,e4=eMax):e4+eBias>=1?(m=(value2*c2-1)*Math.pow(2,mLen),e4=e4+eBias):(m=value2*Math.pow(2,eBias-1)*Math.pow(2,mLen),e4=0));mLen>=8;buffer[offset+i2]=m&255,i2+=d,m/=256,mLen-=8);for(e4=e4<0;buffer[offset+i2]=e4&255,i2+=d,e4/=256,eLen-=8);buffer[offset+i2-d]|=s2*128}}});var require_buffer=__commonJS({"../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js"(exports){"use strict";var base64=require_base64_js(),ieee7542=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports.Buffer=Buffer4;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer4.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer4.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{let arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer4.prototype,"parent",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer4.prototype,"offset",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.byteOffset}});function createBuffer2(length){if(length>K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');let buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer4.prototype),buf}function Buffer4(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe2(arg)}return from2(arg,encodingOrOffset,length)}Buffer4.poolSize=8192;function from2(value2,encodingOrOffset,length){if(typeof value2=="string")return fromString2(value2,encodingOrOffset);if(ArrayBuffer.isView(value2))return fromArrayView(value2);if(value2==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value2);if(isInstance(value2,ArrayBuffer)||value2&&isInstance(value2.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value2,SharedArrayBuffer)||value2&&isInstance(value2.buffer,SharedArrayBuffer)))return fromArrayBuffer2(value2,encodingOrOffset,length);if(typeof value2=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let valueOf=value2.valueOf&&value2.valueOf();if(valueOf!=null&&valueOf!==value2)return Buffer4.from(valueOf,encodingOrOffset,length);let b2=fromObject2(value2);if(b2)return b2;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value2[Symbol.toPrimitive]=="function")return Buffer4.from(value2[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value2)}Buffer4.from=function(value2,encodingOrOffset,length){return from2(value2,encodingOrOffset,length)};Object.setPrototypeOf(Buffer4.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer4,Uint8Array);function assertSize2(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc2(size,fill,encoding){return assertSize2(size),size<=0?createBuffer2(size):fill!==void 0?typeof encoding=="string"?createBuffer2(size).fill(fill,encoding):createBuffer2(size).fill(fill):createBuffer2(size)}Buffer4.alloc=function(size,fill,encoding){return alloc2(size,fill,encoding)};function allocUnsafe2(size){return assertSize2(size),createBuffer2(size<0?0:checked2(size)|0)}Buffer4.allocUnsafe=function(size){return allocUnsafe2(size)};Buffer4.allocUnsafeSlow=function(size){return allocUnsafe2(size)};function fromString2(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer4.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);let length=byteLength3(string,encoding)|0,buf=createBuffer2(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike2(array){let length=array.length<0?0:checked2(array.length)|0,buf=createBuffer2(length);for(let i2=0;i2=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer4.alloc(+length)}Buffer4.isBuffer=function(b2){return b2!=null&&b2._isBuffer===!0&&b2!==Buffer4.prototype};Buffer4.compare=function(a2,b2){if(isInstance(a2,Uint8Array)&&(a2=Buffer4.from(a2,a2.offset,a2.byteLength)),isInstance(b2,Uint8Array)&&(b2=Buffer4.from(b2,b2.offset,b2.byteLength)),!Buffer4.isBuffer(a2)||!Buffer4.isBuffer(b2))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a2===b2)return 0;let x2=a2.length,y2=b2.length;for(let i2=0,len=Math.min(x2,y2);i2buffer.length?(Buffer4.isBuffer(buf)||(buf=Buffer4.from(buf)),buf.copy(buffer,pos)):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer4.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength3(string,encoding){if(Buffer4.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);let len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;let loweredCase=!1;for(;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes2(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes2(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes2(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer4.byteLength=byteLength3;function slowToString2(encoding,start,end){let loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice2(this,start,end);case"utf8":case"utf-8":return utf8Slice2(this,start,end);case"ascii":return asciiSlice2(this,start,end);case"latin1":case"binary":return latin1Slice2(this,start,end);case"base64":return base64Slice2(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice2(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer4.prototype._isBuffer=!0;function swap2(b2,n2,m){let i2=b2[n2];b2[n2]=b2[m],b2[m]=i2}Buffer4.prototype.swap16=function(){let len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i2=0;i2max&&(str+=" ... "),""};customInspectSymbol&&(Buffer4.prototype[customInspectSymbol]=Buffer4.prototype.inspect);Buffer4.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer4.from(target,target.offset,target.byteLength)),!Buffer4.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;let x2=thisEnd-thisStart,y2=end-start,len=Math.min(x2,y2),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end);for(let i2=0;i22147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer4.from(val,encoding)),Buffer4.isBuffer(val))return val.length===0?-1:arrayIndexOf2(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf2(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf2(arr,val,byteOffset,encoding,dir){let indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read2(buf,i3){return indexSize===1?buf[i3]:buf.readUInt16BE(i3*indexSize)}let i2;if(dir){let foundIndex=-1;for(i2=byteOffset;i2arrLength&&(byteOffset=arrLength-valLength),i2=byteOffset;i2>=0;i2--){let found=!0;for(let j=0;jremaining&&(length=remaining)):length=remaining;let strLen=string.length;length>strLen/2&&(length=strLen/2);let i2;for(i2=0;i2>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");let loweredCase=!1;for(;;)switch(encoding){case"hex":return hexWrite2(this,string,offset,length);case"utf8":case"utf-8":return utf8Write2(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite2(this,string,offset,length);case"base64":return base64Write2(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write2(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer4.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice2(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice2(buf,start,end){end=Math.min(buf.length,end);let res=[],i2=start;for(;i2239?4:firstByte>223?3:firstByte>191?2:1;if(i2+bytesPerSequence<=end){let secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i2+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i2+1],thirdByte=buf[i2+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i2+1],thirdByte=buf[i2+2],fourthByte=buf[i2+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i2+=bytesPerSequence}return decodeCodePointsArray2(res)}var MAX_ARGUMENTS_LENGTH2=4096;function decodeCodePointsArray2(codePoints){let len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH2)return String.fromCharCode.apply(String,codePoints);let res="",i2=0;for(;i2len)&&(end=len);let out="";for(let i2=start;i2len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),endlength)throw new RangeError("Trying to access beyond buffer length")}Buffer4.prototype.readUintLE=Buffer4.prototype.readUIntLE=function(offset,byteLength4,noAssert){offset=offset>>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset],mul=1,i2=0;for(;++i2>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset+--byteLength4],mul=1;for(;byteLength4>0&&(mul*=256);)val+=this[offset+--byteLength4]*mul;return val};Buffer4.prototype.readUint8=Buffer4.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,1,this.length),this[offset]};Buffer4.prototype.readUint16LE=Buffer4.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer4.prototype.readUint16BE=Buffer4.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer4.prototype.readUint32LE=Buffer4.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer4.prototype.readUint32BE=Buffer4.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer4.prototype.readBigUInt64LE=defineBigIntMethod(function(offset){offset=offset>>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let lo=first+this[++offset]*2**8+this[++offset]*2**16+this[++offset]*2**24,hi=this[++offset]+this[++offset]*2**8+this[++offset]*2**16+last*2**24;return BigInt(lo)+(BigInt(hi)<>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let hi=first*2**24+this[++offset]*2**16+this[++offset]*2**8+this[++offset],lo=this[++offset]*2**24+this[++offset]*2**16+this[++offset]*2**8+last;return(BigInt(hi)<>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset],mul=1,i2=0;for(;++i2=mul&&(val-=Math.pow(2,8*byteLength4)),val};Buffer4.prototype.readIntBE=function(offset,byteLength4,noAssert){offset=offset>>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let i2=byteLength4,mul=1,val=this[offset+--i2];for(;i2>0&&(mul*=256);)val+=this[offset+--i2]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength4)),val};Buffer4.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer4.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length);let val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length);let val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer4.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer4.prototype.readBigInt64LE=defineBigIntMethod(function(offset){offset=offset>>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let val=this[offset+4]+this[offset+5]*2**8+this[offset+6]*2**16+(last<<24);return(BigInt(val)<>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let val=(first<<24)+this[++offset]*2**16+this[++offset]*2**8+this[++offset];return(BigInt(val)<>>0,noAssert||checkOffset2(offset,4,this.length),ieee7542.read(this,offset,!0,23,4)};Buffer4.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),ieee7542.read(this,offset,!1,23,4)};Buffer4.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,8,this.length),ieee7542.read(this,offset,!0,52,8)};Buffer4.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,8,this.length),ieee7542.read(this,offset,!1,52,8)};function checkInt2(buf,value2,offset,ext,max,min){if(!Buffer4.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value2>max||value2buf.length)throw new RangeError("Index out of range")}Buffer4.prototype.writeUintLE=Buffer4.prototype.writeUIntLE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,byteLength4=byteLength4>>>0,!noAssert){let maxBytes=Math.pow(2,8*byteLength4)-1;checkInt2(this,value2,offset,byteLength4,maxBytes,0)}let mul=1,i2=0;for(this[offset]=value2&255;++i2>>0,byteLength4=byteLength4>>>0,!noAssert){let maxBytes=Math.pow(2,8*byteLength4)-1;checkInt2(this,value2,offset,byteLength4,maxBytes,0)}let i2=byteLength4-1,mul=1;for(this[offset+i2]=value2&255;--i2>=0&&(mul*=256);)this[offset+i2]=value2/mul&255;return offset+byteLength4};Buffer4.prototype.writeUint8=Buffer4.prototype.writeUInt8=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,1,255,0),this[offset]=value2&255,offset+1};Buffer4.prototype.writeUint16LE=Buffer4.prototype.writeUInt16LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,65535,0),this[offset]=value2&255,this[offset+1]=value2>>>8,offset+2};Buffer4.prototype.writeUint16BE=Buffer4.prototype.writeUInt16BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,65535,0),this[offset]=value2>>>8,this[offset+1]=value2&255,offset+2};Buffer4.prototype.writeUint32LE=Buffer4.prototype.writeUInt32LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,4294967295,0),this[offset+3]=value2>>>24,this[offset+2]=value2>>>16,this[offset+1]=value2>>>8,this[offset]=value2&255,offset+4};Buffer4.prototype.writeUint32BE=Buffer4.prototype.writeUInt32BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,4294967295,0),this[offset]=value2>>>24,this[offset+1]=value2>>>16,this[offset+2]=value2>>>8,this[offset+3]=value2&255,offset+4};function wrtBigUInt64LE(buf,value2,offset,min,max){checkIntBI(value2,min,max,buf,offset,7);let lo=Number(value2&BigInt(4294967295));buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo;let hi=Number(value2>>BigInt(32)&BigInt(4294967295));return buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,offset}function wrtBigUInt64BE(buf,value2,offset,min,max){checkIntBI(value2,min,max,buf,offset,7);let lo=Number(value2&BigInt(4294967295));buf[offset+7]=lo,lo=lo>>8,buf[offset+6]=lo,lo=lo>>8,buf[offset+5]=lo,lo=lo>>8,buf[offset+4]=lo;let hi=Number(value2>>BigInt(32)&BigInt(4294967295));return buf[offset+3]=hi,hi=hi>>8,buf[offset+2]=hi,hi=hi>>8,buf[offset+1]=hi,hi=hi>>8,buf[offset]=hi,offset+8}Buffer4.prototype.writeBigUInt64LE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64LE(this,value2,offset,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer4.prototype.writeBigUInt64BE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64BE(this,value2,offset,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer4.prototype.writeIntLE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,!noAssert){let limit=Math.pow(2,8*byteLength4-1);checkInt2(this,value2,offset,byteLength4,limit-1,-limit)}let i2=0,mul=1,sub=0;for(this[offset]=value2&255;++i2>0)-sub&255;return offset+byteLength4};Buffer4.prototype.writeIntBE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,!noAssert){let limit=Math.pow(2,8*byteLength4-1);checkInt2(this,value2,offset,byteLength4,limit-1,-limit)}let i2=byteLength4-1,mul=1,sub=0;for(this[offset+i2]=value2&255;--i2>=0&&(mul*=256);)value2<0&&sub===0&&this[offset+i2+1]!==0&&(sub=1),this[offset+i2]=(value2/mul>>0)-sub&255;return offset+byteLength4};Buffer4.prototype.writeInt8=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,1,127,-128),value2<0&&(value2=255+value2+1),this[offset]=value2&255,offset+1};Buffer4.prototype.writeInt16LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,32767,-32768),this[offset]=value2&255,this[offset+1]=value2>>>8,offset+2};Buffer4.prototype.writeInt16BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,32767,-32768),this[offset]=value2>>>8,this[offset+1]=value2&255,offset+2};Buffer4.prototype.writeInt32LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,2147483647,-2147483648),this[offset]=value2&255,this[offset+1]=value2>>>8,this[offset+2]=value2>>>16,this[offset+3]=value2>>>24,offset+4};Buffer4.prototype.writeInt32BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,2147483647,-2147483648),value2<0&&(value2=4294967295+value2+1),this[offset]=value2>>>24,this[offset+1]=value2>>>16,this[offset+2]=value2>>>8,this[offset+3]=value2&255,offset+4};Buffer4.prototype.writeBigInt64LE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64LE(this,value2,offset,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Buffer4.prototype.writeBigInt64BE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64BE(this,value2,offset,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function checkIEEE7542(buf,value2,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat2(buf,value2,offset,littleEndian,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkIEEE7542(buf,value2,offset,4,34028234663852886e22,-34028234663852886e22),ieee7542.write(buf,value2,offset,littleEndian,23,4),offset+4}Buffer4.prototype.writeFloatLE=function(value2,offset,noAssert){return writeFloat2(this,value2,offset,!0,noAssert)};Buffer4.prototype.writeFloatBE=function(value2,offset,noAssert){return writeFloat2(this,value2,offset,!1,noAssert)};function writeDouble2(buf,value2,offset,littleEndian,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkIEEE7542(buf,value2,offset,8,17976931348623157e292,-17976931348623157e292),ieee7542.write(buf,value2,offset,littleEndian,52,8),offset+8}Buffer4.prototype.writeDoubleLE=function(value2,offset,noAssert){return writeDouble2(this,value2,offset,!0,noAssert)};Buffer4.prototype.writeDoubleBE=function(value2,offset,noAssert){return writeDouble2(this,value2,offset,!1,noAssert)};Buffer4.prototype.copy=function(target,targetStart,start,end){if(!Buffer4.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart>>0,end=end===void 0?this.length:end>>>0,val||(val=0);let i2;if(typeof val=="number")for(i2=start;i22**32?received=addNumericalSeparator(String(input)):typeof input=="bigint"&&(received=String(input),(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32)))&&(received=addNumericalSeparator(received)),received+="n"),msg+=` It must be ${range}. Received ${received}`,msg},RangeError);function addNumericalSeparator(val){let res="",i2=val.length,start=val[0]==="-"?1:0;for(;i2>=start+4;i2-=3)res=`_${val.slice(i2-3,i2)}${res}`;return`${val.slice(0,i2)}${res}`}function checkBounds(buf,offset,byteLength4){validateNumber(offset,"offset"),(buf[offset]===void 0||buf[offset+byteLength4]===void 0)&&boundsError(offset,buf.length-(byteLength4+1))}function checkIntBI(value2,min,max,buf,offset,byteLength4){if(value2>max||value23?min===0||min===BigInt(0)?range=`>= 0${n2} and < 2${n2} ** ${(byteLength4+1)*8}${n2}`:range=`>= -(2${n2} ** ${(byteLength4+1)*8-1}${n2}) and < 2 ** ${(byteLength4+1)*8-1}${n2}`:range=`>= ${min}${n2} and <= ${max}${n2}`,new errors.ERR_OUT_OF_RANGE("value",range,value2)}checkBounds(buf,offset,byteLength4)}function validateNumber(value2,name){if(typeof value2!="number")throw new errors.ERR_INVALID_ARG_TYPE(name,"number",value2)}function boundsError(value2,length,type){throw Math.floor(value2)!==value2?(validateNumber(value2,type),new errors.ERR_OUT_OF_RANGE(type||"offset","an integer",value2)):length<0?new errors.ERR_BUFFER_OUT_OF_BOUNDS:new errors.ERR_OUT_OF_RANGE(type||"offset",`>= ${type?1:0} and <= ${length}`,value2)}var INVALID_BASE64_RE2=/[^+/0-9A-Za-z-_]/g;function base64clean2(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE2,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes2(string,units){units=units||1/0;let codePoint,length=string.length,leadSurrogate=null,bytes=[];for(let i2=0;i255295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i2+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes2(str){let byteArray=[];for(let i2=0;i2>8,lo=c2%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes2(str){return base64.toByteArray(base64clean2(str))}function blitBuffer2(src2,dst,offset,length){let i2;for(i2=0;i2=dst.length||i2>=src2.length);++i2)dst[i2+offset]=src2[i2];return i2}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=(function(){let alphabet2="0123456789abcdef",table=new Array(256);for(let i2=0;i2<16;++i2){let i16=i2*16;for(let j=0;j<16;++j)table[i16+j]=alphabet2[i2]+alphabet2[j]}return table})();function defineBigIntMethod(fn){return typeof BigInt>"u"?BufferBigIntNotDefined:fn}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}}});var browser_exports={};__export(browser_exports,{BlendMode:()=>BlendMode,BmpCompression:()=>BmpCompression,HorizontalAlign:()=>HorizontalAlign,Jimp:()=>Jimp,JimpMime:()=>JimpMime,PNGColorType:()=>PNGColorType,PNGFilterType:()=>PNGFilterType,ResizeStrategy:()=>ResizeStrategy,VerticalAlign:()=>VerticalAlign,colorDiff:()=>colorDiff,compareHashes:()=>compareHashes,cssColorToHex:()=>cssColorToHex,defaultFormats:()=>defaultFormats,defaultPlugins:()=>defaultPlugins,diff:()=>diff,distance:()=>distance,intToRGBA:()=>intToRGBA$1,limit255:()=>limit255,loadFont:()=>loadFont,measureText:()=>measureText,measureTextHeight:()=>measureTextHeight,rgbaToInt:()=>rgbaToInt});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e4){return e4&&e4.__esModule&&Object.prototype.hasOwnProperty.call(e4,"default")?e4.default:e4}function getAugmentedNamespace(e4){if(e4.__esModule)return e4;var t2=e4.default;if(typeof t2=="function"){var i2=function e5(){return this instanceof e5?Reflect.construct(t2,arguments,this.constructor):t2.apply(this,arguments)};i2.prototype=t2.prototype}else i2={};return Object.defineProperty(i2,"__esModule",{value:!0}),Object.keys(e4).forEach((function(t3){var r2=Object.getOwnPropertyDescriptor(e4,t3);Object.defineProperty(i2,t3,r2.get?r2:{enumerable:!0,get:function(){return e4[t3]}})})),i2}typeof self>"u"&&typeof commonjsGlobal=="object"&&(commonjsGlobal.self=commonjsGlobal);var global$1=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,inited=!1;function init(){inited=!0;for(var e4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t2=0;t2<64;++t2)lookup[t2]=e4[t2],revLookup[e4.charCodeAt(t2)]=t2;revLookup[45]=62,revLookup[95]=63}function toByteArray(e4){var t2,i2,r2,n2,a2,o2;inited||init();var s2=e4.length;if(s2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a2=e4[s2-2]==="="?2:e4[s2-1]==="="?1:0,o2=new Arr(3*s2/4-a2),r2=a2>0?s2-4:s2;var l2=0;for(t2=0,i2=0;t2>16&255,o2[l2++]=n2>>8&255,o2[l2++]=255&n2;return a2===2?(n2=revLookup[e4.charCodeAt(t2)]<<2|revLookup[e4.charCodeAt(t2+1)]>>4,o2[l2++]=255&n2):a2===1&&(n2=revLookup[e4.charCodeAt(t2)]<<10|revLookup[e4.charCodeAt(t2+1)]<<4|revLookup[e4.charCodeAt(t2+2)]>>2,o2[l2++]=n2>>8&255,o2[l2++]=255&n2),o2}function tripletToBase64(e4){return lookup[e4>>18&63]+lookup[e4>>12&63]+lookup[e4>>6&63]+lookup[63&e4]}function encodeChunk(e4,t2,i2){for(var r2,n2=[],a2=t2;a2l2?l2:s2+o2));return r2===1?(t2=e4[i2-1],n2+=lookup[t2>>2],n2+=lookup[t2<<4&63],n2+="=="):r2===2&&(t2=(e4[i2-2]<<8)+e4[i2-1],n2+=lookup[t2>>10],n2+=lookup[t2>>4&63],n2+=lookup[t2<<2&63],n2+="="),a2.push(n2),a2.join("")}function read(e4,t2,i2,r2,n2){var a2,o2,s2=8*n2-r2-1,l2=(1<>1,h2=-7,c2=i2?n2-1:0,f2=i2?-1:1,d=e4[t2+c2];for(c2+=f2,a2=d&(1<<-h2)-1,d>>=-h2,h2+=s2;h2>0;a2=256*a2+e4[t2+c2],c2+=f2,h2-=8);for(o2=a2&(1<<-h2)-1,a2>>=-h2,h2+=r2;h2>0;o2=256*o2+e4[t2+c2],c2+=f2,h2-=8);if(a2===0)a2=1-u2;else{if(a2===l2)return o2?NaN:1/0*(d?-1:1);o2+=Math.pow(2,r2),a2-=u2}return(d?-1:1)*o2*Math.pow(2,a2-r2)}function write(e4,t2,i2,r2,n2,a2){var o2,s2,l2,u2=8*a2-n2-1,h2=(1<>1,f2=n2===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r2?0:a2-1,p2=r2?1:-1,m=t2<0||t2===0&&1/t2<0?1:0;for(t2=Math.abs(t2),isNaN(t2)||t2===1/0?(s2=isNaN(t2)?1:0,o2=h2):(o2=Math.floor(Math.log(t2)/Math.LN2),t2*(l2=Math.pow(2,-o2))<1&&(o2--,l2*=2),(t2+=o2+c2>=1?f2/l2:f2*Math.pow(2,1-c2))*l2>=2&&(o2++,l2/=2),o2+c2>=h2?(s2=0,o2=h2):o2+c2>=1?(s2=(t2*l2-1)*Math.pow(2,n2),o2+=c2):(s2=t2*Math.pow(2,c2-1)*Math.pow(2,n2),o2=0));n2>=8;e4[i2+d]=255&s2,d+=p2,s2/=256,n2-=8);for(o2=o2<0;e4[i2+d]=255&o2,d+=p2,o2/=256,u2-=8);e4[i2+d-p2]|=128*m}var toString={}.toString,isArray=Array.isArray||function(e4){return toString.call(e4)=="[object Array]"},INSPECT_MAX_BYTES=50;function kMaxLength(){return Buffer2.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e4,t2){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e4}function internalIsBuffer(e4){return!(e4==null||!e4._isBuffer)}function byteLength(e4,t2){if(internalIsBuffer(e4))return e4.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e4)||e4 instanceof ArrayBuffer))return e4.byteLength;typeof e4!="string"&&(e4=""+e4);var i2=e4.length;if(i2===0)return 0;for(var r2=!1;;)switch(t2){case"ascii":case"latin1":case"binary":return i2;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e4).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i2;case"hex":return i2>>>1;case"base64":return base64ToBytes(e4).length;default:if(r2)return utf8ToBytes(e4).length;t2=(""+t2).toLowerCase(),r2=!0}}function slowToString(e4,t2,i2){var r2=!1;if((t2===void 0||t2<0)&&(t2=0),t2>this.length||((i2===void 0||i2>this.length)&&(i2=this.length),i2<=0)||(i2>>>=0)<=(t2>>>=0))return"";for(e4||(e4="utf8");;)switch(e4){case"hex":return hexSlice(this,t2,i2);case"utf8":case"utf-8":return utf8Slice(this,t2,i2);case"ascii":return asciiSlice(this,t2,i2);case"latin1":case"binary":return latin1Slice(this,t2,i2);case"base64":return base64Slice(this,t2,i2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t2,i2);default:if(r2)throw new TypeError("Unknown encoding: "+e4);e4=(e4+"").toLowerCase(),r2=!0}}function swap(e4,t2,i2){var r2=e4[t2];e4[t2]=e4[i2],e4[i2]=r2}function bidirectionalIndexOf(e4,t2,i2,r2,n2){if(e4.length===0)return-1;if(typeof i2=="string"?(r2=i2,i2=0):i2>2147483647?i2=2147483647:i2<-2147483648&&(i2=-2147483648),i2=+i2,isNaN(i2)&&(i2=n2?0:e4.length-1),i2<0&&(i2=e4.length+i2),i2>=e4.length){if(n2)return-1;i2=e4.length-1}else if(i2<0){if(!n2)return-1;i2=0}if(typeof t2=="string"&&(t2=Buffer2.from(t2,r2)),internalIsBuffer(t2))return t2.length===0?-1:arrayIndexOf(e4,t2,i2,r2,n2);if(typeof t2=="number")return t2&=255,Buffer2.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n2?Uint8Array.prototype.indexOf.call(e4,t2,i2):Uint8Array.prototype.lastIndexOf.call(e4,t2,i2):arrayIndexOf(e4,[t2],i2,r2,n2);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e4,t2,i2,r2,n2){var a2,o2=1,s2=e4.length,l2=t2.length;if(r2!==void 0&&((r2=String(r2).toLowerCase())==="ucs2"||r2==="ucs-2"||r2==="utf16le"||r2==="utf-16le")){if(e4.length<2||t2.length<2)return-1;o2=2,s2/=2,l2/=2,i2/=2}function u2(e5,t3){return o2===1?e5[t3]:e5.readUInt16BE(t3*o2)}if(n2){var h2=-1;for(a2=i2;a2s2&&(i2=s2-l2),a2=i2;a2>=0;a2--){for(var c2=!0,f2=0;f2n2&&(r2=n2):r2=n2;var a2=t2.length;if(a2%2!=0)throw new TypeError("Invalid hex string");r2>a2/2&&(r2=a2/2);for(var o2=0;o2239?4:u2>223?3:u2>191?2:1;if(n2+c2<=i2)switch(c2){case 1:u2<128&&(h2=u2);break;case 2:(192&(a2=e4[n2+1]))==128&&(l2=(31&u2)<<6|63&a2)>127&&(h2=l2);break;case 3:a2=e4[n2+1],o2=e4[n2+2],(192&a2)==128&&(192&o2)==128&&(l2=(15&u2)<<12|(63&a2)<<6|63&o2)>2047&&(l2<55296||l2>57343)&&(h2=l2);break;case 4:a2=e4[n2+1],o2=e4[n2+2],s2=e4[n2+3],(192&a2)==128&&(192&o2)==128&&(192&s2)==128&&(l2=(15&u2)<<18|(63&a2)<<12|(63&o2)<<6|63&s2)>65535&&l2<1114112&&(h2=l2)}h2===null?(h2=65533,c2=1):h2>65535&&(h2-=65536,r2.push(h2>>>10&1023|55296),h2=56320|1023&h2),r2.push(h2),n2+=c2}return decodeCodePointsArray(r2)}Buffer2.TYPED_ARRAY_SUPPORT=global$1.TYPED_ARRAY_SUPPORT===void 0||global$1.TYPED_ARRAY_SUPPORT,kMaxLength(),Buffer2.poolSize=8192,Buffer2._augment=function(e4){return e4.__proto__=Buffer2.prototype,e4},Buffer2.from=function(e4,t2,i2){return from(null,e4,t2,i2)},Buffer2.TYPED_ARRAY_SUPPORT&&(Buffer2.prototype.__proto__=Uint8Array.prototype,Buffer2.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Buffer2[Symbol.species]),Buffer2.alloc=function(e4,t2,i2){return alloc(null,e4,t2,i2)},Buffer2.allocUnsafe=function(e4){return allocUnsafe(null,e4)},Buffer2.allocUnsafeSlow=function(e4){return allocUnsafe(null,e4)},Buffer2.isBuffer=isBuffer,Buffer2.compare=function(e4,t2){if(!internalIsBuffer(e4)||!internalIsBuffer(t2))throw new TypeError("Arguments must be Buffers");if(e4===t2)return 0;for(var i2=e4.length,r2=t2.length,n2=0,a2=Math.min(i2,r2);n20&&(e4=this.toString("hex",0,t2).match(/.{2}/g).join(" "),this.length>t2&&(e4+=" ... ")),""},Buffer2.prototype.compare=function(e4,t2,i2,r2,n2){if(!internalIsBuffer(e4))throw new TypeError("Argument must be a Buffer");if(t2===void 0&&(t2=0),i2===void 0&&(i2=e4?e4.length:0),r2===void 0&&(r2=0),n2===void 0&&(n2=this.length),t2<0||i2>e4.length||r2<0||n2>this.length)throw new RangeError("out of range index");if(r2>=n2&&t2>=i2)return 0;if(r2>=n2)return-1;if(t2>=i2)return 1;if(this===e4)return 0;for(var a2=(n2>>>=0)-(r2>>>=0),o2=(i2>>>=0)-(t2>>>=0),s2=Math.min(a2,o2),l2=this.slice(r2,n2),u2=e4.slice(t2,i2),h2=0;h2n2)&&(i2=n2),e4.length>0&&(i2<0||t2<0)||t2>this.length)throw new RangeError("Attempt to write outside buffer bounds");r2||(r2="utf8");for(var a2=!1;;)switch(r2){case"hex":return hexWrite(this,e4,t2,i2);case"utf8":case"utf-8":return utf8Write(this,e4,t2,i2);case"ascii":return asciiWrite(this,e4,t2,i2);case"latin1":case"binary":return latin1Write(this,e4,t2,i2);case"base64":return base64Write(this,e4,t2,i2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e4,t2,i2);default:if(a2)throw new TypeError("Unknown encoding: "+r2);r2=(""+r2).toLowerCase(),a2=!0}},Buffer2.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(e4){var t2=e4.length;if(t2<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,e4);for(var i2="",r2=0;r2r2)&&(i2=r2);for(var n2="",a2=t2;a2i2)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e4,t2,i2,r2,n2,a2){if(!internalIsBuffer(e4))throw new TypeError('"buffer" argument must be a Buffer instance');if(t2>n2||t2e4.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e4,t2,i2,r2){t2<0&&(t2=65535+t2+1);for(var n2=0,a2=Math.min(e4.length-i2,2);n2>>8*(r2?n2:1-n2)}function objectWriteUInt32(e4,t2,i2,r2){t2<0&&(t2=4294967295+t2+1);for(var n2=0,a2=Math.min(e4.length-i2,4);n2>>8*(r2?n2:3-n2)&255}function checkIEEE754(e4,t2,i2,r2,n2,a2){if(i2+r2>e4.length)throw new RangeError("Index out of range");if(i2<0)throw new RangeError("Index out of range")}function writeFloat(e4,t2,i2,r2,n2){return n2||checkIEEE754(e4,t2,i2,4),write(e4,t2,i2,r2,23,4),i2+4}function writeDouble(e4,t2,i2,r2,n2){return n2||checkIEEE754(e4,t2,i2,8),write(e4,t2,i2,r2,52,8),i2+8}Buffer2.prototype.slice=function(e4,t2){var i2,r2=this.length;if((e4=~~e4)<0?(e4+=r2)<0&&(e4=0):e4>r2&&(e4=r2),(t2=t2===void 0?r2:~~t2)<0?(t2+=r2)<0&&(t2=0):t2>r2&&(t2=r2),t20&&(n2*=256);)r2+=this[e4+--t2]*n2;return r2},Buffer2.prototype.readUInt8=function(e4,t2){return t2||checkOffset(e4,1,this.length),this[e4]},Buffer2.prototype.readUInt16LE=function(e4,t2){return t2||checkOffset(e4,2,this.length),this[e4]|this[e4+1]<<8},Buffer2.prototype.readUInt16BE=function(e4,t2){return t2||checkOffset(e4,2,this.length),this[e4]<<8|this[e4+1]},Buffer2.prototype.readUInt32LE=function(e4,t2){return t2||checkOffset(e4,4,this.length),(this[e4]|this[e4+1]<<8|this[e4+2]<<16)+16777216*this[e4+3]},Buffer2.prototype.readUInt32BE=function(e4,t2){return t2||checkOffset(e4,4,this.length),16777216*this[e4]+(this[e4+1]<<16|this[e4+2]<<8|this[e4+3])},Buffer2.prototype.readIntLE=function(e4,t2,i2){e4|=0,t2|=0,i2||checkOffset(e4,t2,this.length);for(var r2=this[e4],n2=1,a2=0;++a2=(n2*=128)&&(r2-=Math.pow(2,8*t2)),r2},Buffer2.prototype.readIntBE=function(e4,t2,i2){e4|=0,t2|=0,i2||checkOffset(e4,t2,this.length);for(var r2=t2,n2=1,a2=this[e4+--r2];r2>0&&(n2*=256);)a2+=this[e4+--r2]*n2;return a2>=(n2*=128)&&(a2-=Math.pow(2,8*t2)),a2},Buffer2.prototype.readInt8=function(e4,t2){return t2||checkOffset(e4,1,this.length),128&this[e4]?-1*(255-this[e4]+1):this[e4]},Buffer2.prototype.readInt16LE=function(e4,t2){t2||checkOffset(e4,2,this.length);var i2=this[e4]|this[e4+1]<<8;return 32768&i2?4294901760|i2:i2},Buffer2.prototype.readInt16BE=function(e4,t2){t2||checkOffset(e4,2,this.length);var i2=this[e4+1]|this[e4]<<8;return 32768&i2?4294901760|i2:i2},Buffer2.prototype.readInt32LE=function(e4,t2){return t2||checkOffset(e4,4,this.length),this[e4]|this[e4+1]<<8|this[e4+2]<<16|this[e4+3]<<24},Buffer2.prototype.readInt32BE=function(e4,t2){return t2||checkOffset(e4,4,this.length),this[e4]<<24|this[e4+1]<<16|this[e4+2]<<8|this[e4+3]},Buffer2.prototype.readFloatLE=function(e4,t2){return t2||checkOffset(e4,4,this.length),read(this,e4,!0,23,4)},Buffer2.prototype.readFloatBE=function(e4,t2){return t2||checkOffset(e4,4,this.length),read(this,e4,!1,23,4)},Buffer2.prototype.readDoubleLE=function(e4,t2){return t2||checkOffset(e4,8,this.length),read(this,e4,!0,52,8)},Buffer2.prototype.readDoubleBE=function(e4,t2){return t2||checkOffset(e4,8,this.length),read(this,e4,!1,52,8)},Buffer2.prototype.writeUIntLE=function(e4,t2,i2,r2){e4=+e4,t2|=0,i2|=0,r2||checkInt(this,e4,t2,i2,Math.pow(2,8*i2)-1,0);var n2=1,a2=0;for(this[t2]=255&e4;++a2=0&&(a2*=256);)this[t2+n2]=e4/a2&255;return t2+i2},Buffer2.prototype.writeUInt8=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,1,255,0),Buffer2.TYPED_ARRAY_SUPPORT||(e4=Math.floor(e4)),this[t2]=255&e4,t2+1},Buffer2.prototype.writeUInt16LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,65535,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8):objectWriteUInt16(this,e4,t2,!0),t2+2},Buffer2.prototype.writeUInt16BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,65535,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>8,this[t2+1]=255&e4):objectWriteUInt16(this,e4,t2,!1),t2+2},Buffer2.prototype.writeUInt32LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,4294967295,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2+3]=e4>>>24,this[t2+2]=e4>>>16,this[t2+1]=e4>>>8,this[t2]=255&e4):objectWriteUInt32(this,e4,t2,!0),t2+4},Buffer2.prototype.writeUInt32BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,4294967295,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>24,this[t2+1]=e4>>>16,this[t2+2]=e4>>>8,this[t2+3]=255&e4):objectWriteUInt32(this,e4,t2,!1),t2+4},Buffer2.prototype.writeIntLE=function(e4,t2,i2,r2){if(e4=+e4,t2|=0,!r2){var n2=Math.pow(2,8*i2-1);checkInt(this,e4,t2,i2,n2-1,-n2)}var a2=0,o2=1,s2=0;for(this[t2]=255&e4;++a2=0&&(o2*=256);)e4<0&&s2===0&&this[t2+a2+1]!==0&&(s2=1),this[t2+a2]=(e4/o2|0)-s2&255;return t2+i2},Buffer2.prototype.writeInt8=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,1,127,-128),Buffer2.TYPED_ARRAY_SUPPORT||(e4=Math.floor(e4)),e4<0&&(e4=255+e4+1),this[t2]=255&e4,t2+1},Buffer2.prototype.writeInt16LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,32767,-32768),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8):objectWriteUInt16(this,e4,t2,!0),t2+2},Buffer2.prototype.writeInt16BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,32767,-32768),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>8,this[t2+1]=255&e4):objectWriteUInt16(this,e4,t2,!1),t2+2},Buffer2.prototype.writeInt32LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,2147483647,-2147483648),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8,this[t2+2]=e4>>>16,this[t2+3]=e4>>>24):objectWriteUInt32(this,e4,t2,!0),t2+4},Buffer2.prototype.writeInt32BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,2147483647,-2147483648),e4<0&&(e4=4294967295+e4+1),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>24,this[t2+1]=e4>>>16,this[t2+2]=e4>>>8,this[t2+3]=255&e4):objectWriteUInt32(this,e4,t2,!1),t2+4},Buffer2.prototype.writeFloatLE=function(e4,t2,i2){return writeFloat(this,e4,t2,!0,i2)},Buffer2.prototype.writeFloatBE=function(e4,t2,i2){return writeFloat(this,e4,t2,!1,i2)},Buffer2.prototype.writeDoubleLE=function(e4,t2,i2){return writeDouble(this,e4,t2,!0,i2)},Buffer2.prototype.writeDoubleBE=function(e4,t2,i2){return writeDouble(this,e4,t2,!1,i2)},Buffer2.prototype.copy=function(e4,t2,i2,r2){if(i2||(i2=0),r2||r2===0||(r2=this.length),t2>=e4.length&&(t2=e4.length),t2||(t2=0),r2>0&&r2=this.length)throw new RangeError("sourceStart out of bounds");if(r2<0)throw new RangeError("sourceEnd out of bounds");r2>this.length&&(r2=this.length),e4.length-t2=0;--n2)e4[n2+t2]=this[n2+i2];else if(a2<1e3||!Buffer2.TYPED_ARRAY_SUPPORT)for(n2=0;n2>>=0,i2=i2===void 0?this.length:i2>>>0,e4||(e4=0),typeof e4=="number")for(a2=t2;a255295&&i2<57344){if(!n2){if(i2>56319){(t2-=3)>-1&&a2.push(239,191,189);continue}if(o2+1===r2){(t2-=3)>-1&&a2.push(239,191,189);continue}n2=i2;continue}if(i2<56320){(t2-=3)>-1&&a2.push(239,191,189),n2=i2;continue}i2=65536+(n2-55296<<10|i2-56320)}else n2&&(t2-=3)>-1&&a2.push(239,191,189);if(n2=null,i2<128){if((t2-=1)<0)break;a2.push(i2)}else if(i2<2048){if((t2-=2)<0)break;a2.push(i2>>6|192,63&i2|128)}else if(i2<65536){if((t2-=3)<0)break;a2.push(i2>>12|224,i2>>6&63|128,63&i2|128)}else{if(!(i2<1114112))throw new Error("Invalid code point");if((t2-=4)<0)break;a2.push(i2>>18|240,i2>>12&63|128,i2>>6&63|128,63&i2|128)}}return a2}function asciiToBytes(e4){for(var t2=[],i2=0;i2>8,n2=i2%256,a2.push(n2),a2.push(r2);return a2}function base64ToBytes(e4){return toByteArray(base64clean(e4))}function blitBuffer(e4,t2,i2,r2){for(var n2=0;n2=t2.length||n2>=e4.length);++n2)t2[n2+i2]=e4[n2];return n2}function isnan(e4){return e4!=e4}function isBuffer(e4){return e4!=null&&(!!e4._isBuffer||isFastBuffer(e4)||isSlowBuffer(e4))}function isFastBuffer(e4){return!!e4.constructor&&typeof e4.constructor.isBuffer=="function"&&e4.constructor.isBuffer(e4)}function isSlowBuffer(e4){return typeof e4.readFloatLE=="function"&&typeof e4.slice=="function"&&isFastBuffer(e4.slice(0,0))}(function(e4){e4[e4.BITMAP_INFO_HEADER=40]="BITMAP_INFO_HEADER",e4[e4.BITMAP_V2_INFO_HEADER=52]="BITMAP_V2_INFO_HEADER",e4[e4.BITMAP_V3_INFO_HEADER=56]="BITMAP_V3_INFO_HEADER",e4[e4.BITMAP_V4_HEADER=108]="BITMAP_V4_HEADER",e4[e4.BITMAP_V5_HEADER=124]="BITMAP_V5_HEADER"})(HeaderTypes||(HeaderTypes={}));var HeaderTypes$1=HeaderTypes,BmpCompression;function maskColor(e4,t2,i2,r2){let n2=1+~e4&e4,a2=1+~t2&t2,o2=1+~i2&i2,s2=1+~r2&r2,l2=e4/n2+1,u2=t2/a2+1,h2=i2/o2+1,c2=r2/s2+1;return{shiftRed:t3=>(t3&e4)/n2*256/l2,shiftGreen:e5=>(e5&t2)/a2*256/u2,shiftBlue:e5=>(e5&i2)/o2*256/h2,shiftAlpha:r2!==0?e5=>(e5&r2)/s2*256/c2:()=>255}}(function(e4){e4[e4.NONE=0]="NONE",e4[e4.BI_RLE8=1]="BI_RLE8",e4[e4.BI_RLE4=2]="BI_RLE4",e4[e4.BI_BIT_FIELDS=3]="BI_BIT_FIELDS",e4[e4.BI_ALPHA_BIT_FIELDS=6]="BI_ALPHA_BIT_FIELDS"})(BmpCompression||(BmpCompression={}));var BmpDecoder=class{flag;fileSize;reserved1;reserved2;offset;headerSize;width;height;planes;bitPP;compression;rawSize;hr;vr;colors;importantColors;palette;data;maskRed;maskGreen;maskBlue;maskAlpha;toRGBA;pos;bottomUp;buffer;locRed;locGreen;locBlue;locAlpha;shiftRed;shiftGreen;shiftBlue;shiftAlpha;constructor(e4,{toRGBA:t2}={toRGBA:!1}){if(this.buffer=e4,this.toRGBA=!!t2,this.pos=0,this.bottomUp=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),this.flag!=="BM")throw new Error("Invalid BMP File");this.locRed=this.toRGBA?0:3,this.locGreen=this.toRGBA?1:2,this.locBlue=this.toRGBA?2:1,this.locAlpha=this.toRGBA?3:0,this.parseHeader(),this.parseRGBA()}parseHeader(){if(this.fileSize=this.readUInt32LE(),this.reserved1=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.reserved2=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.offset=this.readUInt32LE(),this.headerSize=this.readUInt32LE(),!(this.headerSize in HeaderTypes$1))throw new Error(`Unsupported BMP header size ${this.headerSize}`);if(this.width=this.readUInt32LE(),this.height=this.readUInt32LE(),this.height=this.height>2147483647?this.height-4294967296:this.height,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compression=this.readUInt32LE(),this.rawSize=this.readUInt32LE(),this.hr=this.readUInt32LE(),this.vr=this.readUInt32LE(),this.colors=this.readUInt32LE(),this.importantColors=this.readUInt32LE(),this.bitPP===32?(this.maskAlpha=0,this.maskRed=16711680,this.maskGreen=65280,this.maskBlue=255):this.bitPP===16&&(this.maskAlpha=0,this.maskRed=31744,this.maskGreen=992,this.maskBlue=31),(this.headerSize>HeaderTypes$1.BITMAP_INFO_HEADER||this.compression===BmpCompression.BI_BIT_FIELDS||this.compression===BmpCompression.BI_ALPHA_BIT_FIELDS)&&(this.maskRed=this.readUInt32LE(),this.maskGreen=this.readUInt32LE(),this.maskBlue=this.readUInt32LE()),(this.headerSize>HeaderTypes$1.BITMAP_V2_INFO_HEADER||this.compression===BmpCompression.BI_ALPHA_BIT_FIELDS)&&(this.maskAlpha=this.readUInt32LE()),this.headerSize>HeaderTypes$1.BITMAP_V3_INFO_HEADER&&(this.pos+=HeaderTypes$1.BITMAP_V4_HEADER-HeaderTypes$1.BITMAP_V3_INFO_HEADER),this.headerSize>HeaderTypes$1.BITMAP_V4_HEADER&&(this.pos+=HeaderTypes$1.BITMAP_V5_HEADER-HeaderTypes$1.BITMAP_V4_HEADER),this.bitPP<=8||this.colors>0){let e5=this.colors===0?1<{let i3=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+8*e5*4;for(let t4=0;t4<8&&8*e5+t4>7-t4&1];this.data[r2+t4*this.locAlpha]=0,this.data[r2+4*t4+this.locBlue]=e6.blue,this.data[r2+4*t4+this.locGreen]=e6.green,this.data[r2+4*t4+this.locRed]=e6.red}}))}bit4(){if(this.compression===BmpCompression.BI_RLE4){this.data.fill(0);let e4=!1,t2=this.bottomUp?this.height-1:0,i2=0;for(;i2>4),1&r3&&r3+1>1&1)==1&&this.pos++}}else for(let t3=0;t3>4),e4=!e4}}else{let e4=Math.ceil(this.width/2),t2=e4%4,i2=t2!==0?4-t2:0;this.scanImage(i2,e4,((e5,t3)=>{let i3=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+2*e5*4,n2=i3>>4,a2=this.palette[n2];if(this.data[r2]=0,this.data[r2+1]=a2.blue,this.data[r2+2]=a2.green,this.data[r2+3]=a2.red,2*e5+1>=this.width)return!1;let o2=15&i3;a2=this.palette[o2],this.data[r2+4]=0,this.data[r2+4+1]=a2.blue,this.data[r2+4+2]=a2.green,this.data[r2+4+3]=a2.red}))}}bit8(){if(this.compression===BmpCompression.BI_RLE8){this.data.fill(0);let e4=this.bottomUp?this.height-1:0,t2=0;for(;t2{let i2=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+4*e5;if(i2{let i2=t2*this.width*4+4*e5,r2=this.buffer.readUInt16LE(this.pos);this.pos+=2,this.data[i2+this.locRed]=this.shiftRed(r2),this.data[i2+this.locGreen]=this.shiftGreen(r2),this.data[i2+this.locBlue]=this.shiftBlue(r2),this.data[i2+this.locAlpha]=this.shiftAlpha(r2)}))}bit24(){let e4=this.width%4;this.scanImage(e4,this.width,((e5,t2)=>{let i2=t2*this.width*4+4*e5,r2=this.buffer.readUInt8(this.pos++),n2=this.buffer.readUInt8(this.pos++),a2=this.buffer.readUInt8(this.pos++);this.data[i2+this.locRed]=a2,this.data[i2+this.locGreen]=n2,this.data[i2+this.locBlue]=r2,this.data[i2+this.locAlpha]=0}))}bit32(){this.scanImage(0,this.width,((e4,t2)=>{let i2=t2*this.width*4+4*e4,r2=this.readUInt32LE();this.data[i2+this.locRed]=this.shiftRed(r2),this.data[i2+this.locGreen]=this.shiftGreen(r2),this.data[i2+this.locBlue]=this.shiftBlue(r2),this.data[i2+this.locAlpha]=this.shiftAlpha(r2)}))}scanImage(e4=0,t2=this.width,i2){for(let r2=this.height-1;r2>=0;r2--){let n2=this.bottomUp?r2:this.height-1-r2;for(let e5=0;e5e5<<1|t2),0)}function createColor(e4){return e4.quad<<24|e4.red<<16|e4.green<<8|e4.blue}var BmpEncoder=class{fileSize;reserved1;reserved2;offset;width;flag;height;planes;bitPP;compress;hr;vr;colors;importantColors;rawSize;headerSize;data;palette;extraBytes;buffer;bytesInColor;pos;constructor(e4){switch(this.buffer=e4.data,this.width=e4.width,this.height=e4.height,this.headerSize=HeaderTypes$1.BITMAP_INFO_HEADER,this.flag="BM",this.bitPP=e4.bitPP||24,this.offset=54,this.reserved1=e4.reserved1||0,this.reserved2=e4.reserved2||0,this.planes=1,this.compress=0,this.hr=e4.hr||0,this.vr=e4.vr||0,this.importantColors=e4.importantColors||0,this.colors=Math.min(2**(this.bitPP-1||1),e4.colors||1/0),this.palette=e4.palette||[],this.colors&&this.bitPP<16?this.offset+=4*this.colors:this.colors=0,this.bitPP){case 32:this.bytesInColor=4;break;case 16:this.bytesInColor=2;break;case 8:this.bytesInColor=1;break;case 4:this.bytesInColor=.5;break;case 1:this.bytesInColor=1/8;break;default:this.bytesInColor=3,this.bitPP=24}let t2=this.width*this.bitPP/32,i2=Math.ceil(t2);this.extraBytes=4*(i2-t2),this.rawSize=this.height*i2*4+2,this.fileSize=this.rawSize+this.offset,this.data=Buffer2.alloc(this.fileSize,1),this.pos=0,this.encode()}encode(){switch(this.pos=0,this.writeHeader(),this.bitPP){case 32:this.bit32();break;case 16:this.bit16();break;case 8:this.bit8();break;case 4:this.bit4();break;case 1:this.bit1();break;default:this.bit24()}}writeHeader(){this.data.write(this.flag,this.pos,2),this.pos+=2,this.writeUInt32LE(this.fileSize),this.writeUInt32LE(this.reserved1<<16|this.reserved2),this.writeUInt32LE(this.offset),this.writeUInt32LE(this.headerSize),this.writeUInt32LE(this.width),this.writeUInt32LE(this.height),this.data.writeUInt16LE(this.planes,this.pos),this.pos+=2,this.data.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,this.writeUInt32LE(this.compress),this.writeUInt32LE(this.rawSize),this.writeUInt32LE(this.hr),this.writeUInt32LE(this.vr),this.writeUInt32LE(this.colors),this.writeUInt32LE(this.importantColors)}bit1(){this.palette.length&&this.colors===2?this.initColors(1):(this.writeUInt32LE(16777215),this.writeUInt32LE(0)),this.pos+=1;let e4=[];this.writeImage(((t2,i2,r2)=>{let n2=i2;n2++;let a2=this.buffer[n2++],o2=this.buffer[n2++],s2=.2126*this.buffer[n2++]+.7152*o2+.0722*a2;return e4.push(s2>127?0:1),(r2+1)%8==0?(this.data[t2-1]=createInteger(e4),e4=[]):r2===this.width-1&&e4.length>0&&(this.data[t2-1]=createInteger(e4)<<4,e4=[]),n2}))}bit4(){let e4=this.initColors(4),t2=[];this.writeImage(((i2,r2,n2)=>{let a2=r2,o2=createColor({quad:this.buffer[a2++],blue:this.buffer[a2++],green:this.buffer[a2++],red:this.buffer[a2++]}),s2=e4.findIndex((e5=>e5===o2));return s2!==-1?t2.push(s2):t2.push(0),(n2+1)%2==0&&(this.data[i2]=t2[0]<<4|t2[1],t2=[]),a2}))}bit8(){let e4=this.initColors(8);this.writeImage(((t2,i2)=>{let r2=i2,n2=createColor({quad:this.buffer[r2++],blue:this.buffer[r2++],green:this.buffer[r2++],red:this.buffer[r2++]}),a2=e4.findIndex((e5=>e5===n2));return this.data[t2]=a2!==-1?a2:0,r2}))}bit16(){this.writeImage(((e4,t2)=>{let i2=t2+1,r2=this.buffer[i2++]/8,n2=this.buffer[i2++]/8,a2=this.buffer[i2++]/8<<10|n2<<5|r2;return this.data[e4]=255&a2,this.data[e4+1]=(65280&a2)>>8,i2}))}bit24(){this.writeImage(((e4,t2)=>{let i2=t2+1;return this.data[e4]=this.buffer[i2++],this.data[e4+1]=this.buffer[i2++],this.data[e4+2]=this.buffer[i2++],i2}))}bit32(){this.writeImage(((e4,t2)=>{let i2=t2;return this.data[e4+3]=this.buffer[i2++],this.data[e4]=this.buffer[i2++],this.data[e4+1]=this.buffer[i2++],this.data[e4+2]=this.buffer[i2++],i2}))}writeImage(e4){let t2=this.extraBytes+this.width*this.bytesInColor,i2=0;for(let r2=0;r2.5?l2/(2-a2-o2):l2/(a2+o2),a2){case e4:r2=(t2-i2)/l2+(t21&&(i3-=1),i3<1/6?e5+6*(t3-e5)*i3:i3<.5?t3:i3<2/3?e5+(t3-e5)*(2/3-i3)*6:e5}if(e4=bound01(e4,360),t2=bound01(t2,100),i2=bound01(i2,100),t2===0)r2=n2=a2=i2;else{var s2=i2<.5?i2*(1+t2):i2+t2-i2*t2,l2=2*i2-s2;r2=o2(l2,s2,e4+1/3),n2=o2(l2,s2,e4),a2=o2(l2,s2,e4-1/3)}return{r:255*r2,g:255*n2,b:255*a2}}function rgbToHsv(e4,t2,i2){e4=bound01(e4,255),t2=bound01(t2,255),i2=bound01(i2,255);var r2,n2,a2=Math.max(e4,t2,i2),o2=Math.min(e4,t2,i2),s2=a2,l2=a2-o2;if(n2=a2===0?0:l2/a2,a2==o2)r2=0;else{switch(a2){case e4:r2=(t2-i2)/l2+(t2>1)+720)%360;--t2;)r2.h=(r2.h+n2)%360,a2.push(tinycolor(r2));return a2}function _monochromatic(e4,t2){t2=t2||6;for(var i2=tinycolor(e4).toHsv(),r2=i2.h,n2=i2.s,a2=i2.v,o2=[],s2=1/t2;t2--;)o2.push(tinycolor({h:r2,s:n2,v:a2})),a2=(a2+s2)%1;return o2}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e4=this.toRgb();return(299*e4.r+587*e4.g+114*e4.b)/1e3},getLuminance:function(){var e4,t2,i2,r2=this.toRgb();return e4=r2.r/255,t2=r2.g/255,i2=r2.b/255,.2126*(e4<=.03928?e4/12.92:Math.pow((e4+.055)/1.055,2.4))+.7152*(t2<=.03928?t2/12.92:Math.pow((t2+.055)/1.055,2.4))+.0722*(i2<=.03928?i2/12.92:Math.pow((i2+.055)/1.055,2.4))},setAlpha:function(e4){return this._a=boundAlpha(e4),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e4=rgbToHsv(this._r,this._g,this._b);return{h:360*e4.h,s:e4.s,v:e4.v,a:this._a}},toHsvString:function(){var e4=rgbToHsv(this._r,this._g,this._b),t2=Math.round(360*e4.h),i2=Math.round(100*e4.s),r2=Math.round(100*e4.v);return this._a==1?"hsv("+t2+", "+i2+"%, "+r2+"%)":"hsva("+t2+", "+i2+"%, "+r2+"%, "+this._roundA+")"},toHsl:function(){var e4=rgbToHsl(this._r,this._g,this._b);return{h:360*e4.h,s:e4.s,l:e4.l,a:this._a}},toHslString:function(){var e4=rgbToHsl(this._r,this._g,this._b),t2=Math.round(360*e4.h),i2=Math.round(100*e4.s),r2=Math.round(100*e4.l);return this._a==1?"hsl("+t2+", "+i2+"%, "+r2+"%)":"hsla("+t2+", "+i2+"%, "+r2+"%, "+this._roundA+")"},toHex:function(e4){return rgbToHex(this._r,this._g,this._b,e4)},toHexString:function(e4){return"#"+this.toHex(e4)},toHex8:function(e4){return rgbaToHex(this._r,this._g,this._b,this._a,e4)},toHex8String:function(e4){return"#"+this.toHex8(e4)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e4){var t2="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),i2=t2,r2=this._gradientType?"GradientType = 1, ":"";if(e4){var n2=tinycolor(e4);i2="#"+rgbaToArgbHex(n2._r,n2._g,n2._b,n2._a)}return"progid:DXImageTransform.Microsoft.gradient("+r2+"startColorstr="+t2+",endColorstr="+i2+")"},toString:function(e4){var t2=!!e4;e4=e4||this._format;var i2=!1,r2=this._a<1&&this._a>=0;return t2||!r2||e4!=="hex"&&e4!=="hex6"&&e4!=="hex3"&&e4!=="hex4"&&e4!=="hex8"&&e4!=="name"?(e4==="rgb"&&(i2=this.toRgbString()),e4==="prgb"&&(i2=this.toPercentageRgbString()),e4!=="hex"&&e4!=="hex6"||(i2=this.toHexString()),e4==="hex3"&&(i2=this.toHexString(!0)),e4==="hex4"&&(i2=this.toHex8String(!0)),e4==="hex8"&&(i2=this.toHex8String()),e4==="name"&&(i2=this.toName()),e4==="hsl"&&(i2=this.toHslString()),e4==="hsv"&&(i2=this.toHsvString()),i2||this.toHexString()):e4==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return tinycolor(this.toString())},_applyModification:function(e4,t2){var i2=e4.apply(null,[this].concat([].slice.call(t2)));return this._r=i2._r,this._g=i2._g,this._b=i2._b,this.setAlpha(i2._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(e4,t2){return e4.apply(null,[this].concat([].slice.call(t2)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(e4,t2){if(_typeof(e4)=="object"){var i2={};for(var r2 in e4)e4.hasOwnProperty(r2)&&(i2[r2]=r2==="a"?e4[r2]:convertToPercentage(e4[r2]));e4=i2}return tinycolor(e4,t2)},tinycolor.equals=function(e4,t2){return!(!e4||!t2)&&tinycolor(e4).toRgbString()==tinycolor(t2).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(e4,t2,i2){i2=i2===0?0:i2||50;var r2=tinycolor(e4).toRgb(),n2=tinycolor(t2).toRgb(),a2=i2/100;return tinycolor({r:(n2.r-r2.r)*a2+r2.r,g:(n2.g-r2.g)*a2+r2.g,b:(n2.b-r2.b)*a2+r2.b,a:(n2.a-r2.a)*a2+r2.a})},tinycolor.readability=function(e4,t2){var i2=tinycolor(e4),r2=tinycolor(t2);return(Math.max(i2.getLuminance(),r2.getLuminance())+.05)/(Math.min(i2.getLuminance(),r2.getLuminance())+.05)},tinycolor.isReadable=function(e4,t2,i2){var r2,n2,a2=tinycolor.readability(e4,t2);switch(n2=!1,(r2=validateWCAG2Parms(i2)).level+r2.size){case"AAsmall":case"AAAlarge":n2=a2>=4.5;break;case"AAlarge":n2=a2>=3;break;case"AAAsmall":n2=a2>=7}return n2},tinycolor.mostReadable=function(e4,t2,i2){var r2,n2,a2,o2,s2=null,l2=0;n2=(i2=i2||{}).includeFallbackColors,a2=i2.level,o2=i2.size;for(var u2=0;u2l2&&(l2=r2,s2=tinycolor(t2[u2]));return tinycolor.isReadable(e4,s2,{level:a2,size:o2})||!n2?s2:(i2.includeFallbackColors=!1,tinycolor.mostReadable(e4,["#fff","#000"],i2))};var names$1=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names$1);function flip(e4){var t2={};for(var i2 in e4)e4.hasOwnProperty(i2)&&(t2[e4[i2]]=i2);return t2}function boundAlpha(e4){return e4=parseFloat(e4),(isNaN(e4)||e4<0||e4>1)&&(e4=1),e4}function bound01(e4,t2){isOnePointZero(e4)&&(e4="100%");var i2=isPercentage(e4);return e4=Math.min(t2,Math.max(0,parseFloat(e4))),i2&&(e4=parseInt(e4*t2,10)/100),Math.abs(e4-t2)<1e-6?1:e4%t2/parseFloat(t2)}function clamp01(e4){return Math.min(1,Math.max(0,e4))}function parseIntFromHex(e4){return parseInt(e4,16)}function isOnePointZero(e4){return typeof e4=="string"&&e4.indexOf(".")!=-1&&parseFloat(e4)===1}function isPercentage(e4){return typeof e4=="string"&&e4.indexOf("%")!=-1}function pad2(e4){return e4.length==1?"0"+e4:""+e4}function convertToPercentage(e4){return e4<=1&&(e4=100*e4+"%"),e4}function convertDecimalToHex(e4){return Math.round(255*parseFloat(e4)).toString(16)}function convertHexToDecimal(e4){return parseIntFromHex(e4)/255}var matchers=(CSS_UNIT="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}),CSS_UNIT,PERMISSIVE_MATCH3,PERMISSIVE_MATCH4;function isValidCSSUnit(e4){return!!matchers.CSS_UNIT.exec(e4)}function stringInputToObject(e4){e4=e4.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var t2,i2=!1;if(names$1[e4])e4=names$1[e4],i2=!0;else if(e4=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(t2=matchers.rgb.exec(e4))?{r:t2[1],g:t2[2],b:t2[3]}:(t2=matchers.rgba.exec(e4))?{r:t2[1],g:t2[2],b:t2[3],a:t2[4]}:(t2=matchers.hsl.exec(e4))?{h:t2[1],s:t2[2],l:t2[3]}:(t2=matchers.hsla.exec(e4))?{h:t2[1],s:t2[2],l:t2[3],a:t2[4]}:(t2=matchers.hsv.exec(e4))?{h:t2[1],s:t2[2],v:t2[3]}:(t2=matchers.hsva.exec(e4))?{h:t2[1],s:t2[2],v:t2[3],a:t2[4]}:(t2=matchers.hex8.exec(e4))?{r:parseIntFromHex(t2[1]),g:parseIntFromHex(t2[2]),b:parseIntFromHex(t2[3]),a:convertHexToDecimal(t2[4]),format:i2?"name":"hex8"}:(t2=matchers.hex6.exec(e4))?{r:parseIntFromHex(t2[1]),g:parseIntFromHex(t2[2]),b:parseIntFromHex(t2[3]),format:i2?"name":"hex"}:(t2=matchers.hex4.exec(e4))?{r:parseIntFromHex(t2[1]+""+t2[1]),g:parseIntFromHex(t2[2]+""+t2[2]),b:parseIntFromHex(t2[3]+""+t2[3]),a:convertHexToDecimal(t2[4]+""+t2[4]),format:i2?"name":"hex8"}:!!(t2=matchers.hex3.exec(e4))&&{r:parseIntFromHex(t2[1]+""+t2[1]),g:parseIntFromHex(t2[2]+""+t2[2]),b:parseIntFromHex(t2[3]+""+t2[3]),format:i2?"name":"hex"}}function validateWCAG2Parms(e4){var t2,i2;return(t2=((e4=e4||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&t2!=="AAA"&&(t2="AA"),(i2=(e4.size||"small").toLowerCase())!=="small"&&i2!=="large"&&(i2="small"),{level:t2,size:i2}}function clone(e4){let t2={width:e4.bitmap.width,height:e4.bitmap.height,data:Buffer2.from(e4.bitmap.data)};return new e4.constructor(t2)}function scan(e4,t2,i2,r2,n2,a2){let o2,s2,l2,u2,h2;if(typeof t2=="function")h2=t2,o2=0,s2=0,l2=e4.bitmap.width,u2=e4.bitmap.height;else{if(o2=t2,typeof i2!="number")throw new Error("y must be a number");if(s2=i2,typeof r2!="number")throw new Error("w must be a number");if(l2=r2,typeof n2!="number")throw new Error("h must be a number");if(u2=n2,typeof a2!="function")throw new Error("cb must be a function");h2=a2}o2=Math.round(o2),s2=Math.round(s2),l2=Math.round(l2),u2=Math.round(u2);let c2=h2.bind(e4);for(let t3=s2;t3255)throw new Error("r must be between 0 and 255");if(t2<0||t2>255)throw new Error("g must be between 0 and 255");if(i2<0||i2>255)throw new Error("b must be between 0 and 255");if(r2<0||r2>255)throw new Error("a must be between 0 and 255");let n2=255&e4;return n2<<=8,n2|=255&t2,n2<<=8,n2|=255&i2,n2<<=8,n2|=255&r2,n2>>>=0,n2}function colorDiff(e4,t2){let i2=e5=>Math.pow(e5,2),{max:r2}=Math,n2="a"in e4?e4.a:255,a2="a"in t2?t2.a:255;return(r2(i2(e4.r-t2.r),i2(e4.r-t2.r-n2+a2))+r2(i2(e4.g-t2.g),i2(e4.g-t2.g-n2+a2))+r2(i2(e4.b-t2.b),i2(e4.b-t2.b-n2+a2)))/195075}function limit255(e4){return e4=Math.max(e4,0),e4=Math.min(e4,255)}function cssColorToHex(e4){return typeof e4=="number"?e4:parseInt(tinycolor(e4).toHex8(),16)}function encode$1(e4,t2={}){return scan({bitmap:e4},0,0,e4.width,e4.height,(function(t3,i2,r2){let n2=e4.data[r2+0],a2=e4.data[r2+1],o2=e4.data[r2+2],s2=e4.data[r2+3];e4.data[r2+0]=s2,e4.data[r2+1]=o2,e4.data[r2+2]=a2,e4.data[r2+3]=n2})),encode$2({...e4,...t2}).data}function decode$1(e4,t2){let i2=decode$2(e4,t2);return scan({bitmap:i2},0,0,i2.width,i2.height,(function(e5,t3,r2){let n2=i2.data[r2+1],a2=i2.data[r2+2],o2=i2.data[r2+3];i2.data[r2+0]=o2,i2.data[r2+1]=a2,i2.data[r2+2]=n2,i2.data[r2+3]=255})),i2}function msBmp(){return{mime:"image/x-ms-bmp",encode:encode$1,decode:decode$1}}function bmp(){return{mime:"image/bmp",encode:encode$1,decode:decode$1}}var omggif={},GifReader_1,GifWriter_1;function GifWriter(e4,t2,i2,r2){var n2=0,a2=(r2=r2===void 0?{}:r2).loop===void 0?null:r2.loop,o2=r2.palette===void 0?null:r2.palette;if(t2<=0||i2<=0||t2>65535||i2>65535)throw new Error("Width/Height invalid.");function s2(e5){var t3=e5.length;if(t3<2||t3>256||t3&t3-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return t3}e4[n2++]=71,e4[n2++]=73,e4[n2++]=70,e4[n2++]=56,e4[n2++]=57,e4[n2++]=97;var l2=0,u2=0;if(o2!==null){for(var h2=s2(o2);h2>>=1;)++l2;if(h2=1<=h2)throw new Error("Background index out of range.");if(u2===0)throw new Error("Background index explicitly passed as 0.")}}if(e4[n2++]=255&t2,e4[n2++]=t2>>8&255,e4[n2++]=255&i2,e4[n2++]=i2>>8&255,e4[n2++]=(o2!==null?128:0)|l2,e4[n2++]=u2,e4[n2++]=0,o2!==null)for(var c2=0,f2=o2.length;c2>16&255,e4[n2++]=d>>8&255,e4[n2++]=255&d}if(a2!==null){if(a2<0||a2>65535)throw new Error("Loop count invalid.");e4[n2++]=33,e4[n2++]=255,e4[n2++]=11,e4[n2++]=78,e4[n2++]=69,e4[n2++]=84,e4[n2++]=83,e4[n2++]=67,e4[n2++]=65,e4[n2++]=80,e4[n2++]=69,e4[n2++]=50,e4[n2++]=46,e4[n2++]=48,e4[n2++]=3,e4[n2++]=1,e4[n2++]=255&a2,e4[n2++]=a2>>8&255,e4[n2++]=0}var p2=!1;this.addFrame=function(t3,i3,r3,a3,l3,u3){if(p2===!0&&(--n2,p2=!1),u3=u3===void 0?{}:u3,t3<0||i3<0||t3>65535||i3>65535)throw new Error("x/y invalid.");if(r3<=0||a3<=0||r3>65535||a3>65535)throw new Error("Width/Height invalid.");if(l3.length>=1;)++d2;f3=1<3)throw new Error("Disposal out of range.");var g=!1,b2=0;if(u3.transparent!==void 0&&u3.transparent!==null&&(g=!0,(b2=u3.transparent)<0||b2>=f3))throw new Error("Transparent color index.");if((_2!==0||g||m!==0)&&(e4[n2++]=33,e4[n2++]=249,e4[n2++]=4,e4[n2++]=_2<<2|(g===!0?1:0),e4[n2++]=255&m,e4[n2++]=m>>8&255,e4[n2++]=b2,e4[n2++]=0),e4[n2++]=44,e4[n2++]=255&t3,e4[n2++]=t3>>8&255,e4[n2++]=255&i3,e4[n2++]=i3>>8&255,e4[n2++]=255&r3,e4[n2++]=r3>>8&255,e4[n2++]=255&a3,e4[n2++]=a3>>8&255,e4[n2++]=h3===!0?128|d2-1:0,h3===!0)for(var y2=0,w=c3.length;y2>16&255,e4[n2++]=v2>>8&255,e4[n2++]=255&v2}return n2=GifWriterOutputLZWCodeStream(e4,n2,d2<2?2:d2,l3)},this.end=function(){return p2===!1&&(e4[n2++]=59,p2=!0),n2},this.getOutputBuffer=function(){return e4},this.setOutputBuffer=function(t3){e4=t3},this.getOutputBufferPosition=function(){return n2},this.setOutputBufferPosition=function(e5){n2=e5}}function GifWriterOutputLZWCodeStream(e4,t2,i2,r2){e4[t2++]=i2;var n2=t2++,a2=1<=i3;)e4[t2++]=255&c2,c2>>=8,h2-=8,t2===n2+256&&(e4[n2]=255,n2=t2++)}function d(e5){c2|=e5<=8;)e4[t2++]=255&c2,c2>>=8,h2-=8,t2===n2+256&&(e4[n2]=255,n2=t2++);l2===4096?(d(a2),l2=s2+1,u2=i2+1,m={}):(l2>=1<>7,o2=1<<(7&n2)+1;e4[t2++],e4[t2++];var s2=null,l2=null;a2&&(s2=t2,l2=o2,t2+=3*o2);var u2=!0,h2=[],c2=0,f2=null,d=0,p2=null;for(this.width=i2,this.height=r2;u2&&t2=0))throw Error("Invalid block size");if(I===0)break;t2+=I}break;case 249:if(e4[t2++]!==4||e4[t2+4]!==0)throw new Error("Invalid graphics extension block.");var m=e4[t2++];c2=e4[t2++]|e4[t2++]<<8,f2=e4[t2++],1&m||(f2=null),d=m>>2&7,t2++;break;case 254:for(;;){if(!((I=e4[t2++])>=0))throw Error("Invalid block size");if(I===0)break;t2+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e4[t2-1].toString(16))}break;case 44:var _2=e4[t2++]|e4[t2++]<<8,g=e4[t2++]|e4[t2++]<<8,b2=e4[t2++]|e4[t2++]<<8,y2=e4[t2++]|e4[t2++]<<8,w=e4[t2++],v2=w>>6&1,x2=1<<(7&w)+1,E2=s2,k2=l2,S2=!1;w>>7&&(S2=!0,E2=t2,k2=x2,t2+=3*x2);var A2=t2;for(t2++;;){var I;if(!((I=e4[t2++])>=0))throw Error("Invalid block size");if(I===0)break;t2+=I}h2.push({x:_2,y:g,width:b2,height:y2,has_local_palette:S2,palette_offset:E2,palette_size:k2,data_offset:A2,data_length:t2-A2,transparent_index:f2,interlaced:!!v2,delay:c2,disposal:d});break;case 59:u2=!1;break;default:throw new Error("Unknown gif block: 0x"+e4[t2-1].toString(16))}this.numFrames=function(){return h2.length},this.loopCount=function(){return p2},this.frameInfo=function(e5){if(e5<0||e5>=h2.length)throw new Error("Frame index out of range.");return h2[e5]},this.decodeAndBlitFrameBGRA=function(t3,r3){var n3=this.frameInfo(t3),a3=n3.width*n3.height,o3=new Uint8Array(a3);GifReaderLZWOutputIndexStream(e4,n3.data_offset,o3,a3);var s3=n3.palette_offset,l3=n3.transparent_index;l3===null&&(l3=256);var u3=n3.width,h3=i2-u3,c3=u3,f3=4*(n3.y*i2+n3.x),d2=4*((n3.y+n3.height)*i2+n3.x),p3=f3,m2=4*h3;n3.interlaced===!0&&(m2+=4*i2*7);for(var _3=8,g2=0,b3=o3.length;g2=d2&&(m2=4*h3+4*i2*(_3-1),p3=f3+(u3+h3)*(_3<<1),_3>>=1)),y3===l3)p3+=4;else{var w2=e4[s3+3*y3],v3=e4[s3+3*y3+1],x3=e4[s3+3*y3+2];r3[p3++]=x3,r3[p3++]=v3,r3[p3++]=w2,r3[p3++]=255}--c3}},this.decodeAndBlitFrameRGBA=function(t3,r3){var n3=this.frameInfo(t3),a3=n3.width*n3.height,o3=new Uint8Array(a3);GifReaderLZWOutputIndexStream(e4,n3.data_offset,o3,a3);var s3=n3.palette_offset,l3=n3.transparent_index;l3===null&&(l3=256);var u3=n3.width,h3=i2-u3,c3=u3,f3=4*(n3.y*i2+n3.x),d2=4*((n3.y+n3.height)*i2+n3.x),p3=f3,m2=4*h3;n3.interlaced===!0&&(m2+=4*i2*7);for(var _3=8,g2=0,b3=o3.length;g2=d2&&(m2=4*h3+4*i2*(_3-1),p3=f3+(u3+h3)*(_3<<1),_3>>=1)),y3===l3)p3+=4;else{var w2=e4[s3+3*y3],v3=e4[s3+3*y3+1],x3=e4[s3+3*y3+2];r3[p3++]=w2,r3[p3++]=v3,r3[p3++]=x3,r3[p3++]=255}--c3}}}function GifReaderLZWOutputIndexStream(e4,t2,i2,r2){for(var n2=e4[t2++],a2=1<>=l2,h2-=l2,_2!==a2){if(_2===o2)break;for(var g=_2a2;)y2=p2[y2]>>8,++b2;var w=y2;if(f2+b2+(g!==_2?1:0)>r2)return void console.log("Warning, gif stream longer than expected.");i2[f2++]=w;var v2=f2+=b2;for(g!==_2&&(i2[f2++]=w),y2=g;b2--;)y2=p2[y2],i2[--v2]=255&y2,y2>>=8;m!==null&&s2<4096&&(p2[s2++]=m<<8|w,s2>=u2+1&&l2<12&&(++l2,u2=u2<<1|1)),m=_2}else s2=o2+1,u2=(1<<(l2=n2+1))-1,m=null}return f2!==r2&&console.log("Warning, gif stream shorter than expected."),i2}try{GifWriter_1=omggif.GifWriter=GifWriter,GifReader_1=omggif.GifReader=GifReader}catch{}var BitmapImage$2=class e{constructor(...t2){if(t2.length===0)throw new Error("constructor requires parameters");let i2=t2[0];if(i2!==null&&typeof i2=="object")if(i2 instanceof e){let e4=i2.bitmap;this.bitmap={width:e4.width,height:e4.height,data:new Buffer2(e4.width*e4.height*4)},e4.data.copy(this.bitmap.data)}else{if(!(i2.width&&i2.height&&i2.data))throw new Error("unrecognized constructor parameters");this.bitmap=i2}else{if(typeof i2!="number"||typeof t2[1]!="number")throw new Error("unrecognized constructor parameters");{let e4=i2,r2=t2[1],n2=t2[2];this.bitmap={width:e4,height:r2},Buffer2.isBuffer(n2)?this.bitmap.data=n2:(this.bitmap.data=new Buffer2(e4*r2*4),typeof n2=="number"&&this.fillRGBA(n2))}}}blit(e4,t2,i2,r2,n2,a2,o2){if(r2+a2>this.bitmap.width)throw new Error("copy exceeds width of source bitmap");if(t2+a2>e4.bitmap.width)throw new Error("copy exceeds width of target bitmap");if(n2+o2>this.bitmap.height)throw new Error("copy exceeds height of source bitmap");if(i2+o2>e4.bitmap.height)throw new Erro("copy exceeds height of target bitmap");let s2=this.bitmap.data,l2=e4.bitmap.data,u2=4*this.bitmap.width,h2=4*e4.bitmap.width,c2=4*a2,f2=n2*u2+4*r2,d=i2*h2+4*t2;for(;--o2>=0;)s2.copy(l2,d,f2,f2+c2),f2+=u2,d+=h2;return this}fillRGBA(e4){let t2=this.bitmap.data,i2=4*this.bitmap.height,r2=0;for(;r2{let n2=Math.round(.299*e4[r2]+.587*e4[r2+1]+.114*e4[r2+2]);e4[r2]=n2,e4[r2+1]=n2,e4[r2+2]=n2})),this}reframe(t2,i2,r2,n2,a2){let o2=t2<0?0:t2,s2=i2<0?0:i2,l2=r2+o2>this.bitmap.width?this.bitmap.width-o2:r2,u2=n2+s2>this.bitmap.height?this.bitmap.height-s2:n2,h2=t2<0?-t2:0,c2=i2<0?-i2:0,f2;if(a2===void 0){if(o2!==t2||s2!=i2||l2!==r2||u2!==n2)throw new GifError("fillRGBA required for this reframing");f2=new e(r2,n2)}else f2=new e(r2,n2,a2);return this.blit(f2,h2,c2,o2,s2,l2,u2),this.bitmap=f2.bitmap,this}scale(e4){if(e4===1)return;if(!Number.isInteger(e4)||e4<1)throw new Error("the scale must be an integer >= 1");let t2=this.bitmap.width,i2=this.bitmap.height,r2=t2*e4*4,n2=this.bitmap.data,a2=new Buffer2(i2*r2*e4),o2,s2=0,l2=0;for(let u2=0;u2t2 in e4?__defProp$3(e4,t2,{enumerable:!0,configurable:!0,writable:!0,value:i2}):e4[t2]=i2,__markAsModule=e4=>__defProp$3(e4,"__esModule",{value:!0}),__export$1=(e4,t2)=>{for(var i2 in t2)__defProp$3(e4,i2,{get:t2[i2],enumerable:!0})},__reExport=(e4,t2,i2,r2)=>{if(t2&&typeof t2=="object"||typeof t2=="function")for(let n2 of __getOwnPropNames2(t2))!__hasOwnProp2.call(e4,n2)&&i2&&__defProp$3(e4,n2,{get:()=>t2[n2],enumerable:!(r2=__getOwnPropDesc2(t2,n2))||r2.enumerable});return e4},__toCommonJS=(e4=>(t2,i2)=>e4&&e4.get(t2)||(i2=__reExport(__markAsModule({}),t2,1),e4&&e4.set(t2,i2),i2))(typeof WeakMap<"u"?new WeakMap:0),__publicField$3=(e4,t2,i2)=>(__defNormalProp$3(e4,typeof t2!="symbol"?t2+"":t2,i2),i2),src_exports={};__export$1(src_exports,{applyPalette:()=>applyPalette,applyPaletteSync:()=>applyPaletteSync$1,buildPalette:()=>buildPalette,buildPaletteSync:()=>buildPaletteSync$1,constants:()=>constants_exports$1,conversion:()=>conversion_exports$1,distance:()=>distance_exports$1,image:()=>image_exports$1,palette:()=>palette_exports$1,quality:()=>quality_exports$1,utils:()=>utils_exports$1});var constants_exports$1={};__export$1(constants_exports$1,{bt709:()=>bt709_exports$1});var bt709_exports$1={};__export$1(bt709_exports$1,{Y:()=>Y$1,x:()=>x$2,y:()=>y$2});var Y$1=(e4=>(e4[e4.RED=.2126]="RED",e4[e4.GREEN=.7152]="GREEN",e4[e4.BLUE=.0722]="BLUE",e4[e4.WHITE=1]="WHITE",e4))(Y$1||{}),x$2=(e4=>(e4[e4.RED=.64]="RED",e4[e4.GREEN=.3]="GREEN",e4[e4.BLUE=.15]="BLUE",e4[e4.WHITE=.3127]="WHITE",e4))(x$2||{}),y$2=(e4=>(e4[e4.RED=.33]="RED",e4[e4.GREEN=.6]="GREEN",e4[e4.BLUE=.06]="BLUE",e4[e4.WHITE=.329]="WHITE",e4))(y$2||{}),conversion_exports$1={};function correctGamma$1(e4){return e4>.04045?((e4+.055)/1.055)**2.4:e4/12.92}function rgb2xyz$1(e4,t2,i2){return{x:.4124*(e4=correctGamma$1(e4/255))+.3576*(t2=correctGamma$1(t2/255))+.1805*(i2=correctGamma$1(i2/255)),y:.2126*e4+.7152*t2+.0722*i2,z:.0193*e4+.1192*t2+.9505*i2}}__export$1(conversion_exports$1,{lab2rgb:()=>lab2rgb$1,lab2xyz:()=>lab2xyz$1,rgb2hsl:()=>rgb2hsl$1,rgb2lab:()=>rgb2lab$1,rgb2xyz:()=>rgb2xyz$1,xyz2lab:()=>xyz2lab$1,xyz2rgb:()=>xyz2rgb$1});var arithmetic_exports$1={};function degrees2radians$1(e4){return e4*(Math.PI/180)}function max3$1(e4,t2,i2){let r2=e4;return r2t2&&(r2=t2),r2>i2&&(r2=i2),r2}function intInRange$1(e4,t2,i2){return e4>i2&&(e4=i2),e4255?e4=255:e4<0&&(e4=0),e4}function inRange0to255$1(e4){return e4>255?e4=255:e4<0&&(e4=0),e4}function stableSort$1(e4,t2){let i2=typeof e4[0],r2;if(i2==="number"||i2==="string"){let i3=Object.create(null);for(let t3=0,r3=e4.length;t3t2(e5,r3)||i3[e5]-i3[r3]))}else{let i3=e4.slice(0);r2=e4.sort(((e5,r3)=>t2(e5,r3)||i3.indexOf(e5)-i3.indexOf(r3)))}return r2}function rgb2hsl$1(e4,t2,i2){let r2=min3$1(e4,t2,i2),n2=max3$1(e4,t2,i2),a2=n2-r2,o2=(r2+n2)/510,s2=0;o2>0&&o2<1&&(s2=a2/(o2<.5?n2+r2:510-n2-r2));let l2=0;return a2>0&&(l2=n2===e4?(t2-i2)/a2:n2===t2?2+(i2-e4)/a2:4+(e4-t2)/a2,l2*=60,l2<0&&(l2+=360)),{h:l2,s:s2,l:o2}}__export$1(arithmetic_exports$1,{degrees2radians:()=>degrees2radians$1,inRange0to255:()=>inRange0to255$1,inRange0to255Rounded:()=>inRange0to255Rounded$1,intInRange:()=>intInRange$1,max3:()=>max3$1,min3:()=>min3$1,stableSort:()=>stableSort$1});var refX$1=.95047,refY$1=1,refZ$1=1.08883;function pivot$1(e4){return e4>.008856?e4**(1/3):7.787*e4+16/116}function xyz2lab$1(e4,t2,i2){if(e4=pivot$1(e4/refX$1),t2=pivot$1(t2/refY$1),i2=pivot$1(i2/refZ$1),116*t2-16<0)throw new Error("xxx");return{L:Math.max(0,116*t2-16),a:500*(e4-t2),b:200*(t2-i2)}}function rgb2lab$1(e4,t2,i2){let r2=rgb2xyz$1(e4,t2,i2);return xyz2lab$1(r2.x,r2.y,r2.z)}var refX2$1=.95047,refY2$1=1,refZ2$1=1.08883;function pivot2$1(e4){return e4>.206893034?e4**3:(e4-16/116)/7.787}function lab2xyz$1(e4,t2,i2){let r2=(e4+16)/116,n2=r2-i2/200;return{x:refX2$1*pivot2$1(t2/500+r2),y:refY2$1*pivot2$1(r2),z:refZ2$1*pivot2$1(n2)}}function correctGamma2$1(e4){return e4>.0031308?1.055*e4**(1/2.4)-.055:12.92*e4}function xyz2rgb$1(e4,t2,i2){let r2=correctGamma2$1(3.2406*e4+-1.5372*t2+-.4986*i2),n2=correctGamma2$1(-.9689*e4+1.8758*t2+.0415*i2),a2=correctGamma2$1(.0557*e4+-.204*t2+1.057*i2);return{r:inRange0to255Rounded$1(255*r2),g:inRange0to255Rounded$1(255*n2),b:inRange0to255Rounded$1(255*a2)}}function lab2rgb$1(e4,t2,i2){let r2=lab2xyz$1(e4,t2,i2);return xyz2rgb$1(r2.x,r2.y,r2.z)}var distance_exports$1={};__export$1(distance_exports$1,{AbstractDistanceCalculator:()=>AbstractDistanceCalculator$1,AbstractEuclidean:()=>AbstractEuclidean$1,AbstractManhattan:()=>AbstractManhattan$1,CIE94GraphicArts:()=>CIE94GraphicArts$1,CIE94Textiles:()=>CIE94Textiles$1,CIEDE2000:()=>CIEDE2000$1,CMetric:()=>CMetric$1,Euclidean:()=>Euclidean$1,EuclideanBT709:()=>EuclideanBT709$1,EuclideanBT709NoAlpha:()=>EuclideanBT709NoAlpha$1,Manhattan:()=>Manhattan$1,ManhattanBT709:()=>ManhattanBT709$1,ManhattanNommyde:()=>ManhattanNommyde$1,PNGQuant:()=>PNGQuant$1});var AbstractDistanceCalculator$1=class{constructor(){__publicField$3(this,"_maxDistance"),__publicField$3(this,"_whitePoint"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(e4,t2,i2,r2){this._whitePoint={r:e4>0?255/e4:0,g:t2>0?255/t2:0,b:i2>0?255/i2:0,a:r2>0?255/r2:0},this._maxDistance=this.calculateRaw(e4,t2,i2,r2,0,0,0,0)}calculateNormalized(e4,t2){return this.calculateRaw(e4.r,e4.g,e4.b,e4.a,t2.r,t2.g,t2.b,t2.a)/this._maxDistance}},AbstractCIE94$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=rgb2lab$1(inRange0to255$1(e4*this._whitePoint.r),inRange0to255$1(t2*this._whitePoint.g),inRange0to255$1(i2*this._whitePoint.b)),u2=rgb2lab$1(inRange0to255$1(n2*this._whitePoint.r),inRange0to255$1(a2*this._whitePoint.g),inRange0to255$1(o2*this._whitePoint.b)),h2=l2.L-u2.L,c2=l2.a-u2.a,f2=l2.b-u2.b,d=Math.sqrt(l2.a*l2.a+l2.b*l2.b),p2=d-Math.sqrt(u2.a*u2.a+u2.b*u2.b),m=c2*c2+f2*f2-p2*p2;m=m<0?0:Math.sqrt(m);let _2=(s2-r2)*this._whitePoint.a*this._kA;return Math.sqrt((h2/this._Kl)**2+(p2/(1+this._K1*d))**2+(m/(1+this._K2*d))**2+_2**2)}},CIE94Textiles$1=class extends AbstractCIE94$1{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},CIE94GraphicArts$1=class extends AbstractCIE94$1{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},_CIEDE2000$1=class extends AbstractDistanceCalculator$1{_setDefaults(){}static _calculatehp(e4,t2){let i2=Math.atan2(e4,t2);return i2>=0?i2:i2+_CIEDE2000$1._deg360InRad}static _calculateRT(e4,t2){let i2=t2**7,r2=2*Math.sqrt(i2/(i2+_CIEDE2000$1._pow25to7)),n2=_CIEDE2000$1._deg30InRad*Math.exp(-(((e4-_CIEDE2000$1._deg275InRad)/_CIEDE2000$1._deg25InRad)**2));return-Math.sin(2*n2)*r2}static _calculateT(e4){return 1-.17*Math.cos(e4-_CIEDE2000$1._deg30InRad)+.24*Math.cos(2*e4)+.32*Math.cos(3*e4+_CIEDE2000$1._deg6InRad)-.2*Math.cos(4*e4-_CIEDE2000$1._deg63InRad)}static _calculate_ahp(e4,t2,i2,r2){let n2=i2+r2;return e4===0?n2:t2<=_CIEDE2000$1._deg180InRad?n2/2:n2<_CIEDE2000$1._deg360InRad?(n2+_CIEDE2000$1._deg360InRad)/2:(n2-_CIEDE2000$1._deg360InRad)/2}static _calculate_dHp(e4,t2,i2,r2){let n2;return n2=e4===0?0:t2<=_CIEDE2000$1._deg180InRad?i2-r2:i2<=r2?i2-r2+_CIEDE2000$1._deg360InRad:i2-r2-_CIEDE2000$1._deg360InRad,2*Math.sqrt(e4)*Math.sin(n2/2)}calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=rgb2lab$1(inRange0to255$1(e4*this._whitePoint.r),inRange0to255$1(t2*this._whitePoint.g),inRange0to255$1(i2*this._whitePoint.b)),u2=rgb2lab$1(inRange0to255$1(n2*this._whitePoint.r),inRange0to255$1(a2*this._whitePoint.g),inRange0to255$1(o2*this._whitePoint.b)),h2=(s2-r2)*this._whitePoint.a*_CIEDE2000$1._kA,c2=this.calculateRawInLab(l2,u2);return Math.sqrt(c2+h2*h2)}calculateRawInLab(e4,t2){let i2=e4.L,r2=e4.a,n2=e4.b,a2=t2.L,o2=t2.a,s2=t2.b,l2=((Math.sqrt(r2*r2+n2*n2)+Math.sqrt(o2*o2+s2*s2))/2)**7,u2=.5*(1-Math.sqrt(l2/(l2+_CIEDE2000$1._pow25to7))),h2=(1+u2)*r2,c2=(1+u2)*o2,f2=Math.sqrt(h2*h2+n2*n2),d=Math.sqrt(c2*c2+s2*s2),p2=f2*d,m=_CIEDE2000$1._calculatehp(n2,h2),_2=_CIEDE2000$1._calculatehp(s2,c2),g=Math.abs(m-_2),b2=a2-i2,y2=d-f2,w=_CIEDE2000$1._calculate_dHp(p2,g,_2,m),v2=_CIEDE2000$1._calculate_ahp(p2,g,m,_2),x2=(f2+d)/2,E2=((i2+a2)/2-50)**2,k2=y2/(1+.045*x2),S2=w/(1+.015*_CIEDE2000$1._calculateT(v2)*x2);return(b2/(1+.015*E2/Math.sqrt(20+E2)))**2+k2**2+S2**2+_CIEDE2000$1._calculateRT(v2,x2)*k2*S2}},CIEDE2000$1=_CIEDE2000$1;__publicField$3(CIEDE2000$1,"_kA",25/255),__publicField$3(CIEDE2000$1,"_pow25to7",25**7),__publicField$3(CIEDE2000$1,"_deg360InRad",degrees2radians$1(360)),__publicField$3(CIEDE2000$1,"_deg180InRad",degrees2radians$1(180)),__publicField$3(CIEDE2000$1,"_deg30InRad",degrees2radians$1(30)),__publicField$3(CIEDE2000$1,"_deg6InRad",degrees2radians$1(6)),__publicField$3(CIEDE2000$1,"_deg63InRad",degrees2radians$1(63)),__publicField$3(CIEDE2000$1,"_deg275InRad",degrees2radians$1(275)),__publicField$3(CIEDE2000$1,"_deg25InRad",degrees2radians$1(25));var CMetric$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=(e4+n2)/2*this._whitePoint.r,u2=(e4-n2)*this._whitePoint.r,h2=(t2-a2)*this._whitePoint.g,c2=(i2-o2)*this._whitePoint.b,f2=((512+l2)*u2*u2>>8)+4*h2*h2+((767-l2)*c2*c2>>8),d=(s2-r2)*this._whitePoint.a;return Math.sqrt(f2+d*d)}_setDefaults(){}},AbstractEuclidean$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=n2-e4,u2=a2-t2,h2=o2-i2,c2=s2-r2;return Math.sqrt(this._kR*l2*l2+this._kG*u2*u2+this._kB*h2*h2+this._kA*c2*c2)}},Euclidean$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},EuclideanBT709$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},EuclideanBT709NoAlpha$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},AbstractManhattan$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=n2-e4,u2=a2-t2,h2=o2-i2,c2=s2-r2;return l2<0&&(l2=0-l2),u2<0&&(u2=0-u2),h2<0&&(h2=0-h2),c2<0&&(c2=0-c2),this._kR*l2+this._kG*u2+this._kB*h2+this._kA*c2}},Manhattan$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},ManhattanNommyde$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},ManhattanBT709$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},PNGQuant$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=(s2-r2)*this._whitePoint.a;return this._colordifferenceCh(e4*this._whitePoint.r,n2*this._whitePoint.r,l2)+this._colordifferenceCh(t2*this._whitePoint.g,a2*this._whitePoint.g,l2)+this._colordifferenceCh(i2*this._whitePoint.b,o2*this._whitePoint.b,l2)}_colordifferenceCh(e4,t2,i2){let r2=e4-t2,n2=r2+i2;return r2*r2+n2*n2}_setDefaults(){}},palette_exports$1={};__export$1(palette_exports$1,{AbstractPaletteQuantizer:()=>AbstractPaletteQuantizer$1,ColorHistogram:()=>ColorHistogram$1,NeuQuant:()=>NeuQuant$1,NeuQuantFloat:()=>NeuQuantFloat$1,RGBQuant:()=>RGBQuant$1,WuColorCube:()=>WuColorCube$1,WuQuant:()=>WuQuant$1});var AbstractPaletteQuantizer$1=class{quantizeSync(){for(let e4 of this.quantize())if(e4.palette)return e4.palette;throw new Error("unreachable")}},Point$1=class{constructor(){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),__publicField$3(this,"uint32"),__publicField$3(this,"rgba"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(e4){let t2=new Point$1;return t2.r=0|e4[0],t2.g=0|e4[1],t2.b=0|e4[2],t2.a=0|e4[3],t2._loadUINT32(),t2._loadQuadruplet(),t2}static createByRGBA(e4,t2,i2,r2){let n2=new Point$1;return n2.r=0|e4,n2.g=0|t2,n2.b=0|i2,n2.a=0|r2,n2._loadUINT32(),n2._loadQuadruplet(),n2}static createByUint32(e4){let t2=new Point$1;return t2.uint32=e4>>>0,t2._loadRGBA(),t2._loadQuadruplet(),t2}from(e4){this.r=e4.r,this.g=e4.g,this.b=e4.b,this.a=e4.a,this.uint32=e4.uint32,this.rgba[0]=e4.r,this.rgba[1]=e4.g,this.rgba[2]=e4.b,this.rgba[3]=e4.a}getLuminosity(e4){let t2=this.r,i2=this.g,r2=this.b;return e4&&(t2=Math.min(255,255-this.a+this.a*t2/255),i2=Math.min(255,255-this.a+this.a*i2/255),r2=Math.min(255,255-this.a+this.a*r2/255)),.2126*t2+.7152*i2+.0722*r2}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},PointContainer$1=class{constructor(){__publicField$3(this,"_pointArray"),__publicField$3(this,"_width"),__publicField$3(this,"_height"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(e4){this._width=e4}setHeight(e4){this._height=e4}getPointArray(){return this._pointArray}clone(){let e4=new PointContainer$1;e4._width=this._width,e4._height=this._height;for(let t2=0,i2=this._pointArray.length;t2=n2&&e4=0;t2--)if(e4.uint32===this._pointArray[t2].uint32)return!0;return!1}getNearestColor(e4,t2){return this._pointArray[0|this._getNearestIndex(e4,t2)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(e4){return typeof this._i32idx[e4]=="number"?this._i32idx[e4]:-1}_getNearestIndex(e4,t2){let i2=this._nearestPointFromCache(""+t2.uint32);if(i2>=0)return i2;let r2=Number.MAX_VALUE;i2=0;for(let n2=0,a2=this._pointArray.length;n2{let i2=rgb2hsl$1(e4.r,e4.g,e4.b),r2=rgb2hsl$1(t2.r,t2.g,t2.b),n2=e4.r===e4.g&&e4.g===e4.b?0:1+hueGroup$1(i2.h,hueGroups$1),a2=(t2.r===t2.g&&t2.g===t2.b?0:1+hueGroup$1(r2.h,hueGroups$1))-n2;if(a2)return-a2;let o2=e4.getLuminosity(!0),s2=t2.getLuminosity(!0);if(s2-o2!=0)return s2-o2;let l2=(100*r2.s|0)-(100*i2.s|0);return l2?-l2:0}))}},utils_exports$1={};__export$1(utils_exports$1,{HueStatistics:()=>HueStatistics$1,Palette:()=>Palette$1,Point:()=>Point$1,PointContainer:()=>PointContainer$1,ProgressTracker:()=>ProgressTracker$1,arithmetic:()=>arithmetic_exports$1});var HueGroup$1=class{constructor(){__publicField$3(this,"num",0),__publicField$3(this,"cols",[])}},HueStatistics$1=class{constructor(e4,t2){__publicField$3(this,"_numGroups"),__publicField$3(this,"_minCols"),__publicField$3(this,"_stats"),__publicField$3(this,"_groupsFull"),this._numGroups=e4,this._minCols=t2,this._stats=[];for(let t3=0;t3<=e4;t3++)this._stats[t3]=new HueGroup$1;this._groupsFull=0}check(e4){this._groupsFull===this._numGroups+1&&(this.check=()=>{});let t2=255&e4,i2=e4>>>8&255,r2=e4>>>16&255,n2=t2===i2&&i2===r2?0:1+hueGroup$1(rgb2hsl$1(t2,i2,r2).h,this._numGroups),a2=this._stats[n2],o2=this._minCols;a2.num++,a2.num>o2||(a2.num===o2&&this._groupsFull++,a2.num<=o2&&this._stats[n2].cols.push(e4))}injectIntoDictionary(e4){for(let t2=0;t2<=this._numGroups;t2++)this._stats[t2].num<=this._minCols&&this._stats[t2].cols.forEach((t3=>{e4[t3]?e4[t3]++:e4[t3]=1}))}injectIntoArray(e4){for(let t2=0;t2<=this._numGroups;t2++)this._stats[t2].num<=this._minCols&&this._stats[t2].cols.forEach((t3=>{e4.indexOf(t3)===-1&&e4.push(t3)}))}},_ProgressTracker$1=class{constructor(e4,t2){__publicField$3(this,"progress"),__publicField$3(this,"_step"),__publicField$3(this,"_range"),__publicField$3(this,"_last"),__publicField$3(this,"_progressRange"),this._range=e4,this._progressRange=t2,this._step=Math.max(1,this._range/(_ProgressTracker$1.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(e4){return e4-this._last>=this._step&&(this._last=e4,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ProgressTracker$1=_ProgressTracker$1;__publicField$3(ProgressTracker$1,"steps",100);var networkBiasShift$1=3,Neuron$1=class{constructor(e4){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),this.r=this.g=this.b=this.a=e4}toPoint(){return Point$1.createByRGBA(this.r>>networkBiasShift$1,this.g>>networkBiasShift$1,this.b>>networkBiasShift$1,this.a>>networkBiasShift$1)}subtract(e4,t2,i2,r2){this.r-=0|e4,this.g-=0|t2,this.b-=0|i2,this.a-=0|r2}},_NeuQuant$1=class extends AbstractPaletteQuantizer$1{constructor(e4,t2=256){super(),__publicField$3(this,"_pointArray"),__publicField$3(this,"_networkSize"),__publicField$3(this,"_network"),__publicField$3(this,"_sampleFactor"),__publicField$3(this,"_radPower"),__publicField$3(this,"_freq"),__publicField$3(this,"_bias"),__publicField$3(this,"_distance"),this._distance=e4,this._pointArray=[],this._sampleFactor=1,this._networkSize=t2,this._distance.setWhitePoint(255<>3)*_NeuQuant$1._radiusBias,l2=s2>>_NeuQuant$1._radiusBiasShift;l2<=1&&(l2=0);for(let e5=0;e5>>0;n2=t2<_NeuQuant$1._minpicturebytes?1:t2%_NeuQuant$1._prime1!=0?_NeuQuant$1._prime1:t2%_NeuQuant$1._prime2!=0?_NeuQuant$1._prime2:t2%_NeuQuant$1._prime3!=0?_NeuQuant$1._prime3:_NeuQuant$1._prime4;let u2=new ProgressTracker$1(r2,99);for(let e5=0,h2=0;e5=t2&&(h2-=t2),e5++,a2===0&&(a2=1),e5%a2==0){o2-=o2/i2|0,s2-=s2/_NeuQuant$1._radiusDecrease|0,l2=s2>>_NeuQuant$1._radiusBiasShift,l2<=1&&(l2=0);for(let e6=0;e6>>0}}}_buildPalette(){let e4=new Palette$1;return this._network.forEach((t2=>{e4.add(t2.toPoint())})),e4.sort(),e4}_alterNeighbour(e4,t2,i2,r2,n2,a2){let o2=t2-e4;o2<-1&&(o2=-1);let s2=t2+e4;s2>this._networkSize&&(s2=this._networkSize);let l2=t2+1,u2=t2-1,h2=1;for(;l2o2;){let e5=this._radPower[h2++]/_NeuQuant$1._alphaRadBias;if(l2o2){let t3=this._network[u2--];t3.subtract(e5*(t3.r-n2),e5*(t3.g-r2),e5*(t3.b-i2),e5*(t3.a-a2))}}}_alterSingle(e4,t2,i2,r2,n2,a2){e4/=_NeuQuant$1._initAlpha;let o2=this._network[t2];o2.subtract(e4*(o2.r-n2),e4*(o2.g-r2),e4*(o2.b-i2),e4*(o2.a-a2))}_contest(e4,t2,i2,r2){let n2=1020<>_NeuQuant$1._initialBiasShift-networkBiasShift$1);f2>_NeuQuant$1._betaShift;this._freq[u2]-=d,this._bias[u2]+=d<<_NeuQuant$1._gammaShift}return this._freq[s2]+=_NeuQuant$1._beta,this._bias[s2]-=_NeuQuant$1._betaGamma,l2}},NeuQuant$1=_NeuQuant$1;__publicField$3(NeuQuant$1,"_prime1",499),__publicField$3(NeuQuant$1,"_prime2",491),__publicField$3(NeuQuant$1,"_prime3",487),__publicField$3(NeuQuant$1,"_prime4",503),__publicField$3(NeuQuant$1,"_minpicturebytes",_NeuQuant$1._prime4),__publicField$3(NeuQuant$1,"_nCycles",100),__publicField$3(NeuQuant$1,"_initialBiasShift",16),__publicField$3(NeuQuant$1,"_initialBias",1<<_NeuQuant$1._initialBiasShift),__publicField$3(NeuQuant$1,"_gammaShift",10),__publicField$3(NeuQuant$1,"_betaShift",10),__publicField$3(NeuQuant$1,"_beta",_NeuQuant$1._initialBias>>_NeuQuant$1._betaShift),__publicField$3(NeuQuant$1,"_betaGamma",_NeuQuant$1._initialBias<<_NeuQuant$1._gammaShift-_NeuQuant$1._betaShift),__publicField$3(NeuQuant$1,"_radiusBiasShift",6),__publicField$3(NeuQuant$1,"_radiusBias",1<<_NeuQuant$1._radiusBiasShift),__publicField$3(NeuQuant$1,"_radiusDecrease",30),__publicField$3(NeuQuant$1,"_alphaBiasShift",10),__publicField$3(NeuQuant$1,"_initAlpha",1<<_NeuQuant$1._alphaBiasShift),__publicField$3(NeuQuant$1,"_radBiasShift",8),__publicField$3(NeuQuant$1,"_radBias",1<<_NeuQuant$1._radBiasShift),__publicField$3(NeuQuant$1,"_alphaRadBiasShift",_NeuQuant$1._alphaBiasShift+_NeuQuant$1._radBiasShift),__publicField$3(NeuQuant$1,"_alphaRadBias",1<<_NeuQuant$1._alphaRadBiasShift);var networkBiasShift2$1=3,NeuronFloat$1=class{constructor(e4){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),this.r=this.g=this.b=this.a=e4}toPoint(){return Point$1.createByRGBA(this.r>>networkBiasShift2$1,this.g>>networkBiasShift2$1,this.b>>networkBiasShift2$1,this.a>>networkBiasShift2$1)}subtract(e4,t2,i2,r2){this.r-=e4,this.g-=t2,this.b-=i2,this.a-=r2}},_NeuQuantFloat$1=class extends AbstractPaletteQuantizer$1{constructor(e4,t2=256){super(),__publicField$3(this,"_pointArray"),__publicField$3(this,"_networkSize"),__publicField$3(this,"_network"),__publicField$3(this,"_sampleFactor"),__publicField$3(this,"_radPower"),__publicField$3(this,"_freq"),__publicField$3(this,"_bias"),__publicField$3(this,"_distance"),this._distance=e4,this._pointArray=[],this._sampleFactor=1,this._networkSize=t2,this._distance.setWhitePoint(255<>3)*_NeuQuantFloat$1._radiusBias,l2=s2>>_NeuQuantFloat$1._radiusBiasShift;l2<=1&&(l2=0);for(let e5=0;e5=t2&&(h2-=t2),e5++,a2===0&&(a2=1),e5%a2==0){o2-=o2/i2,s2-=s2/_NeuQuantFloat$1._radiusDecrease,l2=s2>>_NeuQuantFloat$1._radiusBiasShift,l2<=1&&(l2=0);for(let e6=0;e6{e4.add(t2.toPoint())})),e4.sort(),e4}_alterNeighbour(e4,t2,i2,r2,n2,a2){let o2=t2-e4;o2<-1&&(o2=-1);let s2=t2+e4;s2>this._networkSize&&(s2=this._networkSize);let l2=t2+1,u2=t2-1,h2=1;for(;l2o2;){let e5=this._radPower[h2++]/_NeuQuantFloat$1._alphaRadBias;if(l2o2){let t3=this._network[u2--];t3.subtract(e5*(t3.r-n2),e5*(t3.g-r2),e5*(t3.b-i2),e5*(t3.a-a2))}}}_alterSingle(e4,t2,i2,r2,n2,a2){e4/=_NeuQuantFloat$1._initAlpha;let o2=this._network[t2];o2.subtract(e4*(o2.r-n2),e4*(o2.g-r2),e4*(o2.b-i2),e4*(o2.a-a2))}_contest(e4,t2,i2,r2){let n2=1020<>_NeuQuantFloat$1._initialBiasShift-networkBiasShift2$1);f2>_NeuQuantFloat$1._betaShift;this._freq[u2]-=d,this._bias[u2]+=d<<_NeuQuantFloat$1._gammaShift}return this._freq[s2]+=_NeuQuantFloat$1._beta,this._bias[s2]-=_NeuQuantFloat$1._betaGamma,l2}},NeuQuantFloat$1=_NeuQuantFloat$1;__publicField$3(NeuQuantFloat$1,"_prime1",499),__publicField$3(NeuQuantFloat$1,"_prime2",491),__publicField$3(NeuQuantFloat$1,"_prime3",487),__publicField$3(NeuQuantFloat$1,"_prime4",503),__publicField$3(NeuQuantFloat$1,"_minpicturebytes",_NeuQuantFloat$1._prime4),__publicField$3(NeuQuantFloat$1,"_nCycles",100),__publicField$3(NeuQuantFloat$1,"_initialBiasShift",16),__publicField$3(NeuQuantFloat$1,"_initialBias",1<<_NeuQuantFloat$1._initialBiasShift),__publicField$3(NeuQuantFloat$1,"_gammaShift",10),__publicField$3(NeuQuantFloat$1,"_betaShift",10),__publicField$3(NeuQuantFloat$1,"_beta",_NeuQuantFloat$1._initialBias>>_NeuQuantFloat$1._betaShift),__publicField$3(NeuQuantFloat$1,"_betaGamma",_NeuQuantFloat$1._initialBias<<_NeuQuantFloat$1._gammaShift-_NeuQuantFloat$1._betaShift),__publicField$3(NeuQuantFloat$1,"_radiusBiasShift",6),__publicField$3(NeuQuantFloat$1,"_radiusBias",1<<_NeuQuantFloat$1._radiusBiasShift),__publicField$3(NeuQuantFloat$1,"_radiusDecrease",30),__publicField$3(NeuQuantFloat$1,"_alphaBiasShift",10),__publicField$3(NeuQuantFloat$1,"_initAlpha",1<<_NeuQuantFloat$1._alphaBiasShift),__publicField$3(NeuQuantFloat$1,"_radBiasShift",8),__publicField$3(NeuQuantFloat$1,"_radBias",1<<_NeuQuantFloat$1._radBiasShift),__publicField$3(NeuQuantFloat$1,"_alphaRadBiasShift",_NeuQuantFloat$1._alphaBiasShift+_NeuQuantFloat$1._radBiasShift),__publicField$3(NeuQuantFloat$1,"_alphaRadBias",1<<_NeuQuantFloat$1._alphaRadBiasShift);var _ColorHistogram$1=class{constructor(e4,t2){__publicField$3(this,"_method"),__publicField$3(this,"_hueStats"),__publicField$3(this,"_histogram"),__publicField$3(this,"_initColors"),__publicField$3(this,"_minHueCols"),this._method=e4,this._minHueCols=t2<<2,this._initColors=t2<<2,this._hueStats=new HueStatistics$1(_ColorHistogram$1._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(e4){switch(this._method){case 1:this._colorStats1D(e4);break;case 2:this._colorStats2D(e4)}}getImportanceSortedColorsIDXI32(){let e4=stableSort$1(Object.keys(this._histogram),((e5,t3)=>this._histogram[t3]-this._histogram[e5]));if(e4.length===0)return[];let t2;switch(this._method){case 1:let i2=Math.min(e4.length,this._initColors),r2=e4[i2-1],n2=this._histogram[r2];t2=e4.slice(0,i2);let a2=i2,o2=e4.length;for(;a2+e5))}_colorStats1D(e4){let t2=this._histogram,i2=e4.getPointArray(),r2=i2.length;for(let e5=0;e5{let i3=Math.round(e5.w*e5.h/o2)*_ColorHistogram$1._boxPixels;i3<2&&(i3=2);let n3={};this._iterateBox(e5,t2,(e6=>{let t3=r2[e6].uint32;this._hueStats.check(t3),t3 in l2?l2[t3]++:t3 in n3?++n3[t3]>=i3&&(l2[t3]=n3[t3]):n3[t3]=1}))})),this._hueStats.injectIntoDictionary(l2)}_iterateBox(e4,t2,i2){let r2=e4,n2=r2.y*t2+r2.x,a2=(r2.y+r2.h-1)*t2+(r2.x+r2.w-1),o2=t2-r2.w+1,s2=0,l2=n2;do i2.call(this,l2),l2+=++s2%r2.w==0?o2:1;while(l2<=a2)}_makeBoxes(e4,t2,i2,r2){let n2=e4%i2,a2=t2%r2,o2=e4-n2,s2=t2-a2,l2=[];for(let u2=0;u2this._colors;){a2.length=0;for(let e5=0;e53*this._colors?this._initialDistance:this._distanceIncrement}if(o2t3.distance-e6.distance));let e5=0;for(;o2=0;e5--)r2[e5]===0&&(e5!==u2-1&&(i2[e5]=i2[u2-1]),--u2);i2.length=u2,t2.sort(),yield{palette:t2,progress:100}}};function createArray1D$1(e4){let t2=[];for(let i2=0;i20){let i2=this._sums[t2],r2=this._reds[t2]/i2,n2=this._greens[t2]/i2,a2=this._blues[t2]/i2,o2=this._alphas[t2]/i2,s2=Point$1.createByRGBA(0|r2,0|n2,0|a2,0|o2);e4.add(s2)}e4.sort(),yield{palette:e4,progress:100}}*_preparePalette(){yield*this._calculateMoments();let e4=0,t2=createArray1D$1(this._colors);for(let i3=1;i31?this._calculateVariance(this._cubes[e4]):0,t2[i3]=this._cubes[i3].volume>1?this._calculateVariance(this._cubes[i3]):0):(t2[e4]=0,i3--),e4=0;let r3=t2[0];for(let n3=1;n3<=i3;++n3)t2[n3]>r3&&(r3=t2[n3],e4=n3);if(r3<=0){this._colors=i3+1;break}}let i2=[],r2=[],n2=[],a2=[];for(let e5=0;e50?(i2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsRed)/t3|0,r2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsGreen)/t3|0,n2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsBlue)/t3|0,a2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsAlpha)/t3|0):(i2[e5]=0,r2[e5]=0,n2[e5]=0,a2[e5]=0)}this._reds=createArray1D$1(this._colors+1),this._greens=createArray1D$1(this._colors+1),this._blues=createArray1D$1(this._colors+1),this._alphas=createArray1D$1(this._colors+1),this._sums=createArray1D$1(this._colors+1);for(let e5=0,t3=this._pixels.length;e5>t2),r2=1+(e4.g>>t2),n2=1+(e4.b>>t2),a2=1+(e4.a>>t2);this._weights[a2][i2][r2][n2]++,this._momentsRed[a2][i2][r2][n2]+=e4.r,this._momentsGreen[a2][i2][r2][n2]+=e4.g,this._momentsBlue[a2][i2][r2][n2]+=e4.b,this._momentsAlpha[a2][i2][r2][n2]+=e4.a,this._moments[a2][i2][r2][n2]+=this._table[e4.r]+this._table[e4.g]+this._table[e4.b]+this._table[e4.a]}*_calculateMoments(){let e4=[],t2=[],i2=[],r2=[],n2=[],a2=[],o2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),s2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),l2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),u2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),h2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),c2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),f2=0,d=new ProgressTracker$1(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let p2=1;p2<=this._alphaMaxSideIndex;++p2){fillArray3D$1(o2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(s2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(l2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(u2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(h2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(c2,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++f2){d.shouldNotify(f2)&&(yield{progress:d.progress}),fillArray1D$1(e4,this._sideSize,0),fillArray1D$1(t2,this._sideSize,0),fillArray1D$1(i2,this._sideSize,0),fillArray1D$1(r2,this._sideSize,0),fillArray1D$1(n2,this._sideSize,0),fillArray1D$1(a2,this._sideSize,0);for(let f3=1;f3<=this._maxSideIndex;++f3){let d2=0,_2=0,g=0,b2=0,y2=0,w=0;for(let v2=1;v2<=this._maxSideIndex;++v2)d2+=this._weights[p2][m][f3][v2],_2+=this._momentsRed[p2][m][f3][v2],g+=this._momentsGreen[p2][m][f3][v2],b2+=this._momentsBlue[p2][m][f3][v2],y2+=this._momentsAlpha[p2][m][f3][v2],w+=this._moments[p2][m][f3][v2],e4[v2]+=d2,t2[v2]+=_2,i2[v2]+=g,r2[v2]+=b2,n2[v2]+=y2,a2[v2]+=w,o2[m][f3][v2]=o2[m-1][f3][v2]+e4[v2],s2[m][f3][v2]=s2[m-1][f3][v2]+t2[v2],l2[m][f3][v2]=l2[m-1][f3][v2]+i2[v2],u2[m][f3][v2]=u2[m-1][f3][v2]+r2[v2],h2[m][f3][v2]=h2[m-1][f3][v2]+n2[v2],c2[m][f3][v2]=c2[m-1][f3][v2]+a2[v2],this._weights[p2][m][f3][v2]=this._weights[p2-1][m][f3][v2]+o2[m][f3][v2],this._momentsRed[p2][m][f3][v2]=this._momentsRed[p2-1][m][f3][v2]+s2[m][f3][v2],this._momentsGreen[p2][m][f3][v2]=this._momentsGreen[p2-1][m][f3][v2]+l2[m][f3][v2],this._momentsBlue[p2][m][f3][v2]=this._momentsBlue[p2-1][m][f3][v2]+u2[m][f3][v2],this._momentsAlpha[p2][m][f3][v2]=this._momentsAlpha[p2-1][m][f3][v2]+h2[m][f3][v2],this._moments[p2][m][f3][v2]=this._moments[p2-1][m][f3][v2]+c2[m][f3][v2]}}}}static _volumeFloat(e4,t2){return t2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]-t2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-t2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+t2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-t2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]+t2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+t2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-t2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(t2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-t2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-t2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+t2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-t2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+t2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+t2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]-t2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum])}static _volume(e4,t2){return 0|_WuQuant$1._volumeFloat(e4,t2)}static _top(e4,t2,i2,r2){let n2;switch(t2){case _WuQuant$1._alpha:n2=r2[i2][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]-r2[i2][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-r2[i2][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+r2[i2][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(r2[i2][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-r2[i2][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-r2[i2][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+r2[i2][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);break;case _WuQuant$1._red:n2=r2[e4.alphaMaximum][i2][e4.greenMaximum][e4.blueMaximum]-r2[e4.alphaMaximum][i2][e4.greenMinimum][e4.blueMaximum]-r2[e4.alphaMinimum][i2][e4.greenMaximum][e4.blueMaximum]+r2[e4.alphaMinimum][i2][e4.greenMinimum][e4.blueMaximum]-(r2[e4.alphaMaximum][i2][e4.greenMaximum][e4.blueMinimum]-r2[e4.alphaMaximum][i2][e4.greenMinimum][e4.blueMinimum]-r2[e4.alphaMinimum][i2][e4.greenMaximum][e4.blueMinimum]+r2[e4.alphaMinimum][i2][e4.greenMinimum][e4.blueMinimum]);break;case _WuQuant$1._green:n2=r2[e4.alphaMaximum][e4.redMaximum][i2][e4.blueMaximum]-r2[e4.alphaMaximum][e4.redMinimum][i2][e4.blueMaximum]-r2[e4.alphaMinimum][e4.redMaximum][i2][e4.blueMaximum]+r2[e4.alphaMinimum][e4.redMinimum][i2][e4.blueMaximum]-(r2[e4.alphaMaximum][e4.redMaximum][i2][e4.blueMinimum]-r2[e4.alphaMaximum][e4.redMinimum][i2][e4.blueMinimum]-r2[e4.alphaMinimum][e4.redMaximum][i2][e4.blueMinimum]+r2[e4.alphaMinimum][e4.redMinimum][i2][e4.blueMinimum]);break;case _WuQuant$1._blue:n2=r2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][i2]-r2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][i2]-r2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][i2]+r2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][i2]-(r2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][i2]-r2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][i2]-r2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][i2]+r2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][i2]);break;default:throw new Error("impossible")}return 0|n2}static _bottom(e4,t2,i2){switch(t2){case _WuQuant$1._alpha:return-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._red:return-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._green:return-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._blue:return-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]-(-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);default:return 0}}_calculateVariance(e4){let t2=_WuQuant$1._volume(e4,this._momentsRed),i2=_WuQuant$1._volume(e4,this._momentsGreen),r2=_WuQuant$1._volume(e4,this._momentsBlue),n2=_WuQuant$1._volume(e4,this._momentsAlpha);return _WuQuant$1._volumeFloat(e4,this._moments)-(t2*t2+i2*i2+r2*r2+n2*n2)/_WuQuant$1._volume(e4,this._weights)}_maximize(e4,t2,i2,r2,n2,a2,o2,s2,l2){let u2=0|_WuQuant$1._bottom(e4,t2,this._momentsRed),h2=0|_WuQuant$1._bottom(e4,t2,this._momentsGreen),c2=0|_WuQuant$1._bottom(e4,t2,this._momentsBlue),f2=0|_WuQuant$1._bottom(e4,t2,this._momentsAlpha),d=0|_WuQuant$1._bottom(e4,t2,this._weights),p2=0,m=-1;for(let _2=i2;_2p2&&(p2=t3,m=_2))}}return{max:p2,position:m}}_cut(e4,t2){let i2,r2=_WuQuant$1._volume(e4,this._momentsRed),n2=_WuQuant$1._volume(e4,this._momentsGreen),a2=_WuQuant$1._volume(e4,this._momentsBlue),o2=_WuQuant$1._volume(e4,this._momentsAlpha),s2=_WuQuant$1._volume(e4,this._weights),l2=this._maximize(e4,_WuQuant$1._red,e4.redMinimum+1,e4.redMaximum,r2,n2,a2,o2,s2),u2=this._maximize(e4,_WuQuant$1._green,e4.greenMinimum+1,e4.greenMaximum,r2,n2,a2,o2,s2),h2=this._maximize(e4,_WuQuant$1._blue,e4.blueMinimum+1,e4.blueMaximum,r2,n2,a2,o2,s2),c2=this._maximize(e4,_WuQuant$1._alpha,e4.alphaMinimum+1,e4.alphaMaximum,r2,n2,a2,o2,s2);if(c2.max>=l2.max&&c2.max>=u2.max&&c2.max>=h2.max){if(i2=_WuQuant$1._alpha,c2.position<0)return!1}else i2=l2.max>=c2.max&&l2.max>=u2.max&&l2.max>=h2.max?_WuQuant$1._red:u2.max>=c2.max&&u2.max>=l2.max&&u2.max>=h2.max?_WuQuant$1._green:_WuQuant$1._blue;switch(t2.redMaximum=e4.redMaximum,t2.greenMaximum=e4.greenMaximum,t2.blueMaximum=e4.blueMaximum,t2.alphaMaximum=e4.alphaMaximum,i2){case _WuQuant$1._red:t2.redMinimum=e4.redMaximum=l2.position,t2.greenMinimum=e4.greenMinimum,t2.blueMinimum=e4.blueMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._green:t2.greenMinimum=e4.greenMaximum=u2.position,t2.redMinimum=e4.redMinimum,t2.blueMinimum=e4.blueMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._blue:t2.blueMinimum=e4.blueMaximum=h2.position,t2.redMinimum=e4.redMinimum,t2.greenMinimum=e4.greenMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._alpha:t2.alphaMinimum=e4.alphaMaximum=c2.position,t2.blueMinimum=e4.blueMinimum,t2.redMinimum=e4.redMinimum,t2.greenMinimum=e4.greenMinimum}return e4.volume=(e4.redMaximum-e4.redMinimum)*(e4.greenMaximum-e4.greenMinimum)*(e4.blueMaximum-e4.blueMinimum)*(e4.alphaMaximum-e4.alphaMinimum),t2.volume=(t2.redMaximum-t2.redMinimum)*(t2.greenMaximum-t2.greenMinimum)*(t2.blueMaximum-t2.blueMinimum)*(t2.alphaMaximum-t2.alphaMinimum),!0}_initialize(e4){this._colors=e4,this._cubes=[];for(let t2=0;t2AbstractImageQuantizer$1,ErrorDiffusionArray:()=>ErrorDiffusionArray$1,ErrorDiffusionArrayKernel:()=>ErrorDiffusionArrayKernel$1,ErrorDiffusionRiemersma:()=>ErrorDiffusionRiemersma$1,NearestColor:()=>NearestColor$1});var AbstractImageQuantizer$1=class{quantizeSync(e4,t2){for(let i2 of this.quantize(e4,t2))if(i2.pointContainer)return i2.pointContainer;throw new Error("unreachable")}},NearestColor$1=class extends AbstractImageQuantizer$1{constructor(e4){super(),__publicField$3(this,"_distance"),this._distance=e4}*quantize(e4,t2){let i2=e4.getPointArray(),r2=e4.getWidth(),n2=e4.getHeight(),a2=new ProgressTracker$1(n2,99);for(let e5=0;e5(e4[e4.FloydSteinberg=0]="FloydSteinberg",e4[e4.FalseFloydSteinberg=1]="FalseFloydSteinberg",e4[e4.Stucki=2]="Stucki",e4[e4.Atkinson=3]="Atkinson",e4[e4.Jarvis=4]="Jarvis",e4[e4.Burkes=5]="Burkes",e4[e4.Sierra=6]="Sierra",e4[e4.TwoSierra=7]="TwoSierra",e4[e4.SierraLite=8]="SierraLite",e4))(ErrorDiffusionArrayKernel$1||{}),ErrorDiffusionArray$1=class extends AbstractImageQuantizer$1{constructor(e4,t2,i2=!0,r2=0,n2=!1){super(),__publicField$3(this,"_minColorDistance"),__publicField$3(this,"_serpentine"),__publicField$3(this,"_kernel"),__publicField$3(this,"_calculateErrorLikeGIMP"),__publicField$3(this,"_distance"),this._setKernel(t2),this._distance=e4,this._minColorDistance=r2,this._serpentine=i2,this._calculateErrorLikeGIMP=n2}*quantize(e4,t2){let i2=e4.getPointArray(),r2=new Point$1,n2=e4.getWidth(),a2=e4.getHeight(),o2=[],s2=1,l2=1;for(let e5 of this._kernel){let t3=e5[2]+1;l2=0&&i3+u3=0&&r3+e5t2&&(e4.length=t2);let i2=e4.length;for(let t3=0;t3=0&&e4.x=0&&e4.y{let s2=i2[e5+n3*r2],{r:l2,g:u2,b:h2,a:c2}=s2;for(let e6=0;e6ssim$1});var K1$1=.01,K2$1=.03;function ssim$1(e4,t2){if(e4.getHeight()!==t2.getHeight()||e4.getWidth()!==t2.getWidth())throw new Error("Images have different sizes!");let i2=(255*K1$1)**2,r2=(255*K2$1)**2,n2=0,a2=0;return iterate$1(e4,t2,((e5,t3,o2,s2)=>{let l2=0,u2=0,h2=0;for(let i3=0;i3process.nextTick(e4):e4=>setTimeout(e4,0);function buildPaletteSync$1(e4,{colorDistanceFormula:t2,paletteQuantization:i2,colors:r2}={}){let n2=paletteQuantizationToPaletteQuantizer$1(colorDistanceFormulaToColorDistance$1(t2),i2,r2);return e4.forEach((e5=>n2.sample(e5))),n2.quantizeSync()}async function buildPalette(e4,{colorDistanceFormula:t2,paletteQuantization:i2,colors:r2,onProgress:n2}={}){return new Promise(((a2,o2)=>{let s2=paletteQuantizationToPaletteQuantizer$1(colorDistanceFormulaToColorDistance$1(t2),i2,r2),l2;e4.forEach((e5=>s2.sample(e5)));let u2=s2.quantize(),h2=()=>{try{let e5=u2.next();e5.done?a2(l2):(e5.value.palette&&(l2=e5.value.palette),n2&&n2(e5.value.progress),setImmediateImpl(h2))}catch(e5){o2(e5)}};setImmediateImpl(h2)}))}function applyPaletteSync$1(e4,t2,{colorDistanceFormula:i2,imageQuantization:r2}={}){return imageQuantizationToImageQuantizer$1(colorDistanceFormulaToColorDistance$1(i2),r2).quantizeSync(e4,t2)}async function applyPalette(e4,t2,{colorDistanceFormula:i2,imageQuantization:r2,onProgress:n2}={}){return new Promise(((a2,o2)=>{let s2,l2=imageQuantizationToImageQuantizer$1(colorDistanceFormulaToColorDistance$1(i2),r2).quantize(e4,t2),u2=()=>{try{let e5=l2.next();e5.done?a2(s2):(e5.value.pointContainer&&(s2=e5.value.pointContainer),n2&&n2(e5.value.progress),setImmediateImpl(u2))}catch(e5){o2(e5)}};setImmediateImpl(u2)}))}function colorDistanceFormulaToColorDistance$1(e4="euclidean-bt709"){switch(e4){case"cie94-graphic-arts":return new CIE94GraphicArts$1;case"cie94-textiles":return new CIE94Textiles$1;case"ciede2000":return new CIEDE2000$1;case"color-metric":return new CMetric$1;case"euclidean":return new Euclidean$1;case"euclidean-bt709":return new EuclideanBT709$1;case"euclidean-bt709-noalpha":return new EuclideanBT709NoAlpha$1;case"manhattan":return new Manhattan$1;case"manhattan-bt709":return new ManhattanBT709$1;case"manhattan-nommyde":return new ManhattanNommyde$1;case"pngquant":return new PNGQuant$1;default:throw new Error(`Unknown colorDistanceFormula ${e4}`)}}function imageQuantizationToImageQuantizer$1(e4,t2="floyd-steinberg"){switch(t2){case"nearest":return new NearestColor$1(e4);case"riemersma":return new ErrorDiffusionRiemersma$1(e4);case"floyd-steinberg":return new ErrorDiffusionArray$1(e4,0);case"false-floyd-steinberg":return new ErrorDiffusionArray$1(e4,1);case"stucki":return new ErrorDiffusionArray$1(e4,2);case"atkinson":return new ErrorDiffusionArray$1(e4,3);case"jarvis":return new ErrorDiffusionArray$1(e4,4);case"burkes":return new ErrorDiffusionArray$1(e4,5);case"sierra":return new ErrorDiffusionArray$1(e4,6);case"two-sierra":return new ErrorDiffusionArray$1(e4,7);case"sierra-lite":return new ErrorDiffusionArray$1(e4,8);default:throw new Error(`Unknown imageQuantization ${t2}`)}}function paletteQuantizationToPaletteQuantizer$1(e4,t2="wuquant",i2=256){switch(t2){case"neuquant":return new NeuQuant$1(e4,i2);case"rgbquant":return new RGBQuant$1(e4,i2);case"wuquant":return new WuQuant$1(e4,i2);case"neuquant-float":return new NeuQuantFloat$1(e4,i2);default:throw new Error(`Unknown paletteQuantization ${t2}`)}}var imageQ=__toCommonJS(src_exports),gifframe={},BitmapImage$1=bitmapimage,GifFrame$1=class e2 extends BitmapImage$1{constructor(...t2){if(super(...t2),t2[0]instanceof e2){let e4=t2[0];this.xOffset=e4.xOffset,this.yOffset=e4.yOffset,this.disposalMethod=e4.disposalMethod,this.delayCentisecs=e4.delayCentisecs,this.interlaced=e4.interlaced}else{let i2=t2[t2.length-1],r2={};typeof i2!="object"||i2 instanceof BitmapImage$1||(r2=i2),this.xOffset=r2.xOffset||0,this.yOffset=r2.yOffset||0,this.disposalMethod=r2.disposalMethod!==void 0?r2.disposalMethod:e2.DisposeToBackgroundColor,this.delayCentisecs=r2.delayCentisecs||8,this.interlaced=r2.interlaced||!1}}getPalette(){let e4=new Set,t2=this.bitmap.data,i2=0,r2=!1;for(;i2>8&16777215;e4.add(r3)}i2+=4}let n2=new Array(e4.size),a2=e4.values();for(i2=0;i2e5-t3));let o2=n2.length;return r2&&++o2,{colors:n2,usesTransparency:r2,indexCount:o2}}},hasRequiredGifutil,hasRequiredGifcodec;function requireGifutil(){return hasRequiredGifutil||(hasRequiredGifutil=1,(function(e4){let t2=require$$0,i2=imageQ,r2=bitmapimage,{GifFrame:n2}=gifframe,{GifError:a2}=gif$1,{GifCodec:o2}=requireGifcodec(),s2=[".jpg",".jpeg",".png",".bmp"],l2=new o2;function u2(e5,t3,r3,n3,a3){let o3=Array.isArray(e5)?e5:[e5];if(a3){if(["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"].indexOf(a3.ditherAlgorithm)<0)throw new Error(`Invalid ditherAlgorithm '${a3.ditherAlgorithm}'`);a3.serpentine===void 0&&(a3.serpentine=!0),a3.minimumColorDistanceToDither===void 0&&(a3.minimumColorDistanceToDither=0),a3.calculateErrorLikeGIMP===void 0&&(a3.calculateErrorLikeGIMP=!1)}let s3=new i2.distance.Euclidean,l3=new i2.palette[t3](s3,r3,n3),u3;u3=a3?new i2.image.ErrorDiffusionArray(s3,i2.image.ErrorDiffusionArrayKernel[a3.ditherAlgorithm],a3.serpentine,a3.minimumColorDistanceToDither,a3.calculateErrorLikeGIMP):new i2.image.NearestColor(s3);let h2=[];o3.forEach((e6=>{let t4=e6.bitmap.data,r4=new ArrayBuffer(t4.length),n4=new Uint32Array(r4);for(let e7=0,i3=0;e7{t3.push(new n2(e6))})),t3},e4.getColorInfo=function(e5,t3){let i3=!1,r3=[];for(let t4=0;t4256)throw new a2(`Frame ${t4} uses more than 256 color indexes`);r3.push(n4)}if(t3===0)return{usesTransparency:i3,palettes:r3};let n3=new Set;r3.forEach((e6=>{e6.colors.forEach((e7=>{n3.add(e7)}))}));let o3=n3.size;if(i3&&++o3,t3&&o3>t3)return{usesTransparency:i3,palettes:r3};let s3=new Array(n3.size),l3=n3.values();for(let e6=0;e6e6-t4)),{colors:s3,indexCount:o3,usesTransparency:i3,palettes:r3}},e4.copyAsJimp=function(t3,i3){return e4.shareAsJimp(t3,new r2(i3))},e4.getMaxDimensions=function(e5){let t3=0,i3=0;return e5.forEach((e6=>{let r3=e6.xOffset+e6.bitmap.width;r3>t3&&(t3=r3);let n3=e6.yOffset+e6.bitmap.height;n3>i3&&(i3=n3)})),{maxWidth:t3,maxHeight:i3}},e4.quantizeDekker=function(e5,t3,i3){u2(e5,"NeuQuantFloat",t3=t3||256,0,i3)},e4.quantizeSorokin=function(e5,t3,i3,r3){let n3;switch(t3=t3||256,i3=i3||"min-pop"){case"min-pop":n3=2;break;case"top-pop":n3=1;break;default:throw new Error(`Invalid quantizeSorokin histogram '${i3}'`)}u2(e5,"RGBQuant",t3,n3,r3)},e4.quantizeWu=function(e5,t3,i3,r3){if(t3=t3||256,(i3=i3||5)<1||i3>8)throw new Error("Invalid quantization quality");u2(e5,"WuQuant",t3,i3,r3)},e4.read=function(e5,i3){return i3=i3||l2,Buffer2.isBuffer(e5)?i3.decodeGif(e5):(function(e6){return new Promise(((i4,r3)=>{t2.readFile(e6,((e7,t3)=>e7?r3(e7):i4(t3)))}))})(e5).then((e6=>i3.decodeGif(e6)))},e4.shareAsJimp=function(e5,t3){let i3=new e5(t3.bitmap.width,t3.bitmap.height,0);return i3.bitmap.data=t3.bitmap.data,i3},e4.write=function(e5,i3,r3,n3){n3=n3||l2;let a3=e5.match(/\.[a-zA-Z]+$/);if(a3!==null&&s2.includes(a3[0].toLowerCase()))throw new Error(`GIF '${e5}' has an unexpected suffix`);return n3.encodeGif(i3,r3).then((i4=>(function(e6,i5){return new Promise(((r4,n4)=>{t2.writeFile(e6,i5,(e7=>e7?n4(e7):r4()))}))})(e5,i4.buffer).then((()=>i4))))}})(gifutil)),gifutil}function requireGifcodec(){if(hasRequiredGifcodec)return gifcodec;hasRequiredGifcodec=1;let e4=omggif,{Gif:t2,GifError:i2}=gif$1;function r2(){let e5=requireGifutil();return r2=function(){return e5},e5}let{GifFrame:n2}=gifframe;function a2(e5,t3){let i3=e5.indexOf(t3);return i3===-1?null:i3}function o2(e5,t3){for(var i3,r3=0,n3=e5.length-1;r3<=n3;)if(e5[i3=Math.floor((r3+n3)/2)]>t3)n3=i3-1;else{if(!(e5[i3]r3;)r3<<=1;t3.length=r3,t3.fill(0,i3)}function l2(e5,t3){let i3=e5.bitmap.width*e5.bitmap.height;return i3=Math.ceil(i3*t3/8),i3+=Math.ceil(i3/255),100+i3+768}function u2(e5){let t3=e5.indexCount,i3=0;for(--t3;t3;)++i3,t3>>=1;return i3>0?i3:1}function h2(e5,t3,r3,n3,l3){if(r3.interlaced)throw new i2("writing interlaced GIFs is not supported");let u3=(function(e6,t4,r4){let n4=r4.colors,s3=n4.length<=8?a2:o2,l4=t4.bitmap.data,u4=new Buffer2(l4.length/4),h4=n4.length,c2=0,f2=0;for(;c2>8&16777215;u4[f2]=s3(n4,e7)}else u4[f2]=h4;c2+=4,++f2}if(r4.usesTransparency){if(h4===256)throw new i2(`Frame ${e6} already has 256 colorsand so can't use transparency`)}else h4=null;return{buffer:u4,transparentIndex:h4}})(t3,r3,n3),h3={delay:r3.delayCentisecs,disposal:r3.disposalMethod,transparent:u3.transparentIndex};l3&&(s2(n3),h3.palette=n3.colors);try{let t4,i3=e5.getOutputBuffer(),n4=e5.getOutputBufferPosition(),a3=!0;for(;a3;)if(t4=e5.addFrame(r3.xOffset,r3.yOffset,r3.bitmap.width,r3.bitmap.height,u3.buffer,h3),a3=!1,t4>=i3.length-1){let t5=new Buffer2(1.5*i3.length);i3.copy(t5),e5.setOutputBuffer(t5),e5.setOutputBufferPosition(n4),i3=t5,a3=!0}return i3}catch(e6){throw new i2(e6)}}return gifcodec.GifCodec=class{constructor(e5={}){this._transparentRGB=null,typeof e5.transparentRGB=="number"&&e5.transparentRGB!==0&&(this._transparentRGBA=256*e5.transparentRGB),this._testInitialBufferSize=0}decodeGif(r3){try{let n3;try{n3=new e4.GifReader(r3)}catch(e5){throw new i2(e5)}let a3=n3.numFrames(),o3=[],s3={width:n3.width,height:n3.height,loops:n3.loopCount(),usesTransparency:!1};for(let e5=0;e5a3.width)for(let t4=0;t40)return this._testInitialBufferSize;let i3=968,r3=u2(e5);return t3.forEach((e6=>{i3+=l2(e6,r3)})),i3}_getSizeEstimateLocal(e5,t3){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let i3=200;for(let r3=0;r3{let t2=new src.BitmapImage(e4);src.GifUtil.quantizeDekker(t2,256);let i2=new src.GifFrame(e4);return(await new src.GifCodec().encodeGif([i2],{})).buffer},decode:e4=>{let t2=new omggif.GifReader(e4),i2=Buffer2.alloc(t2.width*t2.height*4);return t2.decodeAndBlitFrameRGBA(0,i2),{data:i2,width:t2.width,height:t2.height}}}}var encoder={exports:{}};(function(e4){function t2(e5){var t3,i2,r2,n2,a2,o2=Math.floor,s2=new Array(64),l2=new Array(64),u2=new Array(64),h2=new Array(64),c2=new Array(65535),f2=new Array(65535),d=new Array(64),p2=new Array(64),m=[],_2=0,g=7,b2=new Array(64),y2=new Array(64),w=new Array(64),v2=new Array(256),x2=new Array(2048),E2=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k2=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S2=[0,1,2,3,4,5,6,7,8,9,10,11],A2=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M2=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T2=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],B2=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function C2(e6,t4){for(var i3=0,r3=0,n3=new Array,a3=1;a3<=16;a3++){for(var o3=1;o3<=e6[a3];o3++)n3[t4[r3]]=[],n3[t4[r3]][0]=i3,n3[t4[r3]][1]=a3,r3++,i3++;i3*=2}return n3}function R2(e6){for(var t4=e6[0],i3=e6[1]-1;i3>=0;)t4&1<>8&255),z2(255&e6)}function N2(e6,t4,i3,r3,n3){for(var a3,o3=n3[0],s3=n3[240],l3=(function(e7,t5){var i4,r4,n4,a4,o4,s4,l4,u4,h4,c3,f3=0;for(h4=0;h4<8;++h4){i4=e7[f3],r4=e7[f3+1],n4=e7[f3+2],a4=e7[f3+3],o4=e7[f3+4],s4=e7[f3+5],l4=e7[f3+6];var p3=i4+(u4=e7[f3+7]),m3=i4-u4,_4=r4+l4,g3=r4-l4,b4=n4+s4,y4=n4-s4,w3=a4+o4,v3=a4-o4,x3=p3+w3,E3=p3-w3,k3=_4+b4,S3=_4-b4;e7[f3]=x3+k3,e7[f3+4]=x3-k3;var A3=.707106781*(S3+E3);e7[f3+2]=E3+A3,e7[f3+6]=E3-A3;var I2=.382683433*((x3=v3+y4)-(S3=g3+m3)),M3=.5411961*x3+I2,T3=1.306562965*S3+I2,P2=.707106781*(k3=y4+g3),B3=m3+P2,C3=m3-P2;e7[f3+5]=C3+M3,e7[f3+3]=C3-M3,e7[f3+1]=B3+T3,e7[f3+7]=B3-T3,f3+=8}for(f3=0,h4=0;h4<8;++h4){i4=e7[f3],r4=e7[f3+8],n4=e7[f3+16],a4=e7[f3+24],o4=e7[f3+32],s4=e7[f3+40],l4=e7[f3+48];var R3=i4+(u4=e7[f3+56]),z3=i4-u4,F2=r4+l4,N3=r4-l4,O3=n4+s4,D=n4-s4,$=a4+o4,L2=a4-o4,U=R3+$,Z=R3-$,j=F2+O3,G=F2-O3;e7[f3]=U+j,e7[f3+32]=U-j;var H=.707106781*(G+Z);e7[f3+16]=Z+H,e7[f3+48]=Z-H;var Q=.382683433*((U=L2+D)-(G=N3+z3)),W=.5411961*U+Q,q=1.306562965*G+Q,V=.707106781*(j=D+N3),Y2=z3+V,K=z3-V;e7[f3+40]=K+W,e7[f3+24]=K-W,e7[f3+8]=Y2+q,e7[f3+56]=Y2-q,f3++}for(h4=0;h4<64;++h4)c3=e7[h4]*t5[h4],d[h4]=c3>0?c3+.5|0:c3-.5|0;return d})(e6,t4),u3=0;u3<64;++u3)p2[E2[u3]]=l3[u3];var h3=p2[0]-i3;i3=p2[0],h3==0?R2(r3[0]):(R2(r3[f2[a3=32767+h3]]),R2(c2[a3]));for(var m2=63;m2>0&&p2[m2]==0;m2--);if(m2==0)return R2(o3),i3;for(var _3,g2=1;g2<=m2;){for(var b3=g2;p2[g2]==0&&g2<=m2;++g2);var y3=g2-b3;if(y3>=16){_3=y3>>4;for(var w2=1;w2<=_3;++w2)R2(s3);y3&=15}a3=32767+p2[g2],R2(n3[(y3<<4)+f2[a3]]),R2(c2[a3]),g2++}return m2!=63&&R2(o3),i3}function O2(e6){e6<=0&&(e6=1),e6>100&&(e6=100),a2!=e6&&((function(e7){for(var t4=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],i3=0;i3<64;i3++){var r3=o2((t4[i3]*e7+50)/100);r3<1?r3=1:r3>255&&(r3=255),s2[E2[i3]]=r3}for(var n3=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a3=0;a3<64;a3++){var c3=o2((n3[a3]*e7+50)/100);c3<1?c3=1:c3>255&&(c3=255),l2[E2[a3]]=c3}for(var f3=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d2=0,p3=0;p3<8;p3++)for(var m2=0;m2<8;m2++)u2[d2]=1/(s2[E2[d2]]*f3[p3]*f3[m2]*8),h2[d2]=1/(l2[E2[d2]]*f3[p3]*f3[m2]*8),d2++})(e6<50?Math.floor(5e3/e6):Math.floor(200-2*e6)),a2=e6)}this.encode=function(e6,a3){var o3;new Date().getTime(),a3&&O2(a3),m=new Array,_2=0,g=7,F(65496),F(65504),F(16),z2(74),z2(70),z2(73),z2(70),z2(0),z2(1),z2(1),z2(0),F(1),F(1),z2(0),z2(0),(o3=e6.comments)!==void 0&&o3.constructor===Array&&o3.forEach((e7=>{if(typeof e7=="string"){F(65534);var t4,i3=e7.length;for(F(i3+2),t4=0;t4>3)*Q+(L2=4*(7&Z)),W+U>=H&&($-=Q*(W+1+U-H)),p3+L2>=Q&&($-=p3+L2-Q+4),v3=j[$++],E3=j[$++],C3=j[$++],b2[Z]=(x2[v3]+x2[E3+256|0]+x2[C3+512|0]>>16)-128,y2[Z]=(x2[v3+768|0]+x2[E3+1024|0]+x2[C3+1280|0]>>16)-128,w[Z]=(x2[v3+1280|0]+x2[E3+1536|0]+x2[C3+1792|0]>>16)-128;c3=N2(b2,u2,c3,t3,r2),f3=N2(y2,h2,f3,i2,n2),d2=N2(w,h2,d2,i2,n2),p3+=32}W+=8}if(g>=0){var q=[];q[1]=g+1,q[0]=(1<0&&!e5[o3-1];)o3--;a3.push({children:[],index:0});var s3,l3=a3[0];for(i3=0;i30;){if(a3.length===0)throw new Error("Could not recreate Huffman Table");l3=a3.pop()}for(l3.index++,a3.push(l3);a3.length<=i3;)a3.push(s3={children:[],index:0}),l3.children[l3.index]=s3.children,l3=s3;n3++}i3+10)return m2--,p3>>m2&1;if((p3=t3[i3++])==255){var e5=t3[i3++];if(e5)throw new Error("unexpected marker: "+(p3<<8|e5).toString(16))}return m2=7,p3>>>7}function g(e5){for(var t4,i4=e5;(t4=_3())!==null;){if(typeof(i4=i4[t4])=="number")return i4;if(typeof i4!="object")throw new Error("invalid huffman sequence")}return null}function b2(e5){for(var t4=0;e5>0;){var i4=_3();if(i4===null)return;t4=t4<<1|i4,e5--}return t4}function y2(e5){var t4=b2(e5);return t4>=1<0)v2--;else for(var r4=o3,n4=s3;r4<=n4;){var a4=g(t4.huffmanTableAC),l4=15&a4,h4=a4>>4;if(l4!==0)i4[e4[r4+=h4]]=y2(l4)*(1<>4,f4===0)a4<15?(v2=b2(a4)+(1<>4;if(s4!==0)i4[e4[a4+=l4]]=y2(s4),a4++;else{if(l4<15)break;a4+=16}}};var C2,R2,z2,F,N2=0;for(R2=B2==1?n3[0].blocksPerLine*n3[0].blocksPerColumn:c3*r3.mcusPerColumn,a3||(a3=R2);N2=65488&&C2<=65495))break;i3+=2}return i3-d2}function f2(e5,u3){var h3,c3,f3=[],d2=u3.blocksPerLine,p3=u3.blocksPerColumn,m2=d2<<3,g=new Int32Array(64),b2=new Uint8Array(64);function y2(e6,h4,c4){var f4,d3,p4,m3,_3,g2,b3,y3,w2,v3,x3=u3.quantizationTable,E3=c4;for(v3=0;v3<64;v3++)E3[v3]=e6[v3]*x3[v3];for(v3=0;v3<8;++v3){var k3=8*v3;E3[1+k3]!=0||E3[2+k3]!=0||E3[3+k3]!=0||E3[4+k3]!=0||E3[5+k3]!=0||E3[6+k3]!=0||E3[7+k3]!=0?(f4=s2*E3[0+k3]+128>>8,d3=s2*E3[4+k3]+128>>8,p4=E3[2+k3],m3=E3[6+k3],_3=l2*(E3[1+k3]-E3[7+k3])+128>>8,y3=l2*(E3[1+k3]+E3[7+k3])+128>>8,g2=E3[3+k3]<<4,b3=E3[5+k3]<<4,w2=f4-d3+1>>1,f4=f4+d3+1>>1,d3=w2,w2=p4*o2+m3*a2+128>>8,p4=p4*a2-m3*o2+128>>8,m3=w2,w2=_3-b3+1>>1,_3=_3+b3+1>>1,b3=w2,w2=y3+g2+1>>1,g2=y3-g2+1>>1,y3=w2,w2=f4-m3+1>>1,f4=f4+m3+1>>1,m3=w2,w2=d3-p4+1>>1,d3=d3+p4+1>>1,p4=w2,w2=_3*n2+y3*r2+2048>>12,_3=_3*r2-y3*n2+2048>>12,y3=w2,w2=g2*i2+b3*t2+2048>>12,g2=g2*t2-b3*i2+2048>>12,b3=w2,E3[0+k3]=f4+y3,E3[7+k3]=f4-y3,E3[1+k3]=d3+b3,E3[6+k3]=d3-b3,E3[2+k3]=p4+g2,E3[5+k3]=p4-g2,E3[3+k3]=m3+_3,E3[4+k3]=m3-_3):(w2=s2*E3[0+k3]+512>>10,E3[0+k3]=w2,E3[1+k3]=w2,E3[2+k3]=w2,E3[3+k3]=w2,E3[4+k3]=w2,E3[5+k3]=w2,E3[6+k3]=w2,E3[7+k3]=w2)}for(v3=0;v3<8;++v3){var S3=v3;E3[8+S3]!=0||E3[16+S3]!=0||E3[24+S3]!=0||E3[32+S3]!=0||E3[40+S3]!=0||E3[48+S3]!=0||E3[56+S3]!=0?(f4=s2*E3[0+S3]+2048>>12,d3=s2*E3[32+S3]+2048>>12,p4=E3[16+S3],m3=E3[48+S3],_3=l2*(E3[8+S3]-E3[56+S3])+2048>>12,y3=l2*(E3[8+S3]+E3[56+S3])+2048>>12,g2=E3[24+S3],b3=E3[40+S3],w2=f4-d3+1>>1,f4=f4+d3+1>>1,d3=w2,w2=p4*o2+m3*a2+2048>>12,p4=p4*a2-m3*o2+2048>>12,m3=w2,w2=_3-b3+1>>1,_3=_3+b3+1>>1,b3=w2,w2=y3+g2+1>>1,g2=y3-g2+1>>1,y3=w2,w2=f4-m3+1>>1,f4=f4+m3+1>>1,m3=w2,w2=d3-p4+1>>1,d3=d3+p4+1>>1,p4=w2,w2=_3*n2+y3*r2+2048>>12,_3=_3*r2-y3*n2+2048>>12,y3=w2,w2=g2*i2+b3*t2+2048>>12,g2=g2*t2-b3*i2+2048>>12,b3=w2,E3[0+S3]=f4+y3,E3[56+S3]=f4-y3,E3[8+S3]=d3+b3,E3[48+S3]=d3-b3,E3[16+S3]=p4+g2,E3[40+S3]=p4-g2,E3[24+S3]=m3+_3,E3[32+S3]=m3-_3):(w2=s2*c4[v3+0]+8192>>14,E3[0+S3]=w2,E3[8+S3]=w2,E3[16+S3]=w2,E3[24+S3]=w2,E3[32+S3]=w2,E3[40+S3]=w2,E3[48+S3]=w2,E3[56+S3]=w2)}for(v3=0;v3<64;++v3){var A2=128+(E3[v3]+8>>4);h4[v3]=A2<0?0:A2>255?255:A2}}_2(m2*p3*8);for(var w=0;w255?255:e5}u2.prototype={load:function(e5){var t3=new XMLHttpRequest;t3.open("GET",e5,!0),t3.responseType="arraybuffer",t3.onload=function(){var e6=new Uint8Array(t3.response||t3.mozResponseArrayBuffer);this.parse(e6),this.onload&&this.onload()}.bind(this),t3.send(null)},parse:function(t3){var i3=1e3*this.opts.maxResolutionInMP*1e3,r3=0;function n3(){var e5=t3[r3]<<8|t3[r3+1];return r3+=2,e5}function a3(e5){var t4,i4,r4=1,n4=1;for(i4 in e5.components)e5.components.hasOwnProperty(i4)&&(r4<(t4=e5.components[i4]).h&&(r4=t4.h),n4>4){if(S2>>4!=1)throw new Error("DQT: invalid table spec");for(q=0;q<64;q++)A2[e4[q]]=n3()}else for(q=0;q<64;q++)A2[e4[q]]=t3[r3++];m2[15&S2]=A2}break;case 65472:case 65473:case 65474:n3(),(o3={}).extended=w===65473,o3.progressive=w===65474,o3.precision=t3[r3++],o3.scanLines=n3(),o3.samplesPerLine=n3(),o3.components={},o3.componentsOrder=[];var I=o3.scanLines*o3.samplesPerLine;if(I>i3){var M2=Math.ceil((I-i3)/1e6);throw new Error(`maxResolutionInMP limit exceeded by ${M2}MP`)}var T2,P=t3[r3++];for(Q=0;Q>4,C2=15&t3[r3+1],R2=t3[r3+2];if(B2<=0||C2<=0)throw new Error("Invalid sampling factor, expected values above 0");o3.componentsOrder.push(T2),o3.components[T2]={h:B2,v:C2,quantizationIdx:R2},r3+=3}a3(o3),g.push(o3);break;case 65476:var z2=n3();for(Q=2;Q>4?b2:y2)[15&F]=h2(N2,D)}break;case 65501:n3(),s3=n3();break;case 65500:n3(),n3();break;case 65498:n3();var $=t3[r3++],L2=[];for(Q=0;Q<$;Q++){V=o3.components[t3[r3++]];var U=t3[r3++];V.huffmanTableDC=y2[U>>4],V.huffmanTableAC=b2[15&U],L2.push(V)}var Z=t3[r3++],j=t3[r3++],G=t3[r3++],H=c2(t3,r3,o3,L2,s3,Z,j,G>>4,15&G,this.opts);r3+=H;break;case 65535:t3[r3]!==255&&r3--;break;default:if(t3[r3-3]==255&&t3[r3-2]>=192&&t3[r3-2]<=254){r3-=3;break}if(w===224||w==225){if(v2!==-1)throw new Error(`first unknown JPEG marker at offset ${v2.toString(16)}, second unknown JPEG marker ${w.toString(16)} at offset ${(r3-1).toString(16)}`);v2=r3-1;let e5=n3();if(t3[r3+e5-2]===255){r3+=e5-2;break}}throw new Error("unknown JPEG marker "+w.toString(16))}w=n3()}if(g.length!=1)throw new Error("only single frame JPEGs supported");for(var Q=0;Qm){var i3=Math.ceil((t3-m)/1024/1024);throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${i3}MB`)}p2=t3}return u2.resetMaxMemoryUsage=function(e5){p2=0,m=e5},u2.getBytesAllocated=function(){return p2},u2.requestMemoryAllocation=_2,u2})(),module.exports=function(e4,t2={}){var i2={colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512,...t2},r2=new Uint8Array(e4),n2=new JpegImage;n2.opts=i2,JpegImage.resetMaxMemoryUsage(1024*i2.maxMemoryUsageInMB*1024),n2.parse(r2);var a2=i2.formatAsRGBA?4:3,o2=n2.width*n2.height*a2;try{JpegImage.requestMemoryAllocation(o2);var s2={width:n2.width,height:n2.height,exifBuffer:n2.exifBuffer,data:i2.useTArray?new Uint8Array(o2):Buffer2.alloc(o2)};n2.comments.length>0&&(s2.comments=n2.comments)}catch(e5){throw e5 instanceof RangeError?new Error("Could not allocate enough memory for the image. Required: "+o2):e5 instanceof ReferenceError&&e5.message==="Buffer is not defined"?new Error("Buffer is not globally defined in this environment. Consider setting useTArray to true"):e5}return n2.copyToImageData(s2,i2.formatAsRGBA),s2};var decoderExports=decoder.exports,encode=encoderExports,decode=decoderExports,jpegJs={encode,decode},JPEG=getDefaultExportFromCjs(jpegJs);function jpeg$2(){return{mime:"image/jpeg",encode:(e4,{quality:t2=100}={})=>JPEG.encode(e4,t2).data,decode:(e4,t2)=>JPEG.decode(e4,t2)}}function commonjsRequire(e4){throw new Error('Could not dynamically require "'+e4+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var browser$1={exports:{}};browser$1.exports=(function(){function e4(t2,i2,r2){function n2(o3,s2){if(!i2[o3]){if(!t2[o3]){var l2=typeof commonjsRequire=="function"&&commonjsRequire;if(!s2&&l2)return l2(o3,!0);if(a2)return a2(o3,!0);var u2=new Error("Cannot find module '"+o3+"'");throw u2.code="MODULE_NOT_FOUND",u2}var h2=i2[o3]={exports:{}};t2[o3][0].call(h2.exports,(function(e5){return n2(t2[o3][1][e5]||e5)}),h2,h2.exports,e4,t2,i2,r2)}return i2[o3].exports}for(var a2=typeof commonjsRequire=="function"&&commonjsRequire,o2=0;o2=t4.length)throw new Error("Ran out of data");let n3=t4[r3];e5[i3]=n3,e5[i3+1]=n3,e5[i3+2]=n3,e5[i3+3]=t4[r3+1]},function(e5,t4,i3,r3){if(r3+2>=t4.length)throw new Error("Ran out of data");e5[i3]=t4[r3],e5[i3+1]=t4[r3+1],e5[i3+2]=t4[r3+2],e5[i3+3]=255},function(e5,t4,i3,r3){if(r3+3>=t4.length)throw new Error("Ran out of data");e5[i3]=t4[r3],e5[i3+1]=t4[r3+1],e5[i3+2]=t4[r3+2],e5[i3+3]=t4[r3+3]}],a2=[function(){},function(e5,t4,i3,r3){let n3=t4[0];e5[i3]=n3,e5[i3+1]=n3,e5[i3+2]=n3,e5[i3+3]=r3},function(e5,t4,i3){let r3=t4[0];e5[i3]=r3,e5[i3+1]=r3,e5[i3+2]=r3,e5[i3+3]=t4[1]},function(e5,t4,i3,r3){e5[i3]=t4[0],e5[i3+1]=t4[1],e5[i3+2]=t4[2],e5[i3+3]=r3},function(e5,t4,i3){e5[i3]=t4[0],e5[i3+1]=t4[1],e5[i3+2]=t4[2],e5[i3+3]=t4[3]}];function o2(e5,t4){let i3=[],r3=0;function n3(){if(r3===e5.length)throw new Error("Ran out of data");let n4,a3,o3,s3,l3,u2,h2,c2,f2=e5[r3];switch(r3++,t4){default:throw new Error("unrecognised depth");case 16:h2=e5[r3],r3++,i3.push((f2<<8)+h2);break;case 4:h2=15&f2,c2=f2>>4,i3.push(c2,h2);break;case 2:l3=3&f2,u2=f2>>2&3,h2=f2>>4&3,c2=f2>>6&3,i3.push(c2,h2,u2,l3);break;case 1:n4=1&f2,a3=f2>>1&1,o3=f2>>2&1,s3=f2>>3&1,l3=f2>>4&1,u2=f2>>5&1,h2=f2>>6&1,c2=f2>>7&1,i3.push(c2,h2,u2,l3,s3,o3,a3,n4)}}return{get:function(e6){for(;i3.length0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o2.prototype.write=function(e5,t3){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let i4;return i4=r2.isBuffer(e5)?e5:r2.from(e5,t3||this._encoding),this._buffers.push(i4),this._buffered+=i4.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused},o2.prototype.end=function(e5,t3){e5&&this.write(e5,t3),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))},o2.prototype.destroySoon=o2.prototype.end,o2.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o2.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o2.prototype._processReadAllowingLess=function(e5){this._reads.shift();let t3=this._buffers[0];t3.length>e5.length?(this._buffered-=e5.length,this._buffers[0]=t3.slice(e5.length),e5.func.call(this,t3.slice(0,e5.length))):(this._buffered-=t3.length,this._buffers.shift(),e5.func.call(this,t3))},o2.prototype._processRead=function(e5){this._reads.shift();let t3=0,i4=0,n3=r2.alloc(e5.length);for(;t30&&this._buffers.splice(0,i4),this._buffered-=e5.length,e5.func.call(this,n3)},o2.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e5=this._reads[0];if(e5.allowLess)this._processReadAllowingLess(e5);else{if(!(this._buffered>=e5.length))break;this._processRead(e5)}}this._buffers&&!this.writable&&this._end()}catch(e5){this.emit("error",e5)}}}).call(this)}).call(this,e4("_process"),e4("buffer").Buffer)},{_process:63,buffer:32,stream:65,util:84}],4:[function(e4,t2,i2){t2.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],5:[function(e4,t2,i2){let r2=[];(function(){for(let e5=0;e5<256;e5++){let t3=e5;for(let e6=0;e6<8;e6++)1&t3?t3=3988292384^t3>>>1:t3>>>=1;r2[e5]=t3}})();let n2=t2.exports=function(){this._crc=-1};n2.prototype.write=function(e5){for(let t3=0;t3>>8;return!0},n2.prototype.crc32=function(){return~this._crc},n2.crc32=function(e5){let t3=-1;for(let i3=0;i3>>8;return~t3}},{}],6:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./paeth-predictor");function n2(e5,t3,i4,r3,n3){for(let a3=0;a3=a3?e5[t3+o3-a3]:0,s3=e5[t3+o3]-i5;r3[n3+o3]=s3}}function s2(e5,t3,i4,r3){let n3=0;for(let a3=0;a3=r3?e5[t3+a3-r3]:0,o3=e5[t3+a3]-i5;n3+=Math.abs(o3)}return n3}function l2(e5,t3,i4,r3,n3){for(let a3=0;a30?e5[t3+a3-i4]:0,s3=e5[t3+a3]-o3;r3[n3+a3]=s3}}function u2(e5,t3,i4){let r3=0,n3=t3+i4;for(let a3=t3;a30?e5[a3-i4]:0,o3=e5[a3]-n4;r3+=Math.abs(o3)}return r3}function h2(e5,t3,i4,r3,n3,a3){for(let o3=0;o3=a3?e5[t3+o3-a3]:0,l3=t3>0?e5[t3+o3-i4]:0,u3=e5[t3+o3]-(s3+l3>>1);r3[n3+o3]=u3}}function c2(e5,t3,i4,r3){let n3=0;for(let a3=0;a3=r3?e5[t3+a3-r3]:0,s3=t3>0?e5[t3+a3-i4]:0,l3=e5[t3+a3]-(o3+s3>>1);n3+=Math.abs(l3)}return n3}function f2(e5,t3,i4,n3,a3,o3){for(let s3=0;s3=o3?e5[t3+s3-o3]:0,u3=t3>0?e5[t3+s3-i4]:0,h3=t3>0&&s3>=o3?e5[t3+s3-(i4+o3)]:0,c3=e5[t3+s3]-r2(l3,u3,h3);n3[a3+s3]=c3}}function d(e5,t3,i4,n3){let a3=0;for(let o3=0;o3=n3?e5[t3+o3-n3]:0,l3=t3>0?e5[t3+o3-i4]:0,u3=t3>0&&o3>=n3?e5[t3+o3-(i4+n3)]:0,h3=e5[t3+o3]-r2(s3,l3,u3);a3+=Math.abs(h3)}return a3}let p2={0:n2,1:o2,2:l2,3:h2,4:f2},m={0:a2,1:s2,2:u2,3:c2,4:d};t2.exports=function(e5,t3,r3,n3,a3){let o3;if("filterType"in n3&&n3.filterType!==-1){if(typeof n3.filterType!="number")throw new Error("unrecognised filter types");o3=[n3.filterType]}else o3=[0,1,2,3,4];n3.bitDepth===16&&(a3*=2);let s3=t3*a3,l3=0,u3=0,h3=i3.alloc((s3+1)*r3),c3=o3[0];for(let t4=0;t41){let t5=1/0;for(let i4=0;i4n3?t3[a3-r3]:0;t3[a3]=i5+o3}},o2.prototype._unFilterType2=function(e5,t3,i4){let r3=this._lastLine;for(let n3=0;n3n3?t3[o3-r3]:0,u2=Math.floor((l2+s2)/2);t3[o3]=i5+u2}},o2.prototype._unFilterType4=function(e5,t3,i4){let r3=this._xComparison,a3=r3-1,o3=this._lastLine;for(let s2=0;s2a3?t3[s2-r3]:0,h2=s2>a3&&o3?o3[s2-r3]:0,c2=n2(u2,l2,h2);t3[s2]=i5+c2}},o2.prototype._reverseFilterLine=function(e5){let t3,r3=e5[0],n3=this._images[this._imageIndex],a3=n3.byteWidth;if(r3===0)t3=e5.slice(1,a3+1);else switch(t3=i3.alloc(a3),r3){case 1:this._unFilterType1(e5,t3,a3);break;case 2:this._unFilterType2(e5,t3,a3);break;case 3:this._unFilterType3(e5,t3,a3);break;case 4:this._unFilterType4(e5,t3,a3);break;default:throw new Error("Unrecognised filter type - "+r3)}this.write(t3),n3.lineIndex++,n3.lineIndex>=n3.height?(this._lastLine=null,this._imageIndex++,n3=this._images[this._imageIndex]):this._lastLine=t3,n3?this.read(n3.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this)}).call(this,e4("buffer").Buffer)},{"./interlace":11,"./paeth-predictor":15,buffer:32}],10:[function(e4,t2,i2){(function(e5){(function(){function i3(e6,t3,i4,r3,n3){let a2=0;for(let o2=0;o20&&u2>0&&i3.push({width:l2,height:u2,index:e6})}return i3},i2.getInterlaceIterator=function(e5){return function(t3,i3,n2){let a2=t3%r2[n2].x.length,o2=(t3-a2)/r2[n2].x.length*8+r2[n2].x[a2],s2=i3%r2[n2].y.length;return 4*o2+((i3-s2)/r2[n2].y.length*8+r2[n2].y[s2])*e5*4}}},{}],12:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("util"),n2=e4("stream"),a2=e4("./constants"),o2=e4("./packer"),s2=t2.exports=function(e5){n2.call(this);let t3=e5||{};this._packer=new o2(t3),this._deflate=this._packer.createDeflate(),this.readable=!0};r2.inherits(s2,n2),s2.prototype.pack=function(e5,t3,r3,n3){this.emit("data",i3.from(a2.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t3,r3)),n3&&this.emit("data",this._packer.packGAMA(n3));let o3=this._packer.filterData(e5,t3,r3);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(e6){this.emit("data",this._packer.packIDAT(e6))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(o3)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:32,stream:65,util:84}],13:[function(e4,t2,i2){(function(i3){(function(){let r2=!0,n2=e4("zlib");n2.deflateSync||(r2=!1);let a2=e4("./constants"),o2=e4("./packer");t2.exports=function(e5,t3){if(!r2)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let s2=new o2(t3||{}),l2=[];l2.push(i3.from(a2.PNG_SIGNATURE)),l2.push(s2.packIHDR(e5.width,e5.height)),e5.gamma&&l2.push(s2.packGAMA(e5.gamma));let u2=s2.filterData(e5.data,e5.width,e5.height),h2=n2.deflateSync(u2,s2.getDeflateOptions());if(u2=null,!h2||!h2.length)throw new Error("bad png - invalid compressed data response");return l2.push(s2.packIDAT(h2)),l2.push(s2.packIEND()),i3.concat(l2)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:32,zlib:31}],14:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./constants"),n2=e4("./crc"),a2=e4("./bitpacker"),o2=e4("./filter-pack"),s2=e4("zlib"),l2=t2.exports=function(e5){if(this._options=e5,e5.deflateChunkSize=e5.deflateChunkSize||32768,e5.deflateLevel=e5.deflateLevel!=null?e5.deflateLevel:9,e5.deflateStrategy=e5.deflateStrategy!=null?e5.deflateStrategy:3,e5.inputHasAlpha=e5.inputHasAlpha==null||e5.inputHasAlpha,e5.deflateFactory=e5.deflateFactory||s2.createDeflate,e5.bitDepth=e5.bitDepth||8,e5.colorType=typeof e5.colorType=="number"?e5.colorType:r2.COLORTYPE_COLOR_ALPHA,e5.inputColorType=typeof e5.inputColorType=="number"?e5.inputColorType:r2.COLORTYPE_COLOR_ALPHA,[r2.COLORTYPE_GRAYSCALE,r2.COLORTYPE_COLOR,r2.COLORTYPE_COLOR_ALPHA,r2.COLORTYPE_ALPHA].indexOf(e5.colorType)===-1)throw new Error("option color type:"+e5.colorType+" is not supported at present");if([r2.COLORTYPE_GRAYSCALE,r2.COLORTYPE_COLOR,r2.COLORTYPE_COLOR_ALPHA,r2.COLORTYPE_ALPHA].indexOf(e5.inputColorType)===-1)throw new Error("option input color type:"+e5.inputColorType+" is not supported at present");if(e5.bitDepth!==8&&e5.bitDepth!==16)throw new Error("option bit depth:"+e5.bitDepth+" is not supported at present")};l2.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},l2.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},l2.prototype.filterData=function(e5,t3,i4){let n3=a2(e5,t3,i4,this._options),s3=r2.COLORTYPE_TO_BPP_MAP[this._options.colorType];return o2(n3,t3,i4,this._options,s3)},l2.prototype._packChunk=function(e5,t3){let r3=t3?t3.length:0,a3=i3.alloc(r3+12);return a3.writeUInt32BE(r3,0),a3.writeUInt32BE(e5,4),t3&&t3.copy(a3,8),a3.writeInt32BE(n2.crc32(a3.slice(4,a3.length-4)),a3.length-4),a3},l2.prototype.packGAMA=function(e5){let t3=i3.alloc(4);return t3.writeUInt32BE(Math.floor(e5*r2.GAMMA_DIVISION),0),this._packChunk(r2.TYPE_gAMA,t3)},l2.prototype.packIHDR=function(e5,t3){let n3=i3.alloc(13);return n3.writeUInt32BE(e5,0),n3.writeUInt32BE(t3,4),n3[8]=this._options.bitDepth,n3[9]=this._options.colorType,n3[10]=0,n3[11]=0,n3[12]=0,this._packChunk(r2.TYPE_IHDR,n3)},l2.prototype.packIDAT=function(e5){return this._packChunk(r2.TYPE_IDAT,e5)},l2.prototype.packIEND=function(){return this._packChunk(r2.TYPE_IEND,null)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./bitpacker":2,"./constants":4,"./crc":5,"./filter-pack":6,buffer:32,zlib:31}],15:[function(e4,t2,i2){t2.exports=function(e5,t3,i3){let r2=e5+t3-i3,n2=Math.abs(r2-e5),a2=Math.abs(r2-t3),o2=Math.abs(r2-i3);return n2<=a2&&n2<=o2?e5:a2<=o2?t3:i3}},{}],16:[function(e4,t2,i2){let r2=e4("util"),n2=e4("zlib"),a2=e4("./chunkstream"),o2=e4("./filter-parse-async"),s2=e4("./parser"),l2=e4("./bitmapper"),u2=e4("./format-normaliser"),h2=t2.exports=function(e5){a2.call(this),this._parser=new s2(e5,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e5,this.writable=!0,this._parser.start()};r2.inherits(h2,a2),h2.prototype._handleError=function(e5){this.emit("error",e5),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",(function(){}))),this.errord=!0},h2.prototype._inflateData=function(e5){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=n2.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let e6=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,t3=Math.max(e6,n2.Z_MIN_CHUNK);this._inflate=n2.createInflate({chunkSize:t3});let i3=e6,r3=this.emit.bind(this,"error");this._inflate.on("error",(function(e7){i3&&r3(e7)})),this._filter.on("complete",this._complete.bind(this));let a3=this._filter.write.bind(this._filter);this._inflate.on("data",(function(e7){i3&&(e7.length>i3&&(e7=e7.slice(0,i3)),i3-=e7.length,a3(e7))})),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e5)},h2.prototype._handleMetaData=function(e5){this._metaData=e5,this._bitmapInfo=Object.create(e5),this._filter=new o2(this._bitmapInfo)},h2.prototype._handleTransColor=function(e5){this._bitmapInfo.transColor=e5},h2.prototype._handlePalette=function(e5){this._bitmapInfo.palette=e5},h2.prototype._simpleTransparency=function(){this._metaData.alpha=!0},h2.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},h2.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))},h2.prototype._complete=function(e5){if(this.errord)return;let t3;try{let i3=l2.dataToBitMap(e5,this._bitmapInfo);t3=u2(i3,this._bitmapInfo,this._options.skipRescale),i3=null}catch(e6){return void this._handleError(e6)}this.emit("parsed",t3)}},{"./bitmapper":1,"./chunkstream":3,"./filter-parse-async":7,"./format-normaliser":10,"./parser":18,util:84,zlib:31}],17:[function(e4,t2,i2){(function(i3){(function(){let r2=!0,n2=e4("zlib"),a2=e4("./sync-inflate");n2.deflateSync||(r2=!1);let o2=e4("./sync-reader"),s2=e4("./filter-parse-sync"),l2=e4("./parser"),u2=e4("./bitmapper"),h2=e4("./format-normaliser");t2.exports=function(e5,t3){if(!r2)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let c2,f2,d;function p2(e6){c2=e6}function m(e6){f2=e6}function _2(e6){f2.transColor=e6}function g(e6){f2.palette=e6}function b2(){f2.alpha=!0}function y2(e6){d=e6}let w=[];function v2(e6){w.push(e6)}let x2=new o2(e5);if(new l2(t3,{read:x2.read.bind(x2),error:p2,metadata:m,gamma:y2,palette:g,transColor:_2,inflateData:v2,simpleTransparency:b2}).start(),x2.process(),c2)throw c2;let E2,k2=i3.concat(w);if(w.length=0,f2.interlace)E2=n2.inflateSync(k2);else{let e6=(1+(f2.width*f2.bpp*f2.depth+7>>3))*f2.height;E2=a2(k2,{chunkSize:e6,maxLength:e6})}if(k2=null,!E2||!E2.length)throw new Error("bad png - invalid inflate data response");let S2=s2.process(E2,f2);k2=null;let A2=u2.dataToBitMap(S2,f2);S2=null;let I=h2(A2,f2,t3.skipRescale);return f2.data=I,f2.gamma=d||0,f2}}).call(this)}).call(this,e4("buffer").Buffer)},{"./bitmapper":1,"./filter-parse-sync":8,"./format-normaliser":10,"./parser":18,"./sync-inflate":21,"./sync-reader":22,buffer:32,zlib:31}],18:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./constants"),n2=e4("./crc"),a2=t2.exports=function(e5,t3){this._options=e5,e5.checkCRC=e5.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r2.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r2.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r2.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r2.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r2.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r2.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t3.read,this.error=t3.error,this.metadata=t3.metadata,this.gamma=t3.gamma,this.transColor=t3.transColor,this.palette=t3.palette,this.parsed=t3.parsed,this.inflateData=t3.inflateData,this.finished=t3.finished,this.simpleTransparency=t3.simpleTransparency,this.headersFinished=t3.headersFinished||function(){}};a2.prototype.start=function(){this.read(r2.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a2.prototype._parseSignature=function(e5){let t3=r2.PNG_SIGNATURE;for(let i4=0;i4this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(let t3=0;t30?this._handleIDAT(i4):this._handleChunkEnd()},a2.prototype._handleIEND=function(e5){this.read(e5,this._parseIEND.bind(this))},a2.prototype._parseIEND=function(e5){this._crc.write(e5),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./crc":5,buffer:32}],19:[function(e4,t2,i2){let r2=e4("./parser-sync"),n2=e4("./packer-sync");i2.read=function(e5,t3){return r2(e5,t3||{})},i2.write=function(e5,t3){return n2(e5,t3)}},{"./packer-sync":13,"./parser-sync":17}],20:[function(e4,t2,i2){(function(t3,r2){(function(){let n2=e4("util"),a2=e4("stream"),o2=e4("./parser-async"),s2=e4("./packer-async"),l2=e4("./png-sync"),u2=i2.PNG=function(e5){a2.call(this),e5=e5||{},this.width=0|e5.width,this.height=0|e5.height,this.data=this.width>0&&this.height>0?r2.alloc(4*this.width*this.height):null,e5.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o2(e5),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(e6){this.data=e6,this.emit("parsed",e6)}.bind(this)),this._packer=new s2(e5),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};n2.inherits(u2,a2),u2.sync=l2,u2.prototype.pack=function(){return this.data&&this.data.length?(t3.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},u2.prototype.parse=function(e5,t4){if(t4){let e6,i3;e6=function(e7){this.removeListener("error",i3),this.data=e7,t4(null,this)}.bind(this),i3=function(i4){this.removeListener("parsed",e6),t4(i4,null)}.bind(this),this.once("parsed",e6),this.once("error",i3)}return this.end(e5),this},u2.prototype.write=function(e5){return this._parser.write(e5),!0},u2.prototype.end=function(e5){this._parser.end(e5)},u2.prototype._metadata=function(e5){this.width=e5.width,this.height=e5.height,this.emit("metadata",e5)},u2.prototype._gamma=function(e5){this.gamma=e5},u2.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},u2.bitblt=function(e5,t4,i3,r3,n3,a3,o3,s3){if(r3|=0,n3|=0,a3|=0,o3|=0,s3|=0,(i3|=0)>e5.width||r3>e5.height||i3+n3>e5.width||r3+a3>e5.height)throw new Error("bitblt reading outside image");if(o3>t4.width||s3>t4.height||o3+n3>t4.width||s3+a3>t4.height)throw new Error("bitblt writing outside image");for(let l3=0;l3=0,"have should not go down"),i4>0){let e7=u3._buffer.slice(u3._offset,u3._offset+i4);if(u3._offset+=i4,e7.length>d&&(e7=e7.slice(0,d)),m.push(e7),_2+=e7.length,d-=e7.length,d===0)return!1}return(t4===0||u3._offset>=u3._chunkSize)&&(f3=u3._chunkSize,u3._offset=0,u3._buffer=n2.allocUnsafe(u3._chunkSize)),t4===0&&(p2+=c3-e6,c3=e6,!0)}this.on("error",(function(e6){o3=e6})),r3(this._handle,"zlib binding closed");do l3=this._handle.writeSync(t3,e5,p2,c3,this._buffer,this._offset,f3),l3=l3||this._writeState;while(!this._hadError&&g(l3[0],l3[1]));if(this._hadError)throw o3;if(_2>=s2)throw h2(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+s2.toString(16)+" bytes");let b2=n2.concat(m,_2);return h2(this),b2},o2.inherits(l2,a2.Inflate),t2.exports=i2=f2,i2.Inflate=l2,i2.createInflate=u2,i2.inflateSync=f2}).call(this)}).call(this,e4("_process"),e4("buffer").Buffer)},{_process:63,assert:23,buffer:32,util:84,zlib:31}],22:[function(e4,t2,i2){let r2=t2.exports=function(e5){this._buffer=e5,this._reads=[]};r2.prototype.read=function(e5,t3){this._reads.push({length:Math.abs(e5),allowLess:e5<0,func:t3})},r2.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e5=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=e5.length||e5.allowLess))break;{this._reads.shift();let t3=this._buffer;this._buffer=t3.slice(e5.length),e5.func.call(this,t3.slice(0,e5.length))}}if(this._reads.length>0)throw new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw new Error("unrecognised content at end of stream")}},{}],23:[function(e4,t2,i2){(function(i3){(function(){var r2=e4("object-assign");function n2(e5,t3){if(e5===t3)return 0;for(var i4=e5.length,r3=t3.length,n3=0,a3=Math.min(i4,r3);n3=0;u3--)if(h3[u3]!==c3[u3])return!1;for(u3=h3.length-1;u3>=0;u3--)if(!w(e5[s3=h3[u3]],t3[s3],i4,r3))return!1;return!0}function E2(e5,t3,i4){w(e5,t3,!0)&&b2(e5,t3,i4,"notDeepStrictEqual",E2)}function k2(e5,t3){if(!e5||!t3)return!1;if(Object.prototype.toString.call(t3)=="[object RegExp]")return t3.test(e5);try{if(e5 instanceof t3)return!0}catch{}return!Error.isPrototypeOf(t3)&&t3.call({},e5)===!0}function S2(e5){var t3;try{e5()}catch(e6){t3=e6}return t3}function A2(e5,t3,i4,r3){var n3;if(typeof t3!="function")throw new TypeError('"block" argument must be a function');typeof i4=="string"&&(r3=i4,i4=null),n3=S2(t3),r3=(i4&&i4.name?" ("+i4.name+").":".")+(r3?" "+r3:"."),e5&&!n3&&b2(n3,i4,"Missing expected exception"+r3);var a3=typeof r3=="string",s3=!e5&&n3&&!i4;if((!e5&&o2.isError(n3)&&a3&&k2(n3,i4)||s3)&&b2(n3,i4,"Got unwanted exception"+r3),e5&&n3&&i4&&!k2(n3,i4)||!e5&&n3)throw n3}function I(e5,t3){e5||b2(e5,!0,t3,"==",I)}f2.AssertionError=function(e5){this.name="AssertionError",this.actual=e5.actual,this.expected=e5.expected,this.operator=e5.operator,e5.message?(this.message=e5.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var t3=e5.stackStartFunction||b2;if(Error.captureStackTrace)Error.captureStackTrace(this,t3);else{var i4=new Error;if(i4.stack){var r3=i4.stack,n3=p2(t3),a3=r3.indexOf(` + <%s key={someKey} {...props} />`,beforeExample,componentName,afterExample,componentName),didWarnAboutKeySpread[componentName+beforeExample]=!0}}return type===REACT_FRAGMENT_TYPE?validateFragmentProps(element):validatePropTypes(element),element}}function jsxWithValidationStatic(type,props,key){return jsxWithValidation(type,props,key,!0)}function jsxWithValidationDynamic(type,props,key){return jsxWithValidation(type,props,key,!1)}var jsx=jsxWithValidationDynamic,jsxs=jsxWithValidationStatic;exports.Fragment=REACT_FRAGMENT_TYPE,exports.jsx=jsx,exports.jsxs=jsxs})()}});var require_jsx_runtime=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/react@18.3.1/node_modules/react/jsx-runtime.js"(exports,module2){"use strict";module2.exports=require_react_jsx_runtime_development()}});var require_base64_js=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/base64-js@1.5.1/node_modules/base64-js/index.js"(exports){"use strict";exports.byteLength=byteLength3;exports.toByteArray=toByteArray2;exports.fromByteArray=fromByteArray2;var lookup4=[],revLookup2=[],Arr2=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i2=0,len=code.length;i20)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength3(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray2(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr2(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i3;for(i3=0;i3>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup2[b64.charCodeAt(i3)]<<2|revLookup2[b64.charCodeAt(i3+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup2[b64.charCodeAt(i3)]<<10|revLookup2[b64.charCodeAt(i3+1)]<<4|revLookup2[b64.charCodeAt(i3+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase642(num){return lookup4[num>>18&63]+lookup4[num>>12&63]+lookup4[num>>6&63]+lookup4[num&63]}function encodeChunk2(uint8,start,end){for(var tmp,output=[],i3=start;i3len22?len22:i3+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts2.push(lookup4[tmp>>2]+lookup4[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts2.push(lookup4[tmp>>10]+lookup4[tmp>>4&63]+lookup4[tmp<<2&63]+"=")),parts2.join("")}}});var require_ieee754=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/ieee754@1.2.1/node_modules/ieee754/index.js"(exports){"use strict";exports.read=function(buffer,offset,isLE,mLen,nBytes){var e4,m,eLen=nBytes*8-mLen-1,eMax=(1<>1,nBits=-7,i2=isLE?nBytes-1:0,d=isLE?-1:1,s2=buffer[offset+i2];for(i2+=d,e4=s2&(1<<-nBits)-1,s2>>=-nBits,nBits+=eLen;nBits>0;e4=e4*256+buffer[offset+i2],i2+=d,nBits-=8);for(m=e4&(1<<-nBits)-1,e4>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i2],i2+=d,nBits-=8);if(e4===0)e4=1-eBias;else{if(e4===eMax)return m?NaN:(s2?-1:1)*(1/0);m=m+Math.pow(2,mLen),e4=e4-eBias}return(s2?-1:1)*m*Math.pow(2,e4-mLen)};exports.write=function(buffer,value2,offset,isLE,mLen,nBytes){var e4,m,c2,eLen=nBytes*8-mLen-1,eMax=(1<>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i2=isLE?0:nBytes-1,d=isLE?1:-1,s2=value2<0||value2===0&&1/value2<0?1:0;for(value2=Math.abs(value2),isNaN(value2)||value2===1/0?(m=isNaN(value2)?1:0,e4=eMax):(e4=Math.floor(Math.log(value2)/Math.LN2),value2*(c2=Math.pow(2,-e4))<1&&(e4--,c2*=2),e4+eBias>=1?value2+=rt/c2:value2+=rt*Math.pow(2,1-eBias),value2*c2>=2&&(e4++,c2/=2),e4+eBias>=eMax?(m=0,e4=eMax):e4+eBias>=1?(m=(value2*c2-1)*Math.pow(2,mLen),e4=e4+eBias):(m=value2*Math.pow(2,eBias-1)*Math.pow(2,mLen),e4=0));mLen>=8;buffer[offset+i2]=m&255,i2+=d,m/=256,mLen-=8);for(e4=e4<0;buffer[offset+i2]=e4&255,i2+=d,e4/=256,eLen-=8);buffer[offset+i2-d]|=s2*128}}});var require_buffer=__commonJS({"../../../../../../../data/workspace/pnpm/virtual/buffer@6.0.3/node_modules/buffer/index.js"(exports){"use strict";var base64=require_base64_js(),ieee7542=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports.Buffer=Buffer4;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer4.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer4.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{let arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer4.prototype,"parent",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer4.prototype,"offset",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.byteOffset}});function createBuffer2(length){if(length>K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');let buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer4.prototype),buf}function Buffer4(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe2(arg)}return from2(arg,encodingOrOffset,length)}Buffer4.poolSize=8192;function from2(value2,encodingOrOffset,length){if(typeof value2=="string")return fromString2(value2,encodingOrOffset);if(ArrayBuffer.isView(value2))return fromArrayView(value2);if(value2==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value2);if(isInstance(value2,ArrayBuffer)||value2&&isInstance(value2.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value2,SharedArrayBuffer)||value2&&isInstance(value2.buffer,SharedArrayBuffer)))return fromArrayBuffer2(value2,encodingOrOffset,length);if(typeof value2=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let valueOf=value2.valueOf&&value2.valueOf();if(valueOf!=null&&valueOf!==value2)return Buffer4.from(valueOf,encodingOrOffset,length);let b2=fromObject2(value2);if(b2)return b2;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value2[Symbol.toPrimitive]=="function")return Buffer4.from(value2[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value2)}Buffer4.from=function(value2,encodingOrOffset,length){return from2(value2,encodingOrOffset,length)};Object.setPrototypeOf(Buffer4.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer4,Uint8Array);function assertSize2(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc2(size,fill,encoding){return assertSize2(size),size<=0?createBuffer2(size):fill!==void 0?typeof encoding=="string"?createBuffer2(size).fill(fill,encoding):createBuffer2(size).fill(fill):createBuffer2(size)}Buffer4.alloc=function(size,fill,encoding){return alloc2(size,fill,encoding)};function allocUnsafe2(size){return assertSize2(size),createBuffer2(size<0?0:checked2(size)|0)}Buffer4.allocUnsafe=function(size){return allocUnsafe2(size)};Buffer4.allocUnsafeSlow=function(size){return allocUnsafe2(size)};function fromString2(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer4.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);let length=byteLength3(string,encoding)|0,buf=createBuffer2(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike2(array){let length=array.length<0?0:checked2(array.length)|0,buf=createBuffer2(length);for(let i2=0;i2=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer4.alloc(+length)}Buffer4.isBuffer=function(b2){return b2!=null&&b2._isBuffer===!0&&b2!==Buffer4.prototype};Buffer4.compare=function(a2,b2){if(isInstance(a2,Uint8Array)&&(a2=Buffer4.from(a2,a2.offset,a2.byteLength)),isInstance(b2,Uint8Array)&&(b2=Buffer4.from(b2,b2.offset,b2.byteLength)),!Buffer4.isBuffer(a2)||!Buffer4.isBuffer(b2))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a2===b2)return 0;let x2=a2.length,y2=b2.length;for(let i2=0,len=Math.min(x2,y2);i2buffer.length?(Buffer4.isBuffer(buf)||(buf=Buffer4.from(buf)),buf.copy(buffer,pos)):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer4.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength3(string,encoding){if(Buffer4.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);let len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;let loweredCase=!1;for(;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes2(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes2(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes2(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer4.byteLength=byteLength3;function slowToString2(encoding,start,end){let loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice2(this,start,end);case"utf8":case"utf-8":return utf8Slice2(this,start,end);case"ascii":return asciiSlice2(this,start,end);case"latin1":case"binary":return latin1Slice2(this,start,end);case"base64":return base64Slice2(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice2(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer4.prototype._isBuffer=!0;function swap2(b2,n2,m){let i2=b2[n2];b2[n2]=b2[m],b2[m]=i2}Buffer4.prototype.swap16=function(){let len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i2=0;i2max&&(str+=" ... "),""};customInspectSymbol&&(Buffer4.prototype[customInspectSymbol]=Buffer4.prototype.inspect);Buffer4.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer4.from(target,target.offset,target.byteLength)),!Buffer4.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;let x2=thisEnd-thisStart,y2=end-start,len=Math.min(x2,y2),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end);for(let i2=0;i22147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer4.from(val,encoding)),Buffer4.isBuffer(val))return val.length===0?-1:arrayIndexOf2(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf2(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf2(arr,val,byteOffset,encoding,dir){let indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read2(buf,i3){return indexSize===1?buf[i3]:buf.readUInt16BE(i3*indexSize)}let i2;if(dir){let foundIndex=-1;for(i2=byteOffset;i2arrLength&&(byteOffset=arrLength-valLength),i2=byteOffset;i2>=0;i2--){let found=!0;for(let j=0;jremaining&&(length=remaining)):length=remaining;let strLen=string.length;length>strLen/2&&(length=strLen/2);let i2;for(i2=0;i2>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");let loweredCase=!1;for(;;)switch(encoding){case"hex":return hexWrite2(this,string,offset,length);case"utf8":case"utf-8":return utf8Write2(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite2(this,string,offset,length);case"base64":return base64Write2(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write2(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer4.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice2(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice2(buf,start,end){end=Math.min(buf.length,end);let res=[],i2=start;for(;i2239?4:firstByte>223?3:firstByte>191?2:1;if(i2+bytesPerSequence<=end){let secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i2+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i2+1],thirdByte=buf[i2+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i2+1],thirdByte=buf[i2+2],fourthByte=buf[i2+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i2+=bytesPerSequence}return decodeCodePointsArray2(res)}var MAX_ARGUMENTS_LENGTH2=4096;function decodeCodePointsArray2(codePoints){let len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH2)return String.fromCharCode.apply(String,codePoints);let res="",i2=0;for(;i2len)&&(end=len);let out="";for(let i2=start;i2len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),endlength)throw new RangeError("Trying to access beyond buffer length")}Buffer4.prototype.readUintLE=Buffer4.prototype.readUIntLE=function(offset,byteLength4,noAssert){offset=offset>>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset],mul=1,i2=0;for(;++i2>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset+--byteLength4],mul=1;for(;byteLength4>0&&(mul*=256);)val+=this[offset+--byteLength4]*mul;return val};Buffer4.prototype.readUint8=Buffer4.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,1,this.length),this[offset]};Buffer4.prototype.readUint16LE=Buffer4.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer4.prototype.readUint16BE=Buffer4.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer4.prototype.readUint32LE=Buffer4.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer4.prototype.readUint32BE=Buffer4.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer4.prototype.readBigUInt64LE=defineBigIntMethod(function(offset){offset=offset>>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let lo=first+this[++offset]*2**8+this[++offset]*2**16+this[++offset]*2**24,hi=this[++offset]+this[++offset]*2**8+this[++offset]*2**16+last*2**24;return BigInt(lo)+(BigInt(hi)<>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let hi=first*2**24+this[++offset]*2**16+this[++offset]*2**8+this[++offset],lo=this[++offset]*2**24+this[++offset]*2**16+this[++offset]*2**8+last;return(BigInt(hi)<>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let val=this[offset],mul=1,i2=0;for(;++i2=mul&&(val-=Math.pow(2,8*byteLength4)),val};Buffer4.prototype.readIntBE=function(offset,byteLength4,noAssert){offset=offset>>>0,byteLength4=byteLength4>>>0,noAssert||checkOffset2(offset,byteLength4,this.length);let i2=byteLength4,mul=1,val=this[offset+--i2];for(;i2>0&&(mul*=256);)val+=this[offset+--i2]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength4)),val};Buffer4.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer4.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length);let val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset2(offset,2,this.length);let val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer4.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer4.prototype.readBigInt64LE=defineBigIntMethod(function(offset){offset=offset>>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let val=this[offset+4]+this[offset+5]*2**8+this[offset+6]*2**16+(last<<24);return(BigInt(val)<>>0,validateNumber(offset,"offset");let first=this[offset],last=this[offset+7];(first===void 0||last===void 0)&&boundsError(offset,this.length-8);let val=(first<<24)+this[++offset]*2**16+this[++offset]*2**8+this[++offset];return(BigInt(val)<>>0,noAssert||checkOffset2(offset,4,this.length),ieee7542.read(this,offset,!0,23,4)};Buffer4.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,4,this.length),ieee7542.read(this,offset,!1,23,4)};Buffer4.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,8,this.length),ieee7542.read(this,offset,!0,52,8)};Buffer4.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset2(offset,8,this.length),ieee7542.read(this,offset,!1,52,8)};function checkInt2(buf,value2,offset,ext,max,min){if(!Buffer4.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value2>max||value2buf.length)throw new RangeError("Index out of range")}Buffer4.prototype.writeUintLE=Buffer4.prototype.writeUIntLE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,byteLength4=byteLength4>>>0,!noAssert){let maxBytes=Math.pow(2,8*byteLength4)-1;checkInt2(this,value2,offset,byteLength4,maxBytes,0)}let mul=1,i2=0;for(this[offset]=value2&255;++i2>>0,byteLength4=byteLength4>>>0,!noAssert){let maxBytes=Math.pow(2,8*byteLength4)-1;checkInt2(this,value2,offset,byteLength4,maxBytes,0)}let i2=byteLength4-1,mul=1;for(this[offset+i2]=value2&255;--i2>=0&&(mul*=256);)this[offset+i2]=value2/mul&255;return offset+byteLength4};Buffer4.prototype.writeUint8=Buffer4.prototype.writeUInt8=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,1,255,0),this[offset]=value2&255,offset+1};Buffer4.prototype.writeUint16LE=Buffer4.prototype.writeUInt16LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,65535,0),this[offset]=value2&255,this[offset+1]=value2>>>8,offset+2};Buffer4.prototype.writeUint16BE=Buffer4.prototype.writeUInt16BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,65535,0),this[offset]=value2>>>8,this[offset+1]=value2&255,offset+2};Buffer4.prototype.writeUint32LE=Buffer4.prototype.writeUInt32LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,4294967295,0),this[offset+3]=value2>>>24,this[offset+2]=value2>>>16,this[offset+1]=value2>>>8,this[offset]=value2&255,offset+4};Buffer4.prototype.writeUint32BE=Buffer4.prototype.writeUInt32BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,4294967295,0),this[offset]=value2>>>24,this[offset+1]=value2>>>16,this[offset+2]=value2>>>8,this[offset+3]=value2&255,offset+4};function wrtBigUInt64LE(buf,value2,offset,min,max){checkIntBI(value2,min,max,buf,offset,7);let lo=Number(value2&BigInt(4294967295));buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo,lo=lo>>8,buf[offset++]=lo;let hi=Number(value2>>BigInt(32)&BigInt(4294967295));return buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,hi=hi>>8,buf[offset++]=hi,offset}function wrtBigUInt64BE(buf,value2,offset,min,max){checkIntBI(value2,min,max,buf,offset,7);let lo=Number(value2&BigInt(4294967295));buf[offset+7]=lo,lo=lo>>8,buf[offset+6]=lo,lo=lo>>8,buf[offset+5]=lo,lo=lo>>8,buf[offset+4]=lo;let hi=Number(value2>>BigInt(32)&BigInt(4294967295));return buf[offset+3]=hi,hi=hi>>8,buf[offset+2]=hi,hi=hi>>8,buf[offset+1]=hi,hi=hi>>8,buf[offset]=hi,offset+8}Buffer4.prototype.writeBigUInt64LE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64LE(this,value2,offset,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer4.prototype.writeBigUInt64BE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64BE(this,value2,offset,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer4.prototype.writeIntLE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,!noAssert){let limit=Math.pow(2,8*byteLength4-1);checkInt2(this,value2,offset,byteLength4,limit-1,-limit)}let i2=0,mul=1,sub=0;for(this[offset]=value2&255;++i2>0)-sub&255;return offset+byteLength4};Buffer4.prototype.writeIntBE=function(value2,offset,byteLength4,noAssert){if(value2=+value2,offset=offset>>>0,!noAssert){let limit=Math.pow(2,8*byteLength4-1);checkInt2(this,value2,offset,byteLength4,limit-1,-limit)}let i2=byteLength4-1,mul=1,sub=0;for(this[offset+i2]=value2&255;--i2>=0&&(mul*=256);)value2<0&&sub===0&&this[offset+i2+1]!==0&&(sub=1),this[offset+i2]=(value2/mul>>0)-sub&255;return offset+byteLength4};Buffer4.prototype.writeInt8=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,1,127,-128),value2<0&&(value2=255+value2+1),this[offset]=value2&255,offset+1};Buffer4.prototype.writeInt16LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,32767,-32768),this[offset]=value2&255,this[offset+1]=value2>>>8,offset+2};Buffer4.prototype.writeInt16BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,2,32767,-32768),this[offset]=value2>>>8,this[offset+1]=value2&255,offset+2};Buffer4.prototype.writeInt32LE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,2147483647,-2147483648),this[offset]=value2&255,this[offset+1]=value2>>>8,this[offset+2]=value2>>>16,this[offset+3]=value2>>>24,offset+4};Buffer4.prototype.writeInt32BE=function(value2,offset,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkInt2(this,value2,offset,4,2147483647,-2147483648),value2<0&&(value2=4294967295+value2+1),this[offset]=value2>>>24,this[offset+1]=value2>>>16,this[offset+2]=value2>>>8,this[offset+3]=value2&255,offset+4};Buffer4.prototype.writeBigInt64LE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64LE(this,value2,offset,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Buffer4.prototype.writeBigInt64BE=defineBigIntMethod(function(value2,offset=0){return wrtBigUInt64BE(this,value2,offset,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function checkIEEE7542(buf,value2,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat2(buf,value2,offset,littleEndian,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkIEEE7542(buf,value2,offset,4,34028234663852886e22,-34028234663852886e22),ieee7542.write(buf,value2,offset,littleEndian,23,4),offset+4}Buffer4.prototype.writeFloatLE=function(value2,offset,noAssert){return writeFloat2(this,value2,offset,!0,noAssert)};Buffer4.prototype.writeFloatBE=function(value2,offset,noAssert){return writeFloat2(this,value2,offset,!1,noAssert)};function writeDouble2(buf,value2,offset,littleEndian,noAssert){return value2=+value2,offset=offset>>>0,noAssert||checkIEEE7542(buf,value2,offset,8,17976931348623157e292,-17976931348623157e292),ieee7542.write(buf,value2,offset,littleEndian,52,8),offset+8}Buffer4.prototype.writeDoubleLE=function(value2,offset,noAssert){return writeDouble2(this,value2,offset,!0,noAssert)};Buffer4.prototype.writeDoubleBE=function(value2,offset,noAssert){return writeDouble2(this,value2,offset,!1,noAssert)};Buffer4.prototype.copy=function(target,targetStart,start,end){if(!Buffer4.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart>>0,end=end===void 0?this.length:end>>>0,val||(val=0);let i2;if(typeof val=="number")for(i2=start;i22**32?received=addNumericalSeparator(String(input)):typeof input=="bigint"&&(received=String(input),(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32)))&&(received=addNumericalSeparator(received)),received+="n"),msg+=` It must be ${range}. Received ${received}`,msg},RangeError);function addNumericalSeparator(val){let res="",i2=val.length,start=val[0]==="-"?1:0;for(;i2>=start+4;i2-=3)res=`_${val.slice(i2-3,i2)}${res}`;return`${val.slice(0,i2)}${res}`}function checkBounds(buf,offset,byteLength4){validateNumber(offset,"offset"),(buf[offset]===void 0||buf[offset+byteLength4]===void 0)&&boundsError(offset,buf.length-(byteLength4+1))}function checkIntBI(value2,min,max,buf,offset,byteLength4){if(value2>max||value23?min===0||min===BigInt(0)?range=`>= 0${n2} and < 2${n2} ** ${(byteLength4+1)*8}${n2}`:range=`>= -(2${n2} ** ${(byteLength4+1)*8-1}${n2}) and < 2 ** ${(byteLength4+1)*8-1}${n2}`:range=`>= ${min}${n2} and <= ${max}${n2}`,new errors.ERR_OUT_OF_RANGE("value",range,value2)}checkBounds(buf,offset,byteLength4)}function validateNumber(value2,name){if(typeof value2!="number")throw new errors.ERR_INVALID_ARG_TYPE(name,"number",value2)}function boundsError(value2,length,type){throw Math.floor(value2)!==value2?(validateNumber(value2,type),new errors.ERR_OUT_OF_RANGE(type||"offset","an integer",value2)):length<0?new errors.ERR_BUFFER_OUT_OF_BOUNDS:new errors.ERR_OUT_OF_RANGE(type||"offset",`>= ${type?1:0} and <= ${length}`,value2)}var INVALID_BASE64_RE2=/[^+/0-9A-Za-z-_]/g;function base64clean2(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE2,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes2(string,units){units=units||1/0;let codePoint,length=string.length,leadSurrogate=null,bytes=[];for(let i2=0;i255295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i2+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes2(str){let byteArray=[];for(let i2=0;i2>8,lo=c2%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes2(str){return base64.toByteArray(base64clean2(str))}function blitBuffer2(src2,dst,offset,length){let i2;for(i2=0;i2=dst.length||i2>=src2.length);++i2)dst[i2+offset]=src2[i2];return i2}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=(function(){let alphabet2="0123456789abcdef",table=new Array(256);for(let i2=0;i2<16;++i2){let i16=i2*16;for(let j=0;j<16;++j)table[i16+j]=alphabet2[i2]+alphabet2[j]}return table})();function defineBigIntMethod(fn){return typeof BigInt>"u"?BufferBigIntNotDefined:fn}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}}});var browser_exports={};__export(browser_exports,{BlendMode:()=>BlendMode,BmpCompression:()=>BmpCompression,HorizontalAlign:()=>HorizontalAlign,Jimp:()=>Jimp,JimpMime:()=>JimpMime,PNGColorType:()=>PNGColorType,PNGFilterType:()=>PNGFilterType,ResizeStrategy:()=>ResizeStrategy,VerticalAlign:()=>VerticalAlign,colorDiff:()=>colorDiff,compareHashes:()=>compareHashes,cssColorToHex:()=>cssColorToHex,defaultFormats:()=>defaultFormats,defaultPlugins:()=>defaultPlugins,diff:()=>diff,distance:()=>distance,intToRGBA:()=>intToRGBA$1,limit255:()=>limit255,loadFont:()=>loadFont,measureText:()=>measureText,measureTextHeight:()=>measureTextHeight,rgbaToInt:()=>rgbaToInt});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e4){return e4&&e4.__esModule&&Object.prototype.hasOwnProperty.call(e4,"default")?e4.default:e4}function getAugmentedNamespace(e4){if(e4.__esModule)return e4;var t2=e4.default;if(typeof t2=="function"){var i2=function e5(){return this instanceof e5?Reflect.construct(t2,arguments,this.constructor):t2.apply(this,arguments)};i2.prototype=t2.prototype}else i2={};return Object.defineProperty(i2,"__esModule",{value:!0}),Object.keys(e4).forEach((function(t3){var r2=Object.getOwnPropertyDescriptor(e4,t3);Object.defineProperty(i2,t3,r2.get?r2:{enumerable:!0,get:function(){return e4[t3]}})})),i2}typeof self>"u"&&typeof commonjsGlobal=="object"&&(commonjsGlobal.self=commonjsGlobal);var global$1=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,inited=!1;function init(){inited=!0;for(var e4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t2=0;t2<64;++t2)lookup[t2]=e4[t2],revLookup[e4.charCodeAt(t2)]=t2;revLookup[45]=62,revLookup[95]=63}function toByteArray(e4){var t2,i2,r2,n2,a2,o2;inited||init();var s2=e4.length;if(s2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a2=e4[s2-2]==="="?2:e4[s2-1]==="="?1:0,o2=new Arr(3*s2/4-a2),r2=a2>0?s2-4:s2;var l2=0;for(t2=0,i2=0;t2>16&255,o2[l2++]=n2>>8&255,o2[l2++]=255&n2;return a2===2?(n2=revLookup[e4.charCodeAt(t2)]<<2|revLookup[e4.charCodeAt(t2+1)]>>4,o2[l2++]=255&n2):a2===1&&(n2=revLookup[e4.charCodeAt(t2)]<<10|revLookup[e4.charCodeAt(t2+1)]<<4|revLookup[e4.charCodeAt(t2+2)]>>2,o2[l2++]=n2>>8&255,o2[l2++]=255&n2),o2}function tripletToBase64(e4){return lookup[e4>>18&63]+lookup[e4>>12&63]+lookup[e4>>6&63]+lookup[63&e4]}function encodeChunk(e4,t2,i2){for(var r2,n2=[],a2=t2;a2l2?l2:s2+o2));return r2===1?(t2=e4[i2-1],n2+=lookup[t2>>2],n2+=lookup[t2<<4&63],n2+="=="):r2===2&&(t2=(e4[i2-2]<<8)+e4[i2-1],n2+=lookup[t2>>10],n2+=lookup[t2>>4&63],n2+=lookup[t2<<2&63],n2+="="),a2.push(n2),a2.join("")}function read(e4,t2,i2,r2,n2){var a2,o2,s2=8*n2-r2-1,l2=(1<>1,h2=-7,c2=i2?n2-1:0,f2=i2?-1:1,d=e4[t2+c2];for(c2+=f2,a2=d&(1<<-h2)-1,d>>=-h2,h2+=s2;h2>0;a2=256*a2+e4[t2+c2],c2+=f2,h2-=8);for(o2=a2&(1<<-h2)-1,a2>>=-h2,h2+=r2;h2>0;o2=256*o2+e4[t2+c2],c2+=f2,h2-=8);if(a2===0)a2=1-u2;else{if(a2===l2)return o2?NaN:1/0*(d?-1:1);o2+=Math.pow(2,r2),a2-=u2}return(d?-1:1)*o2*Math.pow(2,a2-r2)}function write(e4,t2,i2,r2,n2,a2){var o2,s2,l2,u2=8*a2-n2-1,h2=(1<>1,f2=n2===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r2?0:a2-1,p2=r2?1:-1,m=t2<0||t2===0&&1/t2<0?1:0;for(t2=Math.abs(t2),isNaN(t2)||t2===1/0?(s2=isNaN(t2)?1:0,o2=h2):(o2=Math.floor(Math.log(t2)/Math.LN2),t2*(l2=Math.pow(2,-o2))<1&&(o2--,l2*=2),(t2+=o2+c2>=1?f2/l2:f2*Math.pow(2,1-c2))*l2>=2&&(o2++,l2/=2),o2+c2>=h2?(s2=0,o2=h2):o2+c2>=1?(s2=(t2*l2-1)*Math.pow(2,n2),o2+=c2):(s2=t2*Math.pow(2,c2-1)*Math.pow(2,n2),o2=0));n2>=8;e4[i2+d]=255&s2,d+=p2,s2/=256,n2-=8);for(o2=o2<0;e4[i2+d]=255&o2,d+=p2,o2/=256,u2-=8);e4[i2+d-p2]|=128*m}var toString={}.toString,isArray=Array.isArray||function(e4){return toString.call(e4)=="[object Array]"},INSPECT_MAX_BYTES=50;function kMaxLength(){return Buffer2.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e4,t2){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e4}function internalIsBuffer(e4){return!(e4==null||!e4._isBuffer)}function byteLength(e4,t2){if(internalIsBuffer(e4))return e4.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e4)||e4 instanceof ArrayBuffer))return e4.byteLength;typeof e4!="string"&&(e4=""+e4);var i2=e4.length;if(i2===0)return 0;for(var r2=!1;;)switch(t2){case"ascii":case"latin1":case"binary":return i2;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e4).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i2;case"hex":return i2>>>1;case"base64":return base64ToBytes(e4).length;default:if(r2)return utf8ToBytes(e4).length;t2=(""+t2).toLowerCase(),r2=!0}}function slowToString(e4,t2,i2){var r2=!1;if((t2===void 0||t2<0)&&(t2=0),t2>this.length||((i2===void 0||i2>this.length)&&(i2=this.length),i2<=0)||(i2>>>=0)<=(t2>>>=0))return"";for(e4||(e4="utf8");;)switch(e4){case"hex":return hexSlice(this,t2,i2);case"utf8":case"utf-8":return utf8Slice(this,t2,i2);case"ascii":return asciiSlice(this,t2,i2);case"latin1":case"binary":return latin1Slice(this,t2,i2);case"base64":return base64Slice(this,t2,i2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t2,i2);default:if(r2)throw new TypeError("Unknown encoding: "+e4);e4=(e4+"").toLowerCase(),r2=!0}}function swap(e4,t2,i2){var r2=e4[t2];e4[t2]=e4[i2],e4[i2]=r2}function bidirectionalIndexOf(e4,t2,i2,r2,n2){if(e4.length===0)return-1;if(typeof i2=="string"?(r2=i2,i2=0):i2>2147483647?i2=2147483647:i2<-2147483648&&(i2=-2147483648),i2=+i2,isNaN(i2)&&(i2=n2?0:e4.length-1),i2<0&&(i2=e4.length+i2),i2>=e4.length){if(n2)return-1;i2=e4.length-1}else if(i2<0){if(!n2)return-1;i2=0}if(typeof t2=="string"&&(t2=Buffer2.from(t2,r2)),internalIsBuffer(t2))return t2.length===0?-1:arrayIndexOf(e4,t2,i2,r2,n2);if(typeof t2=="number")return t2&=255,Buffer2.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n2?Uint8Array.prototype.indexOf.call(e4,t2,i2):Uint8Array.prototype.lastIndexOf.call(e4,t2,i2):arrayIndexOf(e4,[t2],i2,r2,n2);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e4,t2,i2,r2,n2){var a2,o2=1,s2=e4.length,l2=t2.length;if(r2!==void 0&&((r2=String(r2).toLowerCase())==="ucs2"||r2==="ucs-2"||r2==="utf16le"||r2==="utf-16le")){if(e4.length<2||t2.length<2)return-1;o2=2,s2/=2,l2/=2,i2/=2}function u2(e5,t3){return o2===1?e5[t3]:e5.readUInt16BE(t3*o2)}if(n2){var h2=-1;for(a2=i2;a2s2&&(i2=s2-l2),a2=i2;a2>=0;a2--){for(var c2=!0,f2=0;f2n2&&(r2=n2):r2=n2;var a2=t2.length;if(a2%2!=0)throw new TypeError("Invalid hex string");r2>a2/2&&(r2=a2/2);for(var o2=0;o2239?4:u2>223?3:u2>191?2:1;if(n2+c2<=i2)switch(c2){case 1:u2<128&&(h2=u2);break;case 2:(192&(a2=e4[n2+1]))==128&&(l2=(31&u2)<<6|63&a2)>127&&(h2=l2);break;case 3:a2=e4[n2+1],o2=e4[n2+2],(192&a2)==128&&(192&o2)==128&&(l2=(15&u2)<<12|(63&a2)<<6|63&o2)>2047&&(l2<55296||l2>57343)&&(h2=l2);break;case 4:a2=e4[n2+1],o2=e4[n2+2],s2=e4[n2+3],(192&a2)==128&&(192&o2)==128&&(192&s2)==128&&(l2=(15&u2)<<18|(63&a2)<<12|(63&o2)<<6|63&s2)>65535&&l2<1114112&&(h2=l2)}h2===null?(h2=65533,c2=1):h2>65535&&(h2-=65536,r2.push(h2>>>10&1023|55296),h2=56320|1023&h2),r2.push(h2),n2+=c2}return decodeCodePointsArray(r2)}Buffer2.TYPED_ARRAY_SUPPORT=global$1.TYPED_ARRAY_SUPPORT===void 0||global$1.TYPED_ARRAY_SUPPORT,kMaxLength(),Buffer2.poolSize=8192,Buffer2._augment=function(e4){return e4.__proto__=Buffer2.prototype,e4},Buffer2.from=function(e4,t2,i2){return from(null,e4,t2,i2)},Buffer2.TYPED_ARRAY_SUPPORT&&(Buffer2.prototype.__proto__=Uint8Array.prototype,Buffer2.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Buffer2[Symbol.species]),Buffer2.alloc=function(e4,t2,i2){return alloc(null,e4,t2,i2)},Buffer2.allocUnsafe=function(e4){return allocUnsafe(null,e4)},Buffer2.allocUnsafeSlow=function(e4){return allocUnsafe(null,e4)},Buffer2.isBuffer=isBuffer,Buffer2.compare=function(e4,t2){if(!internalIsBuffer(e4)||!internalIsBuffer(t2))throw new TypeError("Arguments must be Buffers");if(e4===t2)return 0;for(var i2=e4.length,r2=t2.length,n2=0,a2=Math.min(i2,r2);n20&&(e4=this.toString("hex",0,t2).match(/.{2}/g).join(" "),this.length>t2&&(e4+=" ... ")),""},Buffer2.prototype.compare=function(e4,t2,i2,r2,n2){if(!internalIsBuffer(e4))throw new TypeError("Argument must be a Buffer");if(t2===void 0&&(t2=0),i2===void 0&&(i2=e4?e4.length:0),r2===void 0&&(r2=0),n2===void 0&&(n2=this.length),t2<0||i2>e4.length||r2<0||n2>this.length)throw new RangeError("out of range index");if(r2>=n2&&t2>=i2)return 0;if(r2>=n2)return-1;if(t2>=i2)return 1;if(this===e4)return 0;for(var a2=(n2>>>=0)-(r2>>>=0),o2=(i2>>>=0)-(t2>>>=0),s2=Math.min(a2,o2),l2=this.slice(r2,n2),u2=e4.slice(t2,i2),h2=0;h2n2)&&(i2=n2),e4.length>0&&(i2<0||t2<0)||t2>this.length)throw new RangeError("Attempt to write outside buffer bounds");r2||(r2="utf8");for(var a2=!1;;)switch(r2){case"hex":return hexWrite(this,e4,t2,i2);case"utf8":case"utf-8":return utf8Write(this,e4,t2,i2);case"ascii":return asciiWrite(this,e4,t2,i2);case"latin1":case"binary":return latin1Write(this,e4,t2,i2);case"base64":return base64Write(this,e4,t2,i2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e4,t2,i2);default:if(a2)throw new TypeError("Unknown encoding: "+r2);r2=(""+r2).toLowerCase(),a2=!0}},Buffer2.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(e4){var t2=e4.length;if(t2<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,e4);for(var i2="",r2=0;r2r2)&&(i2=r2);for(var n2="",a2=t2;a2i2)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e4,t2,i2,r2,n2,a2){if(!internalIsBuffer(e4))throw new TypeError('"buffer" argument must be a Buffer instance');if(t2>n2||t2e4.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e4,t2,i2,r2){t2<0&&(t2=65535+t2+1);for(var n2=0,a2=Math.min(e4.length-i2,2);n2>>8*(r2?n2:1-n2)}function objectWriteUInt32(e4,t2,i2,r2){t2<0&&(t2=4294967295+t2+1);for(var n2=0,a2=Math.min(e4.length-i2,4);n2>>8*(r2?n2:3-n2)&255}function checkIEEE754(e4,t2,i2,r2,n2,a2){if(i2+r2>e4.length)throw new RangeError("Index out of range");if(i2<0)throw new RangeError("Index out of range")}function writeFloat(e4,t2,i2,r2,n2){return n2||checkIEEE754(e4,t2,i2,4),write(e4,t2,i2,r2,23,4),i2+4}function writeDouble(e4,t2,i2,r2,n2){return n2||checkIEEE754(e4,t2,i2,8),write(e4,t2,i2,r2,52,8),i2+8}Buffer2.prototype.slice=function(e4,t2){var i2,r2=this.length;if((e4=~~e4)<0?(e4+=r2)<0&&(e4=0):e4>r2&&(e4=r2),(t2=t2===void 0?r2:~~t2)<0?(t2+=r2)<0&&(t2=0):t2>r2&&(t2=r2),t20&&(n2*=256);)r2+=this[e4+--t2]*n2;return r2},Buffer2.prototype.readUInt8=function(e4,t2){return t2||checkOffset(e4,1,this.length),this[e4]},Buffer2.prototype.readUInt16LE=function(e4,t2){return t2||checkOffset(e4,2,this.length),this[e4]|this[e4+1]<<8},Buffer2.prototype.readUInt16BE=function(e4,t2){return t2||checkOffset(e4,2,this.length),this[e4]<<8|this[e4+1]},Buffer2.prototype.readUInt32LE=function(e4,t2){return t2||checkOffset(e4,4,this.length),(this[e4]|this[e4+1]<<8|this[e4+2]<<16)+16777216*this[e4+3]},Buffer2.prototype.readUInt32BE=function(e4,t2){return t2||checkOffset(e4,4,this.length),16777216*this[e4]+(this[e4+1]<<16|this[e4+2]<<8|this[e4+3])},Buffer2.prototype.readIntLE=function(e4,t2,i2){e4|=0,t2|=0,i2||checkOffset(e4,t2,this.length);for(var r2=this[e4],n2=1,a2=0;++a2=(n2*=128)&&(r2-=Math.pow(2,8*t2)),r2},Buffer2.prototype.readIntBE=function(e4,t2,i2){e4|=0,t2|=0,i2||checkOffset(e4,t2,this.length);for(var r2=t2,n2=1,a2=this[e4+--r2];r2>0&&(n2*=256);)a2+=this[e4+--r2]*n2;return a2>=(n2*=128)&&(a2-=Math.pow(2,8*t2)),a2},Buffer2.prototype.readInt8=function(e4,t2){return t2||checkOffset(e4,1,this.length),128&this[e4]?-1*(255-this[e4]+1):this[e4]},Buffer2.prototype.readInt16LE=function(e4,t2){t2||checkOffset(e4,2,this.length);var i2=this[e4]|this[e4+1]<<8;return 32768&i2?4294901760|i2:i2},Buffer2.prototype.readInt16BE=function(e4,t2){t2||checkOffset(e4,2,this.length);var i2=this[e4+1]|this[e4]<<8;return 32768&i2?4294901760|i2:i2},Buffer2.prototype.readInt32LE=function(e4,t2){return t2||checkOffset(e4,4,this.length),this[e4]|this[e4+1]<<8|this[e4+2]<<16|this[e4+3]<<24},Buffer2.prototype.readInt32BE=function(e4,t2){return t2||checkOffset(e4,4,this.length),this[e4]<<24|this[e4+1]<<16|this[e4+2]<<8|this[e4+3]},Buffer2.prototype.readFloatLE=function(e4,t2){return t2||checkOffset(e4,4,this.length),read(this,e4,!0,23,4)},Buffer2.prototype.readFloatBE=function(e4,t2){return t2||checkOffset(e4,4,this.length),read(this,e4,!1,23,4)},Buffer2.prototype.readDoubleLE=function(e4,t2){return t2||checkOffset(e4,8,this.length),read(this,e4,!0,52,8)},Buffer2.prototype.readDoubleBE=function(e4,t2){return t2||checkOffset(e4,8,this.length),read(this,e4,!1,52,8)},Buffer2.prototype.writeUIntLE=function(e4,t2,i2,r2){e4=+e4,t2|=0,i2|=0,r2||checkInt(this,e4,t2,i2,Math.pow(2,8*i2)-1,0);var n2=1,a2=0;for(this[t2]=255&e4;++a2=0&&(a2*=256);)this[t2+n2]=e4/a2&255;return t2+i2},Buffer2.prototype.writeUInt8=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,1,255,0),Buffer2.TYPED_ARRAY_SUPPORT||(e4=Math.floor(e4)),this[t2]=255&e4,t2+1},Buffer2.prototype.writeUInt16LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,65535,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8):objectWriteUInt16(this,e4,t2,!0),t2+2},Buffer2.prototype.writeUInt16BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,65535,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>8,this[t2+1]=255&e4):objectWriteUInt16(this,e4,t2,!1),t2+2},Buffer2.prototype.writeUInt32LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,4294967295,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2+3]=e4>>>24,this[t2+2]=e4>>>16,this[t2+1]=e4>>>8,this[t2]=255&e4):objectWriteUInt32(this,e4,t2,!0),t2+4},Buffer2.prototype.writeUInt32BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,4294967295,0),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>24,this[t2+1]=e4>>>16,this[t2+2]=e4>>>8,this[t2+3]=255&e4):objectWriteUInt32(this,e4,t2,!1),t2+4},Buffer2.prototype.writeIntLE=function(e4,t2,i2,r2){if(e4=+e4,t2|=0,!r2){var n2=Math.pow(2,8*i2-1);checkInt(this,e4,t2,i2,n2-1,-n2)}var a2=0,o2=1,s2=0;for(this[t2]=255&e4;++a2=0&&(o2*=256);)e4<0&&s2===0&&this[t2+a2+1]!==0&&(s2=1),this[t2+a2]=(e4/o2|0)-s2&255;return t2+i2},Buffer2.prototype.writeInt8=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,1,127,-128),Buffer2.TYPED_ARRAY_SUPPORT||(e4=Math.floor(e4)),e4<0&&(e4=255+e4+1),this[t2]=255&e4,t2+1},Buffer2.prototype.writeInt16LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,32767,-32768),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8):objectWriteUInt16(this,e4,t2,!0),t2+2},Buffer2.prototype.writeInt16BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,2,32767,-32768),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>8,this[t2+1]=255&e4):objectWriteUInt16(this,e4,t2,!1),t2+2},Buffer2.prototype.writeInt32LE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,2147483647,-2147483648),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=255&e4,this[t2+1]=e4>>>8,this[t2+2]=e4>>>16,this[t2+3]=e4>>>24):objectWriteUInt32(this,e4,t2,!0),t2+4},Buffer2.prototype.writeInt32BE=function(e4,t2,i2){return e4=+e4,t2|=0,i2||checkInt(this,e4,t2,4,2147483647,-2147483648),e4<0&&(e4=4294967295+e4+1),Buffer2.TYPED_ARRAY_SUPPORT?(this[t2]=e4>>>24,this[t2+1]=e4>>>16,this[t2+2]=e4>>>8,this[t2+3]=255&e4):objectWriteUInt32(this,e4,t2,!1),t2+4},Buffer2.prototype.writeFloatLE=function(e4,t2,i2){return writeFloat(this,e4,t2,!0,i2)},Buffer2.prototype.writeFloatBE=function(e4,t2,i2){return writeFloat(this,e4,t2,!1,i2)},Buffer2.prototype.writeDoubleLE=function(e4,t2,i2){return writeDouble(this,e4,t2,!0,i2)},Buffer2.prototype.writeDoubleBE=function(e4,t2,i2){return writeDouble(this,e4,t2,!1,i2)},Buffer2.prototype.copy=function(e4,t2,i2,r2){if(i2||(i2=0),r2||r2===0||(r2=this.length),t2>=e4.length&&(t2=e4.length),t2||(t2=0),r2>0&&r2=this.length)throw new RangeError("sourceStart out of bounds");if(r2<0)throw new RangeError("sourceEnd out of bounds");r2>this.length&&(r2=this.length),e4.length-t2=0;--n2)e4[n2+t2]=this[n2+i2];else if(a2<1e3||!Buffer2.TYPED_ARRAY_SUPPORT)for(n2=0;n2>>=0,i2=i2===void 0?this.length:i2>>>0,e4||(e4=0),typeof e4=="number")for(a2=t2;a255295&&i2<57344){if(!n2){if(i2>56319){(t2-=3)>-1&&a2.push(239,191,189);continue}if(o2+1===r2){(t2-=3)>-1&&a2.push(239,191,189);continue}n2=i2;continue}if(i2<56320){(t2-=3)>-1&&a2.push(239,191,189),n2=i2;continue}i2=65536+(n2-55296<<10|i2-56320)}else n2&&(t2-=3)>-1&&a2.push(239,191,189);if(n2=null,i2<128){if((t2-=1)<0)break;a2.push(i2)}else if(i2<2048){if((t2-=2)<0)break;a2.push(i2>>6|192,63&i2|128)}else if(i2<65536){if((t2-=3)<0)break;a2.push(i2>>12|224,i2>>6&63|128,63&i2|128)}else{if(!(i2<1114112))throw new Error("Invalid code point");if((t2-=4)<0)break;a2.push(i2>>18|240,i2>>12&63|128,i2>>6&63|128,63&i2|128)}}return a2}function asciiToBytes(e4){for(var t2=[],i2=0;i2>8,n2=i2%256,a2.push(n2),a2.push(r2);return a2}function base64ToBytes(e4){return toByteArray(base64clean(e4))}function blitBuffer(e4,t2,i2,r2){for(var n2=0;n2=t2.length||n2>=e4.length);++n2)t2[n2+i2]=e4[n2];return n2}function isnan(e4){return e4!=e4}function isBuffer(e4){return e4!=null&&(!!e4._isBuffer||isFastBuffer(e4)||isSlowBuffer(e4))}function isFastBuffer(e4){return!!e4.constructor&&typeof e4.constructor.isBuffer=="function"&&e4.constructor.isBuffer(e4)}function isSlowBuffer(e4){return typeof e4.readFloatLE=="function"&&typeof e4.slice=="function"&&isFastBuffer(e4.slice(0,0))}(function(e4){e4[e4.BITMAP_INFO_HEADER=40]="BITMAP_INFO_HEADER",e4[e4.BITMAP_V2_INFO_HEADER=52]="BITMAP_V2_INFO_HEADER",e4[e4.BITMAP_V3_INFO_HEADER=56]="BITMAP_V3_INFO_HEADER",e4[e4.BITMAP_V4_HEADER=108]="BITMAP_V4_HEADER",e4[e4.BITMAP_V5_HEADER=124]="BITMAP_V5_HEADER"})(HeaderTypes||(HeaderTypes={}));var HeaderTypes$1=HeaderTypes,BmpCompression;function maskColor(e4,t2,i2,r2){let n2=1+~e4&e4,a2=1+~t2&t2,o2=1+~i2&i2,s2=1+~r2&r2,l2=e4/n2+1,u2=t2/a2+1,h2=i2/o2+1,c2=r2/s2+1;return{shiftRed:t3=>(t3&e4)/n2*256/l2,shiftGreen:e5=>(e5&t2)/a2*256/u2,shiftBlue:e5=>(e5&i2)/o2*256/h2,shiftAlpha:r2!==0?e5=>(e5&r2)/s2*256/c2:()=>255}}(function(e4){e4[e4.NONE=0]="NONE",e4[e4.BI_RLE8=1]="BI_RLE8",e4[e4.BI_RLE4=2]="BI_RLE4",e4[e4.BI_BIT_FIELDS=3]="BI_BIT_FIELDS",e4[e4.BI_ALPHA_BIT_FIELDS=6]="BI_ALPHA_BIT_FIELDS"})(BmpCompression||(BmpCompression={}));var BmpDecoder=class{flag;fileSize;reserved1;reserved2;offset;headerSize;width;height;planes;bitPP;compression;rawSize;hr;vr;colors;importantColors;palette;data;maskRed;maskGreen;maskBlue;maskAlpha;toRGBA;pos;bottomUp;buffer;locRed;locGreen;locBlue;locAlpha;shiftRed;shiftGreen;shiftBlue;shiftAlpha;constructor(e4,{toRGBA:t2}={toRGBA:!1}){if(this.buffer=e4,this.toRGBA=!!t2,this.pos=0,this.bottomUp=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),this.flag!=="BM")throw new Error("Invalid BMP File");this.locRed=this.toRGBA?0:3,this.locGreen=this.toRGBA?1:2,this.locBlue=this.toRGBA?2:1,this.locAlpha=this.toRGBA?3:0,this.parseHeader(),this.parseRGBA()}parseHeader(){if(this.fileSize=this.readUInt32LE(),this.reserved1=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.reserved2=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.offset=this.readUInt32LE(),this.headerSize=this.readUInt32LE(),!(this.headerSize in HeaderTypes$1))throw new Error(`Unsupported BMP header size ${this.headerSize}`);if(this.width=this.readUInt32LE(),this.height=this.readUInt32LE(),this.height=this.height>2147483647?this.height-4294967296:this.height,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compression=this.readUInt32LE(),this.rawSize=this.readUInt32LE(),this.hr=this.readUInt32LE(),this.vr=this.readUInt32LE(),this.colors=this.readUInt32LE(),this.importantColors=this.readUInt32LE(),this.bitPP===32?(this.maskAlpha=0,this.maskRed=16711680,this.maskGreen=65280,this.maskBlue=255):this.bitPP===16&&(this.maskAlpha=0,this.maskRed=31744,this.maskGreen=992,this.maskBlue=31),(this.headerSize>HeaderTypes$1.BITMAP_INFO_HEADER||this.compression===BmpCompression.BI_BIT_FIELDS||this.compression===BmpCompression.BI_ALPHA_BIT_FIELDS)&&(this.maskRed=this.readUInt32LE(),this.maskGreen=this.readUInt32LE(),this.maskBlue=this.readUInt32LE()),(this.headerSize>HeaderTypes$1.BITMAP_V2_INFO_HEADER||this.compression===BmpCompression.BI_ALPHA_BIT_FIELDS)&&(this.maskAlpha=this.readUInt32LE()),this.headerSize>HeaderTypes$1.BITMAP_V3_INFO_HEADER&&(this.pos+=HeaderTypes$1.BITMAP_V4_HEADER-HeaderTypes$1.BITMAP_V3_INFO_HEADER),this.headerSize>HeaderTypes$1.BITMAP_V4_HEADER&&(this.pos+=HeaderTypes$1.BITMAP_V5_HEADER-HeaderTypes$1.BITMAP_V4_HEADER),this.bitPP<=8||this.colors>0){let e5=this.colors===0?1<{let i3=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+8*e5*4;for(let t4=0;t4<8&&8*e5+t4>7-t4&1];this.data[r2+t4*this.locAlpha]=0,this.data[r2+4*t4+this.locBlue]=e6.blue,this.data[r2+4*t4+this.locGreen]=e6.green,this.data[r2+4*t4+this.locRed]=e6.red}}))}bit4(){if(this.compression===BmpCompression.BI_RLE4){this.data.fill(0);let e4=!1,t2=this.bottomUp?this.height-1:0,i2=0;for(;i2>4),1&r3&&r3+1>1&1)==1&&this.pos++}}else for(let t3=0;t3>4),e4=!e4}}else{let e4=Math.ceil(this.width/2),t2=e4%4,i2=t2!==0?4-t2:0;this.scanImage(i2,e4,((e5,t3)=>{let i3=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+2*e5*4,n2=i3>>4,a2=this.palette[n2];if(this.data[r2]=0,this.data[r2+1]=a2.blue,this.data[r2+2]=a2.green,this.data[r2+3]=a2.red,2*e5+1>=this.width)return!1;let o2=15&i3;a2=this.palette[o2],this.data[r2+4]=0,this.data[r2+4+1]=a2.blue,this.data[r2+4+2]=a2.green,this.data[r2+4+3]=a2.red}))}}bit8(){if(this.compression===BmpCompression.BI_RLE8){this.data.fill(0);let e4=this.bottomUp?this.height-1:0,t2=0;for(;t2{let i2=this.buffer.readUInt8(this.pos++),r2=t3*this.width*4+4*e5;if(i2{let i2=t2*this.width*4+4*e5,r2=this.buffer.readUInt16LE(this.pos);this.pos+=2,this.data[i2+this.locRed]=this.shiftRed(r2),this.data[i2+this.locGreen]=this.shiftGreen(r2),this.data[i2+this.locBlue]=this.shiftBlue(r2),this.data[i2+this.locAlpha]=this.shiftAlpha(r2)}))}bit24(){let e4=this.width%4;this.scanImage(e4,this.width,((e5,t2)=>{let i2=t2*this.width*4+4*e5,r2=this.buffer.readUInt8(this.pos++),n2=this.buffer.readUInt8(this.pos++),a2=this.buffer.readUInt8(this.pos++);this.data[i2+this.locRed]=a2,this.data[i2+this.locGreen]=n2,this.data[i2+this.locBlue]=r2,this.data[i2+this.locAlpha]=0}))}bit32(){this.scanImage(0,this.width,((e4,t2)=>{let i2=t2*this.width*4+4*e4,r2=this.readUInt32LE();this.data[i2+this.locRed]=this.shiftRed(r2),this.data[i2+this.locGreen]=this.shiftGreen(r2),this.data[i2+this.locBlue]=this.shiftBlue(r2),this.data[i2+this.locAlpha]=this.shiftAlpha(r2)}))}scanImage(e4=0,t2=this.width,i2){for(let r2=this.height-1;r2>=0;r2--){let n2=this.bottomUp?r2:this.height-1-r2;for(let e5=0;e5e5<<1|t2),0)}function createColor(e4){return e4.quad<<24|e4.red<<16|e4.green<<8|e4.blue}var BmpEncoder=class{fileSize;reserved1;reserved2;offset;width;flag;height;planes;bitPP;compress;hr;vr;colors;importantColors;rawSize;headerSize;data;palette;extraBytes;buffer;bytesInColor;pos;constructor(e4){switch(this.buffer=e4.data,this.width=e4.width,this.height=e4.height,this.headerSize=HeaderTypes$1.BITMAP_INFO_HEADER,this.flag="BM",this.bitPP=e4.bitPP||24,this.offset=54,this.reserved1=e4.reserved1||0,this.reserved2=e4.reserved2||0,this.planes=1,this.compress=0,this.hr=e4.hr||0,this.vr=e4.vr||0,this.importantColors=e4.importantColors||0,this.colors=Math.min(2**(this.bitPP-1||1),e4.colors||1/0),this.palette=e4.palette||[],this.colors&&this.bitPP<16?this.offset+=4*this.colors:this.colors=0,this.bitPP){case 32:this.bytesInColor=4;break;case 16:this.bytesInColor=2;break;case 8:this.bytesInColor=1;break;case 4:this.bytesInColor=.5;break;case 1:this.bytesInColor=1/8;break;default:this.bytesInColor=3,this.bitPP=24}let t2=this.width*this.bitPP/32,i2=Math.ceil(t2);this.extraBytes=4*(i2-t2),this.rawSize=this.height*i2*4+2,this.fileSize=this.rawSize+this.offset,this.data=Buffer2.alloc(this.fileSize,1),this.pos=0,this.encode()}encode(){switch(this.pos=0,this.writeHeader(),this.bitPP){case 32:this.bit32();break;case 16:this.bit16();break;case 8:this.bit8();break;case 4:this.bit4();break;case 1:this.bit1();break;default:this.bit24()}}writeHeader(){this.data.write(this.flag,this.pos,2),this.pos+=2,this.writeUInt32LE(this.fileSize),this.writeUInt32LE(this.reserved1<<16|this.reserved2),this.writeUInt32LE(this.offset),this.writeUInt32LE(this.headerSize),this.writeUInt32LE(this.width),this.writeUInt32LE(this.height),this.data.writeUInt16LE(this.planes,this.pos),this.pos+=2,this.data.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,this.writeUInt32LE(this.compress),this.writeUInt32LE(this.rawSize),this.writeUInt32LE(this.hr),this.writeUInt32LE(this.vr),this.writeUInt32LE(this.colors),this.writeUInt32LE(this.importantColors)}bit1(){this.palette.length&&this.colors===2?this.initColors(1):(this.writeUInt32LE(16777215),this.writeUInt32LE(0)),this.pos+=1;let e4=[];this.writeImage(((t2,i2,r2)=>{let n2=i2;n2++;let a2=this.buffer[n2++],o2=this.buffer[n2++],s2=.2126*this.buffer[n2++]+.7152*o2+.0722*a2;return e4.push(s2>127?0:1),(r2+1)%8==0?(this.data[t2-1]=createInteger(e4),e4=[]):r2===this.width-1&&e4.length>0&&(this.data[t2-1]=createInteger(e4)<<4,e4=[]),n2}))}bit4(){let e4=this.initColors(4),t2=[];this.writeImage(((i2,r2,n2)=>{let a2=r2,o2=createColor({quad:this.buffer[a2++],blue:this.buffer[a2++],green:this.buffer[a2++],red:this.buffer[a2++]}),s2=e4.findIndex((e5=>e5===o2));return s2!==-1?t2.push(s2):t2.push(0),(n2+1)%2==0&&(this.data[i2]=t2[0]<<4|t2[1],t2=[]),a2}))}bit8(){let e4=this.initColors(8);this.writeImage(((t2,i2)=>{let r2=i2,n2=createColor({quad:this.buffer[r2++],blue:this.buffer[r2++],green:this.buffer[r2++],red:this.buffer[r2++]}),a2=e4.findIndex((e5=>e5===n2));return this.data[t2]=a2!==-1?a2:0,r2}))}bit16(){this.writeImage(((e4,t2)=>{let i2=t2+1,r2=this.buffer[i2++]/8,n2=this.buffer[i2++]/8,a2=this.buffer[i2++]/8<<10|n2<<5|r2;return this.data[e4]=255&a2,this.data[e4+1]=(65280&a2)>>8,i2}))}bit24(){this.writeImage(((e4,t2)=>{let i2=t2+1;return this.data[e4]=this.buffer[i2++],this.data[e4+1]=this.buffer[i2++],this.data[e4+2]=this.buffer[i2++],i2}))}bit32(){this.writeImage(((e4,t2)=>{let i2=t2;return this.data[e4+3]=this.buffer[i2++],this.data[e4]=this.buffer[i2++],this.data[e4+1]=this.buffer[i2++],this.data[e4+2]=this.buffer[i2++],i2}))}writeImage(e4){let t2=this.extraBytes+this.width*this.bytesInColor,i2=0;for(let r2=0;r2.5?l2/(2-a2-o2):l2/(a2+o2),a2){case e4:r2=(t2-i2)/l2+(t21&&(i3-=1),i3<1/6?e5+6*(t3-e5)*i3:i3<.5?t3:i3<2/3?e5+(t3-e5)*(2/3-i3)*6:e5}if(e4=bound01(e4,360),t2=bound01(t2,100),i2=bound01(i2,100),t2===0)r2=n2=a2=i2;else{var s2=i2<.5?i2*(1+t2):i2+t2-i2*t2,l2=2*i2-s2;r2=o2(l2,s2,e4+1/3),n2=o2(l2,s2,e4),a2=o2(l2,s2,e4-1/3)}return{r:255*r2,g:255*n2,b:255*a2}}function rgbToHsv(e4,t2,i2){e4=bound01(e4,255),t2=bound01(t2,255),i2=bound01(i2,255);var r2,n2,a2=Math.max(e4,t2,i2),o2=Math.min(e4,t2,i2),s2=a2,l2=a2-o2;if(n2=a2===0?0:l2/a2,a2==o2)r2=0;else{switch(a2){case e4:r2=(t2-i2)/l2+(t2>1)+720)%360;--t2;)r2.h=(r2.h+n2)%360,a2.push(tinycolor(r2));return a2}function _monochromatic(e4,t2){t2=t2||6;for(var i2=tinycolor(e4).toHsv(),r2=i2.h,n2=i2.s,a2=i2.v,o2=[],s2=1/t2;t2--;)o2.push(tinycolor({h:r2,s:n2,v:a2})),a2=(a2+s2)%1;return o2}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e4=this.toRgb();return(299*e4.r+587*e4.g+114*e4.b)/1e3},getLuminance:function(){var e4,t2,i2,r2=this.toRgb();return e4=r2.r/255,t2=r2.g/255,i2=r2.b/255,.2126*(e4<=.03928?e4/12.92:Math.pow((e4+.055)/1.055,2.4))+.7152*(t2<=.03928?t2/12.92:Math.pow((t2+.055)/1.055,2.4))+.0722*(i2<=.03928?i2/12.92:Math.pow((i2+.055)/1.055,2.4))},setAlpha:function(e4){return this._a=boundAlpha(e4),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e4=rgbToHsv(this._r,this._g,this._b);return{h:360*e4.h,s:e4.s,v:e4.v,a:this._a}},toHsvString:function(){var e4=rgbToHsv(this._r,this._g,this._b),t2=Math.round(360*e4.h),i2=Math.round(100*e4.s),r2=Math.round(100*e4.v);return this._a==1?"hsv("+t2+", "+i2+"%, "+r2+"%)":"hsva("+t2+", "+i2+"%, "+r2+"%, "+this._roundA+")"},toHsl:function(){var e4=rgbToHsl(this._r,this._g,this._b);return{h:360*e4.h,s:e4.s,l:e4.l,a:this._a}},toHslString:function(){var e4=rgbToHsl(this._r,this._g,this._b),t2=Math.round(360*e4.h),i2=Math.round(100*e4.s),r2=Math.round(100*e4.l);return this._a==1?"hsl("+t2+", "+i2+"%, "+r2+"%)":"hsla("+t2+", "+i2+"%, "+r2+"%, "+this._roundA+")"},toHex:function(e4){return rgbToHex(this._r,this._g,this._b,e4)},toHexString:function(e4){return"#"+this.toHex(e4)},toHex8:function(e4){return rgbaToHex(this._r,this._g,this._b,this._a,e4)},toHex8String:function(e4){return"#"+this.toHex8(e4)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e4){var t2="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),i2=t2,r2=this._gradientType?"GradientType = 1, ":"";if(e4){var n2=tinycolor(e4);i2="#"+rgbaToArgbHex(n2._r,n2._g,n2._b,n2._a)}return"progid:DXImageTransform.Microsoft.gradient("+r2+"startColorstr="+t2+",endColorstr="+i2+")"},toString:function(e4){var t2=!!e4;e4=e4||this._format;var i2=!1,r2=this._a<1&&this._a>=0;return t2||!r2||e4!=="hex"&&e4!=="hex6"&&e4!=="hex3"&&e4!=="hex4"&&e4!=="hex8"&&e4!=="name"?(e4==="rgb"&&(i2=this.toRgbString()),e4==="prgb"&&(i2=this.toPercentageRgbString()),e4!=="hex"&&e4!=="hex6"||(i2=this.toHexString()),e4==="hex3"&&(i2=this.toHexString(!0)),e4==="hex4"&&(i2=this.toHex8String(!0)),e4==="hex8"&&(i2=this.toHex8String()),e4==="name"&&(i2=this.toName()),e4==="hsl"&&(i2=this.toHslString()),e4==="hsv"&&(i2=this.toHsvString()),i2||this.toHexString()):e4==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return tinycolor(this.toString())},_applyModification:function(e4,t2){var i2=e4.apply(null,[this].concat([].slice.call(t2)));return this._r=i2._r,this._g=i2._g,this._b=i2._b,this.setAlpha(i2._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(e4,t2){return e4.apply(null,[this].concat([].slice.call(t2)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(e4,t2){if(_typeof(e4)=="object"){var i2={};for(var r2 in e4)e4.hasOwnProperty(r2)&&(i2[r2]=r2==="a"?e4[r2]:convertToPercentage(e4[r2]));e4=i2}return tinycolor(e4,t2)},tinycolor.equals=function(e4,t2){return!(!e4||!t2)&&tinycolor(e4).toRgbString()==tinycolor(t2).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(e4,t2,i2){i2=i2===0?0:i2||50;var r2=tinycolor(e4).toRgb(),n2=tinycolor(t2).toRgb(),a2=i2/100;return tinycolor({r:(n2.r-r2.r)*a2+r2.r,g:(n2.g-r2.g)*a2+r2.g,b:(n2.b-r2.b)*a2+r2.b,a:(n2.a-r2.a)*a2+r2.a})},tinycolor.readability=function(e4,t2){var i2=tinycolor(e4),r2=tinycolor(t2);return(Math.max(i2.getLuminance(),r2.getLuminance())+.05)/(Math.min(i2.getLuminance(),r2.getLuminance())+.05)},tinycolor.isReadable=function(e4,t2,i2){var r2,n2,a2=tinycolor.readability(e4,t2);switch(n2=!1,(r2=validateWCAG2Parms(i2)).level+r2.size){case"AAsmall":case"AAAlarge":n2=a2>=4.5;break;case"AAlarge":n2=a2>=3;break;case"AAAsmall":n2=a2>=7}return n2},tinycolor.mostReadable=function(e4,t2,i2){var r2,n2,a2,o2,s2=null,l2=0;n2=(i2=i2||{}).includeFallbackColors,a2=i2.level,o2=i2.size;for(var u2=0;u2l2&&(l2=r2,s2=tinycolor(t2[u2]));return tinycolor.isReadable(e4,s2,{level:a2,size:o2})||!n2?s2:(i2.includeFallbackColors=!1,tinycolor.mostReadable(e4,["#fff","#000"],i2))};var names$1=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names$1);function flip(e4){var t2={};for(var i2 in e4)e4.hasOwnProperty(i2)&&(t2[e4[i2]]=i2);return t2}function boundAlpha(e4){return e4=parseFloat(e4),(isNaN(e4)||e4<0||e4>1)&&(e4=1),e4}function bound01(e4,t2){isOnePointZero(e4)&&(e4="100%");var i2=isPercentage(e4);return e4=Math.min(t2,Math.max(0,parseFloat(e4))),i2&&(e4=parseInt(e4*t2,10)/100),Math.abs(e4-t2)<1e-6?1:e4%t2/parseFloat(t2)}function clamp01(e4){return Math.min(1,Math.max(0,e4))}function parseIntFromHex(e4){return parseInt(e4,16)}function isOnePointZero(e4){return typeof e4=="string"&&e4.indexOf(".")!=-1&&parseFloat(e4)===1}function isPercentage(e4){return typeof e4=="string"&&e4.indexOf("%")!=-1}function pad2(e4){return e4.length==1?"0"+e4:""+e4}function convertToPercentage(e4){return e4<=1&&(e4=100*e4+"%"),e4}function convertDecimalToHex(e4){return Math.round(255*parseFloat(e4)).toString(16)}function convertHexToDecimal(e4){return parseIntFromHex(e4)/255}var matchers=(CSS_UNIT="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}),CSS_UNIT,PERMISSIVE_MATCH3,PERMISSIVE_MATCH4;function isValidCSSUnit(e4){return!!matchers.CSS_UNIT.exec(e4)}function stringInputToObject(e4){e4=e4.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var t2,i2=!1;if(names$1[e4])e4=names$1[e4],i2=!0;else if(e4=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(t2=matchers.rgb.exec(e4))?{r:t2[1],g:t2[2],b:t2[3]}:(t2=matchers.rgba.exec(e4))?{r:t2[1],g:t2[2],b:t2[3],a:t2[4]}:(t2=matchers.hsl.exec(e4))?{h:t2[1],s:t2[2],l:t2[3]}:(t2=matchers.hsla.exec(e4))?{h:t2[1],s:t2[2],l:t2[3],a:t2[4]}:(t2=matchers.hsv.exec(e4))?{h:t2[1],s:t2[2],v:t2[3]}:(t2=matchers.hsva.exec(e4))?{h:t2[1],s:t2[2],v:t2[3],a:t2[4]}:(t2=matchers.hex8.exec(e4))?{r:parseIntFromHex(t2[1]),g:parseIntFromHex(t2[2]),b:parseIntFromHex(t2[3]),a:convertHexToDecimal(t2[4]),format:i2?"name":"hex8"}:(t2=matchers.hex6.exec(e4))?{r:parseIntFromHex(t2[1]),g:parseIntFromHex(t2[2]),b:parseIntFromHex(t2[3]),format:i2?"name":"hex"}:(t2=matchers.hex4.exec(e4))?{r:parseIntFromHex(t2[1]+""+t2[1]),g:parseIntFromHex(t2[2]+""+t2[2]),b:parseIntFromHex(t2[3]+""+t2[3]),a:convertHexToDecimal(t2[4]+""+t2[4]),format:i2?"name":"hex8"}:!!(t2=matchers.hex3.exec(e4))&&{r:parseIntFromHex(t2[1]+""+t2[1]),g:parseIntFromHex(t2[2]+""+t2[2]),b:parseIntFromHex(t2[3]+""+t2[3]),format:i2?"name":"hex"}}function validateWCAG2Parms(e4){var t2,i2;return(t2=((e4=e4||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&t2!=="AAA"&&(t2="AA"),(i2=(e4.size||"small").toLowerCase())!=="small"&&i2!=="large"&&(i2="small"),{level:t2,size:i2}}function clone(e4){let t2={width:e4.bitmap.width,height:e4.bitmap.height,data:Buffer2.from(e4.bitmap.data)};return new e4.constructor(t2)}function scan(e4,t2,i2,r2,n2,a2){let o2,s2,l2,u2,h2;if(typeof t2=="function")h2=t2,o2=0,s2=0,l2=e4.bitmap.width,u2=e4.bitmap.height;else{if(o2=t2,typeof i2!="number")throw new Error("y must be a number");if(s2=i2,typeof r2!="number")throw new Error("w must be a number");if(l2=r2,typeof n2!="number")throw new Error("h must be a number");if(u2=n2,typeof a2!="function")throw new Error("cb must be a function");h2=a2}o2=Math.round(o2),s2=Math.round(s2),l2=Math.round(l2),u2=Math.round(u2);let c2=h2.bind(e4);for(let t3=s2;t3255)throw new Error("r must be between 0 and 255");if(t2<0||t2>255)throw new Error("g must be between 0 and 255");if(i2<0||i2>255)throw new Error("b must be between 0 and 255");if(r2<0||r2>255)throw new Error("a must be between 0 and 255");let n2=255&e4;return n2<<=8,n2|=255&t2,n2<<=8,n2|=255&i2,n2<<=8,n2|=255&r2,n2>>>=0,n2}function colorDiff(e4,t2){let i2=e5=>Math.pow(e5,2),{max:r2}=Math,n2="a"in e4?e4.a:255,a2="a"in t2?t2.a:255;return(r2(i2(e4.r-t2.r),i2(e4.r-t2.r-n2+a2))+r2(i2(e4.g-t2.g),i2(e4.g-t2.g-n2+a2))+r2(i2(e4.b-t2.b),i2(e4.b-t2.b-n2+a2)))/195075}function limit255(e4){return e4=Math.max(e4,0),e4=Math.min(e4,255)}function cssColorToHex(e4){return typeof e4=="number"?e4:parseInt(tinycolor(e4).toHex8(),16)}function encode$1(e4,t2={}){return scan({bitmap:e4},0,0,e4.width,e4.height,(function(t3,i2,r2){let n2=e4.data[r2+0],a2=e4.data[r2+1],o2=e4.data[r2+2],s2=e4.data[r2+3];e4.data[r2+0]=s2,e4.data[r2+1]=o2,e4.data[r2+2]=a2,e4.data[r2+3]=n2})),encode$2({...e4,...t2}).data}function decode$1(e4,t2){let i2=decode$2(e4,t2);return scan({bitmap:i2},0,0,i2.width,i2.height,(function(e5,t3,r2){let n2=i2.data[r2+1],a2=i2.data[r2+2],o2=i2.data[r2+3];i2.data[r2+0]=o2,i2.data[r2+1]=a2,i2.data[r2+2]=n2,i2.data[r2+3]=255})),i2}function msBmp(){return{mime:"image/x-ms-bmp",encode:encode$1,decode:decode$1}}function bmp(){return{mime:"image/bmp",encode:encode$1,decode:decode$1}}var omggif={},GifReader_1,GifWriter_1;function GifWriter(e4,t2,i2,r2){var n2=0,a2=(r2=r2===void 0?{}:r2).loop===void 0?null:r2.loop,o2=r2.palette===void 0?null:r2.palette;if(t2<=0||i2<=0||t2>65535||i2>65535)throw new Error("Width/Height invalid.");function s2(e5){var t3=e5.length;if(t3<2||t3>256||t3&t3-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return t3}e4[n2++]=71,e4[n2++]=73,e4[n2++]=70,e4[n2++]=56,e4[n2++]=57,e4[n2++]=97;var l2=0,u2=0;if(o2!==null){for(var h2=s2(o2);h2>>=1;)++l2;if(h2=1<=h2)throw new Error("Background index out of range.");if(u2===0)throw new Error("Background index explicitly passed as 0.")}}if(e4[n2++]=255&t2,e4[n2++]=t2>>8&255,e4[n2++]=255&i2,e4[n2++]=i2>>8&255,e4[n2++]=(o2!==null?128:0)|l2,e4[n2++]=u2,e4[n2++]=0,o2!==null)for(var c2=0,f2=o2.length;c2>16&255,e4[n2++]=d>>8&255,e4[n2++]=255&d}if(a2!==null){if(a2<0||a2>65535)throw new Error("Loop count invalid.");e4[n2++]=33,e4[n2++]=255,e4[n2++]=11,e4[n2++]=78,e4[n2++]=69,e4[n2++]=84,e4[n2++]=83,e4[n2++]=67,e4[n2++]=65,e4[n2++]=80,e4[n2++]=69,e4[n2++]=50,e4[n2++]=46,e4[n2++]=48,e4[n2++]=3,e4[n2++]=1,e4[n2++]=255&a2,e4[n2++]=a2>>8&255,e4[n2++]=0}var p2=!1;this.addFrame=function(t3,i3,r3,a3,l3,u3){if(p2===!0&&(--n2,p2=!1),u3=u3===void 0?{}:u3,t3<0||i3<0||t3>65535||i3>65535)throw new Error("x/y invalid.");if(r3<=0||a3<=0||r3>65535||a3>65535)throw new Error("Width/Height invalid.");if(l3.length>=1;)++d2;f3=1<3)throw new Error("Disposal out of range.");var g=!1,b2=0;if(u3.transparent!==void 0&&u3.transparent!==null&&(g=!0,(b2=u3.transparent)<0||b2>=f3))throw new Error("Transparent color index.");if((_2!==0||g||m!==0)&&(e4[n2++]=33,e4[n2++]=249,e4[n2++]=4,e4[n2++]=_2<<2|(g===!0?1:0),e4[n2++]=255&m,e4[n2++]=m>>8&255,e4[n2++]=b2,e4[n2++]=0),e4[n2++]=44,e4[n2++]=255&t3,e4[n2++]=t3>>8&255,e4[n2++]=255&i3,e4[n2++]=i3>>8&255,e4[n2++]=255&r3,e4[n2++]=r3>>8&255,e4[n2++]=255&a3,e4[n2++]=a3>>8&255,e4[n2++]=h3===!0?128|d2-1:0,h3===!0)for(var y2=0,w=c3.length;y2>16&255,e4[n2++]=v2>>8&255,e4[n2++]=255&v2}return n2=GifWriterOutputLZWCodeStream(e4,n2,d2<2?2:d2,l3)},this.end=function(){return p2===!1&&(e4[n2++]=59,p2=!0),n2},this.getOutputBuffer=function(){return e4},this.setOutputBuffer=function(t3){e4=t3},this.getOutputBufferPosition=function(){return n2},this.setOutputBufferPosition=function(e5){n2=e5}}function GifWriterOutputLZWCodeStream(e4,t2,i2,r2){e4[t2++]=i2;var n2=t2++,a2=1<=i3;)e4[t2++]=255&c2,c2>>=8,h2-=8,t2===n2+256&&(e4[n2]=255,n2=t2++)}function d(e5){c2|=e5<=8;)e4[t2++]=255&c2,c2>>=8,h2-=8,t2===n2+256&&(e4[n2]=255,n2=t2++);l2===4096?(d(a2),l2=s2+1,u2=i2+1,m={}):(l2>=1<>7,o2=1<<(7&n2)+1;e4[t2++],e4[t2++];var s2=null,l2=null;a2&&(s2=t2,l2=o2,t2+=3*o2);var u2=!0,h2=[],c2=0,f2=null,d=0,p2=null;for(this.width=i2,this.height=r2;u2&&t2=0))throw Error("Invalid block size");if(I===0)break;t2+=I}break;case 249:if(e4[t2++]!==4||e4[t2+4]!==0)throw new Error("Invalid graphics extension block.");var m=e4[t2++];c2=e4[t2++]|e4[t2++]<<8,f2=e4[t2++],1&m||(f2=null),d=m>>2&7,t2++;break;case 254:for(;;){if(!((I=e4[t2++])>=0))throw Error("Invalid block size");if(I===0)break;t2+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e4[t2-1].toString(16))}break;case 44:var _2=e4[t2++]|e4[t2++]<<8,g=e4[t2++]|e4[t2++]<<8,b2=e4[t2++]|e4[t2++]<<8,y2=e4[t2++]|e4[t2++]<<8,w=e4[t2++],v2=w>>6&1,x2=1<<(7&w)+1,E2=s2,k2=l2,S2=!1;w>>7&&(S2=!0,E2=t2,k2=x2,t2+=3*x2);var A2=t2;for(t2++;;){var I;if(!((I=e4[t2++])>=0))throw Error("Invalid block size");if(I===0)break;t2+=I}h2.push({x:_2,y:g,width:b2,height:y2,has_local_palette:S2,palette_offset:E2,palette_size:k2,data_offset:A2,data_length:t2-A2,transparent_index:f2,interlaced:!!v2,delay:c2,disposal:d});break;case 59:u2=!1;break;default:throw new Error("Unknown gif block: 0x"+e4[t2-1].toString(16))}this.numFrames=function(){return h2.length},this.loopCount=function(){return p2},this.frameInfo=function(e5){if(e5<0||e5>=h2.length)throw new Error("Frame index out of range.");return h2[e5]},this.decodeAndBlitFrameBGRA=function(t3,r3){var n3=this.frameInfo(t3),a3=n3.width*n3.height,o3=new Uint8Array(a3);GifReaderLZWOutputIndexStream(e4,n3.data_offset,o3,a3);var s3=n3.palette_offset,l3=n3.transparent_index;l3===null&&(l3=256);var u3=n3.width,h3=i2-u3,c3=u3,f3=4*(n3.y*i2+n3.x),d2=4*((n3.y+n3.height)*i2+n3.x),p3=f3,m2=4*h3;n3.interlaced===!0&&(m2+=4*i2*7);for(var _3=8,g2=0,b3=o3.length;g2=d2&&(m2=4*h3+4*i2*(_3-1),p3=f3+(u3+h3)*(_3<<1),_3>>=1)),y3===l3)p3+=4;else{var w2=e4[s3+3*y3],v3=e4[s3+3*y3+1],x3=e4[s3+3*y3+2];r3[p3++]=x3,r3[p3++]=v3,r3[p3++]=w2,r3[p3++]=255}--c3}},this.decodeAndBlitFrameRGBA=function(t3,r3){var n3=this.frameInfo(t3),a3=n3.width*n3.height,o3=new Uint8Array(a3);GifReaderLZWOutputIndexStream(e4,n3.data_offset,o3,a3);var s3=n3.palette_offset,l3=n3.transparent_index;l3===null&&(l3=256);var u3=n3.width,h3=i2-u3,c3=u3,f3=4*(n3.y*i2+n3.x),d2=4*((n3.y+n3.height)*i2+n3.x),p3=f3,m2=4*h3;n3.interlaced===!0&&(m2+=4*i2*7);for(var _3=8,g2=0,b3=o3.length;g2=d2&&(m2=4*h3+4*i2*(_3-1),p3=f3+(u3+h3)*(_3<<1),_3>>=1)),y3===l3)p3+=4;else{var w2=e4[s3+3*y3],v3=e4[s3+3*y3+1],x3=e4[s3+3*y3+2];r3[p3++]=w2,r3[p3++]=v3,r3[p3++]=x3,r3[p3++]=255}--c3}}}function GifReaderLZWOutputIndexStream(e4,t2,i2,r2){for(var n2=e4[t2++],a2=1<>=l2,h2-=l2,_2!==a2){if(_2===o2)break;for(var g=_2a2;)y2=p2[y2]>>8,++b2;var w=y2;if(f2+b2+(g!==_2?1:0)>r2)return void console.log("Warning, gif stream longer than expected.");i2[f2++]=w;var v2=f2+=b2;for(g!==_2&&(i2[f2++]=w),y2=g;b2--;)y2=p2[y2],i2[--v2]=255&y2,y2>>=8;m!==null&&s2<4096&&(p2[s2++]=m<<8|w,s2>=u2+1&&l2<12&&(++l2,u2=u2<<1|1)),m=_2}else s2=o2+1,u2=(1<<(l2=n2+1))-1,m=null}return f2!==r2&&console.log("Warning, gif stream shorter than expected."),i2}try{GifWriter_1=omggif.GifWriter=GifWriter,GifReader_1=omggif.GifReader=GifReader}catch{}var BitmapImage$2=class e{constructor(...t2){if(t2.length===0)throw new Error("constructor requires parameters");let i2=t2[0];if(i2!==null&&typeof i2=="object")if(i2 instanceof e){let e4=i2.bitmap;this.bitmap={width:e4.width,height:e4.height,data:new Buffer2(e4.width*e4.height*4)},e4.data.copy(this.bitmap.data)}else{if(!(i2.width&&i2.height&&i2.data))throw new Error("unrecognized constructor parameters");this.bitmap=i2}else{if(typeof i2!="number"||typeof t2[1]!="number")throw new Error("unrecognized constructor parameters");{let e4=i2,r2=t2[1],n2=t2[2];this.bitmap={width:e4,height:r2},Buffer2.isBuffer(n2)?this.bitmap.data=n2:(this.bitmap.data=new Buffer2(e4*r2*4),typeof n2=="number"&&this.fillRGBA(n2))}}}blit(e4,t2,i2,r2,n2,a2,o2){if(r2+a2>this.bitmap.width)throw new Error("copy exceeds width of source bitmap");if(t2+a2>e4.bitmap.width)throw new Error("copy exceeds width of target bitmap");if(n2+o2>this.bitmap.height)throw new Error("copy exceeds height of source bitmap");if(i2+o2>e4.bitmap.height)throw new Erro("copy exceeds height of target bitmap");let s2=this.bitmap.data,l2=e4.bitmap.data,u2=4*this.bitmap.width,h2=4*e4.bitmap.width,c2=4*a2,f2=n2*u2+4*r2,d=i2*h2+4*t2;for(;--o2>=0;)s2.copy(l2,d,f2,f2+c2),f2+=u2,d+=h2;return this}fillRGBA(e4){let t2=this.bitmap.data,i2=4*this.bitmap.height,r2=0;for(;r2{let n2=Math.round(.299*e4[r2]+.587*e4[r2+1]+.114*e4[r2+2]);e4[r2]=n2,e4[r2+1]=n2,e4[r2+2]=n2})),this}reframe(t2,i2,r2,n2,a2){let o2=t2<0?0:t2,s2=i2<0?0:i2,l2=r2+o2>this.bitmap.width?this.bitmap.width-o2:r2,u2=n2+s2>this.bitmap.height?this.bitmap.height-s2:n2,h2=t2<0?-t2:0,c2=i2<0?-i2:0,f2;if(a2===void 0){if(o2!==t2||s2!=i2||l2!==r2||u2!==n2)throw new GifError("fillRGBA required for this reframing");f2=new e(r2,n2)}else f2=new e(r2,n2,a2);return this.blit(f2,h2,c2,o2,s2,l2,u2),this.bitmap=f2.bitmap,this}scale(e4){if(e4===1)return;if(!Number.isInteger(e4)||e4<1)throw new Error("the scale must be an integer >= 1");let t2=this.bitmap.width,i2=this.bitmap.height,r2=t2*e4*4,n2=this.bitmap.data,a2=new Buffer2(i2*r2*e4),o2,s2=0,l2=0;for(let u2=0;u2t2 in e4?__defProp$3(e4,t2,{enumerable:!0,configurable:!0,writable:!0,value:i2}):e4[t2]=i2,__markAsModule=e4=>__defProp$3(e4,"__esModule",{value:!0}),__export$1=(e4,t2)=>{for(var i2 in t2)__defProp$3(e4,i2,{get:t2[i2],enumerable:!0})},__reExport=(e4,t2,i2,r2)=>{if(t2&&typeof t2=="object"||typeof t2=="function")for(let n2 of __getOwnPropNames2(t2))!__hasOwnProp2.call(e4,n2)&&i2&&__defProp$3(e4,n2,{get:()=>t2[n2],enumerable:!(r2=__getOwnPropDesc2(t2,n2))||r2.enumerable});return e4},__toCommonJS=(e4=>(t2,i2)=>e4&&e4.get(t2)||(i2=__reExport(__markAsModule({}),t2,1),e4&&e4.set(t2,i2),i2))(typeof WeakMap<"u"?new WeakMap:0),__publicField$3=(e4,t2,i2)=>(__defNormalProp$3(e4,typeof t2!="symbol"?t2+"":t2,i2),i2),src_exports={};__export$1(src_exports,{applyPalette:()=>applyPalette,applyPaletteSync:()=>applyPaletteSync$1,buildPalette:()=>buildPalette,buildPaletteSync:()=>buildPaletteSync$1,constants:()=>constants_exports$1,conversion:()=>conversion_exports$1,distance:()=>distance_exports$1,image:()=>image_exports$1,palette:()=>palette_exports$1,quality:()=>quality_exports$1,utils:()=>utils_exports$1});var constants_exports$1={};__export$1(constants_exports$1,{bt709:()=>bt709_exports$1});var bt709_exports$1={};__export$1(bt709_exports$1,{Y:()=>Y$1,x:()=>x$2,y:()=>y$2});var Y$1=(e4=>(e4[e4.RED=.2126]="RED",e4[e4.GREEN=.7152]="GREEN",e4[e4.BLUE=.0722]="BLUE",e4[e4.WHITE=1]="WHITE",e4))(Y$1||{}),x$2=(e4=>(e4[e4.RED=.64]="RED",e4[e4.GREEN=.3]="GREEN",e4[e4.BLUE=.15]="BLUE",e4[e4.WHITE=.3127]="WHITE",e4))(x$2||{}),y$2=(e4=>(e4[e4.RED=.33]="RED",e4[e4.GREEN=.6]="GREEN",e4[e4.BLUE=.06]="BLUE",e4[e4.WHITE=.329]="WHITE",e4))(y$2||{}),conversion_exports$1={};function correctGamma$1(e4){return e4>.04045?((e4+.055)/1.055)**2.4:e4/12.92}function rgb2xyz$1(e4,t2,i2){return{x:.4124*(e4=correctGamma$1(e4/255))+.3576*(t2=correctGamma$1(t2/255))+.1805*(i2=correctGamma$1(i2/255)),y:.2126*e4+.7152*t2+.0722*i2,z:.0193*e4+.1192*t2+.9505*i2}}__export$1(conversion_exports$1,{lab2rgb:()=>lab2rgb$1,lab2xyz:()=>lab2xyz$1,rgb2hsl:()=>rgb2hsl$1,rgb2lab:()=>rgb2lab$1,rgb2xyz:()=>rgb2xyz$1,xyz2lab:()=>xyz2lab$1,xyz2rgb:()=>xyz2rgb$1});var arithmetic_exports$1={};function degrees2radians$1(e4){return e4*(Math.PI/180)}function max3$1(e4,t2,i2){let r2=e4;return r2t2&&(r2=t2),r2>i2&&(r2=i2),r2}function intInRange$1(e4,t2,i2){return e4>i2&&(e4=i2),e4255?e4=255:e4<0&&(e4=0),e4}function inRange0to255$1(e4){return e4>255?e4=255:e4<0&&(e4=0),e4}function stableSort$1(e4,t2){let i2=typeof e4[0],r2;if(i2==="number"||i2==="string"){let i3=Object.create(null);for(let t3=0,r3=e4.length;t3t2(e5,r3)||i3[e5]-i3[r3]))}else{let i3=e4.slice(0);r2=e4.sort(((e5,r3)=>t2(e5,r3)||i3.indexOf(e5)-i3.indexOf(r3)))}return r2}function rgb2hsl$1(e4,t2,i2){let r2=min3$1(e4,t2,i2),n2=max3$1(e4,t2,i2),a2=n2-r2,o2=(r2+n2)/510,s2=0;o2>0&&o2<1&&(s2=a2/(o2<.5?n2+r2:510-n2-r2));let l2=0;return a2>0&&(l2=n2===e4?(t2-i2)/a2:n2===t2?2+(i2-e4)/a2:4+(e4-t2)/a2,l2*=60,l2<0&&(l2+=360)),{h:l2,s:s2,l:o2}}__export$1(arithmetic_exports$1,{degrees2radians:()=>degrees2radians$1,inRange0to255:()=>inRange0to255$1,inRange0to255Rounded:()=>inRange0to255Rounded$1,intInRange:()=>intInRange$1,max3:()=>max3$1,min3:()=>min3$1,stableSort:()=>stableSort$1});var refX$1=.95047,refY$1=1,refZ$1=1.08883;function pivot$1(e4){return e4>.008856?e4**(1/3):7.787*e4+16/116}function xyz2lab$1(e4,t2,i2){if(e4=pivot$1(e4/refX$1),t2=pivot$1(t2/refY$1),i2=pivot$1(i2/refZ$1),116*t2-16<0)throw new Error("xxx");return{L:Math.max(0,116*t2-16),a:500*(e4-t2),b:200*(t2-i2)}}function rgb2lab$1(e4,t2,i2){let r2=rgb2xyz$1(e4,t2,i2);return xyz2lab$1(r2.x,r2.y,r2.z)}var refX2$1=.95047,refY2$1=1,refZ2$1=1.08883;function pivot2$1(e4){return e4>.206893034?e4**3:(e4-16/116)/7.787}function lab2xyz$1(e4,t2,i2){let r2=(e4+16)/116,n2=r2-i2/200;return{x:refX2$1*pivot2$1(t2/500+r2),y:refY2$1*pivot2$1(r2),z:refZ2$1*pivot2$1(n2)}}function correctGamma2$1(e4){return e4>.0031308?1.055*e4**(1/2.4)-.055:12.92*e4}function xyz2rgb$1(e4,t2,i2){let r2=correctGamma2$1(3.2406*e4+-1.5372*t2+-.4986*i2),n2=correctGamma2$1(-.9689*e4+1.8758*t2+.0415*i2),a2=correctGamma2$1(.0557*e4+-.204*t2+1.057*i2);return{r:inRange0to255Rounded$1(255*r2),g:inRange0to255Rounded$1(255*n2),b:inRange0to255Rounded$1(255*a2)}}function lab2rgb$1(e4,t2,i2){let r2=lab2xyz$1(e4,t2,i2);return xyz2rgb$1(r2.x,r2.y,r2.z)}var distance_exports$1={};__export$1(distance_exports$1,{AbstractDistanceCalculator:()=>AbstractDistanceCalculator$1,AbstractEuclidean:()=>AbstractEuclidean$1,AbstractManhattan:()=>AbstractManhattan$1,CIE94GraphicArts:()=>CIE94GraphicArts$1,CIE94Textiles:()=>CIE94Textiles$1,CIEDE2000:()=>CIEDE2000$1,CMetric:()=>CMetric$1,Euclidean:()=>Euclidean$1,EuclideanBT709:()=>EuclideanBT709$1,EuclideanBT709NoAlpha:()=>EuclideanBT709NoAlpha$1,Manhattan:()=>Manhattan$1,ManhattanBT709:()=>ManhattanBT709$1,ManhattanNommyde:()=>ManhattanNommyde$1,PNGQuant:()=>PNGQuant$1});var AbstractDistanceCalculator$1=class{constructor(){__publicField$3(this,"_maxDistance"),__publicField$3(this,"_whitePoint"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(e4,t2,i2,r2){this._whitePoint={r:e4>0?255/e4:0,g:t2>0?255/t2:0,b:i2>0?255/i2:0,a:r2>0?255/r2:0},this._maxDistance=this.calculateRaw(e4,t2,i2,r2,0,0,0,0)}calculateNormalized(e4,t2){return this.calculateRaw(e4.r,e4.g,e4.b,e4.a,t2.r,t2.g,t2.b,t2.a)/this._maxDistance}},AbstractCIE94$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=rgb2lab$1(inRange0to255$1(e4*this._whitePoint.r),inRange0to255$1(t2*this._whitePoint.g),inRange0to255$1(i2*this._whitePoint.b)),u2=rgb2lab$1(inRange0to255$1(n2*this._whitePoint.r),inRange0to255$1(a2*this._whitePoint.g),inRange0to255$1(o2*this._whitePoint.b)),h2=l2.L-u2.L,c2=l2.a-u2.a,f2=l2.b-u2.b,d=Math.sqrt(l2.a*l2.a+l2.b*l2.b),p2=d-Math.sqrt(u2.a*u2.a+u2.b*u2.b),m=c2*c2+f2*f2-p2*p2;m=m<0?0:Math.sqrt(m);let _2=(s2-r2)*this._whitePoint.a*this._kA;return Math.sqrt((h2/this._Kl)**2+(p2/(1+this._K1*d))**2+(m/(1+this._K2*d))**2+_2**2)}},CIE94Textiles$1=class extends AbstractCIE94$1{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},CIE94GraphicArts$1=class extends AbstractCIE94$1{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},_CIEDE2000$1=class extends AbstractDistanceCalculator$1{_setDefaults(){}static _calculatehp(e4,t2){let i2=Math.atan2(e4,t2);return i2>=0?i2:i2+_CIEDE2000$1._deg360InRad}static _calculateRT(e4,t2){let i2=t2**7,r2=2*Math.sqrt(i2/(i2+_CIEDE2000$1._pow25to7)),n2=_CIEDE2000$1._deg30InRad*Math.exp(-(((e4-_CIEDE2000$1._deg275InRad)/_CIEDE2000$1._deg25InRad)**2));return-Math.sin(2*n2)*r2}static _calculateT(e4){return 1-.17*Math.cos(e4-_CIEDE2000$1._deg30InRad)+.24*Math.cos(2*e4)+.32*Math.cos(3*e4+_CIEDE2000$1._deg6InRad)-.2*Math.cos(4*e4-_CIEDE2000$1._deg63InRad)}static _calculate_ahp(e4,t2,i2,r2){let n2=i2+r2;return e4===0?n2:t2<=_CIEDE2000$1._deg180InRad?n2/2:n2<_CIEDE2000$1._deg360InRad?(n2+_CIEDE2000$1._deg360InRad)/2:(n2-_CIEDE2000$1._deg360InRad)/2}static _calculate_dHp(e4,t2,i2,r2){let n2;return n2=e4===0?0:t2<=_CIEDE2000$1._deg180InRad?i2-r2:i2<=r2?i2-r2+_CIEDE2000$1._deg360InRad:i2-r2-_CIEDE2000$1._deg360InRad,2*Math.sqrt(e4)*Math.sin(n2/2)}calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=rgb2lab$1(inRange0to255$1(e4*this._whitePoint.r),inRange0to255$1(t2*this._whitePoint.g),inRange0to255$1(i2*this._whitePoint.b)),u2=rgb2lab$1(inRange0to255$1(n2*this._whitePoint.r),inRange0to255$1(a2*this._whitePoint.g),inRange0to255$1(o2*this._whitePoint.b)),h2=(s2-r2)*this._whitePoint.a*_CIEDE2000$1._kA,c2=this.calculateRawInLab(l2,u2);return Math.sqrt(c2+h2*h2)}calculateRawInLab(e4,t2){let i2=e4.L,r2=e4.a,n2=e4.b,a2=t2.L,o2=t2.a,s2=t2.b,l2=((Math.sqrt(r2*r2+n2*n2)+Math.sqrt(o2*o2+s2*s2))/2)**7,u2=.5*(1-Math.sqrt(l2/(l2+_CIEDE2000$1._pow25to7))),h2=(1+u2)*r2,c2=(1+u2)*o2,f2=Math.sqrt(h2*h2+n2*n2),d=Math.sqrt(c2*c2+s2*s2),p2=f2*d,m=_CIEDE2000$1._calculatehp(n2,h2),_2=_CIEDE2000$1._calculatehp(s2,c2),g=Math.abs(m-_2),b2=a2-i2,y2=d-f2,w=_CIEDE2000$1._calculate_dHp(p2,g,_2,m),v2=_CIEDE2000$1._calculate_ahp(p2,g,m,_2),x2=(f2+d)/2,E2=((i2+a2)/2-50)**2,k2=y2/(1+.045*x2),S2=w/(1+.015*_CIEDE2000$1._calculateT(v2)*x2);return(b2/(1+.015*E2/Math.sqrt(20+E2)))**2+k2**2+S2**2+_CIEDE2000$1._calculateRT(v2,x2)*k2*S2}},CIEDE2000$1=_CIEDE2000$1;__publicField$3(CIEDE2000$1,"_kA",25/255),__publicField$3(CIEDE2000$1,"_pow25to7",25**7),__publicField$3(CIEDE2000$1,"_deg360InRad",degrees2radians$1(360)),__publicField$3(CIEDE2000$1,"_deg180InRad",degrees2radians$1(180)),__publicField$3(CIEDE2000$1,"_deg30InRad",degrees2radians$1(30)),__publicField$3(CIEDE2000$1,"_deg6InRad",degrees2radians$1(6)),__publicField$3(CIEDE2000$1,"_deg63InRad",degrees2radians$1(63)),__publicField$3(CIEDE2000$1,"_deg275InRad",degrees2radians$1(275)),__publicField$3(CIEDE2000$1,"_deg25InRad",degrees2radians$1(25));var CMetric$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=(e4+n2)/2*this._whitePoint.r,u2=(e4-n2)*this._whitePoint.r,h2=(t2-a2)*this._whitePoint.g,c2=(i2-o2)*this._whitePoint.b,f2=((512+l2)*u2*u2>>8)+4*h2*h2+((767-l2)*c2*c2>>8),d=(s2-r2)*this._whitePoint.a;return Math.sqrt(f2+d*d)}_setDefaults(){}},AbstractEuclidean$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=n2-e4,u2=a2-t2,h2=o2-i2,c2=s2-r2;return Math.sqrt(this._kR*l2*l2+this._kG*u2*u2+this._kB*h2*h2+this._kA*c2*c2)}},Euclidean$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},EuclideanBT709$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},EuclideanBT709NoAlpha$1=class extends AbstractEuclidean$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},AbstractManhattan$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=n2-e4,u2=a2-t2,h2=o2-i2,c2=s2-r2;return l2<0&&(l2=0-l2),u2<0&&(u2=0-u2),h2<0&&(h2=0-h2),c2<0&&(c2=0-c2),this._kR*l2+this._kG*u2+this._kB*h2+this._kA*c2}},Manhattan$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},ManhattanNommyde$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},ManhattanBT709$1=class extends AbstractManhattan$1{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},PNGQuant$1=class extends AbstractDistanceCalculator$1{calculateRaw(e4,t2,i2,r2,n2,a2,o2,s2){let l2=(s2-r2)*this._whitePoint.a;return this._colordifferenceCh(e4*this._whitePoint.r,n2*this._whitePoint.r,l2)+this._colordifferenceCh(t2*this._whitePoint.g,a2*this._whitePoint.g,l2)+this._colordifferenceCh(i2*this._whitePoint.b,o2*this._whitePoint.b,l2)}_colordifferenceCh(e4,t2,i2){let r2=e4-t2,n2=r2+i2;return r2*r2+n2*n2}_setDefaults(){}},palette_exports$1={};__export$1(palette_exports$1,{AbstractPaletteQuantizer:()=>AbstractPaletteQuantizer$1,ColorHistogram:()=>ColorHistogram$1,NeuQuant:()=>NeuQuant$1,NeuQuantFloat:()=>NeuQuantFloat$1,RGBQuant:()=>RGBQuant$1,WuColorCube:()=>WuColorCube$1,WuQuant:()=>WuQuant$1});var AbstractPaletteQuantizer$1=class{quantizeSync(){for(let e4 of this.quantize())if(e4.palette)return e4.palette;throw new Error("unreachable")}},Point$1=class{constructor(){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),__publicField$3(this,"uint32"),__publicField$3(this,"rgba"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(e4){let t2=new Point$1;return t2.r=0|e4[0],t2.g=0|e4[1],t2.b=0|e4[2],t2.a=0|e4[3],t2._loadUINT32(),t2._loadQuadruplet(),t2}static createByRGBA(e4,t2,i2,r2){let n2=new Point$1;return n2.r=0|e4,n2.g=0|t2,n2.b=0|i2,n2.a=0|r2,n2._loadUINT32(),n2._loadQuadruplet(),n2}static createByUint32(e4){let t2=new Point$1;return t2.uint32=e4>>>0,t2._loadRGBA(),t2._loadQuadruplet(),t2}from(e4){this.r=e4.r,this.g=e4.g,this.b=e4.b,this.a=e4.a,this.uint32=e4.uint32,this.rgba[0]=e4.r,this.rgba[1]=e4.g,this.rgba[2]=e4.b,this.rgba[3]=e4.a}getLuminosity(e4){let t2=this.r,i2=this.g,r2=this.b;return e4&&(t2=Math.min(255,255-this.a+this.a*t2/255),i2=Math.min(255,255-this.a+this.a*i2/255),r2=Math.min(255,255-this.a+this.a*r2/255)),.2126*t2+.7152*i2+.0722*r2}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},PointContainer$1=class{constructor(){__publicField$3(this,"_pointArray"),__publicField$3(this,"_width"),__publicField$3(this,"_height"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(e4){this._width=e4}setHeight(e4){this._height=e4}getPointArray(){return this._pointArray}clone(){let e4=new PointContainer$1;e4._width=this._width,e4._height=this._height;for(let t2=0,i2=this._pointArray.length;t2=n2&&e4=0;t2--)if(e4.uint32===this._pointArray[t2].uint32)return!0;return!1}getNearestColor(e4,t2){return this._pointArray[0|this._getNearestIndex(e4,t2)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(e4){return typeof this._i32idx[e4]=="number"?this._i32idx[e4]:-1}_getNearestIndex(e4,t2){let i2=this._nearestPointFromCache(""+t2.uint32);if(i2>=0)return i2;let r2=Number.MAX_VALUE;i2=0;for(let n2=0,a2=this._pointArray.length;n2{let i2=rgb2hsl$1(e4.r,e4.g,e4.b),r2=rgb2hsl$1(t2.r,t2.g,t2.b),n2=e4.r===e4.g&&e4.g===e4.b?0:1+hueGroup$1(i2.h,hueGroups$1),a2=(t2.r===t2.g&&t2.g===t2.b?0:1+hueGroup$1(r2.h,hueGroups$1))-n2;if(a2)return-a2;let o2=e4.getLuminosity(!0),s2=t2.getLuminosity(!0);if(s2-o2!=0)return s2-o2;let l2=(100*r2.s|0)-(100*i2.s|0);return l2?-l2:0}))}},utils_exports$1={};__export$1(utils_exports$1,{HueStatistics:()=>HueStatistics$1,Palette:()=>Palette$1,Point:()=>Point$1,PointContainer:()=>PointContainer$1,ProgressTracker:()=>ProgressTracker$1,arithmetic:()=>arithmetic_exports$1});var HueGroup$1=class{constructor(){__publicField$3(this,"num",0),__publicField$3(this,"cols",[])}},HueStatistics$1=class{constructor(e4,t2){__publicField$3(this,"_numGroups"),__publicField$3(this,"_minCols"),__publicField$3(this,"_stats"),__publicField$3(this,"_groupsFull"),this._numGroups=e4,this._minCols=t2,this._stats=[];for(let t3=0;t3<=e4;t3++)this._stats[t3]=new HueGroup$1;this._groupsFull=0}check(e4){this._groupsFull===this._numGroups+1&&(this.check=()=>{});let t2=255&e4,i2=e4>>>8&255,r2=e4>>>16&255,n2=t2===i2&&i2===r2?0:1+hueGroup$1(rgb2hsl$1(t2,i2,r2).h,this._numGroups),a2=this._stats[n2],o2=this._minCols;a2.num++,a2.num>o2||(a2.num===o2&&this._groupsFull++,a2.num<=o2&&this._stats[n2].cols.push(e4))}injectIntoDictionary(e4){for(let t2=0;t2<=this._numGroups;t2++)this._stats[t2].num<=this._minCols&&this._stats[t2].cols.forEach((t3=>{e4[t3]?e4[t3]++:e4[t3]=1}))}injectIntoArray(e4){for(let t2=0;t2<=this._numGroups;t2++)this._stats[t2].num<=this._minCols&&this._stats[t2].cols.forEach((t3=>{e4.indexOf(t3)===-1&&e4.push(t3)}))}},_ProgressTracker$1=class{constructor(e4,t2){__publicField$3(this,"progress"),__publicField$3(this,"_step"),__publicField$3(this,"_range"),__publicField$3(this,"_last"),__publicField$3(this,"_progressRange"),this._range=e4,this._progressRange=t2,this._step=Math.max(1,this._range/(_ProgressTracker$1.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(e4){return e4-this._last>=this._step&&(this._last=e4,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ProgressTracker$1=_ProgressTracker$1;__publicField$3(ProgressTracker$1,"steps",100);var networkBiasShift$1=3,Neuron$1=class{constructor(e4){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),this.r=this.g=this.b=this.a=e4}toPoint(){return Point$1.createByRGBA(this.r>>networkBiasShift$1,this.g>>networkBiasShift$1,this.b>>networkBiasShift$1,this.a>>networkBiasShift$1)}subtract(e4,t2,i2,r2){this.r-=0|e4,this.g-=0|t2,this.b-=0|i2,this.a-=0|r2}},_NeuQuant$1=class extends AbstractPaletteQuantizer$1{constructor(e4,t2=256){super(),__publicField$3(this,"_pointArray"),__publicField$3(this,"_networkSize"),__publicField$3(this,"_network"),__publicField$3(this,"_sampleFactor"),__publicField$3(this,"_radPower"),__publicField$3(this,"_freq"),__publicField$3(this,"_bias"),__publicField$3(this,"_distance"),this._distance=e4,this._pointArray=[],this._sampleFactor=1,this._networkSize=t2,this._distance.setWhitePoint(255<>3)*_NeuQuant$1._radiusBias,l2=s2>>_NeuQuant$1._radiusBiasShift;l2<=1&&(l2=0);for(let e5=0;e5>>0;n2=t2<_NeuQuant$1._minpicturebytes?1:t2%_NeuQuant$1._prime1!=0?_NeuQuant$1._prime1:t2%_NeuQuant$1._prime2!=0?_NeuQuant$1._prime2:t2%_NeuQuant$1._prime3!=0?_NeuQuant$1._prime3:_NeuQuant$1._prime4;let u2=new ProgressTracker$1(r2,99);for(let e5=0,h2=0;e5=t2&&(h2-=t2),e5++,a2===0&&(a2=1),e5%a2==0){o2-=o2/i2|0,s2-=s2/_NeuQuant$1._radiusDecrease|0,l2=s2>>_NeuQuant$1._radiusBiasShift,l2<=1&&(l2=0);for(let e6=0;e6>>0}}}_buildPalette(){let e4=new Palette$1;return this._network.forEach((t2=>{e4.add(t2.toPoint())})),e4.sort(),e4}_alterNeighbour(e4,t2,i2,r2,n2,a2){let o2=t2-e4;o2<-1&&(o2=-1);let s2=t2+e4;s2>this._networkSize&&(s2=this._networkSize);let l2=t2+1,u2=t2-1,h2=1;for(;l2o2;){let e5=this._radPower[h2++]/_NeuQuant$1._alphaRadBias;if(l2o2){let t3=this._network[u2--];t3.subtract(e5*(t3.r-n2),e5*(t3.g-r2),e5*(t3.b-i2),e5*(t3.a-a2))}}}_alterSingle(e4,t2,i2,r2,n2,a2){e4/=_NeuQuant$1._initAlpha;let o2=this._network[t2];o2.subtract(e4*(o2.r-n2),e4*(o2.g-r2),e4*(o2.b-i2),e4*(o2.a-a2))}_contest(e4,t2,i2,r2){let n2=1020<>_NeuQuant$1._initialBiasShift-networkBiasShift$1);f2>_NeuQuant$1._betaShift;this._freq[u2]-=d,this._bias[u2]+=d<<_NeuQuant$1._gammaShift}return this._freq[s2]+=_NeuQuant$1._beta,this._bias[s2]-=_NeuQuant$1._betaGamma,l2}},NeuQuant$1=_NeuQuant$1;__publicField$3(NeuQuant$1,"_prime1",499),__publicField$3(NeuQuant$1,"_prime2",491),__publicField$3(NeuQuant$1,"_prime3",487),__publicField$3(NeuQuant$1,"_prime4",503),__publicField$3(NeuQuant$1,"_minpicturebytes",_NeuQuant$1._prime4),__publicField$3(NeuQuant$1,"_nCycles",100),__publicField$3(NeuQuant$1,"_initialBiasShift",16),__publicField$3(NeuQuant$1,"_initialBias",1<<_NeuQuant$1._initialBiasShift),__publicField$3(NeuQuant$1,"_gammaShift",10),__publicField$3(NeuQuant$1,"_betaShift",10),__publicField$3(NeuQuant$1,"_beta",_NeuQuant$1._initialBias>>_NeuQuant$1._betaShift),__publicField$3(NeuQuant$1,"_betaGamma",_NeuQuant$1._initialBias<<_NeuQuant$1._gammaShift-_NeuQuant$1._betaShift),__publicField$3(NeuQuant$1,"_radiusBiasShift",6),__publicField$3(NeuQuant$1,"_radiusBias",1<<_NeuQuant$1._radiusBiasShift),__publicField$3(NeuQuant$1,"_radiusDecrease",30),__publicField$3(NeuQuant$1,"_alphaBiasShift",10),__publicField$3(NeuQuant$1,"_initAlpha",1<<_NeuQuant$1._alphaBiasShift),__publicField$3(NeuQuant$1,"_radBiasShift",8),__publicField$3(NeuQuant$1,"_radBias",1<<_NeuQuant$1._radBiasShift),__publicField$3(NeuQuant$1,"_alphaRadBiasShift",_NeuQuant$1._alphaBiasShift+_NeuQuant$1._radBiasShift),__publicField$3(NeuQuant$1,"_alphaRadBias",1<<_NeuQuant$1._alphaRadBiasShift);var networkBiasShift2$1=3,NeuronFloat$1=class{constructor(e4){__publicField$3(this,"r"),__publicField$3(this,"g"),__publicField$3(this,"b"),__publicField$3(this,"a"),this.r=this.g=this.b=this.a=e4}toPoint(){return Point$1.createByRGBA(this.r>>networkBiasShift2$1,this.g>>networkBiasShift2$1,this.b>>networkBiasShift2$1,this.a>>networkBiasShift2$1)}subtract(e4,t2,i2,r2){this.r-=e4,this.g-=t2,this.b-=i2,this.a-=r2}},_NeuQuantFloat$1=class extends AbstractPaletteQuantizer$1{constructor(e4,t2=256){super(),__publicField$3(this,"_pointArray"),__publicField$3(this,"_networkSize"),__publicField$3(this,"_network"),__publicField$3(this,"_sampleFactor"),__publicField$3(this,"_radPower"),__publicField$3(this,"_freq"),__publicField$3(this,"_bias"),__publicField$3(this,"_distance"),this._distance=e4,this._pointArray=[],this._sampleFactor=1,this._networkSize=t2,this._distance.setWhitePoint(255<>3)*_NeuQuantFloat$1._radiusBias,l2=s2>>_NeuQuantFloat$1._radiusBiasShift;l2<=1&&(l2=0);for(let e5=0;e5=t2&&(h2-=t2),e5++,a2===0&&(a2=1),e5%a2==0){o2-=o2/i2,s2-=s2/_NeuQuantFloat$1._radiusDecrease,l2=s2>>_NeuQuantFloat$1._radiusBiasShift,l2<=1&&(l2=0);for(let e6=0;e6{e4.add(t2.toPoint())})),e4.sort(),e4}_alterNeighbour(e4,t2,i2,r2,n2,a2){let o2=t2-e4;o2<-1&&(o2=-1);let s2=t2+e4;s2>this._networkSize&&(s2=this._networkSize);let l2=t2+1,u2=t2-1,h2=1;for(;l2o2;){let e5=this._radPower[h2++]/_NeuQuantFloat$1._alphaRadBias;if(l2o2){let t3=this._network[u2--];t3.subtract(e5*(t3.r-n2),e5*(t3.g-r2),e5*(t3.b-i2),e5*(t3.a-a2))}}}_alterSingle(e4,t2,i2,r2,n2,a2){e4/=_NeuQuantFloat$1._initAlpha;let o2=this._network[t2];o2.subtract(e4*(o2.r-n2),e4*(o2.g-r2),e4*(o2.b-i2),e4*(o2.a-a2))}_contest(e4,t2,i2,r2){let n2=1020<>_NeuQuantFloat$1._initialBiasShift-networkBiasShift2$1);f2>_NeuQuantFloat$1._betaShift;this._freq[u2]-=d,this._bias[u2]+=d<<_NeuQuantFloat$1._gammaShift}return this._freq[s2]+=_NeuQuantFloat$1._beta,this._bias[s2]-=_NeuQuantFloat$1._betaGamma,l2}},NeuQuantFloat$1=_NeuQuantFloat$1;__publicField$3(NeuQuantFloat$1,"_prime1",499),__publicField$3(NeuQuantFloat$1,"_prime2",491),__publicField$3(NeuQuantFloat$1,"_prime3",487),__publicField$3(NeuQuantFloat$1,"_prime4",503),__publicField$3(NeuQuantFloat$1,"_minpicturebytes",_NeuQuantFloat$1._prime4),__publicField$3(NeuQuantFloat$1,"_nCycles",100),__publicField$3(NeuQuantFloat$1,"_initialBiasShift",16),__publicField$3(NeuQuantFloat$1,"_initialBias",1<<_NeuQuantFloat$1._initialBiasShift),__publicField$3(NeuQuantFloat$1,"_gammaShift",10),__publicField$3(NeuQuantFloat$1,"_betaShift",10),__publicField$3(NeuQuantFloat$1,"_beta",_NeuQuantFloat$1._initialBias>>_NeuQuantFloat$1._betaShift),__publicField$3(NeuQuantFloat$1,"_betaGamma",_NeuQuantFloat$1._initialBias<<_NeuQuantFloat$1._gammaShift-_NeuQuantFloat$1._betaShift),__publicField$3(NeuQuantFloat$1,"_radiusBiasShift",6),__publicField$3(NeuQuantFloat$1,"_radiusBias",1<<_NeuQuantFloat$1._radiusBiasShift),__publicField$3(NeuQuantFloat$1,"_radiusDecrease",30),__publicField$3(NeuQuantFloat$1,"_alphaBiasShift",10),__publicField$3(NeuQuantFloat$1,"_initAlpha",1<<_NeuQuantFloat$1._alphaBiasShift),__publicField$3(NeuQuantFloat$1,"_radBiasShift",8),__publicField$3(NeuQuantFloat$1,"_radBias",1<<_NeuQuantFloat$1._radBiasShift),__publicField$3(NeuQuantFloat$1,"_alphaRadBiasShift",_NeuQuantFloat$1._alphaBiasShift+_NeuQuantFloat$1._radBiasShift),__publicField$3(NeuQuantFloat$1,"_alphaRadBias",1<<_NeuQuantFloat$1._alphaRadBiasShift);var _ColorHistogram$1=class{constructor(e4,t2){__publicField$3(this,"_method"),__publicField$3(this,"_hueStats"),__publicField$3(this,"_histogram"),__publicField$3(this,"_initColors"),__publicField$3(this,"_minHueCols"),this._method=e4,this._minHueCols=t2<<2,this._initColors=t2<<2,this._hueStats=new HueStatistics$1(_ColorHistogram$1._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(e4){switch(this._method){case 1:this._colorStats1D(e4);break;case 2:this._colorStats2D(e4)}}getImportanceSortedColorsIDXI32(){let e4=stableSort$1(Object.keys(this._histogram),((e5,t3)=>this._histogram[t3]-this._histogram[e5]));if(e4.length===0)return[];let t2;switch(this._method){case 1:let i2=Math.min(e4.length,this._initColors),r2=e4[i2-1],n2=this._histogram[r2];t2=e4.slice(0,i2);let a2=i2,o2=e4.length;for(;a2+e5))}_colorStats1D(e4){let t2=this._histogram,i2=e4.getPointArray(),r2=i2.length;for(let e5=0;e5{let i3=Math.round(e5.w*e5.h/o2)*_ColorHistogram$1._boxPixels;i3<2&&(i3=2);let n3={};this._iterateBox(e5,t2,(e6=>{let t3=r2[e6].uint32;this._hueStats.check(t3),t3 in l2?l2[t3]++:t3 in n3?++n3[t3]>=i3&&(l2[t3]=n3[t3]):n3[t3]=1}))})),this._hueStats.injectIntoDictionary(l2)}_iterateBox(e4,t2,i2){let r2=e4,n2=r2.y*t2+r2.x,a2=(r2.y+r2.h-1)*t2+(r2.x+r2.w-1),o2=t2-r2.w+1,s2=0,l2=n2;do i2.call(this,l2),l2+=++s2%r2.w==0?o2:1;while(l2<=a2)}_makeBoxes(e4,t2,i2,r2){let n2=e4%i2,a2=t2%r2,o2=e4-n2,s2=t2-a2,l2=[];for(let u2=0;u2this._colors;){a2.length=0;for(let e5=0;e53*this._colors?this._initialDistance:this._distanceIncrement}if(o2t3.distance-e6.distance));let e5=0;for(;o2=0;e5--)r2[e5]===0&&(e5!==u2-1&&(i2[e5]=i2[u2-1]),--u2);i2.length=u2,t2.sort(),yield{palette:t2,progress:100}}};function createArray1D$1(e4){let t2=[];for(let i2=0;i20){let i2=this._sums[t2],r2=this._reds[t2]/i2,n2=this._greens[t2]/i2,a2=this._blues[t2]/i2,o2=this._alphas[t2]/i2,s2=Point$1.createByRGBA(0|r2,0|n2,0|a2,0|o2);e4.add(s2)}e4.sort(),yield{palette:e4,progress:100}}*_preparePalette(){yield*this._calculateMoments();let e4=0,t2=createArray1D$1(this._colors);for(let i3=1;i31?this._calculateVariance(this._cubes[e4]):0,t2[i3]=this._cubes[i3].volume>1?this._calculateVariance(this._cubes[i3]):0):(t2[e4]=0,i3--),e4=0;let r3=t2[0];for(let n3=1;n3<=i3;++n3)t2[n3]>r3&&(r3=t2[n3],e4=n3);if(r3<=0){this._colors=i3+1;break}}let i2=[],r2=[],n2=[],a2=[];for(let e5=0;e50?(i2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsRed)/t3|0,r2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsGreen)/t3|0,n2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsBlue)/t3|0,a2[e5]=_WuQuant$1._volume(this._cubes[e5],this._momentsAlpha)/t3|0):(i2[e5]=0,r2[e5]=0,n2[e5]=0,a2[e5]=0)}this._reds=createArray1D$1(this._colors+1),this._greens=createArray1D$1(this._colors+1),this._blues=createArray1D$1(this._colors+1),this._alphas=createArray1D$1(this._colors+1),this._sums=createArray1D$1(this._colors+1);for(let e5=0,t3=this._pixels.length;e5>t2),r2=1+(e4.g>>t2),n2=1+(e4.b>>t2),a2=1+(e4.a>>t2);this._weights[a2][i2][r2][n2]++,this._momentsRed[a2][i2][r2][n2]+=e4.r,this._momentsGreen[a2][i2][r2][n2]+=e4.g,this._momentsBlue[a2][i2][r2][n2]+=e4.b,this._momentsAlpha[a2][i2][r2][n2]+=e4.a,this._moments[a2][i2][r2][n2]+=this._table[e4.r]+this._table[e4.g]+this._table[e4.b]+this._table[e4.a]}*_calculateMoments(){let e4=[],t2=[],i2=[],r2=[],n2=[],a2=[],o2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),s2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),l2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),u2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),h2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),c2=createArray3D$1(this._sideSize,this._sideSize,this._sideSize),f2=0,d=new ProgressTracker$1(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let p2=1;p2<=this._alphaMaxSideIndex;++p2){fillArray3D$1(o2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(s2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(l2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(u2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(h2,this._sideSize,this._sideSize,this._sideSize,0),fillArray3D$1(c2,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++f2){d.shouldNotify(f2)&&(yield{progress:d.progress}),fillArray1D$1(e4,this._sideSize,0),fillArray1D$1(t2,this._sideSize,0),fillArray1D$1(i2,this._sideSize,0),fillArray1D$1(r2,this._sideSize,0),fillArray1D$1(n2,this._sideSize,0),fillArray1D$1(a2,this._sideSize,0);for(let f3=1;f3<=this._maxSideIndex;++f3){let d2=0,_2=0,g=0,b2=0,y2=0,w=0;for(let v2=1;v2<=this._maxSideIndex;++v2)d2+=this._weights[p2][m][f3][v2],_2+=this._momentsRed[p2][m][f3][v2],g+=this._momentsGreen[p2][m][f3][v2],b2+=this._momentsBlue[p2][m][f3][v2],y2+=this._momentsAlpha[p2][m][f3][v2],w+=this._moments[p2][m][f3][v2],e4[v2]+=d2,t2[v2]+=_2,i2[v2]+=g,r2[v2]+=b2,n2[v2]+=y2,a2[v2]+=w,o2[m][f3][v2]=o2[m-1][f3][v2]+e4[v2],s2[m][f3][v2]=s2[m-1][f3][v2]+t2[v2],l2[m][f3][v2]=l2[m-1][f3][v2]+i2[v2],u2[m][f3][v2]=u2[m-1][f3][v2]+r2[v2],h2[m][f3][v2]=h2[m-1][f3][v2]+n2[v2],c2[m][f3][v2]=c2[m-1][f3][v2]+a2[v2],this._weights[p2][m][f3][v2]=this._weights[p2-1][m][f3][v2]+o2[m][f3][v2],this._momentsRed[p2][m][f3][v2]=this._momentsRed[p2-1][m][f3][v2]+s2[m][f3][v2],this._momentsGreen[p2][m][f3][v2]=this._momentsGreen[p2-1][m][f3][v2]+l2[m][f3][v2],this._momentsBlue[p2][m][f3][v2]=this._momentsBlue[p2-1][m][f3][v2]+u2[m][f3][v2],this._momentsAlpha[p2][m][f3][v2]=this._momentsAlpha[p2-1][m][f3][v2]+h2[m][f3][v2],this._moments[p2][m][f3][v2]=this._moments[p2-1][m][f3][v2]+c2[m][f3][v2]}}}}static _volumeFloat(e4,t2){return t2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]-t2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-t2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+t2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-t2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]+t2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+t2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-t2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(t2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-t2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-t2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+t2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-t2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+t2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+t2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]-t2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum])}static _volume(e4,t2){return 0|_WuQuant$1._volumeFloat(e4,t2)}static _top(e4,t2,i2,r2){let n2;switch(t2){case _WuQuant$1._alpha:n2=r2[i2][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]-r2[i2][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-r2[i2][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+r2[i2][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(r2[i2][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]-r2[i2][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-r2[i2][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+r2[i2][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);break;case _WuQuant$1._red:n2=r2[e4.alphaMaximum][i2][e4.greenMaximum][e4.blueMaximum]-r2[e4.alphaMaximum][i2][e4.greenMinimum][e4.blueMaximum]-r2[e4.alphaMinimum][i2][e4.greenMaximum][e4.blueMaximum]+r2[e4.alphaMinimum][i2][e4.greenMinimum][e4.blueMaximum]-(r2[e4.alphaMaximum][i2][e4.greenMaximum][e4.blueMinimum]-r2[e4.alphaMaximum][i2][e4.greenMinimum][e4.blueMinimum]-r2[e4.alphaMinimum][i2][e4.greenMaximum][e4.blueMinimum]+r2[e4.alphaMinimum][i2][e4.greenMinimum][e4.blueMinimum]);break;case _WuQuant$1._green:n2=r2[e4.alphaMaximum][e4.redMaximum][i2][e4.blueMaximum]-r2[e4.alphaMaximum][e4.redMinimum][i2][e4.blueMaximum]-r2[e4.alphaMinimum][e4.redMaximum][i2][e4.blueMaximum]+r2[e4.alphaMinimum][e4.redMinimum][i2][e4.blueMaximum]-(r2[e4.alphaMaximum][e4.redMaximum][i2][e4.blueMinimum]-r2[e4.alphaMaximum][e4.redMinimum][i2][e4.blueMinimum]-r2[e4.alphaMinimum][e4.redMaximum][i2][e4.blueMinimum]+r2[e4.alphaMinimum][e4.redMinimum][i2][e4.blueMinimum]);break;case _WuQuant$1._blue:n2=r2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][i2]-r2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][i2]-r2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][i2]+r2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][i2]-(r2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][i2]-r2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][i2]-r2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][i2]+r2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][i2]);break;default:throw new Error("impossible")}return 0|n2}static _bottom(e4,t2,i2){switch(t2){case _WuQuant$1._alpha:return-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._red:return-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._green:return-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMaximum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMaximum]-(-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);case _WuQuant$1._blue:return-i2[e4.alphaMaximum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMaximum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMaximum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]-(-i2[e4.alphaMinimum][e4.redMaximum][e4.greenMaximum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMaximum][e4.greenMinimum][e4.blueMinimum]+i2[e4.alphaMinimum][e4.redMinimum][e4.greenMaximum][e4.blueMinimum]-i2[e4.alphaMinimum][e4.redMinimum][e4.greenMinimum][e4.blueMinimum]);default:return 0}}_calculateVariance(e4){let t2=_WuQuant$1._volume(e4,this._momentsRed),i2=_WuQuant$1._volume(e4,this._momentsGreen),r2=_WuQuant$1._volume(e4,this._momentsBlue),n2=_WuQuant$1._volume(e4,this._momentsAlpha);return _WuQuant$1._volumeFloat(e4,this._moments)-(t2*t2+i2*i2+r2*r2+n2*n2)/_WuQuant$1._volume(e4,this._weights)}_maximize(e4,t2,i2,r2,n2,a2,o2,s2,l2){let u2=0|_WuQuant$1._bottom(e4,t2,this._momentsRed),h2=0|_WuQuant$1._bottom(e4,t2,this._momentsGreen),c2=0|_WuQuant$1._bottom(e4,t2,this._momentsBlue),f2=0|_WuQuant$1._bottom(e4,t2,this._momentsAlpha),d=0|_WuQuant$1._bottom(e4,t2,this._weights),p2=0,m=-1;for(let _2=i2;_2p2&&(p2=t3,m=_2))}}return{max:p2,position:m}}_cut(e4,t2){let i2,r2=_WuQuant$1._volume(e4,this._momentsRed),n2=_WuQuant$1._volume(e4,this._momentsGreen),a2=_WuQuant$1._volume(e4,this._momentsBlue),o2=_WuQuant$1._volume(e4,this._momentsAlpha),s2=_WuQuant$1._volume(e4,this._weights),l2=this._maximize(e4,_WuQuant$1._red,e4.redMinimum+1,e4.redMaximum,r2,n2,a2,o2,s2),u2=this._maximize(e4,_WuQuant$1._green,e4.greenMinimum+1,e4.greenMaximum,r2,n2,a2,o2,s2),h2=this._maximize(e4,_WuQuant$1._blue,e4.blueMinimum+1,e4.blueMaximum,r2,n2,a2,o2,s2),c2=this._maximize(e4,_WuQuant$1._alpha,e4.alphaMinimum+1,e4.alphaMaximum,r2,n2,a2,o2,s2);if(c2.max>=l2.max&&c2.max>=u2.max&&c2.max>=h2.max){if(i2=_WuQuant$1._alpha,c2.position<0)return!1}else i2=l2.max>=c2.max&&l2.max>=u2.max&&l2.max>=h2.max?_WuQuant$1._red:u2.max>=c2.max&&u2.max>=l2.max&&u2.max>=h2.max?_WuQuant$1._green:_WuQuant$1._blue;switch(t2.redMaximum=e4.redMaximum,t2.greenMaximum=e4.greenMaximum,t2.blueMaximum=e4.blueMaximum,t2.alphaMaximum=e4.alphaMaximum,i2){case _WuQuant$1._red:t2.redMinimum=e4.redMaximum=l2.position,t2.greenMinimum=e4.greenMinimum,t2.blueMinimum=e4.blueMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._green:t2.greenMinimum=e4.greenMaximum=u2.position,t2.redMinimum=e4.redMinimum,t2.blueMinimum=e4.blueMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._blue:t2.blueMinimum=e4.blueMaximum=h2.position,t2.redMinimum=e4.redMinimum,t2.greenMinimum=e4.greenMinimum,t2.alphaMinimum=e4.alphaMinimum;break;case _WuQuant$1._alpha:t2.alphaMinimum=e4.alphaMaximum=c2.position,t2.blueMinimum=e4.blueMinimum,t2.redMinimum=e4.redMinimum,t2.greenMinimum=e4.greenMinimum}return e4.volume=(e4.redMaximum-e4.redMinimum)*(e4.greenMaximum-e4.greenMinimum)*(e4.blueMaximum-e4.blueMinimum)*(e4.alphaMaximum-e4.alphaMinimum),t2.volume=(t2.redMaximum-t2.redMinimum)*(t2.greenMaximum-t2.greenMinimum)*(t2.blueMaximum-t2.blueMinimum)*(t2.alphaMaximum-t2.alphaMinimum),!0}_initialize(e4){this._colors=e4,this._cubes=[];for(let t2=0;t2AbstractImageQuantizer$1,ErrorDiffusionArray:()=>ErrorDiffusionArray$1,ErrorDiffusionArrayKernel:()=>ErrorDiffusionArrayKernel$1,ErrorDiffusionRiemersma:()=>ErrorDiffusionRiemersma$1,NearestColor:()=>NearestColor$1});var AbstractImageQuantizer$1=class{quantizeSync(e4,t2){for(let i2 of this.quantize(e4,t2))if(i2.pointContainer)return i2.pointContainer;throw new Error("unreachable")}},NearestColor$1=class extends AbstractImageQuantizer$1{constructor(e4){super(),__publicField$3(this,"_distance"),this._distance=e4}*quantize(e4,t2){let i2=e4.getPointArray(),r2=e4.getWidth(),n2=e4.getHeight(),a2=new ProgressTracker$1(n2,99);for(let e5=0;e5(e4[e4.FloydSteinberg=0]="FloydSteinberg",e4[e4.FalseFloydSteinberg=1]="FalseFloydSteinberg",e4[e4.Stucki=2]="Stucki",e4[e4.Atkinson=3]="Atkinson",e4[e4.Jarvis=4]="Jarvis",e4[e4.Burkes=5]="Burkes",e4[e4.Sierra=6]="Sierra",e4[e4.TwoSierra=7]="TwoSierra",e4[e4.SierraLite=8]="SierraLite",e4))(ErrorDiffusionArrayKernel$1||{}),ErrorDiffusionArray$1=class extends AbstractImageQuantizer$1{constructor(e4,t2,i2=!0,r2=0,n2=!1){super(),__publicField$3(this,"_minColorDistance"),__publicField$3(this,"_serpentine"),__publicField$3(this,"_kernel"),__publicField$3(this,"_calculateErrorLikeGIMP"),__publicField$3(this,"_distance"),this._setKernel(t2),this._distance=e4,this._minColorDistance=r2,this._serpentine=i2,this._calculateErrorLikeGIMP=n2}*quantize(e4,t2){let i2=e4.getPointArray(),r2=new Point$1,n2=e4.getWidth(),a2=e4.getHeight(),o2=[],s2=1,l2=1;for(let e5 of this._kernel){let t3=e5[2]+1;l2=0&&i3+u3=0&&r3+e5t2&&(e4.length=t2);let i2=e4.length;for(let t3=0;t3=0&&e4.x=0&&e4.y{let s2=i2[e5+n3*r2],{r:l2,g:u2,b:h2,a:c2}=s2;for(let e6=0;e6ssim$1});var K1$1=.01,K2$1=.03;function ssim$1(e4,t2){if(e4.getHeight()!==t2.getHeight()||e4.getWidth()!==t2.getWidth())throw new Error("Images have different sizes!");let i2=(255*K1$1)**2,r2=(255*K2$1)**2,n2=0,a2=0;return iterate$1(e4,t2,((e5,t3,o2,s2)=>{let l2=0,u2=0,h2=0;for(let i3=0;i3process.nextTick(e4):e4=>setTimeout(e4,0);function buildPaletteSync$1(e4,{colorDistanceFormula:t2,paletteQuantization:i2,colors:r2}={}){let n2=paletteQuantizationToPaletteQuantizer$1(colorDistanceFormulaToColorDistance$1(t2),i2,r2);return e4.forEach((e5=>n2.sample(e5))),n2.quantizeSync()}async function buildPalette(e4,{colorDistanceFormula:t2,paletteQuantization:i2,colors:r2,onProgress:n2}={}){return new Promise(((a2,o2)=>{let s2=paletteQuantizationToPaletteQuantizer$1(colorDistanceFormulaToColorDistance$1(t2),i2,r2),l2;e4.forEach((e5=>s2.sample(e5)));let u2=s2.quantize(),h2=()=>{try{let e5=u2.next();e5.done?a2(l2):(e5.value.palette&&(l2=e5.value.palette),n2&&n2(e5.value.progress),setImmediateImpl(h2))}catch(e5){o2(e5)}};setImmediateImpl(h2)}))}function applyPaletteSync$1(e4,t2,{colorDistanceFormula:i2,imageQuantization:r2}={}){return imageQuantizationToImageQuantizer$1(colorDistanceFormulaToColorDistance$1(i2),r2).quantizeSync(e4,t2)}async function applyPalette(e4,t2,{colorDistanceFormula:i2,imageQuantization:r2,onProgress:n2}={}){return new Promise(((a2,o2)=>{let s2,l2=imageQuantizationToImageQuantizer$1(colorDistanceFormulaToColorDistance$1(i2),r2).quantize(e4,t2),u2=()=>{try{let e5=l2.next();e5.done?a2(s2):(e5.value.pointContainer&&(s2=e5.value.pointContainer),n2&&n2(e5.value.progress),setImmediateImpl(u2))}catch(e5){o2(e5)}};setImmediateImpl(u2)}))}function colorDistanceFormulaToColorDistance$1(e4="euclidean-bt709"){switch(e4){case"cie94-graphic-arts":return new CIE94GraphicArts$1;case"cie94-textiles":return new CIE94Textiles$1;case"ciede2000":return new CIEDE2000$1;case"color-metric":return new CMetric$1;case"euclidean":return new Euclidean$1;case"euclidean-bt709":return new EuclideanBT709$1;case"euclidean-bt709-noalpha":return new EuclideanBT709NoAlpha$1;case"manhattan":return new Manhattan$1;case"manhattan-bt709":return new ManhattanBT709$1;case"manhattan-nommyde":return new ManhattanNommyde$1;case"pngquant":return new PNGQuant$1;default:throw new Error(`Unknown colorDistanceFormula ${e4}`)}}function imageQuantizationToImageQuantizer$1(e4,t2="floyd-steinberg"){switch(t2){case"nearest":return new NearestColor$1(e4);case"riemersma":return new ErrorDiffusionRiemersma$1(e4);case"floyd-steinberg":return new ErrorDiffusionArray$1(e4,0);case"false-floyd-steinberg":return new ErrorDiffusionArray$1(e4,1);case"stucki":return new ErrorDiffusionArray$1(e4,2);case"atkinson":return new ErrorDiffusionArray$1(e4,3);case"jarvis":return new ErrorDiffusionArray$1(e4,4);case"burkes":return new ErrorDiffusionArray$1(e4,5);case"sierra":return new ErrorDiffusionArray$1(e4,6);case"two-sierra":return new ErrorDiffusionArray$1(e4,7);case"sierra-lite":return new ErrorDiffusionArray$1(e4,8);default:throw new Error(`Unknown imageQuantization ${t2}`)}}function paletteQuantizationToPaletteQuantizer$1(e4,t2="wuquant",i2=256){switch(t2){case"neuquant":return new NeuQuant$1(e4,i2);case"rgbquant":return new RGBQuant$1(e4,i2);case"wuquant":return new WuQuant$1(e4,i2);case"neuquant-float":return new NeuQuantFloat$1(e4,i2);default:throw new Error(`Unknown paletteQuantization ${t2}`)}}var imageQ=__toCommonJS(src_exports),gifframe={},BitmapImage$1=bitmapimage,GifFrame$1=class e2 extends BitmapImage$1{constructor(...t2){if(super(...t2),t2[0]instanceof e2){let e4=t2[0];this.xOffset=e4.xOffset,this.yOffset=e4.yOffset,this.disposalMethod=e4.disposalMethod,this.delayCentisecs=e4.delayCentisecs,this.interlaced=e4.interlaced}else{let i2=t2[t2.length-1],r2={};typeof i2!="object"||i2 instanceof BitmapImage$1||(r2=i2),this.xOffset=r2.xOffset||0,this.yOffset=r2.yOffset||0,this.disposalMethod=r2.disposalMethod!==void 0?r2.disposalMethod:e2.DisposeToBackgroundColor,this.delayCentisecs=r2.delayCentisecs||8,this.interlaced=r2.interlaced||!1}}getPalette(){let e4=new Set,t2=this.bitmap.data,i2=0,r2=!1;for(;i2>8&16777215;e4.add(r3)}i2+=4}let n2=new Array(e4.size),a2=e4.values();for(i2=0;i2e5-t3));let o2=n2.length;return r2&&++o2,{colors:n2,usesTransparency:r2,indexCount:o2}}},hasRequiredGifutil,hasRequiredGifcodec;function requireGifutil(){return hasRequiredGifutil||(hasRequiredGifutil=1,(function(e4){let t2=require$$0,i2=imageQ,r2=bitmapimage,{GifFrame:n2}=gifframe,{GifError:a2}=gif$1,{GifCodec:o2}=requireGifcodec(),s2=[".jpg",".jpeg",".png",".bmp"],l2=new o2;function u2(e5,t3,r3,n3,a3){let o3=Array.isArray(e5)?e5:[e5];if(a3){if(["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"].indexOf(a3.ditherAlgorithm)<0)throw new Error(`Invalid ditherAlgorithm '${a3.ditherAlgorithm}'`);a3.serpentine===void 0&&(a3.serpentine=!0),a3.minimumColorDistanceToDither===void 0&&(a3.minimumColorDistanceToDither=0),a3.calculateErrorLikeGIMP===void 0&&(a3.calculateErrorLikeGIMP=!1)}let s3=new i2.distance.Euclidean,l3=new i2.palette[t3](s3,r3,n3),u3;u3=a3?new i2.image.ErrorDiffusionArray(s3,i2.image.ErrorDiffusionArrayKernel[a3.ditherAlgorithm],a3.serpentine,a3.minimumColorDistanceToDither,a3.calculateErrorLikeGIMP):new i2.image.NearestColor(s3);let h2=[];o3.forEach((e6=>{let t4=e6.bitmap.data,r4=new ArrayBuffer(t4.length),n4=new Uint32Array(r4);for(let e7=0,i3=0;e7{t3.push(new n2(e6))})),t3},e4.getColorInfo=function(e5,t3){let i3=!1,r3=[];for(let t4=0;t4256)throw new a2(`Frame ${t4} uses more than 256 color indexes`);r3.push(n4)}if(t3===0)return{usesTransparency:i3,palettes:r3};let n3=new Set;r3.forEach((e6=>{e6.colors.forEach((e7=>{n3.add(e7)}))}));let o3=n3.size;if(i3&&++o3,t3&&o3>t3)return{usesTransparency:i3,palettes:r3};let s3=new Array(n3.size),l3=n3.values();for(let e6=0;e6e6-t4)),{colors:s3,indexCount:o3,usesTransparency:i3,palettes:r3}},e4.copyAsJimp=function(t3,i3){return e4.shareAsJimp(t3,new r2(i3))},e4.getMaxDimensions=function(e5){let t3=0,i3=0;return e5.forEach((e6=>{let r3=e6.xOffset+e6.bitmap.width;r3>t3&&(t3=r3);let n3=e6.yOffset+e6.bitmap.height;n3>i3&&(i3=n3)})),{maxWidth:t3,maxHeight:i3}},e4.quantizeDekker=function(e5,t3,i3){u2(e5,"NeuQuantFloat",t3=t3||256,0,i3)},e4.quantizeSorokin=function(e5,t3,i3,r3){let n3;switch(t3=t3||256,i3=i3||"min-pop"){case"min-pop":n3=2;break;case"top-pop":n3=1;break;default:throw new Error(`Invalid quantizeSorokin histogram '${i3}'`)}u2(e5,"RGBQuant",t3,n3,r3)},e4.quantizeWu=function(e5,t3,i3,r3){if(t3=t3||256,(i3=i3||5)<1||i3>8)throw new Error("Invalid quantization quality");u2(e5,"WuQuant",t3,i3,r3)},e4.read=function(e5,i3){return i3=i3||l2,Buffer2.isBuffer(e5)?i3.decodeGif(e5):(function(e6){return new Promise(((i4,r3)=>{t2.readFile(e6,((e7,t3)=>e7?r3(e7):i4(t3)))}))})(e5).then((e6=>i3.decodeGif(e6)))},e4.shareAsJimp=function(e5,t3){let i3=new e5(t3.bitmap.width,t3.bitmap.height,0);return i3.bitmap.data=t3.bitmap.data,i3},e4.write=function(e5,i3,r3,n3){n3=n3||l2;let a3=e5.match(/\.[a-zA-Z]+$/);if(a3!==null&&s2.includes(a3[0].toLowerCase()))throw new Error(`GIF '${e5}' has an unexpected suffix`);return n3.encodeGif(i3,r3).then((i4=>(function(e6,i5){return new Promise(((r4,n4)=>{t2.writeFile(e6,i5,(e7=>e7?n4(e7):r4()))}))})(e5,i4.buffer).then((()=>i4))))}})(gifutil)),gifutil}function requireGifcodec(){if(hasRequiredGifcodec)return gifcodec;hasRequiredGifcodec=1;let e4=omggif,{Gif:t2,GifError:i2}=gif$1;function r2(){let e5=requireGifutil();return r2=function(){return e5},e5}let{GifFrame:n2}=gifframe;function a2(e5,t3){let i3=e5.indexOf(t3);return i3===-1?null:i3}function o2(e5,t3){for(var i3,r3=0,n3=e5.length-1;r3<=n3;)if(e5[i3=Math.floor((r3+n3)/2)]>t3)n3=i3-1;else{if(!(e5[i3]r3;)r3<<=1;t3.length=r3,t3.fill(0,i3)}function l2(e5,t3){let i3=e5.bitmap.width*e5.bitmap.height;return i3=Math.ceil(i3*t3/8),i3+=Math.ceil(i3/255),100+i3+768}function u2(e5){let t3=e5.indexCount,i3=0;for(--t3;t3;)++i3,t3>>=1;return i3>0?i3:1}function h2(e5,t3,r3,n3,l3){if(r3.interlaced)throw new i2("writing interlaced GIFs is not supported");let u3=(function(e6,t4,r4){let n4=r4.colors,s3=n4.length<=8?a2:o2,l4=t4.bitmap.data,u4=new Buffer2(l4.length/4),h4=n4.length,c2=0,f2=0;for(;c2>8&16777215;u4[f2]=s3(n4,e7)}else u4[f2]=h4;c2+=4,++f2}if(r4.usesTransparency){if(h4===256)throw new i2(`Frame ${e6} already has 256 colorsand so can't use transparency`)}else h4=null;return{buffer:u4,transparentIndex:h4}})(t3,r3,n3),h3={delay:r3.delayCentisecs,disposal:r3.disposalMethod,transparent:u3.transparentIndex};l3&&(s2(n3),h3.palette=n3.colors);try{let t4,i3=e5.getOutputBuffer(),n4=e5.getOutputBufferPosition(),a3=!0;for(;a3;)if(t4=e5.addFrame(r3.xOffset,r3.yOffset,r3.bitmap.width,r3.bitmap.height,u3.buffer,h3),a3=!1,t4>=i3.length-1){let t5=new Buffer2(1.5*i3.length);i3.copy(t5),e5.setOutputBuffer(t5),e5.setOutputBufferPosition(n4),i3=t5,a3=!0}return i3}catch(e6){throw new i2(e6)}}return gifcodec.GifCodec=class{constructor(e5={}){this._transparentRGB=null,typeof e5.transparentRGB=="number"&&e5.transparentRGB!==0&&(this._transparentRGBA=256*e5.transparentRGB),this._testInitialBufferSize=0}decodeGif(r3){try{let n3;try{n3=new e4.GifReader(r3)}catch(e5){throw new i2(e5)}let a3=n3.numFrames(),o3=[],s3={width:n3.width,height:n3.height,loops:n3.loopCount(),usesTransparency:!1};for(let e5=0;e5a3.width)for(let t4=0;t40)return this._testInitialBufferSize;let i3=968,r3=u2(e5);return t3.forEach((e6=>{i3+=l2(e6,r3)})),i3}_getSizeEstimateLocal(e5,t3){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let i3=200;for(let r3=0;r3{let t2=new src.BitmapImage(e4);src.GifUtil.quantizeDekker(t2,256);let i2=new src.GifFrame(e4);return(await new src.GifCodec().encodeGif([i2],{})).buffer},decode:e4=>{let t2=new omggif.GifReader(e4),i2=Buffer2.alloc(t2.width*t2.height*4);return t2.decodeAndBlitFrameRGBA(0,i2),{data:i2,width:t2.width,height:t2.height}}}}var encoder={exports:{}};(function(e4){function t2(e5){var t3,i2,r2,n2,a2,o2=Math.floor,s2=new Array(64),l2=new Array(64),u2=new Array(64),h2=new Array(64),c2=new Array(65535),f2=new Array(65535),d=new Array(64),p2=new Array(64),m=[],_2=0,g=7,b2=new Array(64),y2=new Array(64),w=new Array(64),v2=new Array(256),x2=new Array(2048),E2=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k2=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S2=[0,1,2,3,4,5,6,7,8,9,10,11],A2=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M2=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T2=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],B2=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function C2(e6,t4){for(var i3=0,r3=0,n3=new Array,a3=1;a3<=16;a3++){for(var o3=1;o3<=e6[a3];o3++)n3[t4[r3]]=[],n3[t4[r3]][0]=i3,n3[t4[r3]][1]=a3,r3++,i3++;i3*=2}return n3}function R2(e6){for(var t4=e6[0],i3=e6[1]-1;i3>=0;)t4&1<>8&255),z2(255&e6)}function N2(e6,t4,i3,r3,n3){for(var a3,o3=n3[0],s3=n3[240],l3=(function(e7,t5){var i4,r4,n4,a4,o4,s4,l4,u4,h4,c3,f3=0;for(h4=0;h4<8;++h4){i4=e7[f3],r4=e7[f3+1],n4=e7[f3+2],a4=e7[f3+3],o4=e7[f3+4],s4=e7[f3+5],l4=e7[f3+6];var p3=i4+(u4=e7[f3+7]),m3=i4-u4,_4=r4+l4,g3=r4-l4,b4=n4+s4,y4=n4-s4,w3=a4+o4,v3=a4-o4,x3=p3+w3,E3=p3-w3,k3=_4+b4,S3=_4-b4;e7[f3]=x3+k3,e7[f3+4]=x3-k3;var A3=.707106781*(S3+E3);e7[f3+2]=E3+A3,e7[f3+6]=E3-A3;var I2=.382683433*((x3=v3+y4)-(S3=g3+m3)),M3=.5411961*x3+I2,T3=1.306562965*S3+I2,P2=.707106781*(k3=y4+g3),B3=m3+P2,C3=m3-P2;e7[f3+5]=C3+M3,e7[f3+3]=C3-M3,e7[f3+1]=B3+T3,e7[f3+7]=B3-T3,f3+=8}for(f3=0,h4=0;h4<8;++h4){i4=e7[f3],r4=e7[f3+8],n4=e7[f3+16],a4=e7[f3+24],o4=e7[f3+32],s4=e7[f3+40],l4=e7[f3+48];var R3=i4+(u4=e7[f3+56]),z3=i4-u4,F2=r4+l4,N3=r4-l4,O3=n4+s4,D=n4-s4,$=a4+o4,L2=a4-o4,U=R3+$,Z=R3-$,j=F2+O3,G=F2-O3;e7[f3]=U+j,e7[f3+32]=U-j;var H=.707106781*(G+Z);e7[f3+16]=Z+H,e7[f3+48]=Z-H;var Q=.382683433*((U=L2+D)-(G=N3+z3)),W=.5411961*U+Q,q=1.306562965*G+Q,V=.707106781*(j=D+N3),Y2=z3+V,K=z3-V;e7[f3+40]=K+W,e7[f3+24]=K-W,e7[f3+8]=Y2+q,e7[f3+56]=Y2-q,f3++}for(h4=0;h4<64;++h4)c3=e7[h4]*t5[h4],d[h4]=c3>0?c3+.5|0:c3-.5|0;return d})(e6,t4),u3=0;u3<64;++u3)p2[E2[u3]]=l3[u3];var h3=p2[0]-i3;i3=p2[0],h3==0?R2(r3[0]):(R2(r3[f2[a3=32767+h3]]),R2(c2[a3]));for(var m2=63;m2>0&&p2[m2]==0;m2--);if(m2==0)return R2(o3),i3;for(var _3,g2=1;g2<=m2;){for(var b3=g2;p2[g2]==0&&g2<=m2;++g2);var y3=g2-b3;if(y3>=16){_3=y3>>4;for(var w2=1;w2<=_3;++w2)R2(s3);y3&=15}a3=32767+p2[g2],R2(n3[(y3<<4)+f2[a3]]),R2(c2[a3]),g2++}return m2!=63&&R2(o3),i3}function O2(e6){e6<=0&&(e6=1),e6>100&&(e6=100),a2!=e6&&((function(e7){for(var t4=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],i3=0;i3<64;i3++){var r3=o2((t4[i3]*e7+50)/100);r3<1?r3=1:r3>255&&(r3=255),s2[E2[i3]]=r3}for(var n3=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a3=0;a3<64;a3++){var c3=o2((n3[a3]*e7+50)/100);c3<1?c3=1:c3>255&&(c3=255),l2[E2[a3]]=c3}for(var f3=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d2=0,p3=0;p3<8;p3++)for(var m2=0;m2<8;m2++)u2[d2]=1/(s2[E2[d2]]*f3[p3]*f3[m2]*8),h2[d2]=1/(l2[E2[d2]]*f3[p3]*f3[m2]*8),d2++})(e6<50?Math.floor(5e3/e6):Math.floor(200-2*e6)),a2=e6)}this.encode=function(e6,a3){var o3;new Date().getTime(),a3&&O2(a3),m=new Array,_2=0,g=7,F(65496),F(65504),F(16),z2(74),z2(70),z2(73),z2(70),z2(0),z2(1),z2(1),z2(0),F(1),F(1),z2(0),z2(0),(o3=e6.comments)!==void 0&&o3.constructor===Array&&o3.forEach((e7=>{if(typeof e7=="string"){F(65534);var t4,i3=e7.length;for(F(i3+2),t4=0;t4>3)*Q+(L2=4*(7&Z)),W+U>=H&&($-=Q*(W+1+U-H)),p3+L2>=Q&&($-=p3+L2-Q+4),v3=j[$++],E3=j[$++],C3=j[$++],b2[Z]=(x2[v3]+x2[E3+256|0]+x2[C3+512|0]>>16)-128,y2[Z]=(x2[v3+768|0]+x2[E3+1024|0]+x2[C3+1280|0]>>16)-128,w[Z]=(x2[v3+1280|0]+x2[E3+1536|0]+x2[C3+1792|0]>>16)-128;c3=N2(b2,u2,c3,t3,r2),f3=N2(y2,h2,f3,i2,n2),d2=N2(w,h2,d2,i2,n2),p3+=32}W+=8}if(g>=0){var q=[];q[1]=g+1,q[0]=(1<0&&!e5[o3-1];)o3--;a3.push({children:[],index:0});var s3,l3=a3[0];for(i3=0;i30;){if(a3.length===0)throw new Error("Could not recreate Huffman Table");l3=a3.pop()}for(l3.index++,a3.push(l3);a3.length<=i3;)a3.push(s3={children:[],index:0}),l3.children[l3.index]=s3.children,l3=s3;n3++}i3+10)return m2--,p3>>m2&1;if((p3=t3[i3++])==255){var e5=t3[i3++];if(e5)throw new Error("unexpected marker: "+(p3<<8|e5).toString(16))}return m2=7,p3>>>7}function g(e5){for(var t4,i4=e5;(t4=_3())!==null;){if(typeof(i4=i4[t4])=="number")return i4;if(typeof i4!="object")throw new Error("invalid huffman sequence")}return null}function b2(e5){for(var t4=0;e5>0;){var i4=_3();if(i4===null)return;t4=t4<<1|i4,e5--}return t4}function y2(e5){var t4=b2(e5);return t4>=1<0)v2--;else for(var r4=o3,n4=s3;r4<=n4;){var a4=g(t4.huffmanTableAC),l4=15&a4,h4=a4>>4;if(l4!==0)i4[e4[r4+=h4]]=y2(l4)*(1<>4,f4===0)a4<15?(v2=b2(a4)+(1<>4;if(s4!==0)i4[e4[a4+=l4]]=y2(s4),a4++;else{if(l4<15)break;a4+=16}}};var C2,R2,z2,F,N2=0;for(R2=B2==1?n3[0].blocksPerLine*n3[0].blocksPerColumn:c3*r3.mcusPerColumn,a3||(a3=R2);N2=65488&&C2<=65495))break;i3+=2}return i3-d2}function f2(e5,u3){var h3,c3,f3=[],d2=u3.blocksPerLine,p3=u3.blocksPerColumn,m2=d2<<3,g=new Int32Array(64),b2=new Uint8Array(64);function y2(e6,h4,c4){var f4,d3,p4,m3,_3,g2,b3,y3,w2,v3,x3=u3.quantizationTable,E3=c4;for(v3=0;v3<64;v3++)E3[v3]=e6[v3]*x3[v3];for(v3=0;v3<8;++v3){var k3=8*v3;E3[1+k3]!=0||E3[2+k3]!=0||E3[3+k3]!=0||E3[4+k3]!=0||E3[5+k3]!=0||E3[6+k3]!=0||E3[7+k3]!=0?(f4=s2*E3[0+k3]+128>>8,d3=s2*E3[4+k3]+128>>8,p4=E3[2+k3],m3=E3[6+k3],_3=l2*(E3[1+k3]-E3[7+k3])+128>>8,y3=l2*(E3[1+k3]+E3[7+k3])+128>>8,g2=E3[3+k3]<<4,b3=E3[5+k3]<<4,w2=f4-d3+1>>1,f4=f4+d3+1>>1,d3=w2,w2=p4*o2+m3*a2+128>>8,p4=p4*a2-m3*o2+128>>8,m3=w2,w2=_3-b3+1>>1,_3=_3+b3+1>>1,b3=w2,w2=y3+g2+1>>1,g2=y3-g2+1>>1,y3=w2,w2=f4-m3+1>>1,f4=f4+m3+1>>1,m3=w2,w2=d3-p4+1>>1,d3=d3+p4+1>>1,p4=w2,w2=_3*n2+y3*r2+2048>>12,_3=_3*r2-y3*n2+2048>>12,y3=w2,w2=g2*i2+b3*t2+2048>>12,g2=g2*t2-b3*i2+2048>>12,b3=w2,E3[0+k3]=f4+y3,E3[7+k3]=f4-y3,E3[1+k3]=d3+b3,E3[6+k3]=d3-b3,E3[2+k3]=p4+g2,E3[5+k3]=p4-g2,E3[3+k3]=m3+_3,E3[4+k3]=m3-_3):(w2=s2*E3[0+k3]+512>>10,E3[0+k3]=w2,E3[1+k3]=w2,E3[2+k3]=w2,E3[3+k3]=w2,E3[4+k3]=w2,E3[5+k3]=w2,E3[6+k3]=w2,E3[7+k3]=w2)}for(v3=0;v3<8;++v3){var S3=v3;E3[8+S3]!=0||E3[16+S3]!=0||E3[24+S3]!=0||E3[32+S3]!=0||E3[40+S3]!=0||E3[48+S3]!=0||E3[56+S3]!=0?(f4=s2*E3[0+S3]+2048>>12,d3=s2*E3[32+S3]+2048>>12,p4=E3[16+S3],m3=E3[48+S3],_3=l2*(E3[8+S3]-E3[56+S3])+2048>>12,y3=l2*(E3[8+S3]+E3[56+S3])+2048>>12,g2=E3[24+S3],b3=E3[40+S3],w2=f4-d3+1>>1,f4=f4+d3+1>>1,d3=w2,w2=p4*o2+m3*a2+2048>>12,p4=p4*a2-m3*o2+2048>>12,m3=w2,w2=_3-b3+1>>1,_3=_3+b3+1>>1,b3=w2,w2=y3+g2+1>>1,g2=y3-g2+1>>1,y3=w2,w2=f4-m3+1>>1,f4=f4+m3+1>>1,m3=w2,w2=d3-p4+1>>1,d3=d3+p4+1>>1,p4=w2,w2=_3*n2+y3*r2+2048>>12,_3=_3*r2-y3*n2+2048>>12,y3=w2,w2=g2*i2+b3*t2+2048>>12,g2=g2*t2-b3*i2+2048>>12,b3=w2,E3[0+S3]=f4+y3,E3[56+S3]=f4-y3,E3[8+S3]=d3+b3,E3[48+S3]=d3-b3,E3[16+S3]=p4+g2,E3[40+S3]=p4-g2,E3[24+S3]=m3+_3,E3[32+S3]=m3-_3):(w2=s2*c4[v3+0]+8192>>14,E3[0+S3]=w2,E3[8+S3]=w2,E3[16+S3]=w2,E3[24+S3]=w2,E3[32+S3]=w2,E3[40+S3]=w2,E3[48+S3]=w2,E3[56+S3]=w2)}for(v3=0;v3<64;++v3){var A2=128+(E3[v3]+8>>4);h4[v3]=A2<0?0:A2>255?255:A2}}_2(m2*p3*8);for(var w=0;w255?255:e5}u2.prototype={load:function(e5){var t3=new XMLHttpRequest;t3.open("GET",e5,!0),t3.responseType="arraybuffer",t3.onload=function(){var e6=new Uint8Array(t3.response||t3.mozResponseArrayBuffer);this.parse(e6),this.onload&&this.onload()}.bind(this),t3.send(null)},parse:function(t3){var i3=1e3*this.opts.maxResolutionInMP*1e3,r3=0;function n3(){var e5=t3[r3]<<8|t3[r3+1];return r3+=2,e5}function a3(e5){var t4,i4,r4=1,n4=1;for(i4 in e5.components)e5.components.hasOwnProperty(i4)&&(r4<(t4=e5.components[i4]).h&&(r4=t4.h),n4>4){if(S2>>4!=1)throw new Error("DQT: invalid table spec");for(q=0;q<64;q++)A2[e4[q]]=n3()}else for(q=0;q<64;q++)A2[e4[q]]=t3[r3++];m2[15&S2]=A2}break;case 65472:case 65473:case 65474:n3(),(o3={}).extended=w===65473,o3.progressive=w===65474,o3.precision=t3[r3++],o3.scanLines=n3(),o3.samplesPerLine=n3(),o3.components={},o3.componentsOrder=[];var I=o3.scanLines*o3.samplesPerLine;if(I>i3){var M2=Math.ceil((I-i3)/1e6);throw new Error(`maxResolutionInMP limit exceeded by ${M2}MP`)}var T2,P=t3[r3++];for(Q=0;Q>4,C2=15&t3[r3+1],R2=t3[r3+2];if(B2<=0||C2<=0)throw new Error("Invalid sampling factor, expected values above 0");o3.componentsOrder.push(T2),o3.components[T2]={h:B2,v:C2,quantizationIdx:R2},r3+=3}a3(o3),g.push(o3);break;case 65476:var z2=n3();for(Q=2;Q>4?b2:y2)[15&F]=h2(N2,D)}break;case 65501:n3(),s3=n3();break;case 65500:n3(),n3();break;case 65498:n3();var $=t3[r3++],L2=[];for(Q=0;Q<$;Q++){V=o3.components[t3[r3++]];var U=t3[r3++];V.huffmanTableDC=y2[U>>4],V.huffmanTableAC=b2[15&U],L2.push(V)}var Z=t3[r3++],j=t3[r3++],G=t3[r3++],H=c2(t3,r3,o3,L2,s3,Z,j,G>>4,15&G,this.opts);r3+=H;break;case 65535:t3[r3]!==255&&r3--;break;default:if(t3[r3-3]==255&&t3[r3-2]>=192&&t3[r3-2]<=254){r3-=3;break}if(w===224||w==225){if(v2!==-1)throw new Error(`first unknown JPEG marker at offset ${v2.toString(16)}, second unknown JPEG marker ${w.toString(16)} at offset ${(r3-1).toString(16)}`);v2=r3-1;let e5=n3();if(t3[r3+e5-2]===255){r3+=e5-2;break}}throw new Error("unknown JPEG marker "+w.toString(16))}w=n3()}if(g.length!=1)throw new Error("only single frame JPEGs supported");for(var Q=0;Qm){var i3=Math.ceil((t3-m)/1024/1024);throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${i3}MB`)}p2=t3}return u2.resetMaxMemoryUsage=function(e5){p2=0,m=e5},u2.getBytesAllocated=function(){return p2},u2.requestMemoryAllocation=_2,u2})(),module.exports=function(e4,t2={}){var i2={colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512,...t2},r2=new Uint8Array(e4),n2=new JpegImage;n2.opts=i2,JpegImage.resetMaxMemoryUsage(1024*i2.maxMemoryUsageInMB*1024),n2.parse(r2);var a2=i2.formatAsRGBA?4:3,o2=n2.width*n2.height*a2;try{JpegImage.requestMemoryAllocation(o2);var s2={width:n2.width,height:n2.height,exifBuffer:n2.exifBuffer,data:i2.useTArray?new Uint8Array(o2):Buffer2.alloc(o2)};n2.comments.length>0&&(s2.comments=n2.comments)}catch(e5){throw e5 instanceof RangeError?new Error("Could not allocate enough memory for the image. Required: "+o2):e5 instanceof ReferenceError&&e5.message==="Buffer is not defined"?new Error("Buffer is not globally defined in this environment. Consider setting useTArray to true"):e5}return n2.copyToImageData(s2,i2.formatAsRGBA),s2};var decoderExports=decoder.exports,encode=encoderExports,decode=decoderExports,jpegJs={encode,decode},JPEG=getDefaultExportFromCjs(jpegJs);function jpeg$2(){return{mime:"image/jpeg",encode:(e4,{quality:t2=100}={})=>JPEG.encode(e4,t2).data,decode:(e4,t2)=>JPEG.decode(e4,t2)}}function commonjsRequire(e4){throw new Error('Could not dynamically require "'+e4+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var browser$1={exports:{}};browser$1.exports=(function(){function e4(t2,i2,r2){function n2(o3,s2){if(!i2[o3]){if(!t2[o3]){var l2=typeof commonjsRequire=="function"&&commonjsRequire;if(!s2&&l2)return l2(o3,!0);if(a2)return a2(o3,!0);var u2=new Error("Cannot find module '"+o3+"'");throw u2.code="MODULE_NOT_FOUND",u2}var h2=i2[o3]={exports:{}};t2[o3][0].call(h2.exports,(function(e5){return n2(t2[o3][1][e5]||e5)}),h2,h2.exports,e4,t2,i2,r2)}return i2[o3].exports}for(var a2=typeof commonjsRequire=="function"&&commonjsRequire,o2=0;o2=t4.length)throw new Error("Ran out of data");let n3=t4[r3];e5[i3]=n3,e5[i3+1]=n3,e5[i3+2]=n3,e5[i3+3]=t4[r3+1]},function(e5,t4,i3,r3){if(r3+2>=t4.length)throw new Error("Ran out of data");e5[i3]=t4[r3],e5[i3+1]=t4[r3+1],e5[i3+2]=t4[r3+2],e5[i3+3]=255},function(e5,t4,i3,r3){if(r3+3>=t4.length)throw new Error("Ran out of data");e5[i3]=t4[r3],e5[i3+1]=t4[r3+1],e5[i3+2]=t4[r3+2],e5[i3+3]=t4[r3+3]}],a2=[function(){},function(e5,t4,i3,r3){let n3=t4[0];e5[i3]=n3,e5[i3+1]=n3,e5[i3+2]=n3,e5[i3+3]=r3},function(e5,t4,i3){let r3=t4[0];e5[i3]=r3,e5[i3+1]=r3,e5[i3+2]=r3,e5[i3+3]=t4[1]},function(e5,t4,i3,r3){e5[i3]=t4[0],e5[i3+1]=t4[1],e5[i3+2]=t4[2],e5[i3+3]=r3},function(e5,t4,i3){e5[i3]=t4[0],e5[i3+1]=t4[1],e5[i3+2]=t4[2],e5[i3+3]=t4[3]}];function o2(e5,t4){let i3=[],r3=0;function n3(){if(r3===e5.length)throw new Error("Ran out of data");let n4,a3,o3,s3,l3,u2,h2,c2,f2=e5[r3];switch(r3++,t4){default:throw new Error("unrecognised depth");case 16:h2=e5[r3],r3++,i3.push((f2<<8)+h2);break;case 4:h2=15&f2,c2=f2>>4,i3.push(c2,h2);break;case 2:l3=3&f2,u2=f2>>2&3,h2=f2>>4&3,c2=f2>>6&3,i3.push(c2,h2,u2,l3);break;case 1:n4=1&f2,a3=f2>>1&1,o3=f2>>2&1,s3=f2>>3&1,l3=f2>>4&1,u2=f2>>5&1,h2=f2>>6&1,c2=f2>>7&1,i3.push(c2,h2,u2,l3,s3,o3,a3,n4)}}return{get:function(e6){for(;i3.length0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o2.prototype.write=function(e5,t3){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let i4;return i4=r2.isBuffer(e5)?e5:r2.from(e5,t3||this._encoding),this._buffers.push(i4),this._buffered+=i4.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused},o2.prototype.end=function(e5,t3){e5&&this.write(e5,t3),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))},o2.prototype.destroySoon=o2.prototype.end,o2.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o2.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o2.prototype._processReadAllowingLess=function(e5){this._reads.shift();let t3=this._buffers[0];t3.length>e5.length?(this._buffered-=e5.length,this._buffers[0]=t3.slice(e5.length),e5.func.call(this,t3.slice(0,e5.length))):(this._buffered-=t3.length,this._buffers.shift(),e5.func.call(this,t3))},o2.prototype._processRead=function(e5){this._reads.shift();let t3=0,i4=0,n3=r2.alloc(e5.length);for(;t30&&this._buffers.splice(0,i4),this._buffered-=e5.length,e5.func.call(this,n3)},o2.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e5=this._reads[0];if(e5.allowLess)this._processReadAllowingLess(e5);else{if(!(this._buffered>=e5.length))break;this._processRead(e5)}}this._buffers&&!this.writable&&this._end()}catch(e5){this.emit("error",e5)}}}).call(this)}).call(this,e4("_process"),e4("buffer").Buffer)},{_process:63,buffer:32,stream:65,util:84}],4:[function(e4,t2,i2){t2.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],5:[function(e4,t2,i2){let r2=[];(function(){for(let e5=0;e5<256;e5++){let t3=e5;for(let e6=0;e6<8;e6++)1&t3?t3=3988292384^t3>>>1:t3>>>=1;r2[e5]=t3}})();let n2=t2.exports=function(){this._crc=-1};n2.prototype.write=function(e5){for(let t3=0;t3>>8;return!0},n2.prototype.crc32=function(){return~this._crc},n2.crc32=function(e5){let t3=-1;for(let i3=0;i3>>8;return~t3}},{}],6:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./paeth-predictor");function n2(e5,t3,i4,r3,n3){for(let a3=0;a3=a3?e5[t3+o3-a3]:0,s3=e5[t3+o3]-i5;r3[n3+o3]=s3}}function s2(e5,t3,i4,r3){let n3=0;for(let a3=0;a3=r3?e5[t3+a3-r3]:0,o3=e5[t3+a3]-i5;n3+=Math.abs(o3)}return n3}function l2(e5,t3,i4,r3,n3){for(let a3=0;a30?e5[t3+a3-i4]:0,s3=e5[t3+a3]-o3;r3[n3+a3]=s3}}function u2(e5,t3,i4){let r3=0,n3=t3+i4;for(let a3=t3;a30?e5[a3-i4]:0,o3=e5[a3]-n4;r3+=Math.abs(o3)}return r3}function h2(e5,t3,i4,r3,n3,a3){for(let o3=0;o3=a3?e5[t3+o3-a3]:0,l3=t3>0?e5[t3+o3-i4]:0,u3=e5[t3+o3]-(s3+l3>>1);r3[n3+o3]=u3}}function c2(e5,t3,i4,r3){let n3=0;for(let a3=0;a3=r3?e5[t3+a3-r3]:0,s3=t3>0?e5[t3+a3-i4]:0,l3=e5[t3+a3]-(o3+s3>>1);n3+=Math.abs(l3)}return n3}function f2(e5,t3,i4,n3,a3,o3){for(let s3=0;s3=o3?e5[t3+s3-o3]:0,u3=t3>0?e5[t3+s3-i4]:0,h3=t3>0&&s3>=o3?e5[t3+s3-(i4+o3)]:0,c3=e5[t3+s3]-r2(l3,u3,h3);n3[a3+s3]=c3}}function d(e5,t3,i4,n3){let a3=0;for(let o3=0;o3=n3?e5[t3+o3-n3]:0,l3=t3>0?e5[t3+o3-i4]:0,u3=t3>0&&o3>=n3?e5[t3+o3-(i4+n3)]:0,h3=e5[t3+o3]-r2(s3,l3,u3);a3+=Math.abs(h3)}return a3}let p2={0:n2,1:o2,2:l2,3:h2,4:f2},m={0:a2,1:s2,2:u2,3:c2,4:d};t2.exports=function(e5,t3,r3,n3,a3){let o3;if("filterType"in n3&&n3.filterType!==-1){if(typeof n3.filterType!="number")throw new Error("unrecognised filter types");o3=[n3.filterType]}else o3=[0,1,2,3,4];n3.bitDepth===16&&(a3*=2);let s3=t3*a3,l3=0,u3=0,h3=i3.alloc((s3+1)*r3),c3=o3[0];for(let t4=0;t41){let t5=1/0;for(let i4=0;i4n3?t3[a3-r3]:0;t3[a3]=i5+o3}},o2.prototype._unFilterType2=function(e5,t3,i4){let r3=this._lastLine;for(let n3=0;n3n3?t3[o3-r3]:0,u2=Math.floor((l2+s2)/2);t3[o3]=i5+u2}},o2.prototype._unFilterType4=function(e5,t3,i4){let r3=this._xComparison,a3=r3-1,o3=this._lastLine;for(let s2=0;s2a3?t3[s2-r3]:0,h2=s2>a3&&o3?o3[s2-r3]:0,c2=n2(u2,l2,h2);t3[s2]=i5+c2}},o2.prototype._reverseFilterLine=function(e5){let t3,r3=e5[0],n3=this._images[this._imageIndex],a3=n3.byteWidth;if(r3===0)t3=e5.slice(1,a3+1);else switch(t3=i3.alloc(a3),r3){case 1:this._unFilterType1(e5,t3,a3);break;case 2:this._unFilterType2(e5,t3,a3);break;case 3:this._unFilterType3(e5,t3,a3);break;case 4:this._unFilterType4(e5,t3,a3);break;default:throw new Error("Unrecognised filter type - "+r3)}this.write(t3),n3.lineIndex++,n3.lineIndex>=n3.height?(this._lastLine=null,this._imageIndex++,n3=this._images[this._imageIndex]):this._lastLine=t3,n3?this.read(n3.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this)}).call(this,e4("buffer").Buffer)},{"./interlace":11,"./paeth-predictor":15,buffer:32}],10:[function(e4,t2,i2){(function(e5){(function(){function i3(e6,t3,i4,r3,n3){let a2=0;for(let o2=0;o20&&u2>0&&i3.push({width:l2,height:u2,index:e6})}return i3},i2.getInterlaceIterator=function(e5){return function(t3,i3,n2){let a2=t3%r2[n2].x.length,o2=(t3-a2)/r2[n2].x.length*8+r2[n2].x[a2],s2=i3%r2[n2].y.length;return 4*o2+((i3-s2)/r2[n2].y.length*8+r2[n2].y[s2])*e5*4}}},{}],12:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("util"),n2=e4("stream"),a2=e4("./constants"),o2=e4("./packer"),s2=t2.exports=function(e5){n2.call(this);let t3=e5||{};this._packer=new o2(t3),this._deflate=this._packer.createDeflate(),this.readable=!0};r2.inherits(s2,n2),s2.prototype.pack=function(e5,t3,r3,n3){this.emit("data",i3.from(a2.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t3,r3)),n3&&this.emit("data",this._packer.packGAMA(n3));let o3=this._packer.filterData(e5,t3,r3);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(e6){this.emit("data",this._packer.packIDAT(e6))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(o3)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:32,stream:65,util:84}],13:[function(e4,t2,i2){(function(i3){(function(){let r2=!0,n2=e4("zlib");n2.deflateSync||(r2=!1);let a2=e4("./constants"),o2=e4("./packer");t2.exports=function(e5,t3){if(!r2)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let s2=new o2(t3||{}),l2=[];l2.push(i3.from(a2.PNG_SIGNATURE)),l2.push(s2.packIHDR(e5.width,e5.height)),e5.gamma&&l2.push(s2.packGAMA(e5.gamma));let u2=s2.filterData(e5.data,e5.width,e5.height),h2=n2.deflateSync(u2,s2.getDeflateOptions());if(u2=null,!h2||!h2.length)throw new Error("bad png - invalid compressed data response");return l2.push(s2.packIDAT(h2)),l2.push(s2.packIEND()),i3.concat(l2)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./packer":14,buffer:32,zlib:31}],14:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./constants"),n2=e4("./crc"),a2=e4("./bitpacker"),o2=e4("./filter-pack"),s2=e4("zlib"),l2=t2.exports=function(e5){if(this._options=e5,e5.deflateChunkSize=e5.deflateChunkSize||32768,e5.deflateLevel=e5.deflateLevel!=null?e5.deflateLevel:9,e5.deflateStrategy=e5.deflateStrategy!=null?e5.deflateStrategy:3,e5.inputHasAlpha=e5.inputHasAlpha==null||e5.inputHasAlpha,e5.deflateFactory=e5.deflateFactory||s2.createDeflate,e5.bitDepth=e5.bitDepth||8,e5.colorType=typeof e5.colorType=="number"?e5.colorType:r2.COLORTYPE_COLOR_ALPHA,e5.inputColorType=typeof e5.inputColorType=="number"?e5.inputColorType:r2.COLORTYPE_COLOR_ALPHA,[r2.COLORTYPE_GRAYSCALE,r2.COLORTYPE_COLOR,r2.COLORTYPE_COLOR_ALPHA,r2.COLORTYPE_ALPHA].indexOf(e5.colorType)===-1)throw new Error("option color type:"+e5.colorType+" is not supported at present");if([r2.COLORTYPE_GRAYSCALE,r2.COLORTYPE_COLOR,r2.COLORTYPE_COLOR_ALPHA,r2.COLORTYPE_ALPHA].indexOf(e5.inputColorType)===-1)throw new Error("option input color type:"+e5.inputColorType+" is not supported at present");if(e5.bitDepth!==8&&e5.bitDepth!==16)throw new Error("option bit depth:"+e5.bitDepth+" is not supported at present")};l2.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},l2.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},l2.prototype.filterData=function(e5,t3,i4){let n3=a2(e5,t3,i4,this._options),s3=r2.COLORTYPE_TO_BPP_MAP[this._options.colorType];return o2(n3,t3,i4,this._options,s3)},l2.prototype._packChunk=function(e5,t3){let r3=t3?t3.length:0,a3=i3.alloc(r3+12);return a3.writeUInt32BE(r3,0),a3.writeUInt32BE(e5,4),t3&&t3.copy(a3,8),a3.writeInt32BE(n2.crc32(a3.slice(4,a3.length-4)),a3.length-4),a3},l2.prototype.packGAMA=function(e5){let t3=i3.alloc(4);return t3.writeUInt32BE(Math.floor(e5*r2.GAMMA_DIVISION),0),this._packChunk(r2.TYPE_gAMA,t3)},l2.prototype.packIHDR=function(e5,t3){let n3=i3.alloc(13);return n3.writeUInt32BE(e5,0),n3.writeUInt32BE(t3,4),n3[8]=this._options.bitDepth,n3[9]=this._options.colorType,n3[10]=0,n3[11]=0,n3[12]=0,this._packChunk(r2.TYPE_IHDR,n3)},l2.prototype.packIDAT=function(e5){return this._packChunk(r2.TYPE_IDAT,e5)},l2.prototype.packIEND=function(){return this._packChunk(r2.TYPE_IEND,null)}}).call(this)}).call(this,e4("buffer").Buffer)},{"./bitpacker":2,"./constants":4,"./crc":5,"./filter-pack":6,buffer:32,zlib:31}],15:[function(e4,t2,i2){t2.exports=function(e5,t3,i3){let r2=e5+t3-i3,n2=Math.abs(r2-e5),a2=Math.abs(r2-t3),o2=Math.abs(r2-i3);return n2<=a2&&n2<=o2?e5:a2<=o2?t3:i3}},{}],16:[function(e4,t2,i2){let r2=e4("util"),n2=e4("zlib"),a2=e4("./chunkstream"),o2=e4("./filter-parse-async"),s2=e4("./parser"),l2=e4("./bitmapper"),u2=e4("./format-normaliser"),h2=t2.exports=function(e5){a2.call(this),this._parser=new s2(e5,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e5,this.writable=!0,this._parser.start()};r2.inherits(h2,a2),h2.prototype._handleError=function(e5){this.emit("error",e5),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",(function(){}))),this.errord=!0},h2.prototype._inflateData=function(e5){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=n2.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let e6=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,t3=Math.max(e6,n2.Z_MIN_CHUNK);this._inflate=n2.createInflate({chunkSize:t3});let i3=e6,r3=this.emit.bind(this,"error");this._inflate.on("error",(function(e7){i3&&r3(e7)})),this._filter.on("complete",this._complete.bind(this));let a3=this._filter.write.bind(this._filter);this._inflate.on("data",(function(e7){i3&&(e7.length>i3&&(e7=e7.slice(0,i3)),i3-=e7.length,a3(e7))})),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e5)},h2.prototype._handleMetaData=function(e5){this._metaData=e5,this._bitmapInfo=Object.create(e5),this._filter=new o2(this._bitmapInfo)},h2.prototype._handleTransColor=function(e5){this._bitmapInfo.transColor=e5},h2.prototype._handlePalette=function(e5){this._bitmapInfo.palette=e5},h2.prototype._simpleTransparency=function(){this._metaData.alpha=!0},h2.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},h2.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))},h2.prototype._complete=function(e5){if(this.errord)return;let t3;try{let i3=l2.dataToBitMap(e5,this._bitmapInfo);t3=u2(i3,this._bitmapInfo,this._options.skipRescale),i3=null}catch(e6){return void this._handleError(e6)}this.emit("parsed",t3)}},{"./bitmapper":1,"./chunkstream":3,"./filter-parse-async":7,"./format-normaliser":10,"./parser":18,util:84,zlib:31}],17:[function(e4,t2,i2){(function(i3){(function(){let r2=!0,n2=e4("zlib"),a2=e4("./sync-inflate");n2.deflateSync||(r2=!1);let o2=e4("./sync-reader"),s2=e4("./filter-parse-sync"),l2=e4("./parser"),u2=e4("./bitmapper"),h2=e4("./format-normaliser");t2.exports=function(e5,t3){if(!r2)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let c2,f2,d;function p2(e6){c2=e6}function m(e6){f2=e6}function _2(e6){f2.transColor=e6}function g(e6){f2.palette=e6}function b2(){f2.alpha=!0}function y2(e6){d=e6}let w=[];function v2(e6){w.push(e6)}let x2=new o2(e5);if(new l2(t3,{read:x2.read.bind(x2),error:p2,metadata:m,gamma:y2,palette:g,transColor:_2,inflateData:v2,simpleTransparency:b2}).start(),x2.process(),c2)throw c2;let E2,k2=i3.concat(w);if(w.length=0,f2.interlace)E2=n2.inflateSync(k2);else{let e6=(1+(f2.width*f2.bpp*f2.depth+7>>3))*f2.height;E2=a2(k2,{chunkSize:e6,maxLength:e6})}if(k2=null,!E2||!E2.length)throw new Error("bad png - invalid inflate data response");let S2=s2.process(E2,f2);k2=null;let A2=u2.dataToBitMap(S2,f2);S2=null;let I=h2(A2,f2,t3.skipRescale);return f2.data=I,f2.gamma=d||0,f2}}).call(this)}).call(this,e4("buffer").Buffer)},{"./bitmapper":1,"./filter-parse-sync":8,"./format-normaliser":10,"./parser":18,"./sync-inflate":21,"./sync-reader":22,buffer:32,zlib:31}],18:[function(e4,t2,i2){(function(i3){(function(){let r2=e4("./constants"),n2=e4("./crc"),a2=t2.exports=function(e5,t3){this._options=e5,e5.checkCRC=e5.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r2.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r2.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r2.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r2.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r2.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r2.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t3.read,this.error=t3.error,this.metadata=t3.metadata,this.gamma=t3.gamma,this.transColor=t3.transColor,this.palette=t3.palette,this.parsed=t3.parsed,this.inflateData=t3.inflateData,this.finished=t3.finished,this.simpleTransparency=t3.simpleTransparency,this.headersFinished=t3.headersFinished||function(){}};a2.prototype.start=function(){this.read(r2.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a2.prototype._parseSignature=function(e5){let t3=r2.PNG_SIGNATURE;for(let i4=0;i4this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(let t3=0;t30?this._handleIDAT(i4):this._handleChunkEnd()},a2.prototype._handleIEND=function(e5){this.read(e5,this._parseIEND.bind(this))},a2.prototype._parseIEND=function(e5){this._crc.write(e5),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this)}).call(this,e4("buffer").Buffer)},{"./constants":4,"./crc":5,buffer:32}],19:[function(e4,t2,i2){let r2=e4("./parser-sync"),n2=e4("./packer-sync");i2.read=function(e5,t3){return r2(e5,t3||{})},i2.write=function(e5,t3){return n2(e5,t3)}},{"./packer-sync":13,"./parser-sync":17}],20:[function(e4,t2,i2){(function(t3,r2){(function(){let n2=e4("util"),a2=e4("stream"),o2=e4("./parser-async"),s2=e4("./packer-async"),l2=e4("./png-sync"),u2=i2.PNG=function(e5){a2.call(this),e5=e5||{},this.width=0|e5.width,this.height=0|e5.height,this.data=this.width>0&&this.height>0?r2.alloc(4*this.width*this.height):null,e5.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o2(e5),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(e6){this.data=e6,this.emit("parsed",e6)}.bind(this)),this._packer=new s2(e5),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};n2.inherits(u2,a2),u2.sync=l2,u2.prototype.pack=function(){return this.data&&this.data.length?(t3.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},u2.prototype.parse=function(e5,t4){if(t4){let e6,i3;e6=function(e7){this.removeListener("error",i3),this.data=e7,t4(null,this)}.bind(this),i3=function(i4){this.removeListener("parsed",e6),t4(i4,null)}.bind(this),this.once("parsed",e6),this.once("error",i3)}return this.end(e5),this},u2.prototype.write=function(e5){return this._parser.write(e5),!0},u2.prototype.end=function(e5){this._parser.end(e5)},u2.prototype._metadata=function(e5){this.width=e5.width,this.height=e5.height,this.emit("metadata",e5)},u2.prototype._gamma=function(e5){this.gamma=e5},u2.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},u2.bitblt=function(e5,t4,i3,r3,n3,a3,o3,s3){if(r3|=0,n3|=0,a3|=0,o3|=0,s3|=0,(i3|=0)>e5.width||r3>e5.height||i3+n3>e5.width||r3+a3>e5.height)throw new Error("bitblt reading outside image");if(o3>t4.width||s3>t4.height||o3+n3>t4.width||s3+a3>t4.height)throw new Error("bitblt writing outside image");for(let l3=0;l3=0,"have should not go down"),i4>0){let e7=u3._buffer.slice(u3._offset,u3._offset+i4);if(u3._offset+=i4,e7.length>d&&(e7=e7.slice(0,d)),m.push(e7),_2+=e7.length,d-=e7.length,d===0)return!1}return(t4===0||u3._offset>=u3._chunkSize)&&(f3=u3._chunkSize,u3._offset=0,u3._buffer=n2.allocUnsafe(u3._chunkSize)),t4===0&&(p2+=c3-e6,c3=e6,!0)}this.on("error",(function(e6){o3=e6})),r3(this._handle,"zlib binding closed");do l3=this._handle.writeSync(t3,e5,p2,c3,this._buffer,this._offset,f3),l3=l3||this._writeState;while(!this._hadError&&g(l3[0],l3[1]));if(this._hadError)throw o3;if(_2>=s2)throw h2(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+s2.toString(16)+" bytes");let b2=n2.concat(m,_2);return h2(this),b2},o2.inherits(l2,a2.Inflate),t2.exports=i2=f2,i2.Inflate=l2,i2.createInflate=u2,i2.inflateSync=f2}).call(this)}).call(this,e4("_process"),e4("buffer").Buffer)},{_process:63,assert:23,buffer:32,util:84,zlib:31}],22:[function(e4,t2,i2){let r2=t2.exports=function(e5){this._buffer=e5,this._reads=[]};r2.prototype.read=function(e5,t3){this._reads.push({length:Math.abs(e5),allowLess:e5<0,func:t3})},r2.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e5=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=e5.length||e5.allowLess))break;{this._reads.shift();let t3=this._buffer;this._buffer=t3.slice(e5.length),e5.func.call(this,t3.slice(0,e5.length))}}if(this._reads.length>0)throw new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw new Error("unrecognised content at end of stream")}},{}],23:[function(e4,t2,i2){(function(i3){(function(){var r2=e4("object-assign");function n2(e5,t3){if(e5===t3)return 0;for(var i4=e5.length,r3=t3.length,n3=0,a3=Math.min(i4,r3);n3=0;u3--)if(h3[u3]!==c3[u3])return!1;for(u3=h3.length-1;u3>=0;u3--)if(!w(e5[s3=h3[u3]],t3[s3],i4,r3))return!1;return!0}function E2(e5,t3,i4){w(e5,t3,!0)&&b2(e5,t3,i4,"notDeepStrictEqual",E2)}function k2(e5,t3){if(!e5||!t3)return!1;if(Object.prototype.toString.call(t3)=="[object RegExp]")return t3.test(e5);try{if(e5 instanceof t3)return!0}catch{}return!Error.isPrototypeOf(t3)&&t3.call({},e5)===!0}function S2(e5){var t3;try{e5()}catch(e6){t3=e6}return t3}function A2(e5,t3,i4,r3){var n3;if(typeof t3!="function")throw new TypeError('"block" argument must be a function');typeof i4=="string"&&(r3=i4,i4=null),n3=S2(t3),r3=(i4&&i4.name?" ("+i4.name+").":".")+(r3?" "+r3:"."),e5&&!n3&&b2(n3,i4,"Missing expected exception"+r3);var a3=typeof r3=="string",s3=!e5&&n3&&!i4;if((!e5&&o2.isError(n3)&&a3&&k2(n3,i4)||s3)&&b2(n3,i4,"Got unwanted exception"+r3),e5&&n3&&i4&&!k2(n3,i4)||!e5&&n3)throw n3}function I(e5,t3){e5||b2(e5,!0,t3,"==",I)}f2.AssertionError=function(e5){this.name="AssertionError",this.actual=e5.actual,this.expected=e5.expected,this.operator=e5.operator,e5.message?(this.message=e5.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var t3=e5.stackStartFunction||b2;if(Error.captureStackTrace)Error.captureStackTrace(this,t3);else{var i4=new Error;if(i4.stack){var r3=i4.stack,n3=p2(t3),a3=r3.indexOf(` `+n3);if(a3>=0){var o3=r3.indexOf(` `,a3+1);r3=r3.substring(o3+1)}this.stack=r3}}},o2.inherits(f2.AssertionError,Error),f2.fail=b2,f2.ok=y2,f2.equal=function(e5,t3,i4){e5!=t3&&b2(e5,t3,i4,"==",f2.equal)},f2.notEqual=function(e5,t3,i4){e5==t3&&b2(e5,t3,i4,"!=",f2.notEqual)},f2.deepEqual=function(e5,t3,i4){w(e5,t3,!1)||b2(e5,t3,i4,"deepEqual",f2.deepEqual)},f2.deepStrictEqual=function(e5,t3,i4){w(e5,t3,!0)||b2(e5,t3,i4,"deepStrictEqual",f2.deepStrictEqual)},f2.notDeepEqual=function(e5,t3,i4){w(e5,t3,!1)&&b2(e5,t3,i4,"notDeepEqual",f2.notDeepEqual)},f2.notDeepStrictEqual=E2,f2.strictEqual=function(e5,t3,i4){e5!==t3&&b2(e5,t3,i4,"===",f2.strictEqual)},f2.notStrictEqual=function(e5,t3,i4){e5===t3&&b2(e5,t3,i4,"!==",f2.notStrictEqual)},f2.throws=function(e5,t3,i4){A2(!0,e5,t3,i4)},f2.doesNotThrow=function(e5,t3,i4){A2(!1,e5,t3,i4)},f2.ifError=function(e5){if(e5)throw e5},f2.strict=r2(I,f2,{equal:f2.strictEqual,deepEqual:f2.deepStrictEqual,notEqual:f2.notStrictEqual,notDeepEqual:f2.notDeepStrictEqual}),f2.strict.strict=f2.strict;var M2=Object.keys||function(e5){var t3=[];for(var i4 in e5)s2.call(e5,i4)&&t3.push(i4);return t3}}).call(this)}).call(this,commonjsGlobal!==void 0?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{"object-assign":51,"util/":26}],24:[function(e4,t2,i2){typeof Object.create=="function"?t2.exports=function(e5,t3){e5.super_=t3,e5.prototype=Object.create(t3.prototype,{constructor:{value:e5,enumerable:!1,writable:!0,configurable:!0}})}:t2.exports=function(e5,t3){e5.super_=t3;var i3=function(){};i3.prototype=t3.prototype,e5.prototype=new i3,e5.prototype.constructor=e5}},{}],25:[function(e4,t2,i2){t2.exports=function(e5){return e5&&typeof e5=="object"&&typeof e5.copy=="function"&&typeof e5.fill=="function"&&typeof e5.readUInt8=="function"}},{}],26:[function(e4,t2,i2){(function(t3,r2){(function(){var n2=/%[sdj%]/g;i2.format=function(e5){if(!x2(e5)){for(var t4=[],i3=0;i3=a3)return e6;switch(e6){case"%s":return String(r3[i3++]);case"%d":return Number(r3[i3++]);case"%j":try{return JSON.stringify(r3[i3++])}catch{return"[Circular]"}default:return e6}})),l3=r3[i3];i3=3&&(r3.depth=arguments[2]),arguments.length>=4&&(r3.colors=arguments[3]),b2(t4)?r3.showHidden=t4:t4&&i2._extend(r3,t4),k2(r3.showHidden)&&(r3.showHidden=!1),k2(r3.depth)&&(r3.depth=2),k2(r3.colors)&&(r3.colors=!1),k2(r3.customInspect)&&(r3.customInspect=!0),r3.colors&&(r3.stylize=l2),c2(r3,e5,r3.depth)}function l2(e5,t4){var i3=s2.styles[t4];return i3?"\x1B["+s2.colors[i3][0]+"m"+e5+"\x1B["+s2.colors[i3][1]+"m":e5}function u2(e5,t4){return e5}function h2(e5){var t4={};return e5.forEach((function(e6,i3){t4[e6]=!0})),t4}function c2(e5,t4,r3){if(e5.customInspect&&t4&&T2(t4.inspect)&&t4.inspect!==i2.inspect&&(!t4.constructor||t4.constructor.prototype!==t4)){var n3=t4.inspect(r3,e5);return x2(n3)||(n3=c2(e5,n3,r3)),n3}var a3=f2(e5,t4);if(a3)return a3;var o3=Object.keys(t4),s3=h2(o3);if(e5.showHidden&&(o3=Object.getOwnPropertyNames(t4)),M2(t4)&&(o3.indexOf("message")>=0||o3.indexOf("description")>=0))return d(t4);if(o3.length===0){if(T2(t4)){var l3=t4.name?": "+t4.name:"";return e5.stylize("[Function"+l3+"]","special")}if(S2(t4))return e5.stylize(RegExp.prototype.toString.call(t4),"regexp");if(I(t4))return e5.stylize(Date.prototype.toString.call(t4),"date");if(M2(t4))return d(t4)}var u3,b3="",y3=!1,w2=["{","}"];return g(t4)&&(y3=!0,w2=["[","]"]),T2(t4)&&(b3=" [Function"+(t4.name?": "+t4.name:"")+"]"),S2(t4)&&(b3=" "+RegExp.prototype.toString.call(t4)),I(t4)&&(b3=" "+Date.prototype.toUTCString.call(t4)),M2(t4)&&(b3=" "+d(t4)),o3.length!==0||y3&&t4.length!=0?r3<0?S2(t4)?e5.stylize(RegExp.prototype.toString.call(t4),"regexp"):e5.stylize("[Object]","special"):(e5.seen.push(t4),u3=y3?p2(e5,t4,r3,s3,o3):o3.map((function(i3){return m(e5,t4,r3,s3,i3,y3)})),e5.seen.pop(),_2(u3,b3,w2)):w2[0]+b3+w2[1]}function f2(e5,t4){if(k2(t4))return e5.stylize("undefined","undefined");if(x2(t4)){var i3="'"+JSON.stringify(t4).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e5.stylize(i3,"string")}return v2(t4)?e5.stylize(""+t4,"number"):b2(t4)?e5.stylize(""+t4,"boolean"):y2(t4)?e5.stylize("null","null"):void 0}function d(e5){return"["+Error.prototype.toString.call(e5)+"]"}function p2(e5,t4,i3,r3,n3){for(var a3=[],o3=0,s3=t4.length;o3-1&&(s3=a3?s3.split(` diff --git a/plugins/photoshop/manifest.json b/plugins/photoshop/manifest.json index b1c0f77..d1491b0 100644 --- a/plugins/photoshop/manifest.json +++ b/plugins/photoshop/manifest.json @@ -122,4 +122,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/pyproject.toml b/pyproject.toml index 971efd7..808b021 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "sd-ppp" description = "getting/sending picture from/to Photoshop with a simple connection. Make Photoshop become the workspace of your ComfyUI." -version = "1.9.21" +version = "2.0.0" license = { file = "LICENSE" } [project.urls] diff --git a/static/sd-ppp2_PS.ccx b/static/sd-ppp2_PS.ccx index 0dd1872..1fb1c8a 100644 Binary files a/static/sd-ppp2_PS.ccx and b/static/sd-ppp2_PS.ccx differ diff --git a/static/sd-ppp2_PS.zip b/static/sd-ppp2_PS.zip index 0dd1872..1fb1c8a 100644 Binary files a/static/sd-ppp2_PS.zip and b/static/sd-ppp2_PS.zip differ diff --git a/static/sd-ppp_PS.ccx b/static/sd-ppp_PS.ccx index 600756e..778f910 100644 Binary files a/static/sd-ppp_PS.ccx and b/static/sd-ppp_PS.ccx differ diff --git a/typescripts/src/common/en.mts b/typescripts/src/common/en.mts index 1ee4412..7a8c466 100644 --- a/typescripts/src/common/en.mts +++ b/typescripts/src/common/en.mts @@ -1,13 +1,15 @@ export default { - 'SDPPP Get Document': 'Get Document', - 'SDPPP Get Layer By ID': 'Get Layer', - 'SDPPP Get Linked Layers': 'Get Linked Layers', - 'SDPPP Get Layers In Group': 'Get Layers In Group', - 'SDPPP Get Text From Layer': 'Get Text From Layer', - 'SDPPP Parse Layer Info': 'Parse Layer Info', - 'SDPPP Get Selection': 'Get Selection', - 'SDPPP Get Image From Photoshop': 'Get Image From Photoshop', - 'SDPPP Send Images To Photoshop': 'Send Images To Photoshop', - 'SDPPP Select Layer And Run PS Action': 'Select Layer And Run PS Action', + 'SDPPP Get Document': 'DEPRECATED! Get Document', + 'SDPPP Get Layer By ID': 'DEPRECATED! Get Layer', + 'SDPPP Get Linked Layers': 'DEPRECATED! Get Linked Layers', + 'SDPPP Get Layers In Group': 'DEPRECATED! Get Layers In Group', + 'SDPPP Get Text From Layer': 'DEPRECATED! Get Text From Layer', + 'SDPPP Parse Layer Info': 'DEPRECATED! Parse Layer Info', + 'SDPPP Get Selection': 'DEPRECATED! Get Selection', + 'SDPPP Get Image From Photoshop': 'DEPRECATED! Get Image From Photoshop', + 'SDPPP Send Images To Photoshop': 'DEPRECATED! Send Images To Photoshop', + 'SDPPP Send Text To Layer': 'DEPRECATED! Send Text To Layer', + 'SDPPP Select Layer And Run PS Action': 'DEPRECATED! Select Layer And Run PS Action', + "Photoshop Disconnected!" : "Photoshop Disconnected!\n(2.0+ use LoadImage node)", -} \ No newline at end of file +} diff --git a/typescripts/src/common/zh-cn.mts b/typescripts/src/common/zh-cn.mts index 1ce9b03..6c324e6 100644 --- a/typescripts/src/common/zh-cn.mts +++ b/typescripts/src/common/zh-cn.mts @@ -28,17 +28,17 @@ export default { 'hidden webview load failed: {0}, please select a browser page to continue': '内置 webview 加载失败: {0},请选择一个浏览器页面继续', // comfy node title - 'SDPPP Get Document': '获取文档(GetDocument)', - 'SDPPP Get Layer By ID': '获取图层(GetLayer)', - 'SDPPP Get Linked Layers': '获取链接图层(GetLinkedLayers)', - 'SDPPP Get Layers In Group': '获取组中图层(GetLayersInGroup)', - 'SDPPP Get Text From Layer': '获取图层文本(GetTextFromLayer)', - 'SDPPP Parse Layer Info': '解析图层信息(ParseLayerInfo)', - 'SDPPP Get Selection': '获取选区(GetSelection)', - 'SDPPP Get Image From Photoshop': '从PS获取图像(GetImageFromPhotoshop)', - 'SDPPP Send Images To Photoshop': '发送图像到PS(SendImagesToPhotoshop)', - 'SDPPP Send Text To Layer': '发送文本到图层(SendTextToLayer)', - 'SDPPP Select Layer And Run PS Action': '选中图层并运行PS Action(RunPhotoshopAction)', + 'SDPPP Get Document': '废弃节点! 获取文档(GetDocument)', + 'SDPPP Get Layer By ID': '废弃节点! 获取图层(GetLayer)', + 'SDPPP Get Linked Layers': '废弃节点! 获取链接图层(GetLinkedLayers)', + 'SDPPP Get Layers In Group': '废弃节点! 获取组中图层(GetLayersInGroup)', + 'SDPPP Get Text From Layer': '废弃节点! 获取图层文本(GetTextFromLayer)', + 'SDPPP Parse Layer Info': '废弃节点! 解析图层信息(ParseLayerInfo)', + 'SDPPP Get Selection': '废弃节点! 获取选区(GetSelection)', + 'SDPPP Get Image From Photoshop': '废弃节点! 从PS获取图像(GetImageFromPhotoshop)', + 'SDPPP Send Images To Photoshop': '废弃节点! 发送图像到PS(SendImagesToPhotoshop)', + 'SDPPP Send Text To Layer': '废弃节点! 发送文本到图层(SendTextToLayer)', + 'SDPPP Select Layer And Run PS Action': '废弃节点! 选中图层并运行PS Action(RunPhotoshopAction)', // comfy widget/input 'download PS plugin (.ccx)': '下载 Photoshop 插件 (.ccx)', @@ -73,7 +73,7 @@ export default { 'canvas_bound': '画布范围', 'layer_boundary': '图层范围', 'layer_bound': '图层范围', - "Photoshop Disconnected!" : "Photoshop 未连接!", + "Photoshop Disconnected!" : "Photoshop 未连接!\n(2.0+ 请改用LoadImage节点)", 'rgb_out': 'RGB输出', 'alpha_out': 'Alpha输出', 'images': '图像',