balkan-orgchart-react 9.2.31 → 9.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +135 -26525
- package/index.umd.js +186 -664
- package/package.json +2 -2
package/index.umd.js
CHANGED
|
@@ -1,664 +1,186 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MyReactLib={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),d=s(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;ie[n]||(console.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.",t,e),ie[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=K,this.updater=n||G}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=K,this.updater=n||G}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case L:return`Fragment`;case R:return`Profiler`;case ee:return`StrictMode`;case V:return`Suspense`;case H:return`SuspenseList`;case W:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case I:return`Portal`;case B:return e.displayName||`Context`;case z:return(e._context.displayName||`Context`)+`.Consumer`;case te:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case U:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===L)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===U)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=Y.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(se.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){le||(le=!0,console.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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return de[e]||(de[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:F,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===U&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===F}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case F:case I:s=!0;break;case U:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return J(a)?(n=``,c!=null&&(n=c.replace(he,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(he,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,J(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(me||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),me=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){Y.asyncTransitions--}function A(e){if(ve===null)try{var n=(`require`+Math.random()).slice(0,7);ve=(t&&t[n]).call(t,`timers`).setImmediate}catch{ve=function(e){!1===_e&&(_e=!0,typeof MessageChannel>`u`&&console.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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ve(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==ye-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),ye=t}function N(e,t,n){var r=Y.actQueue;if(r!==null)if(r.length!==0)try{P(r),A(function(){return N(e,t,n)});return}catch(e){Y.thrownErrors.push(e)}else Y.actQueue=null;0<Y.thrownErrors.length?(r=j(Y.thrownErrors),Y.thrownErrors.length=0,n(r)):t(e)}function P(e){if(!X){X=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{Y.didUsePromise=!1;var r=n(!1);if(r!==null){if(Y.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),Y.thrownErrors.push(n)}finally{X=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for(`react.transitional.element`),I=Symbol.for(`react.portal`),L=Symbol.for(`react.fragment`),ee=Symbol.for(`react.strict_mode`),R=Symbol.for(`react.profiler`),z=Symbol.for(`react.consumer`),B=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),V=Symbol.for(`react.suspense`),H=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),U=Symbol.for(`react.lazy`),W=Symbol.for(`react.activity`),re=Symbol.iterator,ie={},G={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},ae=Object.assign,K={};Object.freeze(K),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var q={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).`]};for(xe in q)q.hasOwnProperty(xe)&&n(xe,q[xe]);o.prototype=a.prototype,q=s.prototype=new o,q.constructor=s,ae(q,a.prototype),q.isPureReactComponent=!0;var J=Array.isArray,oe=Symbol.for(`react.client.reference`),Y={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},se=Object.prototype.hasOwnProperty,ce=console.createTask?console.createTask:function(){return null};q={react_stack_bottom_frame:function(e){return e()}};var le,ue,de={},fe=q.react_stack_bottom_frame.bind(q,m)(),pe=ce(f(m)),me=!1,he=/\/+/g,ge=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},_e=!1,ve=null,ye=0,be=!1,X=!1,Z=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;q=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var xe={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=W,e.Children=xe,e.Component=a,e.Fragment=L,e.Profiler=R,e.PureComponent=s,e.StrictMode=ee,e.Suspense=V,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,e.__COMPILER_RUNTIME=q,e.act=function(e){var t=Y.actQueue,n=ye;ye++;var r=Y.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){Y.thrownErrors.push(e)}if(0<Y.thrownErrors.length)throw M(t,n),e=j(Y.thrownErrors),Y.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Z(function(){i||be||(be=!0,console.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 () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{P(r),A(function(){return N(i,e,a)})}catch(e){Y.thrownErrors.push(e)}if(0<Y.thrownErrors.length){var o=j(Y.thrownErrors);Y.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<Y.thrownErrors.length?(e=j(Y.thrownErrors),Y.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(P(r),r.length!==0&&Z(function(){i||be||(be=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Y.actQueue=null),0<Y.thrownErrors.length)throw e=j(Y.thrownErrors),Y.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(Y.actQueue=r,A(function(){return N(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=Y.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=ae({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(se.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!se.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:B,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:z,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in ue||!(`__self`in t)||`key`in t||(ue=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)se.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>Y.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):fe,c?ce(f(e)):pe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ne?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:te,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:U,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ne,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=Y.T,n={};n._updatedFibers=new Set,Y.T=n;try{var r=e(),i=Y.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(Y.asyncTransitions++,r.then(k,k),r.then(c,ge))}catch(e){ge(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.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.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),Y.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===z&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.4`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),f=s(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=u():t.exports=d()})),p=s((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.4`})),m=s((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=d.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=f(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=d.T,n=l.p;try{if(d.T=null,l.p=2,e)return e()}finally{d.T=t,l.p=n,l.d.f()&&console.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.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.4`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`)){if(process.env.NODE_ENV!==`production`)throw Error(`^_^`);try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}}process.env.NODE_ENV===`production`?(n(),t.exports=p()):t.exports=m()})),g=s((e=>{var t=f(),n=h();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),g=Symbol.for(`react.memo`),_=Symbol.for(`react.lazy`),v=Symbol.for(`react.scope`),y=Symbol.for(`react.activity`),b=Symbol.for(`react.legacy_hidden`),x=Symbol.for(`react.memo_cache_sentinel`),S=Symbol.for(`react.view_transition`),C=Symbol.iterator;function w(e){return typeof e!=`object`||!e?null:(e=C&&e[C]||e[`@@iterator`],typeof e==`function`?e:null)}var T=Array.isArray;function E(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var D=Object.assign,O=Object.prototype.hasOwnProperty,k=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),A={},j={};function M(e){return O.call(j,e)?!0:O.call(A,e)?!1:k.test(e)?j[e]=!0:(A[e]=!0,!1)}var N=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),P=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),F=/["'&<>]/;function I(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=F.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var L=/([A-Z])/g,ee=/^ms-/,R=/^[\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;function z(e){return R.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},H=te.d;te.d={f:H.f,r:H.r,D:$e,C:et,L:tt,m:nt,X:it,S:rt,M:at};var ne=[],U=null,W=/(<\/|<)(s)(cript)/gi;function re(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function ie(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function G(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ae(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return G(2,null,r|1,null);case`select`:return G(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return G(4,null,r,null);case`picture`:return G(2,null,r|2,null);case`math`:return G(5,null,r,null);case`foreignObject`:return G(2,null,r,null);case`table`:return G(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return G(7,null,r,null);case`colgroup`:return G(9,null,r,null);case`tr`:return G(8,null,r,null);case`head`:if(2>e.insertionMode)return G(3,null,r,null);break;case`html`:if(e.insertionMode===0)return G(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?G(2,null,r,null):e.tagScope===r?e:G(e.insertionMode,e.selectedValue,r,null)}function K(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function q(e,t){return t.tagScope&32&&(e.instructions|=128),G(t.insertionMode,t.selectedValue,t.tagScope|12,K(t.viewTransition))}function J(e,t){e=K(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),G(t.insertionMode,t.selectedValue,n,e)}var oe=new Map;function Y(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=I(i);a=I((``+a).trim())}else o=oe.get(i),o===void 0&&(o=I(i.replace(L,`-$1`).toLowerCase().replace(ee,`-ms-`)),oe.set(i,o)),a=typeof a==`number`?a===0||N.has(i)?``+a:a+`px`:I((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function se(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function ce(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,I(n),`"`)}var le=I(`javascript:throw new Error('React form unexpectedly submitted.')`);function ue(e,t){this.push(`<input type="hidden"`),de(e),ce(this,`name`,t),ce(this,`value`,e),this.push(`/>`)}function de(e){if(typeof e!=`string`)throw Error(r(480))}function fe(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(de),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function pe(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=fe(t,r);l===null?(e.push(` `,`formAction`,`="`,le,`"`),o=a=i=r=s=null,_e(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&me(e,`name`,s),r!=null&&me(e,`formAction`,r),i!=null&&me(e,`formEncType`,i),a!=null&&me(e,`formMethod`,a),o!=null&&me(e,`formTarget`,o),c}function me(e,t,n){switch(t){case`className`:ce(e,`class`,n);break;case`tabIndex`:ce(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ce(e,t,n);break;case`style`:Y(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=z(``+n),e.push(` `,t,`="`,I(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:se(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=z(``+n),e.push(` `,`xlink:href`,`="`,I(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,I(n),`"`);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,I(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,I(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,I(n),`"`);break;case`xlinkActuate`:ce(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ce(e,`xlink:arcrole`,n);break;case`xlinkRole`:ce(e,`xlink:role`,n);break;case`xlinkShow`:ce(e,`xlink:show`,n);break;case`xlinkTitle`:ce(e,`xlink:title`,n);break;case`xlinkType`:ce(e,`xlink:type`,n);break;case`xmlBase`:ce(e,`xml:base`,n);break;case`xmlLang`:ce(e,`xml:lang`,n);break;case`xmlSpace`:ce(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=P.get(t)||t,M(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,I(n),`"`)}}}function he(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function ge(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function _e(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),Ye(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)}}function ve(e,t){for(var n in e.push(Ee(`link`)),t)if(O.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:me(e,n,i)}}return e.push(`/>`),null}var ye=/(<\/|<)(s)(tyle)/gi;function be(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function X(e,t,n){for(var i in e.push(Ee(n)),t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:me(e,i,a)}}return e.push(`/>`),null}function Z(e,t){e.push(Ee(`title`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:me(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(I(``+t)),he(e,r,n),e.push(ke(`title`)),null}function xe(e,t){e.push(Ee(`script`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:me(e,i,a)}}return e.push(`>`),he(e,r,n),typeof n==`string`&&e.push((``+n).replace(W,re)),e.push(ke(`script`)),null}function Se(e,t,n){e.push(Ee(n));var r=n=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:me(e,i,a)}}return e.push(`>`),he(e,r,n),n}function Ce(e,t,n){e.push(Ee(n));var r=n=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:me(e,i,a)}}return e.push(`>`),he(e,r,n),typeof n==`string`?(e.push(I(n)),null):n}var we=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Te=new Map;function Ee(e){var t=Te.get(e);if(t===void 0){if(!we.test(e))throw Error(r(65,e));t=`<`+e,Te.set(e,t)}return t}function De(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(Ee(`a`));var u=null,d=null,f;for(f in n)if(O.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?ce(e,`href`,``):me(e,f,p);break;default:me(e,f,p)}}if(e.push(`>`),he(e,d,u),typeof u==`string`){e.push(I(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(Ee(`select`));var h=null,g=null,_;for(_ in n)if(O.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:me(e,_,v)}}return e.push(`>`),he(e,g,h),h;case`option`:var y=c.selectedValue;e.push(Ee(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(O.call(n,w)){var E=n[w];if(E!=null)switch(w){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:C=E;break;case`value`:x=E;default:me(e,w,E)}}if(y!=null){var k=x===null?ge(b):``+x;if(T(y)){for(var A=0;A<y.length;A++)if(``+y[A]===k){e.push(` selected=""`);break}}else ``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),he(e,C,b),b;case`textarea`:e.push(Ee(`textarea`));var j=null,N=null,P=null,F;for(F in n)if(O.call(n,F)){var L=n[F];if(L!=null)switch(F){case`children`:P=L;break;case`value`:j=L;break;case`defaultValue`:N=L;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:me(e,F,L)}}if(j===null&&N!==null&&(j=N),e.push(`>`),P!=null){if(j!=null)throw Error(r(92));if(T(P)){if(1<P.length)throw Error(r(93));j=``+P[0]}j=``+P}return typeof j==`string`&&j[0]===`
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`+e.stack}return Object.defineProperty(t,`componentStack`,{value:i}),i}}),t}function Vn(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function Hn(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,e.destination.destroy(t))}function Un(e,t){Wn(e,t.next,t.hoistables)}function Wn(e,t,n){for(;t!==null;){n!==null&&(mt(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&mt(a.contentState,n),mr(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function Gn(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||On(e,a)){r=!1;break}}r&&Wn(e,t,t.hoistables)}}function Kn(e){var t={pendingTasks:1,boundaries:null,hoistables:Qe(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function qn(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=Kn(c),t.treeContext=jt(o,n,d);var p=l[d];typeof p==`number`?(Zn(e,t,p,f,d),delete l[d]):or(e,t,f,d),--c.pendingTasks===0&&Un(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=Kn(c),t.treeContext=jt(o,n,u),or(e,t,d,u),--c.pendingTasks===0&&Un(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=Kn(c),t.treeContext=jt(o,n,i),or(e,t,l,i),--c.pendingTasks===0&&Un(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=Kn(c),t.treeContext=jt(o,n,d),p=Ln(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{or(e,t,f,d),_t(p.chunks,e.renderState,p.lastPushedText,p.textEmbedded),p.status=1,--c.pendingTasks===0&&Un(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function Jn(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Ut={},Wt=t,Gt=e,Kt=n,Qt=Zt=0,$t=-1,en=0,tn=o,e=r(i,a);Xt;)Xt=!1,Qt=Zt=0,$t=-1,en=0,$+=1,Jt=null,e=r(i,a);return cn(),e}function Yn(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(`<!--F!-->`):c.push(`<!--F-->`)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=jt(n,1,0),or(e,t,r,-1),t.treeContext=n):s?or(e,t,r,-1):Qn(e,t,r,-1),t.keyPath=a}function Xn(e,t,n,i,a,f){if(typeof i==`function`)if(i.prototype&&i.prototype.isReactComponent){var h=a;if(`ref`in a)for(var x in h={},a)x!==`ref`&&(h[x]=a[x]);var C=i.defaultProps;if(C)for(var E in h===a&&(h=D({},h,a)),C)h[E]===void 0&&(h[E]=C[E]);a=h,h=xt,C=i.contextType,typeof C==`object`&&C&&(h=C._currentValue2),h=new i(a,h);var O=h.state===void 0?null:h.state;if(h.updater=kt,h.props=a,h.state=O,C={queue:[],replace:!1},h._reactInternals=C,f=i.contextType,h.context=typeof f==`object`&&f?f._currentValue2:xt,f=i.getDerivedStateFromProps,typeof f==`function`&&(f=f(a,O),O=f==null?O:D({},O,f),h.state=O),typeof i.getDerivedStateFromProps!=`function`&&typeof h.getSnapshotBeforeUpdate!=`function`&&(typeof h.UNSAFE_componentWillMount==`function`||typeof h.componentWillMount==`function`))if(i=h.state,typeof h.componentWillMount==`function`&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount==`function`&&h.UNSAFE_componentWillMount(),i!==h.state&&kt.enqueueReplaceState(h,h.state,null),C.queue!==null&&0<C.queue.length)if(i=C.queue,f=C.replace,C.queue=null,C.replace=!1,f&&i.length===1)h.state=i[0];else{for(C=f?i[0]:h.state,O=!0,f=f?1:0;f<i.length;f++)E=i[f],E=typeof E==`function`?E.call(h,C,a,void 0):E,E!=null&&(O?(O=!1,C=D({},C,E)):D(C,E));h.state=C}else C.queue=null;if(i=h.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,Qn(e,t,i,-1),t.keyPath=a}else{if(i=Jn(e,t,n,i,a,void 0),e.status===12)throw null;Yn(e,t,n,i,Zt!==0,Qt,$t)}else if(typeof i==`string`)if(h=t.blockedSegment,h===null)h=a.children,C=t.formatContext,O=t.keyPath,t.formatContext=ae(C,i,a),t.keyPath=n,or(e,t,h,-1),t.formatContext=C,t.keyPath=O;else{if(O=De(h.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,h.lastPushedText),h.lastPushedText=!1,C=t.formatContext,f=t.keyPath,t.keyPath=n,(t.formatContext=ae(C,i,a)).insertionMode===3){n=Ln(e,0,null,t.formatContext,!1,!1),h.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,or(e,t,O,-1),_t(n.chunks,e.renderState,n.lastPushedText,n.textEmbedded),n.status=1}finally{t.blockedSegment=h}}else or(e,t,O,-1);t.formatContext=C,t.keyPath=f;a:{switch(t=h.chunks,e=e.resumableState,i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=C.insertionMode){e.hasBody=!0;break a}break;case`html`:if(C.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=C.insertionMode)break a}t.push(ke(i))}h.lastPushedText=!1}else{switch(i){case b:case s:case c:case o:i=t.keyPath,t.keyPath=n,Qn(e,t,a.children,-1),t.keyPath=i;return;case y:i=t.blockedSegment,i===null?a.mode!==`hidden`&&(i=t.keyPath,t.keyPath=n,or(e,t,a.children,-1),t.keyPath=i):a.mode!==`hidden`&&(e.renderState.generateStaticMarkup||i.chunks.push(`<!--&-->`),i.lastPushedText=!1,h=t.keyPath,t.keyPath=n,or(e,t,a.children,-1),t.keyPath=h,e.renderState.generateStaticMarkup||i.chunks.push(`<!--/&-->`),i.lastPushedText=!1);return;case m:a:{if(i=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(T(i)){qn(e,t,n,i,a);break a}if((h=w(i))&&(h=h.call(i))){if(C=h.next(),!C.done){do C=h.next();while(!C.done);qn(e,t,n,i,a)}break a}}a===`together`?(a=t.keyPath,h=t.row,C=t.row=Kn(null),C.boundaries=[],C.together=!0,t.keyPath=n,Qn(e,t,i,-1),--C.pendingTasks===0&&Un(e,C),t.keyPath=a,t.row=h,h!==null&&0<C.pendingTasks&&(h.pendingTasks++,C.next=h)):(a=t.keyPath,t.keyPath=n,Qn(e,t,i,-1),t.keyPath=a)}return;case S:case v:throw Error(r(343));case p:a:if(t.replay!==null){i=t.keyPath,h=t.formatContext,C=t.row,t.keyPath=n,t.formatContext=J(e.resumableState,h),t.row=null,n=a.children;try{or(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=h,t.row=C}}else{i=t.keyPath,f=t.formatContext;var k=t.row,A=t.blockedBoundary;E=t.blockedPreamble;var j=t.hoistableState;x=t.blockedSegment;var M=a.fallback;a=a.children;var N=new Set,P=Pn(e,t.row,N,null,null);e.trackedPostpones!==null&&(P.trackedContentKeyPath=n);var F=Ln(e,x.chunks.length,P,t.formatContext,!1,!1);x.children.push(F),x.lastPushedText=!1;var I=Ln(e,0,null,t.formatContext,!1,!1);if(I.parentFlushed=!0,e.trackedPostpones!==null){h=t.componentStack,C=[n[0],`Suspense Fallback`,n[2]],O=[C[1],C[2],[],null],e.trackedPostpones.workingMap.set(C,O),P.trackedFallbackNode=O,t.blockedSegment=F,t.blockedPreamble=P.fallbackPreamble,t.keyPath=C,t.formatContext=q(e.resumableState,f),t.componentStack=zn(h),F.status=6;try{or(e,t,M,-1),_t(F.chunks,e.renderState,F.lastPushedText,F.textEmbedded),F.status=1}catch(t){throw F.status=e.status===12?3:4,t}finally{t.blockedSegment=x,t.blockedPreamble=E,t.keyPath=i,t.formatContext=f}t=Fn(e,null,a,-1,P,I,P.contentPreamble,P.contentState,t.abortSet,n,J(e.resumableState,t.formatContext),t.context,t.treeContext,null,h),Rn(t),e.pingedTasks.push(t)}else{t.blockedBoundary=P,t.blockedPreamble=P.contentPreamble,t.hoistableState=P.contentState,t.blockedSegment=I,t.keyPath=n,t.formatContext=J(e.resumableState,f),t.row=null,I.status=6;try{if(or(e,t,a,-1),_t(I.chunks,e.renderState,I.lastPushedText,I.textEmbedded),I.status=1,pr(P,I),P.pendingTasks===0&&P.status===0){if(P.status=1,!On(e,P)){k!==null&&--k.pendingTasks===0&&Un(e,k),e.pendingRootTasks===0&&t.blockedPreamble&&vr(e);break a}}else k!==null&&k.together&&Gn(e,k)}catch(n){P.status=4,e.status===12?(I.status=3,h=e.fatalError):(I.status=4,h=n),C=Bn(t.componentStack),O=Vn(e,h,C),P.errorDigest=O,rr(e,P)}finally{t.blockedBoundary=A,t.blockedPreamble=E,t.hoistableState=j,t.blockedSegment=x,t.keyPath=i,t.formatContext=f,t.row=k}t=Fn(e,null,M,-1,A,F,P.fallbackPreamble,P.fallbackState,N,[n[0],`Suspense Fallback`,n[2]],q(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,zn(t.componentStack)),Rn(t),e.pingedTasks.push(t)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a)for(M in h={},a)M!==`ref`&&(h[M]=a[M]);else h=a;i=Jn(e,t,n,i.render,h,f),Yn(e,t,n,i,Zt!==0,Qt,$t);return;case g:Xn(e,t,n,i.type,a,f);return;case u:if(C=a.children,h=t.keyPath,a=a.value,O=i._currentValue2,i._currentValue2=a,f=St,St=i={parent:f,depth:f===null?0:f.depth+1,context:i,parentValue:O,value:a},t.context=i,t.keyPath=n,Qn(e,t,C,-1),e=St,e===null)throw Error(r(403));e.context._currentValue2=e.parentValue,e=St=e.parent,t.context=e,t.keyPath=h;return;case l:a=a.children,i=a(i._context._currentValue2),a=t.keyPath,t.keyPath=n,Qn(e,t,i,-1),t.keyPath=a;return;case _:if(h=i._init,i=h(i._payload),e.status===12)throw null;Xn(e,t,n,i,a,f);return}throw Error(r(130,i==null?i:typeof i,``))}}function Zn(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Ln(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,or(e,t,r,i),s.status=1,o===null?e.completedRootSegment=s:(pr(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function Qn(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?Zn(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Rn(t),$n(e,t),t.componentStack=n)}function $n(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,f=bt(s),m=c??(o===-1?0:o);if(c=[t.keyPath,f,m],t.replay!==null)a:{var h=t.replay;for(o=h.nodes,n=0;n<o.length;n++){var g=o[n];if(m===g[1]){if(g.length===4){if(f!==null&&f!==g[0])throw Error(r(490,g[0],f));var v=g[2];f=g[3],m=t.node,t.replay={nodes:v,slots:f,pendingTasks:1};try{if(Xn(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Lt||typeof r.then==`function`))throw t.node===m?t.replay=h:o.splice(n,1),r;t.replay.pendingTasks--,l=Bn(t.componentStack),c=e,e=t.blockedBoundary,s=r,l=Vn(c,s,l),cr(c,e,v,f,s,l)}t.replay=h}else{if(s!==p)throw Error(r(490,`Suspense`,bt(s)||`Unknown`));b:{h=void 0,s=g[5],d=g[2],f=g[3],m=g[4]===null?[]:g[4][2],g=g[4]===null?null:g[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,S=t.replay,C=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=Pn(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=J(e.resumableState,b),t.row=null,t.replay={nodes:d,slots:f,pendingTasks:1};try{if(or(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=Bn(t.componentStack),h=Vn(e,n,v),l.errorDigest=h,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=C,t.hoistableState=E,t.replay=S,t.keyPath=y,t.formatContext=b,t.row=x}v=In(e,null,{nodes:m,slots:g,pendingTasks:0},O,-1,C,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],q(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,zn(t.componentStack)),Rn(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else Xn(e,t,c,s,l,d);return;case a:throw Error(r(257));case _:if(v=n._init,n=v(n._payload),e.status===12)throw null;Qn(e,t,n,o);return}if(T(n)){er(e,t,n,o);return}if((v=w(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);er(e,t,l,o)}return}if(typeof n.then==`function`)return t.thenableState=null,Qn(e,t,_n(n),o);if(n.$$typeof===u)return Qn(e,t,n._currentValue2,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=gt(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=gt(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function er(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(er(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Lt||typeof r.then==`function`))throw r;t.replay.pendingTasks--,n=Bn(t.componentStack);var u=t.blockedBoundary,d=r;n=Vn(e,d,n),cr(e,u,i,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=jt(o,s,i),u=c[i],typeof u==`number`?(Zn(e,t,u,l,i),delete c[i]):or(e,t,l,i);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)i=n[c],t.treeContext=jt(o,s,c),or(e,t,i,c);t.treeContext=o,t.keyPath=a}function tr(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(r(486));var i=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),Ar(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function nr(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=tr(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],Ar(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Ar(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function rr(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function ir(e,t,n){return In(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ar(e,t,n){var r=t.blockedSegment,i=Ln(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Fn(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function or(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return Qn(e,t,n,r)}catch(u){if(cn(),n=u===Lt?Bt():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Lt?sn():null,e=ir(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ot(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Lt?sn():null,n=ir(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ot(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return Qn(e,t,n,r)}catch(r){if(cn(),l.children.length=u,l.chunks.length=d,n=r===Lt?Bt():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Lt?sn():null,e=ar(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ot(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Lt?sn():null,l=ar(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ot(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Ot(a),n}function sr(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,mr(this,t,e.row,n))}function cr(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)cr(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Pn(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function lr(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=Bn(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Vn(t,n,a),nr(t,r,e,i),mr(t,null,e.row,i)):(Vn(t,n,a),Hn(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Vn(t,n,a),cr(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&dr(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return Vn(t,n,a),nr(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return lr(e,t,n)}),r.fallbackAbortableTasks.clear(),mr(t,r,e.row,i);r.status=4,i=Vn(t,n,a),r.status=4,r.errorDigest=i,rr(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&Un(t,i),r.fallbackAbortableTasks.forEach(function(e){return lr(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Un(t,e),t.allPendingTasks--,t.allPendingTasks===0&&fr(t)}function ur(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=st(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=ne,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:ne;else break b}}r(a?{Link:a}:{})}}}catch(t){Vn(e,t,{})}}function dr(e){e.trackedPostpones===null&&ur(e,!0),e.trackedPostpones===null&&vr(e),e.onShellError=It,e=e.onShellReady,e()}function fr(e){ur(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),vr(e),e=e.onAllReady,e()}function pr(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||pr(e,n)}else e.completedSegments.push(t)}function mr(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?Un(e,n):n.together&&Gn(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&dr(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&pr(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&mt(n.hoistables,t.contentState),On(e,t)||(t.fallbackAbortableTasks.forEach(sr,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Un(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&vr(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];tr(e,n,o),mr(e,o,null,null)}}--t.pendingTasks===0&&Un(e,t)}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(pr(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&Gn(e,t);e.allPendingTasks===0&&fr(e)}function hr(e){if(e.status!==14&&e.status!==13){var t=St,n=B.H;B.H=yn;var i=B.A;B.A=xn;var a=Mn;Mn=e;var o=bn;bn=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Ot(l.context);try{if(typeof l.replay.slots==`number`?Zn(f,l,l.replay.slots,l.node,l.childIndex):$n(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),mr(f,l.blockedBoundary,l.row,null)}catch(e){cn();var p=e===Lt?Bt():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Lt?sn():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=Bn(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=Vn(g,v,h),cr(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&dr(f),f.allPendingTasks--,f.allPendingTasks===0&&fr(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Ot(l.context);var x=g.children.length,S=g.chunks.length;try{$n(u,l),_t(g.chunks,u.renderState,g.lastPushedText,g.textEmbedded),l.abortSet.delete(l),g.status=1,mr(u,l.blockedBoundary,l.row,g)}catch(e){cn(),g.children.length=x,g.chunks.length=S;var C=e===Lt?Bt():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=Bn(l.componentStack);l.abortSet.delete(l),Vn(u,C,T),nr(u,w,l,g),mr(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Lt?sn():null;var E=l.ping;C.then(E,E)}else{var D=Bn(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&Un(u,k),u.allPendingTasks--,f=Vn(u,C,D),O===null)Hn(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,rr(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&Un(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&vr(u)}u.allPendingTasks===0&&fr(u)}}}}s.splice(0,c),e.destination!==null&&Er(e,e.destination)}catch(t){Vn(e,t,{}),Hn(e,t)}finally{bn=o,B.H=n,B.A=i,n===yn&&Ot(t),Mn=a}}}function gr(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=_r(e,t.children[i],n)||r;return r}function _r(e,t,n){var i=t.boundary;if(i===null)return gr(e,t,n);var a=i.contentPreamble,o=i.fallbackPreamble;if(a===null||o===null)return!1;switch(i.status){case 1:if(Ae(e.renderState,a),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return gr(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Ae(e.renderState,o),gr(e,t,n);default:return!0}}function vr(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=_r(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function yr(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push(`<template id="`),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push(`"></template>`);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)t.push(o[s]);a=xr(e,t,a,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(a=t.push(o[s])),a;case 3:return!0;default:throw Error(r(390))}}var br=0;function xr(e,t,n,i){var a=n.boundary;if(a===null)return yr(e,t,n,i);if(a.parentFlushed=!0,a.status===4){var o=a.row;return o!==null&&--o.pendingTasks===0&&Un(e,o),e.renderState.generateStaticMarkup||(a=a.errorDigest,t.push(`<!--$!-->`),t.push(`<template`),a&&(t.push(` data-dgst="`),a=I(a),t.push(a),t.push(`"`)),t.push(`></template>`)),yr(e,t,n,i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}if(a.status!==1)return a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Me(t,e.renderState,a.rootSegmentID),i&&mt(i,a.fallbackState),yr(e,t,n,i),t.push(`<!--/$-->`);if(!Tr&&On(e,a)&&br+a.byteSize>e.progressiveChunkSize)return a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Me(t,e.renderState,a.rootSegmentID),yr(e,t,n,i),t.push(`<!--/$-->`);if(br+=a.byteSize,i&&mt(i,a.contentState),n=a.row,n!==null&&On(e,a)&&--n.pendingTasks===0&&Un(e,n),e.renderState.generateStaticMarkup||t.push(`<!--$-->`),n=a.completedSegments,n.length!==1)throw Error(r(391));return xr(e,t,n[0],i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}function Sr(e,t,n,r){return Ne(t,e.renderState,n.parentFormatContext,n.id),xr(e,t,n,r),Pe(t,n.parentFormatContext)}function Cr(e,t,n){br=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)wr(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&On(e,n)&&--r.pendingTasks===0&&Un(e,r),Ue(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(`>`),a?(!(r.instructions&4)&&(r.instructions|=4,t.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`)),!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),Xe(t,n)):t.push(`"`),n=t.push(`)<\/script>`),je(t,e)&&n}function wr(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Sr(e,t,i,a)}return o===n.rootSegmentID?Sr(e,t,i,a):(Sr(e,t,i,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var Tr=!1;function Er(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;br=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=Ee(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(We,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(We,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(We,t),o.highImagePreloads.clear(),U=o,o.styles.forEach(Ke,t),U=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(We,t),o.scripts.forEach(We,t),o.scripts.clear(),o.bulkPreloads.forEach(We,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)xr(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=ke(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);xr(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=I(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}je(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);E.length=0,T.preconnects.forEach(We,t),T.preconnects.clear(),T.fontPreloads.forEach(We,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(We,t),T.highImagePreloads.clear(),T.styles.forEach(Je,t),T.scripts.forEach(We,t),T.scripts.clear(),T.bulkPreloads.forEach(We,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var P=M.toString(16);if(T.push(P),T.push(`"`),N){T.push(`,`);var F=Ie(N||``);T.push(F)}var L=T.push(`)<\/script>`);if(!L){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var ee=e.completedBoundaries;for(n=0;n<ee.length;n++)if(!Cr(e,t,ee[n])){e.destination=null,n++,ee.splice(0,n);return}ee.splice(0,n),Tr=!0;var R=e.partialBoundaries;for(n=0;n<R.length;n++){var z=R[n];a:{O=e,k=t,br=z.byteSize;var B=z.completedSegments;for(L=0;L<B.length;L++)if(!wr(O,k,z,B[L])){L++,B.splice(0,L);var te=!1;break a}B.splice(0,L);var V=z.row;V!==null&&V.together&&z.pendingTasks===1&&(V.pendingTasks===1?Wn(O,V,V.hoistables):V.pendingTasks--),te=Ue(k,z.contentState,O.renderState)}if(!te){e.destination=null,n++,R.splice(0,n);return}}R.splice(0,n),Tr=!1;var H=e.completedBoundaries;for(n=0;n<H.length;n++)if(!Cr(e,t,H[n])){e.destination=null,n++,H.splice(0,n);return}H.splice(0,n)}}finally{Tr=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(R=ke(`body`),t.push(R)),n.hasHtml&&(n=ke(`html`),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function Dr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?Er(e,t):e.flushScheduled=!1}}function Or(e,t){if(e.status===13)e.status=14,t.destroy(e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Er(e,t)}catch(t){Vn(e,t,{}),Hn(e,t)}}}function kr(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return lr(t,e,i)}),n.clear()}e.destination!==null&&Er(e,e.destination)}catch(t){Vn(e,t,{}),Hn(e,t)}}function Ar(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Ar(i,t[0],n)),i[2].push(e)}}function jr(){}function Mr(e,t,n,i){var a=!1,o=null,s=``,c=!1;if(t=ie(t?t.identifierPrefix:void 0),e=jn(e,t,ht(t,n),G(0,null,0,null),1/0,jr,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,hr(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&ur(e,e.pendingRootTasks===0),kr(e,i),Or(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==i)throw o;if(!c)throw Error(r(426));return s}e.renderToStaticMarkup=function(e,t){return Mr(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return Mr(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.4`})),_=s((e=>{var t=f(),n=h();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),g=Symbol.for(`react.memo`),_=Symbol.for(`react.lazy`),v=Symbol.for(`react.scope`),y=Symbol.for(`react.activity`),b=Symbol.for(`react.legacy_hidden`),x=Symbol.for(`react.memo_cache_sentinel`),S=Symbol.for(`react.view_transition`),C=Symbol.iterator;function w(e){return typeof e!=`object`||!e?null:(e=C&&e[C]||e[`@@iterator`],typeof e==`function`?e:null)}var T=Array.isArray;function E(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var D=new MessageChannel,O=[];D.port1.onmessage=function(){var e=O.shift();e&&e()};function k(e){O.push(e),D.port2.postMessage(null)}function A(e){setTimeout(function(){throw e})}var j=Promise,M=typeof queueMicrotask==`function`?queueMicrotask:function(e){j.resolve(null).then(e).catch(A)},N=null,P=0;function F(e,t){if(t.byteLength!==0)if(2048<t.byteLength)0<P&&(e.enqueue(new Uint8Array(N.buffer,0,P)),N=new Uint8Array(2048),P=0),e.enqueue(t);else{var n=N.length-P;n<t.byteLength&&(n===0?e.enqueue(N):(N.set(t.subarray(0,n),P),e.enqueue(N),t=t.subarray(n)),N=new Uint8Array(2048),P=0),N.set(t,P),P+=t.byteLength}}function I(e,t){return F(e,t),!0}function L(e){N&&0<P&&(e.enqueue(new Uint8Array(N.buffer,0,P)),N=null,P=0)}var ee=new TextEncoder;function R(e){return ee.encode(e)}function z(e){return ee.encode(e)}function B(e){return e.byteLength}function te(e,t){typeof e.error==`function`?e.error(t):e.close()}var V=Object.assign,H=Object.prototype.hasOwnProperty,ne=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),U={},W={};function re(e){return H.call(W,e)?!0:H.call(U,e)?!1:ne.test(e)?W[e]=!0:(U[e]=!0,!1)}var ie=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),G=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ae=/["'&<>]/;function K(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ae.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var q=/([A-Z])/g,J=/^ms-/,oe=/^[\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;function Y(e){return oe.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var se=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=ce.d;ce.d={f:ue.f,r:ue.r,D:lr,C:ur,L:dr,m:fr,X:mr,S:pr,M:hr};var de=[],fe=null;z(`"></template>`);var pe=z(`<script`),me=z(`<\/script>`),he=z(`<script src="`),ge=z(`<script type="module" src="`),_e=z(` nonce="`),ve=z(` integrity="`),ye=z(` crossorigin="`),be=z(` async=""><\/script>`),X=z(`<style`),Z=/(<\/|<)(s)(cript)/gi;function xe(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var Se=z(`<script type="importmap">`),Ce=z(`<\/script>`);function we(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?pe:z(`<script nonce="`+K(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?X:z(`<style nonce="`+K(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),tr(u,e),u.push(Qe,R((``+d).replace(Z,xe)),me)),d=[],r!==void 0&&(d.push(Se),d.push(R((``+JSON.stringify(r)).replace(Z,xe))),d.push(Ce)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:z(l+`P:`),segmentPrefix:z(l+`S:`),boundaryPrefix:z(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:Ee(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],st(l,c),i.bootstrapScripts.add(l),u.push(he,R(K(a)),He),n&&u.push(_e,R(K(n)),He),typeof s==`string`&&u.push(ve,R(K(s)),He),typeof o==`string`&&u.push(ye,R(K(o)),He),tr(u,e),u.push(be);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],st(s,o),i.bootstrapScripts.add(s),u.push(ge,R(K(f)),He),n&&u.push(_e,R(K(n)),He),typeof a==`string`&&u.push(ve,R(K(a)),He),typeof r==`string`&&u.push(ye,R(K(r)),He),tr(u,e),u.push(be);return i}function Te(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Ee(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function De(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function Oe(e){return De(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function ke(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return De(2,null,r|1,null);case`select`:return De(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return De(4,null,r,null);case`picture`:return De(2,null,r|2,null);case`math`:return De(5,null,r,null);case`foreignObject`:return De(2,null,r,null);case`table`:return De(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return De(7,null,r,null);case`colgroup`:return De(9,null,r,null);case`tr`:return De(8,null,r,null);case`head`:if(2>e.insertionMode)return De(3,null,r,null);break;case`html`:if(e.insertionMode===0)return De(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?De(2,null,r,null):e.tagScope===r?e:De(e.insertionMode,e.selectedValue,r,null)}function Ae(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function je(e,t){return t.tagScope&32&&(e.instructions|=128),De(t.insertionMode,t.selectedValue,t.tagScope|12,Ae(t.viewTransition))}function Me(e,t){e=Ae(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),De(t.insertionMode,t.selectedValue,n,e)}var Ne=z(`<!-- -->`);function Pe(e,t,n,r){return t===``?r:(r&&e.push(Ne),e.push(R(K(t))),!0)}var Fe=new Map,Ie=z(` style="`),Le=z(`:`),Re=z(`;`);function ze(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(H.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=R(K(i));a=R(K((``+a).trim()))}else o=Fe.get(i),o===void 0&&(o=z(K(i.replace(q,`-$1`).toLowerCase().replace(J,`-ms-`))),Fe.set(i,o)),a=typeof a==`number`?a===0||ie.has(i)?R(``+a):R(a+`px`):R(K((``+a).trim()));n?(n=!1,e.push(Ie,o,Le,a)):e.push(Re,o,Le,a)}}n||e.push(He)}var Be=z(` `),Ve=z(`="`),He=z(`"`),Ue=z(`=""`);function We(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Be,R(t),Ue)}function Q(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(Be,R(t),Ve,R(K(n)),He)}var Ge=z(K(`javascript:throw new Error('React form unexpectedly submitted.')`)),Ke=z(`<input type="hidden"`);function qe(e,t){this.push(Ke),Je(e),Q(this,`name`,t),Q(this,`value`,e),this.push($e)}function Je(e){if(typeof e!=`string`)throw Error(r(480))}function Ye(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(Je),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Xe(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=Ye(t,r);l===null?(e.push(Be,R(`formAction`),Ve,Ge,He),o=a=i=r=s=null,it(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&Ze(e,`name`,s),r!=null&&Ze(e,`formAction`,r),i!=null&&Ze(e,`formEncType`,i),a!=null&&Ze(e,`formMethod`,a),o!=null&&Ze(e,`formTarget`,o),c}function Ze(e,t,n){switch(t){case`className`:Q(e,`class`,n);break;case`tabIndex`:Q(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Q(e,t,n);break;case`style`:ze(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=Y(``+n),e.push(Be,R(t),Ve,R(K(n)),He);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:We(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=Y(``+n),e.push(Be,R(`xlink:href`),Ve,R(K(n)),He);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(Be,R(t),Ve,R(K(n)),He);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Be,R(t),Ue);break;case`capture`:case`download`:!0===n?e.push(Be,R(t),Ue):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Be,R(t),Ve,R(K(n)),He);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Be,R(t),Ve,R(K(n)),He);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Be,R(t),Ve,R(K(n)),He);break;case`xlinkActuate`:Q(e,`xlink:actuate`,n);break;case`xlinkArcrole`:Q(e,`xlink:arcrole`,n);break;case`xlinkRole`:Q(e,`xlink:role`,n);break;case`xlinkShow`:Q(e,`xlink:show`,n);break;case`xlinkTitle`:Q(e,`xlink:title`,n);break;case`xlinkType`:Q(e,`xlink:type`,n);break;case`xmlBase`:Q(e,`xml:base`,n);break;case`xmlLang`:Q(e,`xml:lang`,n);break;case`xmlSpace`:Q(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=G.get(t)||t,re(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(Be,R(t),Ve,R(K(n)),He)}}}var Qe=z(`>`),$e=z(`/>`);function et(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(R(``+t))}}function tt(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var nt=z(` selected=""`),rt=z(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function it(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),tr(r,e),r.push(Qe,rt,me)):r.unshift(t.startInlineScript,Qe,rt,me)}}var at=z(`<!--F!-->`),ot=z(`<!--F-->`);function st(e,t){for(var n in e.push(xt(`link`)),t)if(H.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:Ze(e,n,i)}}return e.push($e),null}var ct=/(<\/|<)(s)(tyle)/gi;function lt(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ut(e,t,n){for(var i in e.push(xt(n)),t)if(H.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:Ze(e,i,a)}}return e.push($e),null}function dt(e,t){e.push(xt(`title`));var n=null,r=null,i;for(i in t)if(H.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Ze(e,i,a)}}return e.push(Qe),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(R(K(``+t))),et(e,r,n),e.push(Tt(`title`)),null}var ft=z(`<!--head-->`),pt=z(`<!--body-->`),mt=z(`<!--html-->`);function ht(e,t){e.push(xt(`script`));var n=null,r=null,i;for(i in t)if(H.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Ze(e,i,a)}}return e.push(Qe),et(e,r,n),typeof n==`string`&&e.push(R((``+n).replace(Z,xe))),e.push(Tt(`script`)),null}function gt(e,t,n){e.push(xt(n));var r=n=null,i;for(i in t)if(H.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Ze(e,i,a)}}return e.push(Qe),et(e,r,n),n}function _t(e,t,n){e.push(xt(n));var r=n=null,i;for(i in t)if(H.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Ze(e,i,a)}}return e.push(Qe),et(e,r,n),typeof n==`string`?(e.push(R(K(n))),null):n}var vt=z(`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
`+e.stack}return Object.defineProperty(t,`componentStack`,{value:i}),i}}),t}function Qi(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function $i(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,te(e.destination,t))}function ea(e,t){ta(e,t.next,t.hoistables)}function ta(e,t,n){for(;t!==null;){n!==null&&(wr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&wr(a.contentState,n),Ea(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function na(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Ii(e,a)){r=!1;break}}r&&ta(e,t,t.hoistables)}}function ra(e){var t={pendingTasks:1,boundaries:null,hoistables:cr(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function ia(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=ra(c),t.treeContext=zr(o,n,d);var p=l[d];typeof p==`number`?(ca(e,t,p,f,d),delete l[d]):_a(e,t,f,d),--c.pendingTasks===0&&ea(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=ra(c),t.treeContext=zr(o,n,u),_a(e,t,d,u),--c.pendingTasks===0&&ea(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=ra(c),t.treeContext=zr(o,n,i),_a(e,t,l,i),--c.pendingTasks===0&&ea(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=ra(c),t.treeContext=zr(o,n,d),p=Ji(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{_a(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Ne),p.status=1,Ta(e,t.blockedBoundary,p),--c.pendingTasks===0&&ea(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function aa(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Zr={},Qr=t,$r=e,ei=n,oi=ai=0,si=-1,ci=0,li=o,e=r(i,a);ii;)ii=!1,oi=ai=0,si=-1,ci=0,di+=1,ni=null,e=r(i,a);return gi(),e}function oa(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(at):c.push(ot)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=zr(n,1,0),_a(e,t,r,-1),t.treeContext=n):s?_a(e,t,r,-1):la(e,t,r,-1),t.keyPath=a}function sa(e,t,n,i,a,f){if(typeof i==`function`)if(i.prototype&&i.prototype.isReactComponent){var h=a;if(`ref`in a)for(var x in h={},a)x!==`ref`&&(h[x]=a[x]);var C=i.defaultProps;if(C)for(var E in h===a&&(h=V({},h,a)),C)h[E]===void 0&&(h[E]=C[E]);a=h,h=kr,C=i.contextType,typeof C==`object`&&C&&(h=C._currentValue),h=new i(a,h);var D=h.state===void 0?null:h.state;if(h.updater=Lr,h.props=a,h.state=D,C={queue:[],replace:!1},h._reactInternals=C,f=i.contextType,h.context=typeof f==`object`&&f?f._currentValue:kr,f=i.getDerivedStateFromProps,typeof f==`function`&&(f=f(a,D),D=f==null?D:V({},D,f),h.state=D),typeof i.getDerivedStateFromProps!=`function`&&typeof h.getSnapshotBeforeUpdate!=`function`&&(typeof h.UNSAFE_componentWillMount==`function`||typeof h.componentWillMount==`function`))if(i=h.state,typeof h.componentWillMount==`function`&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount==`function`&&h.UNSAFE_componentWillMount(),i!==h.state&&Lr.enqueueReplaceState(h,h.state,null),C.queue!==null&&0<C.queue.length)if(i=C.queue,f=C.replace,C.queue=null,C.replace=!1,f&&i.length===1)h.state=i[0];else{for(C=f?i[0]:h.state,D=!0,f=f?1:0;f<i.length;f++)E=i[f],E=typeof E==`function`?E.call(h,C,a,void 0):E,E!=null&&(D?(D=!1,C=V({},C,E)):V(C,E));h.state=C}else C.queue=null;if(i=h.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,la(e,t,i,-1),t.keyPath=a}else{if(i=aa(e,t,n,i,a,void 0),e.status===12)throw null;oa(e,t,n,i,ai!==0,oi,si)}else if(typeof i==`string`)if(h=t.blockedSegment,h===null)h=a.children,C=t.formatContext,D=t.keyPath,t.formatContext=ke(C,i,a),t.keyPath=n,_a(e,t,h,-1),t.formatContext=C,t.keyPath=D;else{if(D=Ct(h.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,h.lastPushedText),h.lastPushedText=!1,C=t.formatContext,f=t.keyPath,t.keyPath=n,(t.formatContext=ke(C,i,a)).insertionMode===3){n=Ji(e,0,null,t.formatContext,!1,!1),h.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,_a(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Ne),n.status=1,Ta(e,t.blockedBoundary,n)}finally{t.blockedSegment=h}}else _a(e,t,D,-1);t.formatContext=C,t.keyPath=f;a:{switch(t=h.chunks,e=e.resumableState,i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=C.insertionMode){e.hasBody=!0;break a}break;case`html`:if(C.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=C.insertionMode)break a}t.push(Tt(i))}h.lastPushedText=!1}else{switch(i){case b:case s:case c:case o:i=t.keyPath,t.keyPath=n,la(e,t,a.children,-1),t.keyPath=i;return;case y:i=t.blockedSegment,i===null?a.mode!==`hidden`&&(i=t.keyPath,t.keyPath=n,_a(e,t,a.children,-1),t.keyPath=i):a.mode!==`hidden`&&(i.chunks.push(jt),i.lastPushedText=!1,h=t.keyPath,t.keyPath=n,_a(e,t,a.children,-1),t.keyPath=h,i.chunks.push(Mt),i.lastPushedText=!1);return;case m:a:{if(i=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(T(i)){ia(e,t,n,i,a);break a}if((h=w(i))&&(h=h.call(i))){if(C=h.next(),!C.done){do C=h.next();while(!C.done);ia(e,t,n,i,a)}break a}}a===`together`?(a=t.keyPath,h=t.row,C=t.row=ra(null),C.boundaries=[],C.together=!0,t.keyPath=n,la(e,t,i,-1),--C.pendingTasks===0&&ea(e,C),t.keyPath=a,t.row=h,h!==null&&0<C.pendingTasks&&(h.pendingTasks++,C.next=h)):(a=t.keyPath,t.keyPath=n,la(e,t,i,-1),t.keyPath=a)}return;case S:case v:throw Error(r(343));case p:a:if(t.replay!==null){i=t.keyPath,h=t.formatContext,C=t.row,t.keyPath=n,t.formatContext=Me(e.resumableState,h),t.row=null,n=a.children;try{_a(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=h,t.row=C}}else{i=t.keyPath,f=t.formatContext;var O=t.row;E=t.blockedBoundary,x=t.blockedPreamble;var k=t.hoistableState,A=t.blockedSegment,j=a.fallback;a=a.children;var M=new Set,N=2>t.formatContext.insertionMode?Gi(e,t.row,M,Ee(),Ee()):Gi(e,t.row,M,null,null);e.trackedPostpones!==null&&(N.trackedContentKeyPath=n);var P=Ji(e,A.chunks.length,N,t.formatContext,!1,!1);A.children.push(P),A.lastPushedText=!1;var F=Ji(e,0,null,t.formatContext,!1,!1);if(F.parentFlushed=!0,e.trackedPostpones!==null){h=t.componentStack,C=[n[0],`Suspense Fallback`,n[2]],D=[C[1],C[2],[],null],e.trackedPostpones.workingMap.set(C,D),N.trackedFallbackNode=D,t.blockedSegment=P,t.blockedPreamble=N.fallbackPreamble,t.keyPath=C,t.formatContext=je(e.resumableState,f),t.componentStack=Xi(h),P.status=6;try{_a(e,t,j,-1),P.lastPushedText&&P.textEmbedded&&P.chunks.push(Ne),P.status=1,Ta(e,E,P)}catch(t){throw P.status=e.status===12?3:4,t}finally{t.blockedSegment=A,t.blockedPreamble=x,t.keyPath=i,t.formatContext=f}t=Ki(e,null,a,-1,N,F,N.contentPreamble,N.contentState,t.abortSet,n,Me(e.resumableState,t.formatContext),t.context,t.treeContext,null,h),Yi(t),e.pingedTasks.push(t)}else{t.blockedBoundary=N,t.blockedPreamble=N.contentPreamble,t.hoistableState=N.contentState,t.blockedSegment=F,t.keyPath=n,t.formatContext=Me(e.resumableState,f),t.row=null,F.status=6;try{if(_a(e,t,a,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(Ne),F.status=1,Ta(e,N,F),wa(N,F),N.pendingTasks===0&&N.status===0){if(N.status=1,!Ii(e,N)){O!==null&&--O.pendingTasks===0&&ea(e,O),e.pendingRootTasks===0&&t.blockedPreamble&&Aa(e);break a}}else O!==null&&O.together&&na(e,O)}catch(n){N.status=4,e.status===12?(F.status=3,h=e.fatalError):(F.status=4,h=n),C=Zi(t.componentStack),D=Qi(e,h,C),N.errorDigest=D,ma(e,N)}finally{t.blockedBoundary=E,t.blockedPreamble=x,t.hoistableState=k,t.blockedSegment=A,t.keyPath=i,t.formatContext=f,t.row=O}t=Ki(e,null,j,-1,E,P,N.fallbackPreamble,N.fallbackState,M,[n[0],`Suspense Fallback`,n[2]],je(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Xi(t.componentStack)),Yi(t),e.pingedTasks.push(t)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a)for(A in h={},a)A!==`ref`&&(h[A]=a[A]);else h=a;i=aa(e,t,n,i.render,h,f),oa(e,t,n,i,ai!==0,oi,si);return;case g:sa(e,t,n,i.type,a,f);return;case u:if(C=a.children,h=t.keyPath,a=a.value,D=i._currentValue,i._currentValue=a,f=Ar,Ar=i={parent:f,depth:f===null?0:f.depth+1,context:i,parentValue:D,value:a},t.context=i,t.keyPath=n,la(e,t,C,-1),e=Ar,e===null)throw Error(r(403));e.context._currentValue=e.parentValue,e=Ar=e.parent,t.context=e,t.keyPath=h;return;case l:a=a.children,i=a(i._context._currentValue),a=t.keyPath,t.keyPath=n,la(e,t,i,-1),t.keyPath=a;return;case _:if(h=i._init,i=h(i._payload),e.status===12)throw null;sa(e,t,n,i,a,f);return}throw Error(r(130,i==null?i:typeof i,``))}}function ca(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Ji(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,_a(e,t,r,i),s.status=1,Ta(e,o,s),o===null?e.completedRootSegment=s:(wa(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function la(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?ca(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Yi(t),ua(e,t),t.componentStack=n)}function ua(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,f=Or(s),m=c??(o===-1?0:o);if(c=[t.keyPath,f,m],t.replay!==null)a:{var h=t.replay;for(o=h.nodes,n=0;n<o.length;n++){var g=o[n];if(m===g[1]){if(g.length===4){if(f!==null&&f!==g[0])throw Error(r(490,g[0],f));var v=g[2];f=g[3],m=t.node,t.replay={nodes:v,slots:f,pendingTasks:1};try{if(sa(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Gr||typeof r.then==`function`))throw t.node===m?t.replay=h:o.splice(n,1),r;t.replay.pendingTasks--,l=Zi(t.componentStack),c=e,e=t.blockedBoundary,s=r,l=Qi(c,s,l),ya(c,e,v,f,s,l)}t.replay=h}else{if(s!==p)throw Error(r(490,`Suspense`,Or(s)||`Unknown`));b:{h=void 0,s=g[5],d=g[2],f=g[3],m=g[4]===null?[]:g[4][2],g=g[4]===null?null:g[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,S=t.replay,C=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=2>t.formatContext.insertionMode?Gi(e,t.row,k,Ee(),Ee()):Gi(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=Me(e.resumableState,b),t.row=null,t.replay={nodes:d,slots:f,pendingTasks:1};try{if(_a(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=Zi(t.componentStack),h=Qi(e,n,v),l.errorDigest=h,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=C,t.hoistableState=E,t.replay=S,t.keyPath=y,t.formatContext=b,t.row=x}v=qi(e,null,{nodes:m,slots:g,pendingTasks:0},O,-1,C,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],je(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Xi(t.componentStack)),Yi(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else sa(e,t,c,s,l,d);return;case a:throw Error(r(257));case _:if(v=n._init,n=v(n._payload),e.status===12)throw null;la(e,t,n,o);return}if(T(n)){da(e,t,n,o);return}if((v=w(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);da(e,t,l,o)}return}if(typeof n.then==`function`)return t.thenableState=null,la(e,t,Ti(n),o);if(n.$$typeof===u)return la(e,t,n._currentValue,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=Pe(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=Pe(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function da(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(da(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Gr||typeof r.then==`function`))throw r;t.replay.pendingTasks--,n=Zi(t.componentStack);var u=t.blockedBoundary,d=r;n=Qi(e,d,n),ya(e,u,i,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=zr(o,s,i),u=c[i],typeof u==`number`?(ca(e,t,u,l,i),delete c[i]):_a(e,t,l,i);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)i=n[c],t.treeContext=zr(o,s,c),_a(e,t,i,c);t.treeContext=o,t.keyPath=a}function fa(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(r(486));var i=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),Ua(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function pa(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=fa(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],Ua(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Ua(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function ma(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function ha(e,t,n){return qi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ga(e,t,n){var r=t.blockedSegment,i=Ji(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Ki(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function _a(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return la(e,t,n,r)}catch(u){if(gi(),n=u===Gr?Jr():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Gr?hi():null,e=ha(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ir(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Gr?hi():null,n=ha(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ir(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return la(e,t,n,r)}catch(r){if(gi(),l.children.length=u,l.chunks.length=d,n=r===Gr?Jr():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Gr?hi():null,e=ga(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ir(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Gr?hi():null,l=ga(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ir(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Ir(a),n}function va(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,Ea(this,t,e.row,n))}function ya(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)ya(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Gi(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function ba(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=Zi(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Qi(t,n,a),pa(t,r,e,i),Ea(t,null,e.row,i)):(Qi(t,n,a),$i(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Qi(t,n,a),ya(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&Sa(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return Qi(t,n,a),pa(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return ba(e,t,n)}),r.fallbackAbortableTasks.clear(),Ea(t,r,e.row,i);r.status=4,i=Qi(t,n,a),r.status=4,r.errorDigest=i,ma(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&ea(t,i),r.fallbackAbortableTasks.forEach(function(e){return ba(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&ea(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Ca(t)}function xa(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=_r(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=de,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:de;else break b}}r(a?{Link:a}:{})}}}catch(t){Qi(e,t,{})}}function Sa(e){e.trackedPostpones===null&&xa(e,!0),e.trackedPostpones===null&&Aa(e),e.onShellError=Wr,e=e.onShellReady,e()}function Ca(e){xa(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),Aa(e),e=e.onAllReady,e()}function wa(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||wa(e,n)}else e.completedSegments.push(t)}function Ta(e,t,n){if(B!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function Ea(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?ea(e,n):n.together&&na(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&Sa(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&wa(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&wr(n.hoistables,t.contentState),Ii(e,t)||(t.fallbackAbortableTasks.forEach(va,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&ea(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&Aa(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];fa(e,n,o),Ea(e,o,null,null)}}--t.pendingTasks===0&&ea(e,t)}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(wa(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&na(e,t);e.allPendingTasks===0&&Ca(e)}function Da(e){if(e.status!==14&&e.status!==13){var t=Ar,n=se.H;se.H=Di;var i=se.A;se.A=ki;var a=Ui;Ui=e;var o=Oi;Oi=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Ir(l.context);try{if(typeof l.replay.slots==`number`?ca(f,l,l.replay.slots,l.node,l.childIndex):ua(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),Ea(f,l.blockedBoundary,l.row,null)}catch(e){gi();var p=e===Gr?Jr():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Gr?hi():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=Zi(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=Qi(g,v,h),ya(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&Sa(f),f.allPendingTasks--,f.allPendingTasks===0&&Ca(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Ir(l.context);var x=g.children.length,S=g.chunks.length;try{ua(u,l),g.lastPushedText&&g.textEmbedded&&g.chunks.push(Ne),l.abortSet.delete(l),g.status=1,Ta(u,l.blockedBoundary,g),Ea(u,l.blockedBoundary,l.row,g)}catch(e){gi(),g.children.length=x,g.chunks.length=S;var C=e===Gr?Jr():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=Zi(l.componentStack);l.abortSet.delete(l),Qi(u,C,T),pa(u,w,l,g),Ea(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Gr?hi():null;var E=l.ping;C.then(E,E)}else{var D=Zi(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&ea(u,k),u.allPendingTasks--,f=Qi(u,C,D),O===null)$i(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,ma(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&ea(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&Aa(u)}u.allPendingTasks===0&&Ca(u)}}}}s.splice(0,c),e.destination!==null&&Ra(e,e.destination)}catch(t){Qi(e,t,{}),$i(e,t)}finally{Oi=o,se.H=n,se.A=i,n===Di&&Ir(t),Ui=a}}}function Oa(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=ka(e,t.children[i],n)||r;return r}function ka(e,t,n){var i=t.boundary;if(i===null)return Oa(e,t,n);var a=i.contentPreamble,o=i.fallbackPreamble;if(a===null||o===null)return!1;switch(i.status){case 1:if(Et(e.renderState,a),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return Oa(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Et(e.renderState,o),Oa(e,t,n);default:return!0}}function Aa(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=ka(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function ja(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,F(t,kt),F(t,e.placeholderPrefix),e=R(i.toString(16)),F(t,e),I(t,At);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)F(t,o[s]);a=Na(e,t,a,i)}for(;s<o.length-1;s++)F(t,o[s]);return s<o.length&&(a=I(t,o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Ma=0;function Na(e,t,n,i){var a=n.boundary;if(a===null)return ja(e,t,n,i);if(a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&ea(e,o),a=a.errorDigest,I(t,It),F(t,Rt),a&&(F(t,Bt),F(t,R(K(a))),F(t,zt)),I(t,Vt),ja(e,t,n,i)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Ht(t,e.renderState,a.rootSegmentID),i&&wr(i,a.fallbackState),ja(e,t,n,i);else if(!La&&Ii(e,a)&&(Ma+a.byteSize>e.progressiveChunkSize||Tr(a.contentState)))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Ht(t,e.renderState,a.rootSegmentID),ja(e,t,n,i);else{if(Ma+=a.byteSize,i&&wr(i,a.contentState),n=a.row,n!==null&&Ii(e,a)&&--n.pendingTasks===0&&ea(e,n),I(t,Nt),n=a.completedSegments,n.length!==1)throw Error(r(391));Na(e,t,n[0],i)}return I(t,Lt)}function Pa(e,t,n,r){return un(t,e.renderState,n.parentFormatContext,n.id),Na(e,t,n,r),dn(t,n.parentFormatContext)}function Fa(e,t,n){Ma=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)Ia(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Ii(e,n)&&--r.pendingTasks===0&&ea(e,r),Hn(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,F(t,e.startInlineScript),F(t,Qe),a?(!(r.instructions&4)&&(r.instructions|=4,F(t,wn)),!(r.instructions&2)&&(r.instructions|=2,F(t,gn)),r.instructions&8?F(t,yn):(r.instructions|=8,F(t,vn))):(!(r.instructions&2)&&(r.instructions|=2,F(t,gn)),F(t,_n)),r=R(i.toString(16)),F(t,e.boundaryPrefix),F(t,r),F(t,bn),F(t,e.segmentPrefix),F(t,r),a?(F(t,xn),or(t,n)):F(t,Sn),n=I(t,Cn),Dt(t,e)&&n}function Ia(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Pa(e,t,i,a)}return o===n.rootSegmentID?Pa(e,t,i,a):(Pa(e,t,i,a),n=e.resumableState,e=e.renderState,F(t,e.startInlineScript),F(t,Qe),n.instructions&1?F(t,pn):(n.instructions|=1,F(t,fn)),F(t,e.segmentPrefix),o=R(o.toString(16)),F(t,o),F(t,mn),F(t,e.placeholderPrefix),F(t,o),t=I(t,hn),t)}var La=!1;function Ra(e,t){N=new Uint8Array(2048),P=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Ma=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)F(t,c[u]);if(l)for(u=0;u<l.length;u++)F(t,l[u]);else F(t,xt(`head`)),F(t,Qe)}else if(l)for(u=0;u<l.length;u++)F(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)F(t,d[u]);d.length=0,o.preconnects.forEach(Un,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)F(t,f[u]);f.length=0,o.fontPreloads.forEach(Un,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Un,t),o.highImagePreloads.clear(),fe=o,o.styles.forEach(Zn,t),fe=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)F(t,p[u]);p.length=0,o.bootstrapScripts.forEach(Un,t),o.scripts.forEach(Un,t),o.scripts.clear(),o.bulkPreloads.forEach(Un,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)F(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)Na(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&F(t,Tt(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)F(t,v[i]);Na(e,t,r,null),e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,F(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;F(t,er),F(t,R(K(x))),F(t,He)}F(t,Qe),F(t,Ot),I(t,me)}}Dt(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)F(t,C[r]);C.length=0,S.preconnects.forEach(Un,t),S.preconnects.clear(),S.fontPreloads.forEach(Un,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(Un,t),S.highImagePreloads.clear(),S.styles.forEach($n,t),S.scripts.forEach(Un,t),S.scripts.clear(),S.bulkPreloads.forEach(Un,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)F(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;F(S,O.startInlineScript),F(S,Qe),D.instructions&4?F(S,En):(D.instructions|=4,F(S,Tn)),F(S,O.boundaryPrefix),F(S,R(k.toString(16))),F(S,Dn),A&&(F(S,On),F(S,R(jn(A||``))));var j=I(S,kn);if(!j){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var M=e.completedBoundaries;for(n=0;n<M.length;n++)if(!Fa(e,t,M[n])){e.destination=null,n++,M.splice(0,n);return}M.splice(0,n),L(t),N=new Uint8Array(2048),P=0,La=!0;var ee=e.partialBoundaries;for(n=0;n<ee.length;n++){var z=ee[n];a:{T=e,E=t,Ma=z.byteSize;var B=z.completedSegments;for(j=0;j<B.length;j++)if(!Ia(T,E,z,B[j])){j++,B.splice(0,j);var te=!1;break a}B.splice(0,j);var V=z.row;V!==null&&V.together&&z.pendingTasks===1&&(V.pendingTasks===1?ta(T,V,V.hoistables):V.pendingTasks--),te=Hn(E,z.contentState,T.renderState)}if(!te){e.destination=null,n++,ee.splice(0,n);return}}ee.splice(0,n),La=!1;var H=e.completedBoundaries;for(n=0;n<H.length;n++)if(!Fa(e,t,H[n])){e.destination=null,n++,H.splice(0,n);return}H.splice(0,n)}}finally{La=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&F(t,Tt(`body`)),n.hasHtml&&F(t,Tt(`html`)),L(t),e.status=14,t.close(),e.destination=null):L(t)}}function za(e){e.flushScheduled=e.destination!==null,M(function(){return Da(e)}),k(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&xa(e,e.pendingRootTasks===0)})}function Ba(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,k(function(){var t=e.destination;t?Ra(e,t):e.flushScheduled=!1}))}function Va(e,t){if(e.status===13)e.status=14,te(t,e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Ra(e,t)}catch(t){Qi(e,t,{}),$i(e,t)}}}function Ha(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return ba(t,e,i)}),n.clear()}e.destination!==null&&Ra(e,e.destination)}catch(t){Qi(e,t,{}),$i(e,t)}}function Ua(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Ua(i,t[0],n)),i[2].push(e)}}function Wa(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;if(e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var a=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:a.resets.font},i.dnsResources=a.resets.dns,i.connectResources=a.resets.connect,i.imageResources=a.resets.image,i.styleResources=a.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=0}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Ga(){var e=t.version;if(e!==`19.2.4`)throw Error(r(527,e,`19.2.4`))}Ga(),Ga(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=Te(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Bi(e,o,we(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),Oe(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Va(s,e)},cancel:function(e){s.destination=null,Ha(s,e)}},{highWaterMark:0});e={postponed:Wa(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)Ha(s,c.reason);else{var l=function(){Ha(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}za(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=Te(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=zi(e,l,we(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),Oe(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Va(u,e)},cancel:function(e){u.destination=null,Ha(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Ha(u,d.reason);else{var f=function(){Ha(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}za(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=Vi(e,t,we(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Va(c,e)},cancel:function(e){c.destination=null,Ha(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)Ha(c,l.reason);else{var u=function(){Ha(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}za(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Hi(e,t,we(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Va(a,e)},cancel:function(e){a.destination=null,Ha(a,e)}},{highWaterMark:0});e={postponed:Wa(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)Ha(a,o.reason);else{var s=function(){Ha(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}za(a)})},e.version=`19.2.4`})),v=s((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function n(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function r(e){return typeof e!=`object`||!e?null:(e=Jn&&e[Jn]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e){return e=Object.prototype.toString.call(e),e.slice(8,e.length-1)}function a(e){var t=JSON.stringify(e);return`"`+e+`"`===t?e:t}function o(e){switch(typeof e){case`string`:return JSON.stringify(10>=e.length?e:e.slice(0,10)+`...`);case`object`:return Yn(e)?`[...]`:e!==null&&e.$$typeof===Qn?`client`:(e=i(e),e===`Object`?`{...}`:e);case`function`:return e.$$typeof===Qn?`client`:(e=e.displayName||e.name)?`function `+e:`function`;default:return String(e)}}function s(e){if(typeof e==`string`)return e;switch(e){case zn:return`Suspense`;case Bn:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case Rn:return s(e.render);case Vn:return s(e.type);case Hn:var t=e._payload;e=e._init;try{return s(e(t))}catch{}}return``}function c(e,t){var n=i(e);if(n!==`Object`&&n!==`Array`)return n;var r=-1,l=0;if(Yn(e))if(Zn.has(e)){var u=Zn.get(e);n=`<`+s(u)+`>`;for(var d=0;d<e.length;d++){var f=e[d];f=typeof f==`string`?f:typeof f==`object`&&f?`{`+c(f)+`}`:`{`+o(f)+`}`,``+d===t?(r=n.length,l=f.length,n+=f):n=15>f.length&&40>n.length+f.length?n+f:n+`{...}`}n+=`</`+s(u)+`>`}else{for(n=`[`,u=0;u<e.length;u++)0<u&&(n+=`, `),d=e[u],d=typeof d==`object`&&d?c(d):o(d),``+u===t?(r=n.length,l=d.length,n+=d):n=10>d.length&&40>n.length+d.length?n+d:n+`...`;n+=`]`}else if(e.$$typeof===jn)n=`<`+s(e.type)+`/>`;else{if(e.$$typeof===Qn)return`client`;if(Xn.has(e)){for(n=Xn.get(e),n=`<`+(s(n)||`...`),u=Object.keys(e),d=0;d<u.length;d++){n+=` `,f=u[d],n+=a(f)+`=`;var p=e[f],m=f===t&&typeof p==`object`&&p?c(p):o(p);typeof p!=`string`&&(m=`{`+m+`}`),f===t?(r=n.length,l=m.length,n+=m):n=10>m.length&&40>n.length+m.length?n+m:n+`...`}n+=`>`}else{for(n=`{`,u=Object.keys(e),d=0;d<u.length;d++)0<d&&(n+=`, `),f=u[d],n+=a(f)+`: `,p=e[f],p=typeof p==`object`&&p?c(p):o(p),f===t?(r=n.length,l=p.length,n+=p):n=10>p.length&&40>n.length+p.length?n+p:n+`...`;n+=`}`}}return t===void 0?n:-1<r&&0<l?(e=` `.repeat(r)+`^`.repeat(l),`
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
%s`,e)}}return null}function z(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){s===null||Si||(Si=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i===null&&a===null||wi||(wi=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),o===null||Ci||(Ci=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`));var l=R(t,r);l===null?(e.push(si,`formAction`,ci,di,li),o=a=i=r=s=null,ne(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&B(e,`name`,s),r!=null&&B(e,`formAction`,r),i!=null&&B(e,`formEncType`,i),a!=null&&B(e,`formMethod`,a),o!=null&&B(e,`formTarget`,o),c}function B(e,t,n){switch(t){case`className`:I(e,`class`,n);break;case`tabIndex`:I(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:I(e,t,n);break;case`style`:P(e,n);break;case`src`:case`href`:if(n===``){console.error(t===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,t,t);break}case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;m(n,t),n=E(``+n),e.push(si,t,ci,T(n),li);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:F(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;m(n,t),n=E(``+n),e.push(si,`xlink:href`,ci,T(n),li);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(si,t,ci,T(n),li);break;case`inert`:n!==``||Kr[t]||(Kr[t]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",t));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(si,t,ui);break;case`capture`:case`download`:!0===n?e.push(si,t,ui):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(si,t,ci,T(n),li);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(si,t,ci,T(n),li);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(si,t,ci,T(n),li);break;case`xlinkActuate`:I(e,`xlink:actuate`,n);break;case`xlinkArcrole`:I(e,`xlink:arcrole`,n);break;case`xlinkRole`:I(e,`xlink:role`,n);break;case`xlinkShow`:I(e,`xlink:show`,n);break;case`xlinkTitle`:I(e,`xlink:title`,n);break;case`xlinkType`:I(e,`xlink:type`,n);break;case`xmlBase`:I(e,`xml:base`,n);break;case`xmlLang`:I(e,`xml:lang`,n);break;case`xmlSpace`:I(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=ar.get(t)||t,v(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(si,t,ci,T(n),li)}}}function te(e,t,n){if(t!=null){if(n!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!=`object`||!(`__html`in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");t=t.__html,t!=null&&(_(t),e.push(``+t))}}function V(e,t){var n=e[t];n!=null&&(n=Yn(n),e.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!e.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t))}function H(e){var t=``;return kn.Children.forEach(e,function(e){e!=null&&(t+=e,vi||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||(vi=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}function ne(e,t){if((e.instructions&16)===Pr){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),X(r,e),r.push(fi,Ti,Wr)):r.unshift(t.startInlineScript,fi,Ti,Wr)}}function U(e,t){for(var n in e.push(q(`link`)),t)if(er.call(t,n)){var r=t[n];if(r!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B(e,n,r)}}return e.push(pi),null}function W(e){return _(e),(``+e).replace(Ei,t)}function re(e,t,n){for(var r in e.push(q(n)),t)if(er.call(t,r)){var i=t[r];if(i!=null)switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error(n+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B(e,r,i)}}return e.push(pi),null}function ie(e,t){e.push(q(`title`));var n=null,r=null,i;for(i in t)if(er.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:B(e,i,a)}}return e.push(fi),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(T(``+t)),te(e,r,n),e.push(oe(`title`)),null}function G(e,t){e.push(q(`script`));var n=null,r=null,i;for(i in t)if(er.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:B(e,i,a)}}return e.push(fi),n!=null&&typeof n!=`string`&&(t=typeof n==`number`?`a number for children`:Array.isArray(n)?`an array for children`:`something unexpected for children`,console.error(`A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.`,t)),te(e,r,n),typeof n==`string`&&e.push(D(n)),e.push(oe(`script`)),null}function ae(e,t,n){e.push(q(n));var r=n=null,i;for(i in t)if(er.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:B(e,i,a)}}return e.push(fi),te(e,r,n),n}function K(e,t,n){e.push(q(n));var r=n=null,i;for(i in t)if(er.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:B(e,i,a)}}return e.push(fi),te(e,r,n),typeof n==`string`?(e.push(T(n)),null):n}function q(e){var t=ki.get(e);if(t===void 0){if(!Oi.test(e))throw Error(`Invalid tag: `+e);t=`<`+e,ki.set(e,t)}return t}function J(e,t,n,r,i,a,o,s,c){x(t,n),t!==`input`&&t!==`textarea`&&t!==`select`||n==null||n.value!==null||dr||(dr=!0,t===`select`&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));b:if(t.indexOf(`-`)===-1)var l=!1;else switch(t){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`:l=!1;break b;default:l=!0}switch(l||typeof n.is==`string`||C(t,n,null),!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),s.insertionMode!==Zr&&s.insertionMode!==Qr&&t.indexOf(`-`)===-1&&t.toLowerCase()!==t&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,t),t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(q(`a`));var u=null,d=null,f;for(f in n)if(er.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?I(e,`href`,``):B(e,f,p);break;default:B(e,f,p)}}if(e.push(fi),te(e,d,u),typeof u==`string`){e.push(T(u));var h=null}else h=u;return h;case`g`:case`p`:case`li`:break;case`select`:y(`select`,n),V(n,`value`),V(n,`defaultValue`),n.value===void 0||n.defaultValue===void 0||gi||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),gi=!0),e.push(q(`select`));var g=null,b=null,S;for(S in n)if(er.call(n,S)){var w=n[S];if(w!=null)switch(S){case`children`:g=w;break;case`dangerouslySetInnerHTML`:b=w;break;case`defaultValue`:case`value`:break;default:B(e,S,w)}}return e.push(fi),te(e,b,g),g;case`option`:var D=s.selectedValue;e.push(q(`option`));var O=null,k=null,A=null,j=null,M;for(M in n)if(er.call(n,M)){var N=n[M];if(N!=null)switch(M){case`children`:O=N;break;case`selected`:A=N,bi||=(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),!0);break;case`dangerouslySetInnerHTML`:j=N;break;case`value`:k=N;default:B(e,M,N)}}if(D!=null){if(k!==null){m(k,`value`);var ee=``+k}else j===null||yi||(yi=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),ee=H(O);if(Yn(D)){for(var J=0;J<D.length;J++)if(m(D[J],`value`),``+D[J]===ee){e.push(` selected=""`);break}}else m(D,`select.value`),``+D===ee&&e.push(` selected=""`)}else A&&e.push(` selected=""`);return e.push(fi),te(e,j,O),O;case`textarea`:y(`textarea`,n),n.value===void 0||n.defaultValue===void 0||_i||(console.error(`Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`),_i=!0),e.push(q(`textarea`));var Y=null,se=null,ce=null,le;for(le in n)if(er.call(n,le)){var ue=n[le];if(ue!=null)switch(le){case`children`:ce=ue;break;case`value`:Y=ue;break;case`defaultValue`:se=ue;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:B(e,le,ue)}}if(Y===null&&se!==null&&(Y=se),e.push(fi),ce!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Y!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Yn(ce)){if(1<ce.length)throw Error(`<textarea> can only have at most one child.`);_(ce[0]),Y=``+ce[0]}_(ce),Y=``+ce}return typeof Y==`string`&&Y[0]===`
|
|
78
|
-
`&&e.push(Di),Y!==null&&(m(Y,`value`),e.push(T(``+Y))),null;case`input`:y(`input`,n),e.push(q(`input`));var de=null,fe=null,pe=null,me=null,he=null,ge=null,_e=null,ve=null,ye=null,be;for(be in n)if(er.call(n,be)){var X=n[be];if(X!=null)switch(be){case`children`:case`dangerouslySetInnerHTML`:throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case`name`:de=X;break;case`formAction`:fe=X;break;case`formEncType`:pe=X;break;case`formMethod`:me=X;break;case`formTarget`:he=X;break;case`defaultChecked`:ye=X;break;case`defaultValue`:_e=X;break;case`checked`:ve=X;break;case`value`:ge=X;break;default:B(e,be,X)}}fe===null||n.type===`image`||n.type===`submit`||xi||(xi=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`));var Z=z(e,r,i,fe,pe,me,he,de);return ve===null||ye===null||hi||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,`A component`,n.type),hi=!0),ge===null||_e===null||mi||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,`A component`,n.type),mi=!0),ve===null?ye!==null&&F(e,`checked`,ye):F(e,`checked`,ve),ge===null?_e!==null&&B(e,`value`,_e):B(e,`value`,ge),e.push(pi),Z?.forEach(L,e),null;case`button`:e.push(q(`button`));var xe=null,Se=null,Ce=null,Ee=null,De=null,Oe=null,ke=null,Ae;for(Ae in n)if(er.call(n,Ae)){var je=n[Ae];if(je!=null)switch(Ae){case`children`:xe=je;break;case`dangerouslySetInnerHTML`:Se=je;break;case`name`:Ce=je;break;case`formAction`:Ee=je;break;case`formEncType`:De=je;break;case`formMethod`:Oe=je;break;case`formTarget`:ke=je;break;default:B(e,Ae,je)}}Ee===null||n.type==null||n.type===`submit`||xi||(xi=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`));var Me=z(e,r,i,Ee,De,Oe,ke,Ce);if(e.push(fi),Me?.forEach(L,e),te(e,Se,xe),typeof xe==`string`){e.push(T(xe));var Ne=null}else Ne=xe;return Ne;case`form`:e.push(q(`form`));var Pe=null,Fe=null,Ie=null,Le=null,Re=null,ze=null,Be;for(Be in n)if(er.call(n,Be)){var Ve=n[Be];if(Ve!=null)switch(Be){case`children`:Pe=Ve;break;case`dangerouslySetInnerHTML`:Fe=Ve;break;case`action`:Ie=Ve;break;case`encType`:Le=Ve;break;case`method`:Re=Ve;break;case`target`:ze=Ve;break;default:B(e,Be,Ve)}}var He=null,Ue=null;if(typeof Ie==`function`){Le===null&&Re===null||wi||(wi=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),ze===null||Ci||(Ci=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`));var We=R(r,Ie);We===null?(e.push(si,`action`,ci,di,li),ze=Re=Le=Ie=null,ne(r,i)):(Ie=We.action||``,Le=We.encType,Re=We.method,ze=We.target,He=We.data,Ue=We.name)}if(Ie!=null&&B(e,`action`,Ie),Le!=null&&B(e,`encType`,Le),Re!=null&&B(e,`method`,Re),ze!=null&&B(e,`target`,ze),e.push(fi),Ue!==null&&(e.push(`<input type="hidden"`),I(e,`name`,Ue),e.push(pi),He?.forEach(L,e)),te(e,Fe,Pe),typeof Pe==`string`){e.push(T(Pe));var Q=null}else Q=Pe;return Q;case`menuitem`:for(var Ge in e.push(q(`menuitem`)),n)if(er.call(n,Ge)){var Ke=n[Ge];if(Ke!=null)switch(Ge){case`children`:case`dangerouslySetInnerHTML`:throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:B(e,Ge,Ke)}}return e.push(fi),null;case`object`:e.push(q(`object`));var qe=null,Je=null,Ye;for(Ye in n)if(er.call(n,Ye)){var Xe=n[Ye];if(Xe!=null)switch(Ye){case`children`:qe=Xe;break;case`dangerouslySetInnerHTML`:Je=Xe;break;case`data`:m(Xe,`data`);var Ze=E(``+Xe);if(Ze===``){console.error(`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,Ye,Ye);break}e.push(si,`data`,ci,T(Ze),li);break;default:B(e,Ye,Xe)}}if(e.push(fi),te(e,Je,qe),typeof qe==`string`){e.push(T(qe));var Qe=null}else Qe=qe;return Qe;case`title`:var $e=s.tagScope&1,et=s.tagScope&4;if(er.call(n,`children`)){var tt=n.children,nt=Array.isArray(tt)?2>tt.length?tt[0]:null:tt;Array.isArray(tt)&&1<tt.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",tt.length):typeof nt==`function`||typeof nt==`symbol`?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof nt==`function`?`a Function`:`a Sybmol`):nt&&nt.toString==={}.toString&&(nt.$$typeof==null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."))}if(s.insertionMode===Zr||$e||n.itemProp!=null)var rt=ie(e,n);else et?rt=null:(ie(i.hoistableChunks,n),rt=void 0);return rt;case`link`:var it=s.tagScope&1,at=s.tagScope&4,ot=n.rel,st=n.href,ct=n.precedence;if(s.insertionMode===Zr||it||n.itemProp!=null||typeof ot!=`string`||typeof st!=`string`||st===``){ot===`stylesheet`&&typeof n.precedence==`string`&&(typeof st==`string`&&st||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',st===null?"`null`":st===void 0?"`undefined`":st===``?`an empty string`:`something with type "`+typeof st+`"`)),U(e,n);var lt=null}else if(n.rel===`stylesheet`)if(typeof ct!=`string`||n.disabled!=null||n.onLoad||n.onError){if(typeof ct==`string`){if(n.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(n.onLoad||n.onError){var ut=n.onLoad&&n.onError?"`onLoad` and `onError` props":n.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',ut,ut)}}lt=U(e,n)}else{var dt=i.styles.get(ct),ft=r.styleResources.hasOwnProperty(st)?r.styleResources[st]:void 0;if(ft!==Vr){r.styleResources[st]=Vr,dt||(dt={precedence:T(ct),rules:[],hrefs:[],sheets:new Map},i.styles.set(ct,dt));var pt={state:Xa,props:$n({},n,{"data-precedence":n.precedence,precedence:null})};if(ft){ft.length===2&&we(pt.props,ft);var mt=i.preloads.stylesheets.get(st);mt&&0<mt.length?mt.length=0:pt.state=Za}dt.sheets.set(st,pt),o&&o.stylesheets.add(pt)}else if(dt){var ht=dt.sheets.get(st);ht&&o&&o.stylesheets.add(ht)}c&&e.push(`<!-- -->`),lt=null}else n.onLoad||n.onError?lt=U(e,n):(c&&e.push(`<!-- -->`),lt=at?null:U(i.hoistableChunks,n));return lt;case`script`:var gt=s.tagScope&1,_t=n.async;if(typeof n.src!=`string`||!n.src||!_t||typeof _t==`function`||typeof _t==`symbol`||n.onLoad||n.onError||s.insertionMode===Zr||gt||n.itemProp!=null)var vt=G(e,n);else{var yt=n.src;if(n.type===`module`)var bt=r.moduleScriptResources,xt=i.preloads.moduleScripts;else bt=r.scriptResources,xt=i.preloads.scripts;var St=bt.hasOwnProperty(yt)?bt[yt]:void 0;if(St!==Vr){bt[yt]=Vr;var Ct=n;if(St){St.length===2&&(Ct=$n({},n),we(Ct,St));var wt=xt.get(yt);wt&&(wt.length=0)}var Tt=[];i.scripts.add(Tt),G(Tt,Ct)}c&&e.push(`<!-- -->`),vt=null}return vt;case`style`:var Et=s.tagScope&1;if(er.call(n,`children`)){var Dt=n.children,Ot=Array.isArray(Dt)?2>Dt.length?Dt[0]:null:Dt;(typeof Ot==`function`||typeof Ot==`symbol`||Array.isArray(Ot))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof Ot==`function`?`a Function`:typeof Ot==`symbol`?`a Sybmol`:`an Array`)}var kt=n.precedence,At=n.href,jt=n.nonce;if(s.insertionMode===Zr||Et||n.itemProp!=null||typeof kt!=`string`||typeof At!=`string`||At===``){e.push(q(`style`));var Mt=null,Nt=null,Pt;for(Pt in n)if(er.call(n,Pt)){var Ft=n[Pt];if(Ft!=null)switch(Pt){case`children`:Mt=Ft;break;case`dangerouslySetInnerHTML`:Nt=Ft;break;default:B(e,Pt,Ft)}}e.push(fi);var It=Array.isArray(Mt)?2>Mt.length?Mt[0]:null:Mt;typeof It!=`function`&&typeof It!=`symbol`&&It!=null&&e.push(W(It)),te(e,Nt,Mt),e.push(oe(`style`));var Lt=null}else{At.includes(` `)&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',At);var Rt=i.styles.get(kt),zt=r.styleResources.hasOwnProperty(At)?r.styleResources[At]:void 0;if(zt!==Vr){r.styleResources[At]=Vr,zt&&console.error(`React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.`,At),Rt||(Rt={precedence:T(kt),rules:[],hrefs:[],sheets:new Map},i.styles.set(kt,Rt));var Bt=i.nonce.style;if(Bt&&Bt!==jt)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',kt,jt,Bt);else{!Bt&&jt&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',kt,jt),Rt.hrefs.push(T(At));var Vt=Rt.rules,Ht=null,Ut=null,Wt;for(Wt in n)if(er.call(n,Wt)){var Gt=n[Wt];if(Gt!=null)switch(Wt){case`children`:Ht=Gt;break;case`dangerouslySetInnerHTML`:Ut=Gt}}var Kt=Array.isArray(Ht)?2>Ht.length?Ht[0]:null:Ht;typeof Kt!=`function`&&typeof Kt!=`symbol`&&Kt!=null&&Vt.push(W(Kt)),te(Vt,Ut,Ht)}}Rt&&o&&o.styles.add(Rt),c&&e.push(`<!-- -->`),Lt=void 0}return Lt;case`meta`:var qt=s.tagScope&1,Jt=s.tagScope&4;if(s.insertionMode===Zr||qt||n.itemProp!=null)var Yt=re(e,n,`meta`);else c&&e.push(`<!-- -->`),Yt=Jt?null:typeof n.charSet==`string`?re(i.charsetChunks,n,`meta`):n.name===`viewport`?re(i.viewportChunks,n,`meta`):re(i.hoistableChunks,n,`meta`);return Yt;case`listing`:case`pre`:e.push(q(t));var Xt=null,Zt=null,Qt;for(Qt in n)if(er.call(n,Qt)){var $t=n[Qt];if($t!=null)switch(Qt){case`children`:Xt=$t;break;case`dangerouslySetInnerHTML`:Zt=$t;break;default:B(e,Qt,$t)}}if(e.push(fi),Zt!=null){if(Xt!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Zt!=`object`||!(`__html`in Zt))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var en=Zt.__html;en!=null&&(typeof en==`string`&&0<en.length&&en[0]===`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
%s.childContextTypes = ...`,i.displayName||i.name||`Component`),typeof i.getDerivedStateFromProps==`function`){var K=Ie(i)||`Unknown`;ks[K]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,K),ks[K]=!0)}if(typeof i.contextType==`object`&&i.contextType!==null){var q=Ie(i)||`Unknown`;Os[q]||(console.error(`%s: Function components do not support contextType.`,q),Os[q]=!0)}Ut(e,t,n,W,re,ie,G)}else if(typeof i==`string`){var Y=t.blockedSegment;if(Y===null){var se=a.children,ce=t.formatContext,le=t.keyPath;t.formatContext=A(ce,i,a),t.keyPath=n,$(e,t,se,-1),t.formatContext=ce,t.keyPath=le}else{var ue=J(Y.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,Y.lastPushedText);Y.lastPushedText=!1;var de=t.formatContext,fe=t.keyPath;if(t.keyPath=n,(t.formatContext=A(de,i,a)).insertionMode===Xr){var pe=Dt(e,0,null,t.formatContext,!1,!1);Y.preambleChildren.push(pe),t.blockedSegment=pe;try{pe.status=6,$(e,t,ue,-1),Fe(pe.chunks,e.renderState,pe.lastPushedText,pe.textEmbedded),pe.status=ys}finally{t.blockedSegment=Y}}else $(e,t,ue,-1);t.formatContext=de,t.keyPath=fe;a:{var me=Y.chunks,he=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(de.insertionMode<=Jr){he.hasBody=!0;break a}break;case`html`:if(de.insertionMode===qr){he.hasHtml=!0;break a}break;case`head`:if(de.insertionMode<=Jr)break a}me.push(oe(i))}Y.lastPushedText=!1}}else{switch(i){case Gn:case Pn:case Fn:case Nn:var ge=t.keyPath;t.keyPath=n,Jt(e,t,a.children,-1),t.keyPath=ge;return;case Wn:var _e=t.blockedSegment;if(_e===null){if(a.mode!==`hidden`){var ve=t.keyPath;t.keyPath=n,$(e,t,a.children,-1),t.keyPath=ve}}else if(a.mode!==`hidden`){e.renderState.generateStaticMarkup||_e.chunks.push(`<!--&-->`),_e.lastPushedText=!1;var ye=t.keyPath;t.keyPath=n,$(e,t,a.children,-1),t.keyPath=ye,e.renderState.generateStaticMarkup||_e.chunks.push(`<!--/&-->`),_e.lastPushedText=!1}return;case Bn:a:{var be=a.children,X=a.revealOrder;if(X===`forwards`||X===`backwards`||X===`unstable_legacy-backwards`){if(Yn(be)){Vt(e,t,n,be,X);break a}var Z=r(be);if(Z){var xe=Z.call(be);if(xe){qt(t,be,-1,xe,Z);var Se=xe.next();if(!Se.done){var Ce=[];do Ce.push(Se.value),Se=xe.next();while(!Se.done);Vt(e,t,n,be,X)}break a}}}if(X===`together`){var we=t.keyPath,Te=t.row,Ee=t.row=Bt(null);Ee.boundaries=[],Ee.together=!0,t.keyPath=n,Jt(e,t,be,-1),--Ee.pendingTasks===0&&Lt(e,Ee),t.keyPath=we,t.row=Te,Te!==null&&0<Ee.pendingTasks&&(Te.pendingTasks++,Ee.next=Te)}else{var De=t.keyPath;t.keyPath=n,Jt(e,t,be,-1),t.keyPath=De}}return;case qn:case Un:throw Error(`ReactDOMServer does not yet support scope components.`);case zn:a:if(t.replay!==null){var Oe=t.keyPath,ke=t.formatContext,Ae=t.row;t.keyPath=n,t.formatContext=N(e.resumableState,ke),t.row=null;var je=a.children;try{$(e,t,je,-1)}finally{t.keyPath=Oe,t.formatContext=ke,t.row=Ae}}else{var Me=t.keyPath,Ne=t.formatContext,Pe=t.row,Le=t.blockedBoundary,Re=t.blockedPreamble,ze=t.hoistableState,Be=t.blockedSegment,Ve=a.fallback,He=a.children,Ue=new Set,We=wt(e,t.row,Ue,null,null);e.trackedPostpones!==null&&(We.trackedContentKeyPath=n);var Q=Dt(e,Be.chunks.length,We,t.formatContext,!1,!1);Be.children.push(Q),Be.lastPushedText=!1;var Ge=Dt(e,0,null,t.formatContext,!1,!1);if(Ge.parentFlushed=!0,e.trackedPostpones!==null){var Ke=t.componentStack,qe=[n[0],`Suspense Fallback`,n[2]],Je=[qe[1],qe[2],[],null];e.trackedPostpones.workingMap.set(qe,Je),We.trackedFallbackNode=Je,t.blockedSegment=Q,t.blockedPreamble=We.fallbackPreamble,t.keyPath=qe,t.formatContext=M(e.resumableState,Ne),t.componentStack=Mt(Ke),Q.status=6;try{$(e,t,Ve,-1),Fe(Q.chunks,e.renderState,Q.lastPushedText,Q.textEmbedded),Q.status=ys}catch(t){throw Q.status=e.status===12?xs:Ss,t}finally{t.blockedSegment=Be,t.blockedPreamble=Re,t.keyPath=Me,t.formatContext=Ne}var Ye=Tt(e,null,He,-1,We,Ge,We.contentPreamble,We.contentState,t.abortSet,n,N(e.resumableState,t.formatContext),t.context,t.treeContext,null,Ke,ao,t.debugTask);jt(Ye),e.pingedTasks.push(Ye)}else{t.blockedBoundary=We,t.blockedPreamble=We.contentPreamble,t.hoistableState=We.contentState,t.blockedSegment=Ge,t.keyPath=n,t.formatContext=N(e.resumableState,Ne),t.row=null,Ge.status=6;try{if($(e,t,He,-1),Fe(Ge.chunks,e.renderState,Ge.lastPushedText,Ge.textEmbedded),Ge.status=ys,un(We,Ge),We.pendingTasks===0&&We.status===vs){if(We.status=ys,!yt(e,We)){Pe!==null&&--Pe.pendingTasks===0&&Lt(e,Pe),e.pendingRootTasks===0&&t.blockedPreamble&&hn(e);break a}}else Pe!==null&&Pe.together&&zt(e,Pe)}catch(n){if(We.status=_s,e.status===12){Ge.status=xs;var Xe=e.fatalError}else Ge.status=Ss,Xe=n;var Ze=Nt(t.componentStack);Pt(We,Ft(e,Xe,Ze,t.debugTask),Xe,Ze,!1),en(e,We)}finally{t.blockedBoundary=Le,t.blockedPreamble=Re,t.hoistableState=ze,t.blockedSegment=Be,t.keyPath=Me,t.formatContext=Ne,t.row=Pe}var Qe=Tt(e,null,Ve,-1,Le,Q,We.fallbackPreamble,We.fallbackState,Ue,[n[0],`Suspense Fallback`,n[2]],M(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Mt(t.componentStack),ao,t.debugTask);jt(Qe),e.pingedTasks.push(Qe)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case Rn:if(`ref`in a){var $e={};for(var et in a)et!==`ref`&&($e[et]=a[et])}else $e=a;Ut(e,t,n,Ht(e,t,n,i.render,$e,o),Io!==0,Lo,Ro);return;case Vn:Wt(e,t,n,i.type,a,o);return;case Ln:var tt=a.value,nt=a.children,rt=t.context,it=t.keyPath,at=i._currentValue2;i._currentValue2=tt,i._currentRenderer2!==void 0&&i._currentRenderer2!==null&&i._currentRenderer2!==oo&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),i._currentRenderer2=oo;var ot=so,st={parent:ot,depth:ot===null?0:ot.depth+1,context:i,parentValue:at,value:tt};so=st,t.context=st,t.keyPath=n,Jt(e,t,nt,-1);var ct=so;if(ct===null)throw Error(`Tried to pop a Context at the root of the app. This is a bug in React.`);ct.context!==i&&console.error(`The parent context is not the expected context. This is probably a bug in React.`),ct.context._currentValue2=ct.parentValue,i._currentRenderer2!==void 0&&i._currentRenderer2!==null&&i._currentRenderer2!==oo&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),i._currentRenderer2=oo,t.context=so=ct.parent,t.keyPath=it,rt!==t.context&&console.error(`Popping the context provider did not return back to the original snapshot. This is a bug in React.`);return;case In:var lt=i._context,ut=a.children;typeof ut!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`);var dt=ut(lt._currentValue2),ft=t.keyPath;t.keyPath=n,Jt(e,t,dt,-1),t.keyPath=ft;return;case Hn:var pt=fs(i);if(e.status===12)throw null;Wt(e,t,n,pt,a,o);return}var mt=``;throw(i===void 0||typeof i==`object`&&i&&Object.keys(i).length===0)&&(mt+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+((i==null?i:typeof i)+`.`+mt))}}function Gt(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Dt(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,$(e,t,r,i),s.status=ys,o===null?e.completedRootSegment=s:(un(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function Kt(e,t,n,r,i,a,o,s,c,l){a=l.nodes;for(var u=0;u<a.length;u++){var d=a[u];if(i===d[1]){if(d.length===4){if(r!==null&&r!==d[0])throw Error(`Expected the resume to render <`+d[0]+`> in this slot but instead it rendered <`+r+`>. The tree doesn't match so React will fallback to client rendering.`);var f=d[2];r=d[3],i=t.node,t.replay={nodes:f,slots:r,pendingTasks:1};try{if(Wt(e,t,n,o,s,c),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);t.replay.pendingTasks--}catch(d){if(typeof d==`object`&&d&&(d===To||typeof d.then==`function`))throw t.node===i?t.replay=l:a.splice(u,1),d;t.replay.pendingTasks--,o=Nt(t.componentStack),s=e,e=t.blockedBoundary,n=d,c=r,r=Ft(s,n,o,t.debugTask),an(s,e,f,c,n,r,o,!1)}t.replay=l}else{if(o!==zn)throw Error(`Expected the resume to render <Suspense> in this slot but instead it rendered <`+(Ie(o)||`Unknown`)+`>. The tree doesn't match so React will fallback to client rendering.`);a:{l=void 0,r=d[5],o=d[2],c=d[3],i=d[4]===null?[]:d[4][2],d=d[4]===null?null:d[4][3];var p=t.keyPath,m=t.formatContext,h=t.row,g=t.replay,_=t.blockedBoundary,v=t.hoistableState,y=s.children,b=s.fallback,x=new Set;s=wt(e,t.row,x,null,null),s.parentFlushed=!0,s.rootSegmentID=r,t.blockedBoundary=s,t.hoistableState=s.contentState,t.keyPath=n,t.formatContext=N(e.resumableState,m),t.row=null,t.replay={nodes:o,slots:c,pendingTasks:1};try{if($(e,t,y,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);if(t.replay.pendingTasks--,s.pendingTasks===0&&s.status===vs){s.status=ys,e.completedBoundaries.push(s);break a}}catch(n){s.status=_s,f=Nt(t.componentStack),l=Ft(e,n,f,t.debugTask),Pt(s,l,n,f,!1),t.replay.pendingTasks--,e.clientRenderedBoundaries.push(s)}finally{t.blockedBoundary=_,t.hoistableState=v,t.replay=g,t.keyPath=p,t.formatContext=m,t.row=h}s=Et(e,null,{nodes:i,slots:d,pendingTasks:0},b,-1,_,s.fallbackState,x,[n[0],`Suspense Fallback`,n[2]],M(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Mt(t.componentStack),ao,t.debugTask),jt(s),e.pingedTasks.push(s)}}a.splice(u,1);break}}}function qt(e,t,n,r,i){r===t?(n!==-1||e.componentStack===null||typeof e.componentStack.type!=`function`||Object.prototype.toString.call(e.componentStack.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(r)!==`[object Generator]`)&&(js||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),js=!0):t.entries!==i||Ms||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Ms=!0)}function Jt(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?Gt(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,r=t.debugTask,jt(t),Yt(e,t),t.componentStack=n,t.debugTask=r)}function Yt(e,t){var n=t.node,i=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case jn:var a=n.type,o=n.key;n=n.props;var s=n.ref;s=s===void 0?null:s;var c=t.debugTask,l=Ie(a);o??=i===-1?0:i;var u=[t.keyPath,l,o];t.replay===null?c?c.run(Wt.bind(null,e,t,u,a,n,s)):Wt(e,t,u,a,n,s):c?c.run(Kt.bind(null,e,t,u,l,o,i,a,n,s,t.replay)):Kt(e,t,u,l,o,i,a,n,s,t.replay);return;case Mn:throw Error(`Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.`);case Hn:if(a=fs(n),e.status===12)throw null;Jt(e,t,a,i);return}if(Yn(n)){Zt(e,t,n,i);return}if((o=r(n))&&(a=o.call(n))){if(qt(t,n,i,a,o),n=a.next(),!n.done){o=[];do o.push(n.value),n=a.next();while(!n.done);Zt(e,t,o,i)}return}if(typeof n.then==`function`)return t.thenableState=null,Jt(e,t,ut(n),i);if(n.$$typeof===Ln)return Jt(e,t,n._currentValue2,i);throw e=Object.prototype.toString.call(n),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`)}typeof n==`string`?(t=t.blockedSegment,t!==null&&(t.lastPushedText=Pe(t.chunks,n,e.renderState,t.lastPushedText))):typeof n==`number`||typeof n==`bigint`?(t=t.blockedSegment,t!==null&&(t.lastPushedText=Pe(t.chunks,``+n,e.renderState,t.lastPushedText))):(typeof n==`function`&&(e=n.displayName||n.name||`Component`,console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.`,e,e)),typeof n==`symbol`&&console.error(`Symbols are not valid as a React child.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
Check the top-level render call using <`+i+`>.`),i=``,r!=null&&a!==r&&(a=null,r.type===void 0?typeof r.name==`string`&&(a=r.name):a=Ie(r.type),a&&(i=` It was passed a child from `+a+`.`)),r=t.componentStack,t.componentStack={parent:t.componentStack,type:n.type,owner:n._owner,stack:n._debugStack},console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,e,i),t.componentStack=r}}}function Zt(e,t,n,r){var i=t.keyPath,a=t.componentStack,o=t.debugTask;if(At(t,t.node._debugInfo),r!==-1&&(t.keyPath=[t.keyPath,`Fragment`,r],t.replay!==null)){for(var s=t.replay,c=s.nodes,l=0;l<c.length;l++){var u=c[l];if(u[1]===r){r=u[2],u=u[3],t.replay={nodes:r,slots:u,pendingTasks:1};try{if(Zt(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===To||typeof i.then==`function`))throw i;t.replay.pendingTasks--;var d=Nt(t.componentStack);n=t.blockedBoundary;var f=i,p=u;u=Ft(e,f,d,t.debugTask),an(e,n,r,p,f,u,d,!1)}t.replay=s,c.splice(l,1);break}}t.keyPath=i,t.componentStack=a,t.debugTask=o;return}if(s=t.treeContext,c=n.length,t.replay!==null&&(l=t.replay.slots,typeof l==`object`&&l)){for(r=0;r<c;r++)u=n[r],t.treeContext=Q(s,c,r),f=l[r],typeof f==`number`?(Gt(e,t,f,u,r),delete l[r]):$(e,t,u,r);t.treeContext=s,t.keyPath=i,t.componentStack=a,t.debugTask=o;return}for(l=0;l<c;l++)r=n[l],Xt(e,t,r),t.treeContext=Q(s,c,l),$(e,t,r,l);t.treeContext=s,t.keyPath=i,t.componentStack=a,t.debugTask=o}function Qt(e,t,n){if(n.status=Cs,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(`It should not be possible to postpone at the root. This is a bug in React.`);var r=n.trackedFallbackNode,i=[],a=t.workingMap.get(e);return a===void 0?(n=[e[1],e[2],i,null,r,n.rootSegmentID],t.workingMap.set(e,n),En(n,e[0],t),n):(a[4]=r,a[5]=n.rootSegmentID,a)}function $t(e,t,n,r){r.status=Cs;var i=n.keyPath,a=n.blockedBoundary;if(a===null)r.id=e.nextSegmentId++,t.rootSlots=r.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=Cs);else{if(a!==null&&a.status===vs){var o=Qt(e,t,a);if(a.trackedContentKeyPath===i&&n.childIndex===-1){r.id===-1&&(r.id=r.parentFlushed?a.rootSegmentID:e.nextSegmentId++),o[3]=r.id;return}}if(r.id===-1&&(r.id=r.parentFlushed&&a!==null?a.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)i===null?t.rootSlots=r.id:(n=t.workingMap.get(i),n===void 0?(n=[i[1],i[2],[],r.id],En(n,i[0],t)):n[3]=r.id);else{if(i===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(`It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.`)}else if(a=t.workingMap,o=a.get(i),o===void 0)e={},o=[i[1],i[2],[],e],a.set(i,o),En(o,i[0],t);else if(e=o[3],e===null)e=o[3]={};else if(typeof e==`number`)throw Error(`It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.`);e[n.childIndex]=r.id}}}function en(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function tn(e,t,n){return Et(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack,ao,t.debugTask)}function nn(e,t,n){var r=t.blockedSegment,i=Dt(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Tt(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack,ao,t.debugTask)}function $(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.debugTask,u=t.blockedSegment;if(u===null){u=t.replay;try{return Jt(e,t,n,r)}catch(d){if(et(),n=d===To?Je():d,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=d===To?$e():null,e=tn(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=u,t.debugTask=l,He(a);return}if(n.message===`Maximum call stack size exceeded`){n=d===To?$e():null,n=tn(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=u,t.debugTask=l,He(a);return}}}}else{var d=u.children.length,f=u.chunks.length;try{return Jt(e,t,n,r)}catch(r){if(et(),u.children.length=d,u.chunks.length=f,n=r===To?Je():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){u=n,n=r===To?$e():null,e=nn(e,t,n).ping,u.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.debugTask=l,He(a);return}if(n.message===`Maximum call stack size exceeded`){u=r===To?$e():null,u=nn(e,t,u),e.pingedTasks.push(u),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.debugTask=l,He(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,He(a),n}function rn(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=xs,dn(this,t,e.row,n))}function an(e,t,n,r,i,a,o,s){for(var c=0;c<n.length;c++){var l=n[c];if(l.length===4)an(e,t,l[2],l[3],i,a,o,s);else{var u=e;l=l[5];var d=i,f=a,p=o,m=s,h=wt(u,null,new Set,null,null);h.parentFlushed=!0,h.rootSegmentID=l,h.status=_s,Pt(h,f,d,p,m),h.parentFlushed&&u.clientRenderedBoundaries.push(h)}}if(n.length=0,r!==null){if(t===null)throw Error(`We should not have any resumable nodes in the shell. This is a bug in React.`);if(t.status!==_s&&(t.status=_s,Pt(t,a,i,o,s),t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof r==`object`)for(var g in r)delete r[g]}}function on(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=xs}var a=Nt(e.componentStack),o=e.node;if(typeof o==`object`&&o&&kt(e,o._debugInfo),r===null){if(t.status!==13&&t.status!==ws){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Ft(t,n,a,e.debugTask),$t(t,r,e,i),dn(t,null,e.row,i)):(Ft(t,n,a,e.debugTask),It(t,n,a,e.debugTask));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Ft(t,n,a,null),an(t,null,r.nodes,r.slots,n,i,a,!0)),t.pendingRootTasks--,t.pendingRootTasks===0&&cn(t)}}else{if(o=t.trackedPostpones,r.status!==_s){if(o!==null&&i!==null)return Ft(t,n,a,e.debugTask),$t(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return on(e,t,n)}),r.fallbackAbortableTasks.clear(),dn(t,r,e.row,i);r.status=_s,i=Ft(t,n,a,e.debugTask),r.status=_s,Pt(r,i,n,a,!0),en(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&Lt(t,a),r.fallbackAbortableTasks.forEach(function(e){return on(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Lt(t,e),t.allPendingTasks--,t.allPendingTasks===0&&ln(t)}function sn(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=Te(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=Hr,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:Hr;else break b}}r(a?{Link:a}:{})}}}catch(t){Ft(e,t,{},null)}}function cn(e){e.trackedPostpones===null&&sn(e,!0),e.trackedPostpones===null&&hn(e),e.onShellError=Ke,e=e.onShellReady,e()}function ln(e){sn(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==Cs),hn(e),e=e.onAllReady,e()}function un(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==ys&&n.status!==xs&&n.status!==Ss||un(e,n)}else e.completedSegments.push(t)}function dn(e,t,n,r){if(n!==null&&(--n.pendingTasks===0?Lt(e,n):n.together&&zt(e,n)),e.allPendingTasks--,t===null){if(r!==null&&r.parentFlushed){if(e.completedRootSegment!==null)throw Error(`There can only be one root segment. This is a bug in React.`);e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&cn(e)}else if(t.pendingTasks--,t.status!==_s)if(t.pendingTasks===0){if(t.status===vs&&(t.status=ys),r!==null&&r.parentFlushed&&(r.status===ys||r.status===xs)&&un(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.status===ys)n=t.row,n!==null&&Me(n.hoistables,t.contentState),yt(e,t)||(t.fallbackAbortableTasks.forEach(rn,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Lt(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&hn(e);else if(t.status===Cs&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var i=t.next;if(i!==null&&(r=i.boundaries,r!==null))for(i.boundaries=null,i=0;i<r.length;i++){var a=r[i];Qt(e,n,a),dn(e,a,null,null)}}--t.pendingTasks===0&&Lt(e,t)}}else r===null||!r.parentFlushed||r.status!==ys&&r.status!==xs||(un(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&zt(e,t);e.allPendingTasks===0&&ln(e)}function fn(e){if(e.status!==ws&&e.status!==13){var t=so,n=Ar.H;Ar.H=Go;var r=Ar.A;Ar.A=Jo;var i=Ts;Ts=e;var a=Ar.getCurrentStack;Ar.getCurrentStack=Ot;var o=Ko;Ko=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=e,u=s[c],d=u.blockedSegment;if(d===null){var f=void 0,p=l;if(l=u,l.replay.pendingTasks!==0){He(l.context),f=qo,qo=l;try{if(typeof l.replay.slots==`number`?Gt(p,l,l.replay.slots,l.node,l.childIndex):Yt(p,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);l.replay.pendingTasks--,l.abortSet.delete(l),dn(p,l.blockedBoundary,l.row,null)}catch(e){et();var m=e===To?Je():e;if(typeof m==`object`&&m&&typeof m.then==`function`){var h=l.ping;m.then(h,h),l.thenableState=e===To?$e():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var g=Nt(l.componentStack),_=void 0,v=p,y=l.blockedBoundary,b=p.status===12?p.fatalError:m,x=g,S=l.replay.nodes,C=l.replay.slots;_=Ft(v,b,x,l.debugTask),an(v,y,S,C,b,_,x,!1),p.pendingRootTasks--,p.pendingRootTasks===0&&cn(p),p.allPendingTasks--,p.allPendingTasks===0&&ln(p)}}finally{qo=f}}}else if(p=f=void 0,_=u,v=d,v.status===vs){v.status=6,He(_.context),p=qo,qo=_;var w=v.children.length,T=v.chunks.length;try{Yt(l,_),Fe(v.chunks,l.renderState,v.lastPushedText,v.textEmbedded),_.abortSet.delete(_),v.status=ys,dn(l,_.blockedBoundary,_.row,v)}catch(e){et(),v.children.length=w,v.chunks.length=T;var E=e===To?Je():l.status===12?l.fatalError:e;if(l.status===12&&l.trackedPostpones!==null){var D=l.trackedPostpones,O=Nt(_.componentStack);_.abortSet.delete(_),Ft(l,E,O,_.debugTask),$t(l,D,_,v),dn(l,_.blockedBoundary,_.row,v)}else if(typeof E==`object`&&E&&typeof E.then==`function`){v.status=vs,_.thenableState=e===To?$e():null;var k=_.ping;E.then(k,k)}else{var A=Nt(_.componentStack);_.abortSet.delete(_),v.status=Ss;var j=_.blockedBoundary,M=_.row,N=_.debugTask;if(M!==null&&--M.pendingTasks===0&&Lt(l,M),l.allPendingTasks--,f=Ft(l,E,A,N),j===null)It(l,E,A,N);else if(j.pendingTasks--,j.status!==_s){j.status=_s,Pt(j,f,E,A,!1),en(l,j);var P=j.row;P!==null&&--P.pendingTasks===0&&Lt(l,P),j.parentFlushed&&l.clientRenderedBoundaries.push(j),l.pendingRootTasks===0&&l.trackedPostpones===null&&j.contentPreamble!==null&&hn(l)}l.allPendingTasks===0&&ln(l)}}finally{qo=p}}}s.splice(0,c),e.destination!==null&&xn(e,e.destination)}catch(t){s={},Ft(e,t,s,null),It(e,t,s,null)}finally{Ko=o,Ar.H=n,Ar.A=r,Ar.getCurrentStack=a,n===Go&&He(t),Ts=i}}}function pn(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=mn(e,t.children[i],n)||r;return r}function mn(e,t,n){var r=t.boundary;if(r===null)return pn(e,t,n);var i=r.contentPreamble,a=r.fallbackPreamble;if(i===null||a===null)return!1;switch(r.status){case ys:if(Y(e.renderState,i),e.byteSize+=r.byteSize,t=r.completedSegments[0],!t)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);return pn(e,t,n);case Cs:if(e.trackedPostpones!==null)return!0;case _s:if(t.status===ys)return Y(e.renderState,a),pn(e,t,n);default:return!0}}function hn(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=mn(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function gn(e,t,n,r){switch(n.parentFlushed=!0,n.status){case vs:n.id=e.nextSegmentId++;case Cs:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push(Mi),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push(Ni);case ys:n.status=bs;var i=!0,a=n.chunks,o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)t.push(a[o]);i=_n(e,t,i,r)}for(;o<a.length-1;o++)t.push(a[o]);return o<a.length&&(i=t.push(a[o])),i;case xs:return!0;default:throw Error(`Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.`)}}function _n(e,t,n,r){var i=n.boundary;if(i===null)return gn(e,t,n,r);if(i.parentFlushed=!0,i.status===_s){var a=i.row;if(a!==null&&--a.pendingTasks===0&&Lt(e,a),!e.renderState.generateStaticMarkup){var o=i.errorDigest,s=i.errorMessage;a=i.errorStack,i=i.errorComponentStack,t.push(Li),t.push(zi),o&&(t.push(Vi),o=T(o),t.push(o),t.push(Bi)),s&&(t.push(Hi),s=T(s),t.push(s),t.push(Bi)),a&&(t.push(Ui),a=T(a),t.push(a),t.push(Bi)),i&&(t.push(Wi),a=T(i),t.push(a),t.push(Bi)),t.push(Gi)}return gn(e,t,n,r),e=e.renderState.generateStaticMarkup?!0:t.push(Ri),e}if(i.status!==ys)return i.status===vs&&(i.rootSegmentID=e.nextSegmentId++),0<i.completedSegments.length&&e.partialBoundaries.push(i),ce(t,e.renderState,i.rootSegmentID),r&&Me(r,i.fallbackState),gn(e,t,n,r),t.push(Ri);if(!Ps&&yt(e,i)&&Ns+i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),ce(t,e.renderState,i.rootSegmentID),gn(e,t,n,r),t.push(Ri);if(Ns+=i.byteSize,r&&Me(r,i.contentState),n=i.row,n!==null&&yt(e,i)&&--n.pendingTasks===0&&Lt(e,n),e.renderState.generateStaticMarkup||t.push(Pi),n=i.completedSegments,n.length!==1)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);return _n(e,t,n[0],r),e=e.renderState.generateStaticMarkup?!0:t.push(Ri),e}function vn(e,t,n,r){return le(t,e.renderState,n.parentFormatContext,n.id),_n(e,t,n,r),ue(t,n.parentFormatContext)}function yn(e,t,n){Ns=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)bn(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&yt(e,n)&&--r.pendingTasks===0&&Lt(e,r),he(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(fi),a?((r.instructions&Lr)===Pr&&(r.instructions|=Lr,t.push(Ta)),(r.instructions&Ir)===Pr&&(r.instructions|=Ir,t.push(_a)),(r.instructions&Rr)===Pr?(r.instructions|=Rr,t.push(ya)):t.push(ba)):((r.instructions&Ir)===Pr&&(r.instructions|=Ir,t.push(_a)),t.push(va)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(xa),t.push(e.segmentPrefix),t.push(r),a?(t.push(Sa),Z(t,n)):t.push(Ca),n=t.push(wa),se(t,e)&&n}function bn(e,t,n,r){if(r.status===bs)return!0;var i=n.contentState,a=r.id;if(a===-1){if((r.id=n.rootSegmentID)===-1)throw Error(`A root segment ID must have been assigned by now. This is a bug in React.`);return vn(e,t,r,i)}return a===n.rootSegmentID?vn(e,t,r,i):(vn(e,t,r,i),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(fi),(n.instructions&Fr)===Pr?(n.instructions|=Fr,t.push(pa)):t.push(ma),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push(ha),t.push(e.placeholderPrefix),t.push(a),t=t.push(ga),t)}function xn(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===Cs)return;var i=e.completedPreambleSegments;if(i===null)return;Ns=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=q(`head`);t.push(d),t.push(fi)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(ge,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(ge,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(ge,t),o.highImagePreloads.clear(),Ur=o,o.styles.forEach(ve,t),Ur=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(ge,t),o.scripts.forEach(ge,t),o.scripts.clear(),o.bulkPreloads.forEach(ge,t),o.bulkPreloads.clear(),a.instructions|=zr;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)_n(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=oe(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);_n(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if((S.instructions&Br)===Pr){if(S.instructions|=Br,t.push(x.startInlineScript),(S.instructions&zr)===Pr){S.instructions|=zr;var C=`_`+S.idPrefix+`R_`;t.push(Ga);var w=T(C);t.push(w),t.push(li)}t.push(fi),t.push(ji),t.push(Wr)}}se(t,x)}var E=e.renderState;r=0;var D=E.viewportChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0,E.preconnects.forEach(ge,t),E.preconnects.clear(),E.fontPreloads.forEach(ge,t),E.fontPreloads.clear(),E.highImagePreloads.forEach(ge,t),E.highImagePreloads.clear(),E.styles.forEach(be,t),E.scripts.forEach(ge,t),E.scripts.clear(),E.bulkPreloads.forEach(ge,t),E.bulkPreloads.clear();var O=E.hoistableChunks;for(r=0;r<O.length;r++)t.push(O[r]);O.length=0;var k=e.clientRenderedBoundaries;for(n=0;n<k.length;n++){var A=k[n];E=t;var j=e.resumableState,M=e.renderState,N=A.rootSegmentID,P=A.errorDigest,F=A.errorMessage,I=A.errorStack,L=A.errorComponentStack;E.push(M.startInlineScript),E.push(fi),(j.instructions&Lr)===Pr?(j.instructions|=Lr,E.push(Ea)):E.push(Da),E.push(M.boundaryPrefix);var ee=N.toString(16);if(E.push(ee),E.push(Oa),P||F||I||L){E.push(ka);var R=de(P||``);E.push(R)}if(F||I||L){E.push(ka);var z=de(F||``);E.push(z)}if(I||L){E.push(ka);var B=de(I||``);E.push(B)}if(L){E.push(ka);var te=de(L);E.push(te)}var V=E.push(Aa);if(!V){e.destination=null,n++,k.splice(0,n);return}}k.splice(0,n);var H=e.completedBoundaries;for(n=0;n<H.length;n++)if(!yn(e,t,H[n])){e.destination=null,n++,H.splice(0,n);return}H.splice(0,n),Ps=!0;var ne=e.partialBoundaries;for(n=0;n<ne.length;n++){a:{k=e,A=t;var U=ne[n];Ns=U.byteSize;var W=U.completedSegments;for(V=0;V<W.length;V++)if(!bn(k,A,U,W[V])){V++,W.splice(0,V);var re=!1;break a}W.splice(0,V);var ie=U.row;ie!==null&&ie.together&&U.pendingTasks===1&&(ie.pendingTasks===1?Rt(k,ie,ie.hoistables):ie.pendingTasks--),re=he(A,U.contentState,k.renderState)}if(!re){e.destination=null,n++,ne.splice(0,n);return}}ne.splice(0,n),Ps=!1;var G=e.completedBoundaries;for(n=0;n<G.length;n++)if(!yn(e,t,G[n])){e.destination=null,n++,G.splice(0,n);return}G.splice(0,n)}}finally{Ps=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(ne=oe(`body`),t.push(ne)),n.hasHtml&&(n=oe(`html`),t.push(n)),e.abortableTasks.size!==0&&console.error(`There was still abortable task at the root when we closed. This is a bug in React.`),e.status=ws,t.push(null),e.destination=null)}}function Sn(e){e.flushScheduled=e.destination!==null,fn(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&sn(e,e.pendingRootTasks===0)}function Cn(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?xn(e,t):e.flushScheduled=!1}}function wn(e,t){if(e.status===13)e.status=ws,t.destroy(e.fatalError);else if(e.status!==ws&&e.destination===null){e.destination=t;try{xn(e,t)}catch(n){t={},Ft(e,n,t,null),It(e,n,t,null)}}}function Tn(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=t===void 0?Error(`The render was aborted by the server without a reason.`):typeof t==`object`&&t&&typeof t.then==`function`?Error(`The render was aborted by the server with a promise.`):t;e.fatalError=r,n.forEach(function(t){var n=qo,i=Ar.getCurrentStack;qo=t,Ar.getCurrentStack=Ot;try{on(t,e,r)}finally{qo=n,Ar.getCurrentStack=i}}),n.clear()}e.destination!==null&&xn(e,e.destination)}catch(n){t={},Ft(e,n,t,null),It(e,n,t,null)}}function En(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),En(i,t[0],n)),i[2].push(e)}}function Dn(){}function On(e,t,n,r){var i=!1,a=null,o=``,s=!1;if(t=O(t?t.identifierPrefix:void 0),e=St(e,t,Ne(t,n),k(qr,null,0,null),1/0,Dn,void 0,function(){s=!0},void 0,void 0,void 0),Sn(e),Tn(e,r),wn(e,{push:function(e){return e!==null&&(o+=e),!0},destroy:function(e){i=!0,a=e}}),i&&a!==r)throw a;if(!s)throw Error(`A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.`);return o}var kn=f(),An=h(),jn=Symbol.for(`react.transitional.element`),Mn=Symbol.for(`react.portal`),Nn=Symbol.for(`react.fragment`),Pn=Symbol.for(`react.strict_mode`),Fn=Symbol.for(`react.profiler`),In=Symbol.for(`react.consumer`),Ln=Symbol.for(`react.context`),Rn=Symbol.for(`react.forward_ref`),zn=Symbol.for(`react.suspense`),Bn=Symbol.for(`react.suspense_list`),Vn=Symbol.for(`react.memo`),Hn=Symbol.for(`react.lazy`),Un=Symbol.for(`react.scope`),Wn=Symbol.for(`react.activity`),Gn=Symbol.for(`react.legacy_hidden`),Kn=Symbol.for(`react.memo_cache_sentinel`),qn=Symbol.for(`react.view_transition`),Jn=Symbol.iterator,Yn=Array.isArray,Xn=new WeakMap,Zn=new WeakMap,Qn=Symbol.for(`react.client.reference`),$n=Object.assign,er=Object.prototype.hasOwnProperty,tr=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),nr={},rr={},ir=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),ar=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),or={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},sr={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},cr={},lr=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),ur=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),dr=!1,fr={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},pr={},mr=/^on./,hr=/^on[^A-Z]/,gr=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),_r=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),vr=/^(?:webkit|moz|o)[A-Z]/,yr=/^-ms-/,br=/-(.)/g,xr=/;\s*$/,Sr={},Cr={},wr=!1,Tr=!1,Er=/["'&<>]/,Dr=/([A-Z])/g,Or=/^ms-/,kr=/^[\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,Ar=kn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jr=An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mr=Object.freeze({pending:!1,data:null,method:null,action:null}),Nr=jr.d;jr.d={f:Nr.f,r:Nr.r,D:function(e){var t=Ts||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=Vr,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+Ee(e)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=Vr,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],U(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}Cn(t)}}else Nr.D(e)},C:function(e,t){var n=Ts||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=Vr,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+Ee(e)+`>; rel=preconnect`,typeof t==`string`){var c=Oe(t,`crossOrigin`);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=Vr,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],U(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}Cn(n)}}else Nr.C(e,t)},L:function(e,t,n){var r=Ts||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
%s`,e)}}return null}function q(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){s===null||ra||(ra=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i===null&&a===null||aa||(aa=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),o===null||ia||(ia=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`));var l=K(t,r);l===null?(e.push(Vi,_(`formAction`),Hi,Gi,Ui),o=a=i=r=s=null,ce(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&J(e,`name`,s),r!=null&&J(e,`formAction`,r),i!=null&&J(e,`formEncType`,i),a!=null&&J(e,`formMethod`,a),o!=null&&J(e,`formTarget`,o),c}function J(e,t,n){switch(t){case`className`:ie(e,`class`,n);break;case`tabIndex`:ie(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ie(e,t,n);break;case`style`:W(e,n);break;case`src`:case`href`:if(n===``){console.error(t===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,t,t);break}case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;w(n,t),n=F(``+n),e.push(Vi,_(t),Hi,_(P(n)),Ui);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:re(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;w(n,t),n=F(``+n),e.push(Vi,_(`xlink:href`),Hi,_(P(n)),Ui);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(Vi,_(t),Hi,_(P(n)),Ui);break;case`inert`:n!==``||Ti[t]||(Ti[t]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",t));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Vi,_(t),Wi);break;case`capture`:case`download`:!0===n?e.push(Vi,_(t),Wi):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Vi,_(t),Hi,_(P(n)),Ui);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Vi,_(t),Hi,_(P(n)),Ui);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Vi,_(t),Hi,_(P(n)),Ui);break;case`xlinkActuate`:ie(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ie(e,`xlink:arcrole`,n);break;case`xlinkRole`:ie(e,`xlink:role`,n);break;case`xlinkShow`:ie(e,`xlink:show`,n);break;case`xlinkTitle`:ie(e,`xlink:title`,n);break;case`xlinkType`:ie(e,`xlink:type`,n);break;case`xmlBase`:ie(e,`xml:base`,n);break;case`xmlLang`:ie(e,`xml:lang`,n);break;case`xmlSpace`:ie(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=Or.get(t)||t,D(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(Vi,_(t),Hi,_(P(n)),Ui)}}}function oe(e,t,n){if(t!=null){if(n!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!=`object`||!(`__html`in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");t=t.__html,t!=null&&(E(t),e.push(_(``+t)))}}function Y(e,t){var n=e[t];n!=null&&(n=dr(n),e.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!e.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t))}function se(e){var t=``;return Gn.Children.forEach(e,function(e){e!=null&&(t+=e,$i||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||($i=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}function ce(e,t){if((e.instructions&16)===ri){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),Me(r,e),r.push(qi,sa,mi)):r.unshift(t.startInlineScript,qi,sa,mi)}}function le(e,t){for(var n in e.push(ge(`link`)),t)if(Cr.call(t,n)){var r=t[n];if(r!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:J(e,n,r)}}return e.push(Ji),null}function ue(e){return E(e),(``+e).replace(ua,t)}function de(e,t,n){for(var r in e.push(ge(n)),t)if(Cr.call(t,r)){var i=t[r];if(i!=null)switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error(n+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:J(e,r,i)}}return e.push(Ji),null}function fe(e,t){e.push(ge(`title`));var n=null,r=null,i;for(i in t)if(Cr.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:J(e,i,a)}}return e.push(qi),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(_(P(``+t))),oe(e,r,n),e.push(ve(`title`)),null}function pe(e,t){e.push(ge(`script`));var n=null,r=null,i;for(i in t)if(Cr.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:J(e,i,a)}}return e.push(qi),n!=null&&typeof n!=`string`&&(t=typeof n==`number`?`a number for children`:Array.isArray(n)?`an array for children`:`something unexpected for children`,console.error(`A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.`,t)),oe(e,r,n),typeof n==`string`&&e.push(_(I(n))),e.push(ve(`script`)),null}function me(e,t,n){e.push(ge(n));var r=n=null,i;for(i in t)if(Cr.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:J(e,i,a)}}return e.push(qi),oe(e,r,n),n}function he(e,t,n){e.push(ge(n));var r=n=null,i;for(i in t)if(Cr.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:J(e,i,a)}}return e.push(qi),oe(e,r,n),typeof n==`string`?(e.push(_(P(n))),null):n}function ge(e){var t=ga.get(e);if(t===void 0){if(!ha.test(e))throw Error(`Invalid tag: `+e);t=v(`<`+e),ga.set(e,t)}return t}function _e(e,t,n,r,i,a,o,s,c){A(t,n),t!==`input`&&t!==`textarea`&&t!==`select`||n==null||n.value!==null||Pr||(Pr=!0,t===`select`&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));b:if(t.indexOf(`-`)===-1)var l=!1;else switch(t){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`:l=!1;break b;default:l=!0}switch(l||typeof n.is==`string`||M(t,n,null),!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),s.insertionMode!==Ai&&s.insertionMode!==ji&&t.indexOf(`-`)===-1&&t.toLowerCase()!==t&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,t),t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(ge(`a`));var u=null,d=null,f;for(f in n)if(Cr.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?ie(e,`href`,``):J(e,f,p);break;default:J(e,f,p)}}if(e.push(qi),oe(e,d,u),typeof u==`string`){e.push(_(P(u)));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:O(`select`,n),Y(n,`value`),Y(n,`defaultValue`),n.value===void 0||n.defaultValue===void 0||Zi||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),Zi=!0),e.push(ge(`select`));var h=null,g=null,v;for(v in n)if(Cr.call(n,v)){var y=n[v];if(y!=null)switch(v){case`children`:h=y;break;case`dangerouslySetInnerHTML`:g=y;break;case`defaultValue`:case`value`:break;default:J(e,v,y)}}return e.push(qi),oe(e,g,h),h;case`option`:var b=s.selectedValue;e.push(ge(`option`));var x=null,S=null,C=null,T=null,k;for(k in n)if(Cr.call(n,k)){var j=n[k];if(j!=null)switch(k){case`children`:x=j;break;case`selected`:C=j,ta||=(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),!0);break;case`dangerouslySetInnerHTML`:T=j;break;case`value`:S=j;default:J(e,k,j)}}if(b!=null){if(S!==null){w(S,`value`);var N=``+S}else T===null||ea||(ea=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),N=se(x);if(dr(b)){for(var I=0;I<b.length;I++)if(w(b[I],`value`),``+b[I]===N){e.push(oa);break}}else w(b,`select.value`),``+b===N&&e.push(oa)}else C&&e.push(oa);return e.push(qi),oe(e,T,x),x;case`textarea`:O(`textarea`,n),n.value===void 0||n.defaultValue===void 0||Qi||(console.error(`Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`),Qi=!0),e.push(ge(`textarea`));var L=null,ee=null,R=null,z;for(z in n)if(Cr.call(n,z)){var B=n[z];if(B!=null)switch(z){case`children`:R=B;break;case`value`:L=B;break;case`defaultValue`:ee=B;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:J(e,z,B)}}if(L===null&&ee!==null&&(L=ee),e.push(qi),R!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),L!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(dr(R)){if(1<R.length)throw Error(`<textarea> can only have at most one child.`);E(R[0]),L=``+R[0]}E(R),L=``+R}return typeof L==`string`&&L[0]===`
|
|
143
|
-
`&&e.push(ma),L!==null&&(w(L,`value`),e.push(_(P(``+L)))),null;case`input`:O(`input`,n),e.push(ge(`input`));var te=null,V=null,H=null,ne=null,U=null,ae=null,_e=null,ye=null,be=null,X;for(X in n)if(Cr.call(n,X)){var Z=n[X];if(Z!=null)switch(X){case`children`:case`dangerouslySetInnerHTML`:throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case`name`:te=Z;break;case`formAction`:V=Z;break;case`formEncType`:H=Z;break;case`formMethod`:ne=Z;break;case`formTarget`:U=Z;break;case`defaultChecked`:be=Z;break;case`defaultValue`:_e=Z;break;case`checked`:ye=Z;break;case`value`:ae=Z;break;default:J(e,X,Z)}}V===null||n.type===`image`||n.type===`submit`||na||(na=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`));var xe=q(e,r,i,V,H,ne,U,te);return ye===null||be===null||Xi||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,`A component`,n.type),Xi=!0),ae===null||_e===null||Yi||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,`A component`,n.type),Yi=!0),ye===null?be!==null&&re(e,`checked`,be):re(e,`checked`,ye),ae===null?_e!==null&&J(e,`value`,_e):J(e,`value`,ae),e.push(Ji),xe?.forEach(G,e),null;case`button`:e.push(ge(`button`));var Se=null,Ce=null,we=null,Te=null,Ee=null,De=null,Oe=null,ke;for(ke in n)if(Cr.call(n,ke)){var Ae=n[ke];if(Ae!=null)switch(ke){case`children`:Se=Ae;break;case`dangerouslySetInnerHTML`:Ce=Ae;break;case`name`:we=Ae;break;case`formAction`:Te=Ae;break;case`formEncType`:Ee=Ae;break;case`formMethod`:De=Ae;break;case`formTarget`:Oe=Ae;break;default:J(e,ke,Ae)}}Te===null||n.type==null||n.type===`submit`||na||(na=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`));var je=q(e,r,i,Te,Ee,De,Oe,we);if(e.push(qi),je?.forEach(G,e),oe(e,Ce,Se),typeof Se==`string`){e.push(_(P(Se)));var Me=null}else Me=Se;return Me;case`form`:e.push(ge(`form`));var Ne=null,Pe=null,Fe=null,Ie=null,ze=null,Be=null,Ve;for(Ve in n)if(Cr.call(n,Ve)){var He=n[Ve];if(He!=null)switch(Ve){case`children`:Ne=He;break;case`dangerouslySetInnerHTML`:Pe=He;break;case`action`:Fe=He;break;case`encType`:Ie=He;break;case`method`:ze=He;break;case`target`:Be=He;break;default:J(e,Ve,He)}}var Ue=null,We=null;if(typeof Fe==`function`){Ie===null&&ze===null||aa||(aa=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),Be===null||ia||(ia=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`));var Q=K(r,Fe);Q===null?(e.push(Vi,_(`action`),Hi,Gi,Ui),Be=ze=Ie=Fe=null,ce(r,i)):(Fe=Q.action||``,Ie=Q.encType,ze=Q.method,Be=Q.target,Ue=Q.data,We=Q.name)}if(Fe!=null&&J(e,`action`,Fe),Ie!=null&&J(e,`encType`,Ie),ze!=null&&J(e,`method`,ze),Be!=null&&J(e,`target`,Be),e.push(qi),We!==null&&(e.push(Ki),ie(e,`name`,We),e.push(Ji),Ue?.forEach(G,e)),oe(e,Pe,Ne),typeof Ne==`string`){e.push(_(P(Ne)));var Ge=null}else Ge=Ne;return Ge;case`menuitem`:for(var Ke in e.push(ge(`menuitem`)),n)if(Cr.call(n,Ke)){var qe=n[Ke];if(qe!=null)switch(Ke){case`children`:case`dangerouslySetInnerHTML`:throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:J(e,Ke,qe)}}return e.push(qi),null;case`object`:e.push(ge(`object`));var Je=null,Ye=null,Xe;for(Xe in n)if(Cr.call(n,Xe)){var Ze=n[Xe];if(Ze!=null)switch(Xe){case`children`:Je=Ze;break;case`dangerouslySetInnerHTML`:Ye=Ze;break;case`data`:w(Ze,`data`);var Qe=F(``+Ze);if(Qe===``){console.error(`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,Xe,Xe);break}e.push(Vi,_(`data`),Hi,_(P(Qe)),Ui);break;default:J(e,Xe,Ze)}}if(e.push(qi),oe(e,Ye,Je),typeof Je==`string`){e.push(_(P(Je)));var $e=null}else $e=Je;return $e;case`title`:var et=s.tagScope&1,tt=s.tagScope&4;if(Cr.call(n,`children`)){var nt=n.children,rt=Array.isArray(nt)?2>nt.length?nt[0]:null:nt;Array.isArray(nt)&&1<nt.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",nt.length):typeof rt==`function`||typeof rt==`symbol`?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof rt==`function`?`a Function`:`a Sybmol`):rt&&rt.toString==={}.toString&&(rt.$$typeof==null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."))}if(s.insertionMode===Ai||et||n.itemProp!=null)var it=fe(e,n);else tt?it=null:(fe(i.hoistableChunks,n),it=void 0);return it;case`link`:var at=s.tagScope&1,ot=s.tagScope&4,st=n.rel,ct=n.href,lt=n.precedence;if(s.insertionMode===Ai||at||n.itemProp!=null||typeof st!=`string`||typeof ct!=`string`||ct===``){st===`stylesheet`&&typeof n.precedence==`string`&&(typeof ct==`string`&&ct||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',ct===null?"`null`":ct===void 0?"`undefined`":ct===``?`an empty string`:`something with type "`+typeof ct+`"`)),le(e,n);var ut=null}else if(n.rel===`stylesheet`)if(typeof lt!=`string`||n.disabled!=null||n.onLoad||n.onError){if(typeof lt==`string`){if(n.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(n.onLoad||n.onError){var dt=n.onLoad&&n.onError?"`onLoad` and `onError` props":n.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',dt,dt)}}ut=le(e,n)}else{var ft=i.styles.get(lt),pt=r.styleResources.hasOwnProperty(ct)?r.styleResources[ct]:void 0;if(pt!==ui){r.styleResources[ct]=ui,ft||(ft={precedence:_(P(lt)),rules:[],hrefs:[],sheets:new Map},i.styles.set(lt,ft));var mt={state:Vo,props:Sr({},n,{"data-precedence":n.precedence,precedence:null})};if(pt){pt.length===2&&Le(mt.props,pt);var ht=i.preloads.stylesheets.get(ct);ht&&0<ht.length?ht.length=0:mt.state=Ho}ft.sheets.set(ct,mt),o&&o.stylesheets.add(mt)}else if(ft){var gt=ft.sheets.get(ct);gt&&o&&o.stylesheets.add(gt)}c&&e.push(Ii),ut=null}else n.onLoad||n.onError?ut=le(e,n):(c&&e.push(Ii),ut=ot?null:le(i.hoistableChunks,n));return ut;case`script`:var _t=s.tagScope&1,vt=n.async;if(typeof n.src!=`string`||!n.src||!vt||typeof vt==`function`||typeof vt==`symbol`||n.onLoad||n.onError||s.insertionMode===Ai||_t||n.itemProp!=null)var yt=pe(e,n);else{var bt=n.src;if(n.type===`module`)var xt=r.moduleScriptResources,St=i.preloads.moduleScripts;else xt=r.scriptResources,St=i.preloads.scripts;var Ct=xt.hasOwnProperty(bt)?xt[bt]:void 0;if(Ct!==ui){xt[bt]=ui;var wt=n;if(Ct){Ct.length===2&&(wt=Sr({},n),Le(wt,Ct));var Tt=St.get(bt);Tt&&(Tt.length=0)}var Et=[];i.scripts.add(Et),pe(Et,wt)}c&&e.push(Ii),yt=null}return yt;case`style`:var Dt=s.tagScope&1;if(Cr.call(n,`children`)){var Ot=n.children,kt=Array.isArray(Ot)?2>Ot.length?Ot[0]:null:Ot;(typeof kt==`function`||typeof kt==`symbol`||Array.isArray(kt))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof kt==`function`?`a Function`:typeof kt==`symbol`?`a Sybmol`:`an Array`)}var At=n.precedence,jt=n.href,Mt=n.nonce;if(s.insertionMode===Ai||Dt||n.itemProp!=null||typeof At!=`string`||typeof jt!=`string`||jt===``){e.push(ge(`style`));var Nt=null,Pt=null,Ft;for(Ft in n)if(Cr.call(n,Ft)){var It=n[Ft];if(It!=null)switch(Ft){case`children`:Nt=It;break;case`dangerouslySetInnerHTML`:Pt=It;break;default:J(e,Ft,It)}}e.push(qi);var Lt=Array.isArray(Nt)?2>Nt.length?Nt[0]:null:Nt;typeof Lt!=`function`&&typeof Lt!=`symbol`&&Lt!=null&&e.push(_(ue(Lt))),oe(e,Pt,Nt),e.push(ve(`style`));var Rt=null}else{jt.includes(` `)&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',jt);var zt=i.styles.get(At),Bt=r.styleResources.hasOwnProperty(jt)?r.styleResources[jt]:void 0;if(Bt!==ui){r.styleResources[jt]=ui,Bt&&console.error(`React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.`,jt),zt||(zt={precedence:_(P(At)),rules:[],hrefs:[],sheets:new Map},i.styles.set(At,zt));var Vt=i.nonce.style;if(Vt&&Vt!==Mt)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',At,Mt,Vt);else{!Vt&&Mt&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',At,Mt),zt.hrefs.push(_(P(jt)));var Ht=zt.rules,Ut=null,Wt=null,Gt;for(Gt in n)if(Cr.call(n,Gt)){var Kt=n[Gt];if(Kt!=null)switch(Gt){case`children`:Ut=Kt;break;case`dangerouslySetInnerHTML`:Wt=Kt}}var qt=Array.isArray(Ut)?2>Ut.length?Ut[0]:null:Ut;typeof qt!=`function`&&typeof qt!=`symbol`&&qt!=null&&Ht.push(_(ue(qt))),oe(Ht,Wt,Ut)}}zt&&o&&o.styles.add(zt),c&&e.push(Ii),Rt=void 0}return Rt;case`meta`:var Jt=s.tagScope&1,Yt=s.tagScope&4;if(s.insertionMode===Ai||Jt||n.itemProp!=null)var Xt=de(e,n,`meta`);else c&&e.push(Ii),Xt=Yt?null:typeof n.charSet==`string`?de(i.charsetChunks,n,`meta`):n.name===`viewport`?de(i.viewportChunks,n,`meta`):de(i.hoistableChunks,n,`meta`);return Xt;case`listing`:case`pre`:e.push(ge(t));var Zt=null,Qt=null,$t;for($t in n)if(Cr.call(n,$t)){var en=n[$t];if(en!=null)switch($t){case`children`:Zt=en;break;case`dangerouslySetInnerHTML`:Qt=en;break;default:J(e,$t,en)}}if(e.push(qi),Qt!=null){if(Zt!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Qt!=`object`||!(`__html`in Qt))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var tn=Qt.__html;tn!=null&&(typeof tn==`string`&&0<tn.length&&tn[0]===`
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
Please update the following components: %s`,N),$o[N]=!0)}h.componentWillMount()}if(typeof h.UNSAFE_componentWillMount==`function`&&h.UNSAFE_componentWillMount(),M!==h.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,Ke(i)||`Component`),ls.enqueueReplaceState(h,h.state,null)),E.queue!==null&&0<E.queue.length){var P=E.queue,F=E.replace;if(E.queue=null,E.replace=!1,F&&P.length===1)h.state=P[0];else{for(var I=F?P[0]:h.state,L=!0,ee=F?1:0;ee<P.length;ee++){var z=P[ee],B=typeof z==`function`?z.call(h,I,d,void 0):z;B!=null&&(L?(L=!1,I=Sr({},I,B)):Sr(I,B))}h.state=I}}else E.queue=null}var V=$s(h);if(e.status===12)throw null;h.props!==d&&(yc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ke(i)||`a component`),yc=!0);var U=t.keyPath;t.keyPath=n,ln(e,t,V,-1),t.keyPath=U}else{if(i.prototype&&typeof i.prototype.render==`function`){var W=Ke(i)||`Unknown`;hc[W]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,W,W),hc[W]=!0)}var re=$(e,t,n,i,a,void 0);if(e.status===12)throw null;var ie=Ts!==0,G=Es,ae=Ds;if(i.contextTypes){var K=Ke(i)||`Unknown`;gc[K]||(gc[K]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,K))}if(i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
189
|
-
%s.childContextTypes = ...`,i.displayName||i.name||`Component`),typeof i.getDerivedStateFromProps==`function`){var q=Ke(i)||`Unknown`;vc[q]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,q),vc[q]=!0)}if(typeof i.contextType==`object`&&i.contextType!==null){var J=Ke(i)||`Unknown`;_c[J]||(console.error(`%s: Function components do not support contextType.`,J),_c[J]=!0)}rn(e,t,n,re,ie,G,ae)}else if(typeof i==`string`){var oe=t.blockedSegment;if(oe===null){var Y=a.children,se=t.formatContext,ce=t.keyPath;t.formatContext=te(se,i,a),t.keyPath=n,vn(e,t,Y,-1),t.formatContext=se,t.keyPath=ce}else{var le=_e(oe.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,oe.lastPushedText);oe.lastPushedText=!1;var ue=t.formatContext,de=t.keyPath;if(t.keyPath=n,(t.formatContext=te(ue,i,a)).insertionMode===ki){var fe=Ht(e,0,null,t.formatContext,!1,!1);oe.preambleChildren.push(fe),t.blockedSegment=fe;try{fe.status=6,vn(e,t,le,-1),fe.lastPushedText&&fe.textEmbedded&&fe.chunks.push(Ii),fe.status=cc,En(e,t.blockedBoundary,fe)}finally{t.blockedSegment=oe}}else vn(e,t,le,-1);t.formatContext=ue,t.keyPath=de;a:{var pe=oe.chunks,me=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(ue.insertionMode<=Di){me.hasBody=!0;break a}break;case`html`:if(ue.insertionMode===Ei){me.hasHtml=!0;break a}break;case`head`:if(ue.insertionMode<=Di)break a}pe.push(ve(i))}oe.lastPushedText=!1}}else{switch(i){case sr:case Xn:case Zn:case Yn:var he=t.keyPath;t.keyPath=n,ln(e,t,a.children,-1),t.keyPath=he;return;case or:var ge=t.blockedSegment;if(ge===null){if(a.mode!==`hidden`){var ye=t.keyPath;t.keyPath=n,vn(e,t,a.children,-1),t.keyPath=ye}}else if(a.mode!==`hidden`){ge.chunks.push(Sa),ge.lastPushedText=!1;var be=t.keyPath;t.keyPath=n,vn(e,t,a.children,-1),t.keyPath=be,ge.chunks.push(Ca),ge.lastPushedText=!1}return;case nr:a:{var X=a.children,Z=a.revealOrder;if(Z===`forwards`||Z===`backwards`||Z===`unstable_legacy-backwards`){if(dr(X)){nn(e,t,n,X,Z);break a}var xe=r(X);if(xe){var Se=xe.call(X);if(Se){cn(t,X,-1,Se,xe);var Ce=Se.next();if(!Ce.done){var we=[];do we.push(Ce.value),Ce=Se.next();while(!Ce.done);nn(e,t,n,X,Z)}break a}}}if(Z===`together`){var Te=t.keyPath,Ee=t.row,De=t.row=tn(null);De.boundaries=[],De.together=!0,t.keyPath=n,ln(e,t,X,-1),--De.pendingTasks===0&&Qt(e,De),t.keyPath=Te,t.row=Ee,Ee!==null&&0<De.pendingTasks&&(Ee.pendingTasks++,De.next=Ee)}else{var Oe=t.keyPath;t.keyPath=n,ln(e,t,X,-1),t.keyPath=Oe}}return;case lr:case ar:throw Error(`ReactDOMServer does not yet support scope components.`);case tr:a:if(t.replay!==null){var ke=t.keyPath,Ae=t.formatContext,je=t.row;t.keyPath=n,t.formatContext=ne(e.resumableState,Ae),t.row=null;var Me=a.children;try{vn(e,t,Me,-1)}finally{t.keyPath=ke,t.formatContext=Ae,t.row=je}}else{var Ne=t.keyPath,Pe=t.formatContext,Fe=t.row,Ie=t.blockedBoundary,Le=t.blockedPreamble,Re=t.hoistableState,ze=t.blockedSegment,Be=a.fallback,Ve=a.children,He=new Set,Ue=t.formatContext.insertionMode<Oi?zt(e,t.row,He,R(),R()):zt(e,t.row,He,null,null);e.trackedPostpones!==null&&(Ue.trackedContentKeyPath=n);var We=Ht(e,ze.chunks.length,Ue,t.formatContext,!1,!1);ze.children.push(We),ze.lastPushedText=!1;var Q=Ht(e,0,null,t.formatContext,!1,!1);if(Q.parentFlushed=!0,e.trackedPostpones!==null){var Ge=t.componentStack,qe=[n[0],`Suspense Fallback`,n[2]],Je=[qe[1],qe[2],[],null];e.trackedPostpones.workingMap.set(qe,Je),Ue.trackedFallbackNode=Je,t.blockedSegment=We,t.blockedPreamble=Ue.fallbackPreamble,t.keyPath=qe,t.formatContext=H(e.resumableState,Pe),t.componentStack=qt(Ge),We.status=6;try{vn(e,t,Be,-1),We.lastPushedText&&We.textEmbedded&&We.chunks.push(Ii),We.status=cc,En(e,Ie,We)}catch(t){throw We.status=e.status===12?uc:dc,t}finally{t.blockedSegment=ze,t.blockedPreamble=Le,t.keyPath=Ne,t.formatContext=Pe}var Ye=Bt(e,null,Ve,-1,Ue,Q,Ue.contentPreamble,Ue.contentState,t.abortSet,n,ne(e.resumableState,t.formatContext),t.context,t.treeContext,null,Ge,Yo,t.debugTask);Kt(Ye),e.pingedTasks.push(Ye)}else{t.blockedBoundary=Ue,t.blockedPreamble=Ue.contentPreamble,t.hoistableState=Ue.contentState,t.blockedSegment=Q,t.keyPath=n,t.formatContext=ne(e.resumableState,Pe),t.row=null,Q.status=6;try{if(vn(e,t,Ve,-1),Q.lastPushedText&&Q.textEmbedded&&Q.chunks.push(Ii),Q.status=cc,En(e,Ue,Q),Tn(Ue,Q),Ue.pendingTasks===0&&Ue.status===sc){if(Ue.status=cc,!jt(e,Ue)){Fe!==null&&--Fe.pendingTasks===0&&Qt(e,Fe),e.pendingRootTasks===0&&t.blockedPreamble&&jn(e);break a}}else Fe!==null&&Fe.together&&en(e,Fe)}catch(n){if(Ue.status=oc,e.status===12){Q.status=uc;var Xe=e.fatalError}else Q.status=dc,Xe=n;var Ze=Jt(t.componentStack);Yt(Ue,Xt(e,Xe,Ze,t.debugTask),Xe,Ze,!1),hn(e,Ue)}finally{t.blockedBoundary=Ie,t.blockedPreamble=Le,t.hoistableState=Re,t.blockedSegment=ze,t.keyPath=Ne,t.formatContext=Pe,t.row=Fe}var Qe=Bt(e,null,Be,-1,Ie,We,Ue.fallbackPreamble,Ue.fallbackState,He,[n[0],`Suspense Fallback`,n[2]],H(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,qt(t.componentStack),Yo,t.debugTask);Kt(Qe),e.pingedTasks.push(Qe)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case er:if(`ref`in a){var $e={};for(var et in a)et!==`ref`&&($e[et]=a[et])}else $e=a;rn(e,t,n,$(e,t,n,i.render,$e,o),Ts!==0,Es,Ds);return;case rr:an(e,t,n,i.type,a,o);return;case $n:var tt=a.value,nt=a.children,rt=t.context,it=t.keyPath,at=i._currentValue;i._currentValue=tt,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Xo&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),i._currentRenderer=Xo;var ot=Zo,st={parent:ot,depth:ot===null?0:ot.depth+1,context:i,parentValue:at,value:tt};Zo=st,t.context=st,t.keyPath=n,ln(e,t,nt,-1);var ct=Zo;if(ct===null)throw Error(`Tried to pop a Context at the root of the app. This is a bug in React.`);ct.context!==i&&console.error(`The parent context is not the expected context. This is probably a bug in React.`),ct.context._currentValue=ct.parentValue,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Xo&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),i._currentRenderer=Xo,t.context=Zo=ct.parent,t.keyPath=it,rt!==t.context&&console.error(`Popping the context provider did not return back to the original snapshot. This is a bug in React.`);return;case Qn:var lt=i._context,ut=a.children;typeof ut!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`);var dt=ut(lt._currentValue),ft=t.keyPath;t.keyPath=n,ln(e,t,dt,-1),t.keyPath=ft;return;case ir:var pt=tc(i);if(e.status===12)throw null;an(e,t,n,pt,a,o);return}var mt=``;throw(i===void 0||typeof i==`object`&&i&&Object.keys(i).length===0)&&(mt+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+((i==null?i:typeof i)+`.`+mt))}}function on(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Ht(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,vn(e,t,r,i),s.status=cc,En(e,o,s),o===null?e.completedRootSegment=s:(Tn(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function sn(e,t,n,r,i,a,o,s,c,l){a=l.nodes;for(var u=0;u<a.length;u++){var d=a[u];if(i===d[1]){if(d.length===4){if(r!==null&&r!==d[0])throw Error(`Expected the resume to render <`+d[0]+`> in this slot but instead it rendered <`+r+`>. The tree doesn't match so React will fallback to client rendering.`);var f=d[2];r=d[3],i=t.node,t.replay={nodes:f,slots:r,pendingTasks:1};try{if(an(e,t,n,o,s,c),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);t.replay.pendingTasks--}catch(d){if(typeof d==`object`&&d&&(d===ms||typeof d.then==`function`))throw t.node===i?t.replay=l:a.splice(u,1),d;t.replay.pendingTasks--,o=Jt(t.componentStack),s=e,e=t.blockedBoundary,n=d,c=r,r=Xt(s,n,o,t.debugTask),bn(s,e,f,c,n,r,o,!1)}t.replay=l}else{if(o!==tr)throw Error(`Expected the resume to render <Suspense> in this slot but instead it rendered <`+(Ke(o)||`Unknown`)+`>. The tree doesn't match so React will fallback to client rendering.`);a:{l=void 0,r=d[5],o=d[2],c=d[3],i=d[4]===null?[]:d[4][2],d=d[4]===null?null:d[4][3];var p=t.keyPath,m=t.formatContext,h=t.row,g=t.replay,_=t.blockedBoundary,v=t.hoistableState,y=s.children,b=s.fallback,x=new Set;s=t.formatContext.insertionMode<Oi?zt(e,t.row,x,R(),R()):zt(e,t.row,x,null,null),s.parentFlushed=!0,s.rootSegmentID=r,t.blockedBoundary=s,t.hoistableState=s.contentState,t.keyPath=n,t.formatContext=ne(e.resumableState,m),t.row=null,t.replay={nodes:o,slots:c,pendingTasks:1};try{if(vn(e,t,y,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);if(t.replay.pendingTasks--,s.pendingTasks===0&&s.status===sc){s.status=cc,e.completedBoundaries.push(s);break a}}catch(n){s.status=oc,f=Jt(t.componentStack),l=Xt(e,n,f,t.debugTask),Yt(s,l,n,f,!1),t.replay.pendingTasks--,e.clientRenderedBoundaries.push(s)}finally{t.blockedBoundary=_,t.hoistableState=v,t.replay=g,t.keyPath=p,t.formatContext=m,t.row=h}s=Vt(e,null,{nodes:i,slots:d,pendingTasks:0},b,-1,_,s.fallbackState,x,[n[0],`Suspense Fallback`,n[2]],H(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,qt(t.componentStack),Yo,t.debugTask),Kt(s),e.pingedTasks.push(s)}}a.splice(u,1);break}}}function cn(e,t,n,r,i){r===t?(n!==-1||e.componentStack===null||typeof e.componentStack.type!=`function`||Object.prototype.toString.call(e.componentStack.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(r)!==`[object Generator]`)&&(bc||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),bc=!0):t.entries!==i||xc||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),xc=!0)}function ln(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?on(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,r=t.debugTask,Kt(t),un(e,t),t.componentStack=n,t.debugTask=r)}function un(e,t){var n=t.node,i=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case qn:var a=n.type,o=n.key;n=n.props;var s=n.ref;s=s===void 0?null:s;var c=t.debugTask,l=Ke(a);o??=i===-1?0:i;var u=[t.keyPath,l,o];t.replay===null?c?c.run(an.bind(null,e,t,u,a,n,s)):an(e,t,u,a,n,s):c?c.run(sn.bind(null,e,t,u,l,o,i,a,n,s,t.replay)):sn(e,t,u,l,o,i,a,n,s,t.replay);return;case Jn:throw Error(`Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.`);case ir:if(a=tc(n),e.status===12)throw null;ln(e,t,a,i);return}if(dr(n)){fn(e,t,n,i);return}if((o=r(n))&&(a=o.call(n))){if(cn(t,n,i,a,o),n=a.next(),!n.done){o=[];do o.push(n.value),n=a.next();while(!n.done);fn(e,t,o,i)}return}if(typeof n.then==`function`)return t.thenableState=null,ln(e,t,xt(n),i);if(n.$$typeof===$n)return ln(e,t,n._currentValue,i);throw e=Object.prototype.toString.call(n),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`)}typeof n==`string`?(t=t.blockedSegment,t!==null&&(t.lastPushedText=U(t.chunks,n,e.renderState,t.lastPushedText))):typeof n==`number`||typeof n==`bigint`?(t=t.blockedSegment,t!==null&&(t.lastPushedText=U(t.chunks,``+n,e.renderState,t.lastPushedText))):(typeof n==`function`&&(e=n.displayName||n.name||`Component`,console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.`,e,e)),typeof n==`symbol`&&console.error(`Symbols are not valid as a React child.
|
|
190
|
-
%s`,String(n)))}}function dn(e,t,n){if(typeof n==`object`&&n&&(n.$$typeof===qn||n.$$typeof===Jn)&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=e.didWarnForKey;if(r??=e.didWarnForKey=new WeakSet,e=t.componentStack,e!==null&&!r.has(e)){r.add(e);var i=Ke(n.type);r=n._owner;var a=e.owner;if(e=``,a&&a.type!==void 0){var o=Ke(a.type);o&&(e=`
|
|
191
|
-
|
|
192
|
-
Check the render method of \``+o+"`.")}e||i&&(e=`
|
|
193
|
-
|
|
194
|
-
Check the top-level render call using <`+i+`>.`),i=``,r!=null&&a!==r&&(a=null,r.type===void 0?typeof r.name==`string`&&(a=r.name):a=Ke(r.type),a&&(i=` It was passed a child from `+a+`.`)),r=t.componentStack,t.componentStack={parent:t.componentStack,type:n.type,owner:n._owner,stack:n._debugStack},console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,e,i),t.componentStack=r}}}function fn(e,t,n,r){var i=t.keyPath,a=t.componentStack,o=t.debugTask;if(Gt(t,t.node._debugInfo),r!==-1&&(t.keyPath=[t.keyPath,`Fragment`,r],t.replay!==null)){for(var s=t.replay,c=s.nodes,l=0;l<c.length;l++){var u=c[l];if(u[1]===r){r=u[2],u=u[3],t.replay={nodes:r,slots:u,pendingTasks:1};try{if(fn(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===ms||typeof i.then==`function`))throw i;t.replay.pendingTasks--;var d=Jt(t.componentStack);n=t.blockedBoundary;var f=i,p=u;u=Xt(e,f,d,t.debugTask),bn(e,n,r,p,f,u,d,!1)}t.replay=s,c.splice(l,1);break}}t.keyPath=i,t.componentStack=a,t.debugTask=o;return}if(s=t.treeContext,c=n.length,t.replay!==null&&(l=t.replay.slots,typeof l==`object`&&l)){for(r=0;r<c;r++)u=n[r],t.treeContext=tt(s,c,r),f=l[r],typeof f==`number`?(on(e,t,f,u,r),delete l[r]):vn(e,t,u,r);t.treeContext=s,t.keyPath=i,t.componentStack=a,t.debugTask=o;return}for(l=0;l<c;l++)r=n[l],dn(e,t,r),t.treeContext=tt(s,c,l),vn(e,t,r,l);t.treeContext=s,t.keyPath=i,t.componentStack=a,t.debugTask=o}function pn(e,t,n){if(n.status=fc,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(`It should not be possible to postpone at the root. This is a bug in React.`);var r=n.trackedFallbackNode,i=[],a=t.workingMap.get(e);return a===void 0?(n=[e[1],e[2],i,null,r,n.rootSegmentID],t.workingMap.set(e,n),Hn(n,e[0],t),n):(a[4]=r,a[5]=n.rootSegmentID,a)}function mn(e,t,n,r){r.status=fc;var i=n.keyPath,a=n.blockedBoundary;if(a===null)r.id=e.nextSegmentId++,t.rootSlots=r.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=fc);else{if(a!==null&&a.status===sc){var o=pn(e,t,a);if(a.trackedContentKeyPath===i&&n.childIndex===-1){r.id===-1&&(r.id=r.parentFlushed?a.rootSegmentID:e.nextSegmentId++),o[3]=r.id;return}}if(r.id===-1&&(r.id=r.parentFlushed&&a!==null?a.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)i===null?t.rootSlots=r.id:(n=t.workingMap.get(i),n===void 0?(n=[i[1],i[2],[],r.id],Hn(n,i[0],t)):n[3]=r.id);else{if(i===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(`It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.`)}else if(a=t.workingMap,o=a.get(i),o===void 0)e={},o=[i[1],i[2],[],e],a.set(i,o),Hn(o,i[0],t);else if(e=o[3],e===null)e=o[3]={};else if(typeof e==`number`)throw Error(`It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.`);e[n.childIndex]=r.id}}}function hn(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function gn(e,t,n){return Vt(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack,Yo,t.debugTask)}function _n(e,t,n){var r=t.blockedSegment,i=Ht(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Bt(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack,Yo,t.debugTask)}function vn(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.debugTask,u=t.blockedSegment;if(u===null){u=t.replay;try{return ln(e,t,n,r)}catch(d){if(dt(),n=d===ms?at():d,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=d===ms?ut():null,e=gn(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=u,t.debugTask=l,Qe(a);return}if(n.message===`Maximum call stack size exceeded`){n=d===ms?ut():null,n=gn(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=u,t.debugTask=l,Qe(a);return}}}}else{var d=u.children.length,f=u.chunks.length;try{return ln(e,t,n,r)}catch(r){if(dt(),u.children.length=d,u.chunks.length=f,n=r===ms?at():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){u=n,n=r===ms?ut():null,e=_n(e,t,n).ping,u.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.debugTask=l,Qe(a);return}if(n.message===`Maximum call stack size exceeded`){u=r===ms?ut():null,u=_n(e,t,u),e.pingedTasks.push(u),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.debugTask=l,Qe(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Qe(a),n}function yn(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=uc,Dn(this,t,e.row,n))}function bn(e,t,n,r,i,a,o,s){for(var c=0;c<n.length;c++){var l=n[c];if(l.length===4)bn(e,t,l[2],l[3],i,a,o,s);else{var u=e;l=l[5];var d=i,f=a,p=o,m=s,h=zt(u,null,new Set,null,null);h.parentFlushed=!0,h.rootSegmentID=l,h.status=oc,Yt(h,f,d,p,m),h.parentFlushed&&u.clientRenderedBoundaries.push(h)}}if(n.length=0,r!==null){if(t===null)throw Error(`We should not have any resumable nodes in the shell. This is a bug in React.`);if(t.status!==oc&&(t.status=oc,Yt(t,a,i,o,s),t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof r==`object`)for(var g in r)delete r[g]}}function xn(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=uc}var a=Jt(e.componentStack),o=e.node;if(typeof o==`object`&&o&&Wt(e,o._debugInfo),r===null){if(t.status!==13&&t.status!==pc){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Xt(t,n,a,e.debugTask),mn(t,r,e,i),Dn(t,null,e.row,i)):(Xt(t,n,a,e.debugTask),Zt(t,n,a,e.debugTask));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Xt(t,n,a,null),bn(t,null,r.nodes,r.slots,n,i,a,!0)),t.pendingRootTasks--,t.pendingRootTasks===0&&Cn(t)}}else{if(o=t.trackedPostpones,r.status!==oc){if(o!==null&&i!==null)return Xt(t,n,a,e.debugTask),mn(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return xn(e,t,n)}),r.fallbackAbortableTasks.clear(),Dn(t,r,e.row,i);r.status=oc,i=Xt(t,n,a,e.debugTask),r.status=oc,Yt(r,i,n,a,!0),hn(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&Qt(t,a),r.fallbackAbortableTasks.forEach(function(e){return xn(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Qt(t,e),t.allPendingTasks--,t.allPendingTasks===0&&wn(t)}function Sn(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=Re(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=di,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:di;else break b}}r(a?{Link:a}:{})}}}catch(t){Xt(e,t,{},null)}}function Cn(e){e.trackedPostpones===null&&Sn(e,!0),e.trackedPostpones===null&&jn(e),e.onShellError=rt,e=e.onShellReady,e()}function wn(e){Sn(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==fc),jn(e),e=e.onAllReady,e()}function Tn(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==cc&&n.status!==uc&&n.status!==dc||Tn(e,n)}else e.completedSegments.push(t)}function En(e,t,n){if(y!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function Dn(e,t,n,r){if(n!==null&&(--n.pendingTasks===0?Qt(e,n):n.together&&en(e,n)),e.allPendingTasks--,t===null){if(r!==null&&r.parentFlushed){if(e.completedRootSegment!==null)throw Error(`There can only be one root segment. This is a bug in React.`);e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&Cn(e)}else if(t.pendingTasks--,t.status!==oc)if(t.pendingTasks===0){if(t.status===sc&&(t.status=cc),r!==null&&r.parentFlushed&&(r.status===cc||r.status===uc)&&Tn(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.status===cc)n=t.row,n!==null&&Q(n.hoistables,t.contentState),jt(e,t)||(t.fallbackAbortableTasks.forEach(yn,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Qt(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&jn(e);else if(t.status===fc&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var i=t.next;if(i!==null&&(r=i.boundaries,r!==null))for(i.boundaries=null,i=0;i<r.length;i++){var a=r[i];pn(e,n,a),Dn(e,a,null,null)}}--t.pendingTasks===0&&Qt(e,t)}}else r===null||!r.parentFlushed||r.status!==cc&&r.status!==uc||(Tn(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&en(e,t);e.allPendingTasks===0&&wn(e)}function On(e){if(e.status!==pc&&e.status!==13){var t=Zo,n=$r.H;$r.H=Ps;var r=$r.A;$r.A=Ls;var i=mc;mc=e;var a=$r.getCurrentStack;$r.getCurrentStack=Ut;var o=Fs;Fs=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=e,u=s[c],d=u.blockedSegment;if(d===null){var f=void 0,p=l;if(l=u,l.replay.pendingTasks!==0){Qe(l.context),f=Is,Is=l;try{if(typeof l.replay.slots==`number`?on(p,l,l.replay.slots,l.node,l.childIndex):un(p,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(`Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.`);l.replay.pendingTasks--,l.abortSet.delete(l),Dn(p,l.blockedBoundary,l.row,null)}catch(e){dt();var m=e===ms?at():e;if(typeof m==`object`&&m&&typeof m.then==`function`){var h=l.ping;m.then(h,h),l.thenableState=e===ms?ut():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var g=Jt(l.componentStack),_=void 0,v=p,y=l.blockedBoundary,b=p.status===12?p.fatalError:m,x=g,S=l.replay.nodes,C=l.replay.slots;_=Xt(v,b,x,l.debugTask),bn(v,y,S,C,b,_,x,!1),p.pendingRootTasks--,p.pendingRootTasks===0&&Cn(p),p.allPendingTasks--,p.allPendingTasks===0&&wn(p)}}finally{Is=f}}}else if(p=f=void 0,_=u,v=d,v.status===sc){v.status=6,Qe(_.context),p=Is,Is=_;var w=v.children.length,T=v.chunks.length;try{un(l,_),v.lastPushedText&&v.textEmbedded&&v.chunks.push(Ii),_.abortSet.delete(_),v.status=cc,En(l,_.blockedBoundary,v),Dn(l,_.blockedBoundary,_.row,v)}catch(e){dt(),v.children.length=w,v.chunks.length=T;var E=e===ms?at():l.status===12?l.fatalError:e;if(l.status===12&&l.trackedPostpones!==null){var D=l.trackedPostpones,O=Jt(_.componentStack);_.abortSet.delete(_),Xt(l,E,O,_.debugTask),mn(l,D,_,v),Dn(l,_.blockedBoundary,_.row,v)}else if(typeof E==`object`&&E&&typeof E.then==`function`){v.status=sc,_.thenableState=e===ms?ut():null;var k=_.ping;E.then(k,k)}else{var A=Jt(_.componentStack);_.abortSet.delete(_),v.status=dc;var j=_.blockedBoundary,M=_.row,N=_.debugTask;if(M!==null&&--M.pendingTasks===0&&Qt(l,M),l.allPendingTasks--,f=Xt(l,E,A,N),j===null)Zt(l,E,A,N);else if(j.pendingTasks--,j.status!==oc){j.status=oc,Yt(j,f,E,A,!1),hn(l,j);var P=j.row;P!==null&&--P.pendingTasks===0&&Qt(l,P),j.parentFlushed&&l.clientRenderedBoundaries.push(j),l.pendingRootTasks===0&&l.trackedPostpones===null&&j.contentPreamble!==null&&jn(l)}l.allPendingTasks===0&&wn(l)}}finally{Is=p}}}s.splice(0,c),e.destination!==null&&Ln(e,e.destination)}catch(t){s={},Xt(e,t,s,null),Zt(e,t,s,null)}finally{Fs=o,$r.H=n,$r.A=r,$r.getCurrentStack=a,n===Ps&&Qe(t),mc=i}}}function kn(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=An(e,t.children[i],n)||r;return r}function An(e,t,n){var r=t.boundary;if(r===null)return kn(e,t,n);var i=r.contentPreamble,a=r.fallbackPreamble;if(i===null||a===null)return!1;switch(r.status){case cc:if(ye(e.renderState,i),e.byteSize+=r.byteSize,t=r.completedSegments[0],!t)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);return kn(e,t,n);case fc:if(e.trackedPostpones!==null)return!0;case oc:if(t.status===cc)return ye(e.renderState,a),kn(e,t,n);default:return!0}}function jn(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=An(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Mn(e,t,n,r){switch(n.parentFlushed=!0,n.status){case sc:n.id=e.nextSegmentId++;case fc:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,p(t,ba),p(t,e.placeholderPrefix),e=_(r.toString(16)),p(t,e),m(t,xa);case cc:n.status=lc;var i=!0,a=n.chunks,o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)p(t,a[o]);i=Nn(e,t,i,r)}for(;o<a.length-1;o++)p(t,a[o]);return o<a.length&&(i=m(t,a[o])),i;case uc:return!0;default:throw Error(`Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.`)}}function Nn(e,t,n,r){var i=n.boundary;if(i===null)return Mn(e,t,n,r);if(i.parentFlushed=!0,i.status===oc){var a=i.row;a!==null&&--a.pendingTasks===0&&Qt(e,a),a=i.errorDigest;var o=i.errorMessage,s=i.errorStack;i=i.errorComponentStack,m(t,Da),p(t,ka),a&&(p(t,ja),p(t,_(P(a))),p(t,Aa)),o&&(p(t,Ma),p(t,_(P(o))),p(t,Aa)),s&&(p(t,Na),p(t,_(P(s))),p(t,Aa)),i&&(p(t,Pa),p(t,_(P(i))),p(t,Aa)),m(t,Fa),Mn(e,t,n,r)}else if(i.status!==cc)i.status===sc&&(i.rootSegmentID=e.nextSegmentId++),0<i.completedSegments.length&&e.partialBoundaries.push(i),X(t,e.renderState,i.rootSegmentID),r&&Q(r,i.fallbackState),Mn(e,t,n,r);else if(!Cc&&jt(e,i)&&(Sc+i.byteSize>e.progressiveChunkSize||Ge(i.contentState)))i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),X(t,e.renderState,i.rootSegmentID),Mn(e,t,n,r);else{if(Sc+=i.byteSize,r&&Q(r,i.contentState),n=i.row,n!==null&&jt(e,i)&&--n.pendingTasks===0&&Qt(e,n),m(t,wa),n=i.completedSegments,n.length!==1)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);Nn(e,t,n[0],r)}return m(t,Oa)}function Pn(e,t,n,r){return Z(t,e.renderState,n.parentFormatContext,n.id),Nn(e,t,n,r),xe(t,n.parentFormatContext)}function Fn(e,t,n){Sc=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)In(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&jt(e,n)&&--r.pendingTasks===0&&Qt(e,r),Ee(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,p(t,e.startInlineScript),p(t,qi),a?((r.instructions&oi)===ri&&(r.instructions|=oi,p(t,go)),(r.instructions&ai)===ri&&(r.instructions|=ai,p(t,so)),(r.instructions&si)===ri?(r.instructions|=si,p(t,lo)):p(t,uo)):((r.instructions&ai)===ri&&(r.instructions|=ai,p(t,so)),p(t,co)),r=_(i.toString(16)),p(t,e.boundaryPrefix),p(t,r),p(t,fo),p(t,e.segmentPrefix),p(t,r),a?(p(t,po),Ne(t,n)):p(t,mo),n=m(t,ho),be(t,e)&&n}function In(e,t,n,r){if(r.status===lc)return!0;var i=n.contentState,a=r.id;if(a===-1){if((r.id=n.rootSegmentID)===-1)throw Error(`A root segment ID must have been assigned by now. This is a bug in React.`);return Pn(e,t,r,i)}return a===n.rootSegmentID?Pn(e,t,r,i):(Pn(e,t,r,i),n=e.resumableState,e=e.renderState,p(t,e.startInlineScript),p(t,qi),(n.instructions&ii)===ri?(n.instructions|=ii,p(t,ro)):p(t,io),p(t,e.segmentPrefix),a=_(a.toString(16)),p(t,a),p(t,ao),p(t,e.placeholderPrefix),p(t,a),t=m(t,oo),t)}function Ln(e,t){yr=new Uint8Array(2048),br=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===fc)return;var i=e.completedPreambleSegments;if(i===null)return;Sc=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)p(t,c[u]);if(l)for(u=0;u<l.length;u++)p(t,l[u]);else p(t,ge(`head`)),p(t,qi)}else if(l)for(u=0;u<l.length;u++)p(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)p(t,d[u]);d.length=0,o.preconnects.forEach(De,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)p(t,f[u]);f.length=0,o.fontPreloads.forEach(De,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(De,t),o.highImagePreloads.clear(),fi=o,o.styles.forEach(ke,t),fi=null;var h=o.importMapChunks;for(u=0;u<h.length;u++)p(t,h[u]);h.length=0,o.bootstrapScripts.forEach(De,t),o.scripts.forEach(De,t),o.scripts.clear(),o.bulkPreloads.forEach(De,t),o.bulkPreloads.clear(),c||l||(a.instructions|=ci);var v=o.hoistableChunks;for(u=0;u<v.length;u++)p(t,v[u]);for(a=v.length=0;a<i.length;a++){var y=i[a];for(o=0;o<y.length;o++)Nn(e,t,y[o],null)}var b=e.renderState.preamble,x=b.headChunks;(b.htmlChunks||x)&&p(t,ve(`head`));var S=b.bodyChunks;if(S)for(i=0;i<S.length;i++)p(t,S[i]);Nn(e,t,r,null),e.completedRootSegment=null;var C=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var w=e.resumableState;if((w.instructions&li)===ri){if(w.instructions|=li,p(t,C.startInlineScript),(w.instructions&ci)===ri){w.instructions|=ci;var T=`_`+w.idPrefix+`R_`;p(t,Io),p(t,_(P(T))),p(t,Ui)}p(t,qi),p(t,ya),m(t,mi)}}be(t,C)}var E=e.renderState;r=0;var D=E.viewportChunks;for(r=0;r<D.length;r++)p(t,D[r]);D.length=0,E.preconnects.forEach(De,t),E.preconnects.clear(),E.fontPreloads.forEach(De,t),E.fontPreloads.clear(),E.highImagePreloads.forEach(De,t),E.highImagePreloads.clear(),E.styles.forEach(je,t),E.scripts.forEach(De,t),E.scripts.clear(),E.bulkPreloads.forEach(De,t),E.bulkPreloads.clear();var O=E.hoistableChunks;for(r=0;r<O.length;r++)p(t,O[r]);O.length=0;var k=e.clientRenderedBoundaries;for(n=0;n<k.length;n++){var A=k[n];E=t;var j=e.resumableState,M=e.renderState,N=A.rootSegmentID,F=A.errorDigest,I=A.errorMessage,L=A.errorStack,ee=A.errorComponentStack;p(E,M.startInlineScript),p(E,qi),(j.instructions&oi)===ri?(j.instructions|=oi,p(E,_o)):p(E,vo),p(E,M.boundaryPrefix),p(E,_(N.toString(16))),p(E,yo),(F||I||L||ee)&&(p(E,bo),p(E,_(Se(F||``)))),(I||L||ee)&&(p(E,bo),p(E,_(Se(I||``)))),(L||ee)&&(p(E,bo),p(E,_(Se(L||``)))),ee&&(p(E,bo),p(E,_(Se(ee))));var R=m(E,xo);if(!R){e.destination=null,n++,k.splice(0,n);return}}k.splice(0,n);var z=e.completedBoundaries;for(n=0;n<z.length;n++)if(!Fn(e,t,z[n])){e.destination=null,n++,z.splice(0,n);return}z.splice(0,n),g(t),yr=new Uint8Array(2048),br=0,Cc=!0;var B=e.partialBoundaries;for(n=0;n<B.length;n++){a:{k=e,A=t;var te=B[n];Sc=te.byteSize;var V=te.completedSegments;for(R=0;R<V.length;R++)if(!In(k,A,te,V[R])){R++,V.splice(0,R);var H=!1;break a}V.splice(0,R);var ne=te.row;ne!==null&&ne.together&&te.pendingTasks===1&&(ne.pendingTasks===1?$t(k,ne,ne.hoistables):ne.pendingTasks--),H=Ee(A,te.contentState,k.renderState)}if(!H){e.destination=null,n++,B.splice(0,n);return}}B.splice(0,n),Cc=!1;var U=e.completedBoundaries;for(n=0;n<U.length;n++)if(!Fn(e,t,U[n])){e.destination=null,n++,U.splice(0,n);return}U.splice(0,n)}}finally{Cc=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&p(t,ve(`body`)),n.hasHtml&&p(t,ve(`html`)),g(t),e.abortableTasks.size!==0&&console.error(`There was still abortable task at the root when we closed. This is a bug in React.`),e.status=pc,t.close(),e.destination=null):g(t)}}function Rn(e){e.flushScheduled=e.destination!==null,vr(function(){return On(e)}),u(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&Sn(e,e.pendingRootTasks===0)})}function zn(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,u(function(){var t=e.destination;t?Ln(e,t):e.flushScheduled=!1}))}function Bn(e,t){if(e.status===13)e.status=pc,b(t,e.fatalError);else if(e.status!==pc&&e.destination===null){e.destination=t;try{Ln(e,t)}catch(n){t={},Xt(e,n,t,null),Zt(e,n,t,null)}}}function Vn(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=t===void 0?Error(`The render was aborted by the server without a reason.`):typeof t==`object`&&t&&typeof t.then==`function`?Error(`The render was aborted by the server with a promise.`):t;e.fatalError=r,n.forEach(function(t){var n=Is,i=$r.getCurrentStack;Is=t,$r.getCurrentStack=Ut;try{xn(t,e,r)}finally{Is=n,$r.getCurrentStack=i}}),n.clear()}e.destination!==null&&Ln(e,e.destination)}catch(n){t={},Xt(e,n,t,null),Zt(e,n,t,null)}}function Hn(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Hn(i,t[0],n)),i[2].push(e)}}function Un(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;if(e.completedRootSegment===null||e.completedRootSegment.status!==fc&&e.completedPreambleSegments!==null){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var a=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:a.resets.font},i.dnsResources=a.resets.dns,i.connectResources=a.resets.connect,i.imageResources=a.resets.image,i.styleResources=a.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=ri}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Wn(){var e=Gn.version;if(e!==`19.2.4`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
195
|
-
- react: `+(e+`
|
|
196
|
-
- react-dom: 19.2.4
|
|
197
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}var Gn=f(),Kn=h(),qn=Symbol.for(`react.transitional.element`),Jn=Symbol.for(`react.portal`),Yn=Symbol.for(`react.fragment`),Xn=Symbol.for(`react.strict_mode`),Zn=Symbol.for(`react.profiler`),Qn=Symbol.for(`react.consumer`),$n=Symbol.for(`react.context`),er=Symbol.for(`react.forward_ref`),tr=Symbol.for(`react.suspense`),nr=Symbol.for(`react.suspense_list`),rr=Symbol.for(`react.memo`),ir=Symbol.for(`react.lazy`),ar=Symbol.for(`react.scope`),or=Symbol.for(`react.activity`),sr=Symbol.for(`react.legacy_hidden`),cr=Symbol.for(`react.memo_cache_sentinel`),lr=Symbol.for(`react.view_transition`),ur=Symbol.iterator,dr=Array.isArray,fr=new WeakMap,pr=new WeakMap,mr=Symbol.for(`react.client.reference`),hr=new MessageChannel,gr=[];hr.port1.onmessage=function(){var e=gr.shift();e&&e()};var _r=Promise,vr=typeof queueMicrotask==`function`?queueMicrotask:function(e){_r.resolve(null).then(e).catch(d)},yr=null,br=0,xr=new TextEncoder,Sr=Object.assign,Cr=Object.prototype.hasOwnProperty,wr=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Tr={},Er={},Dr=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),Or=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),kr={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Ar={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},jr={},Mr=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Nr=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Pr=!1,Fr={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Ir={},Lr=/^on./,Rr=/^on[^A-Z]/,zr=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Br=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Vr=/^(?:webkit|moz|o)[A-Z]/,Hr=/^-ms-/,Ur=/-(.)/g,Wr=/;\s*$/,Gr={},Kr={},qr=!1,Jr=!1,Yr=/["'&<>]/,Xr=/([A-Z])/g,Zr=/^ms-/,Qr=/^[\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,$r=Gn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ei=Kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ti=Object.freeze({pending:!1,data:null,method:null,action:null}),ni=ei.d;ei.d={f:ni.f,r:ni.r,D:function(e){var t=mc||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=ui,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+ze(e)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=ui,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],le(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}zn(t)}}else ni.D(e)},C:function(e,t){var n=mc||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=ui,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+ze(e)+`>; rel=preconnect`,typeof t==`string`){var c=Ve(t,`crossOrigin`);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=ui,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],le(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}zn(n)}}else ni.C(e,t)},L:function(e,t,n){var r=mc||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
198
|
-
`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=di,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=Re(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=di,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],le(i,Sr({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],le(o,Sr({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?di:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),le(o,Sr({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?di:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=di,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=Re(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=di,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=Sr({rel:`preload`,href:e,as:t},n),le(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}zn(r)}}else ni.L(e,t,n)},m:function(e,t){var n=mc||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?di:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.unknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=di}le(a,Sr({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),zn(n)}}else ni.m(e,t)},X:function(e,t){var n=mc||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==ui&&(r.scriptResources[e]=ui,t=Sr({src:e,async:!0},t),a&&(a.length===2&&Le(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),pe(e,t),zn(n))}}else ni.X(e,t)},S:function(e,t,n){var r=mc||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==ui&&(i.styleResources[e]=ui,o||(o={precedence:_(P(t)),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:Vo,props:Sr({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&Le(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=Ho),o.sheets.set(e,t),zn(r))}}else ni.S(e,t,n)},M:function(e,t){var n=mc||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==ui&&(r.moduleScriptResources[e]=ui,t=Sr({src:e,type:`module`,async:!0},t),a&&(a.length===2&&Le(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),pe(e,t),zn(n))}}else ni.M(e,t)}};var ri=0,ii=1,ai=2,oi=4,si=8,ci=32,li=64,ui=null,di=[];Object.freeze(di);var fi=null;v(`"></template>`);var pi=v(`<script`),mi=v(`<\/script>`),hi=v(`<script src="`),gi=v(`<script type="module" src="`),_i=v(` nonce="`),vi=v(` integrity="`),yi=v(` crossorigin="`),bi=v(` async=""><\/script>`),xi=v(`<style`),Si=/(<\/|<)(s)(cript)/gi,Ci=v(`<script type="importmap">`),wi=v(`<\/script>`),Ti={},Ei=0,Di=1,Oi=2,ki=3,Ai=4,ji=5,Mi=6,Ni=7,Pi=8,Fi=9,Ii=v(`<!-- -->`),Li=new Map,Ri=v(` style="`),zi=v(`:`),Bi=v(`;`),Vi=v(` `),Hi=v(`="`),Ui=v(`"`),Wi=v(`=""`),Gi=v(P(`javascript:throw new Error('React form unexpectedly submitted.')`)),Ki=v(`<input type="hidden"`),qi=v(`>`),Ji=v(`/>`),Yi=!1,Xi=!1,Zi=!1,Qi=!1,$i=!1,ea=!1,ta=!1,na=!1,ra=!1,ia=!1,aa=!1,oa=v(` selected=""`),sa=v(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),ca=v(`<!--F!-->`),la=v(`<!--F-->`),ua=/(<\/|<)(s)(tyle)/gi,da=v(`<!--head-->`),fa=v(`<!--body-->`),pa=v(`<!--html-->`),ma=v(`
|
|
199
|
-
`),ha=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ga=new Map,_a=v(`<!DOCTYPE html>`),va=new Map,ya=v(`requestAnimationFrame(function(){$RT=performance.now()});`),ba=v(`<template id="`),xa=v(`"></template>`),Sa=v(`<!--&-->`),Ca=v(`<!--/&-->`),wa=v(`<!--$-->`),Ta=v(`<!--$?--><template id="`),Ea=v(`"></template>`),Da=v(`<!--$!-->`),Oa=v(`<!--/$-->`),ka=v(`<template`),Aa=v(`"`),ja=v(` data-dgst="`),Ma=v(` data-msg="`),Na=v(` data-stck="`),Pa=v(` data-cstck="`),Fa=v(`></template>`),Ia=v(`<div hidden id="`),La=v(`">`),Ra=v(`</div>`),za=v(`<svg aria-hidden="true" style="display:none" id="`),Ba=v(`">`),Va=v(`</svg>`),Ha=v(`<math aria-hidden="true" style="display:none" id="`),Ua=v(`">`),Wa=v(`</math>`),Ga=v(`<table hidden id="`),Ka=v(`">`),qa=v(`</table>`),Ja=v(`<table hidden><tbody id="`),Ya=v(`">`),Xa=v(`</tbody></table>`),Za=v(`<table hidden><tr id="`),Qa=v(`">`),$a=v(`</tr></table>`),eo=v(`<table hidden><colgroup id="`),to=v(`">`),no=v(`</colgroup></table>`),ro=v(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`),io=v(`$RS("`),ao=v(`","`),oo=v(`")<\/script>`);v(`<template data-rsi="" data-sid="`),v(`" data-pid="`);var so=v(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
200
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);_(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
201
|
-
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
202
|
-
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
203
|
-
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var co=v(`$RC("`),lo=v(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
204
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
205
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),uo=v(`$RR("`),fo=v(`","`),po=v(`",`),mo=v(`"`),ho=v(`)<\/script>`);v(`<template data-rci="" data-bid="`),v(`<template data-rri="" data-bid="`),v(`" data-sid="`),v(`" data-sty="`);var go=v(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),_o=v(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),vo=v(`$RX("`),yo=v(`"`),bo=v(`,`),xo=v(`)<\/script>`);v(`<template data-rxi="" data-bid="`),v(`" data-dgst="`),v(`" data-msg="`),v(`" data-stck="`),v(`" data-cstck="`);var So=/[<\u2028\u2029]/g,Co=/[&><\u2028\u2029]/g,wo=v(` media="not all" data-precedence="`),To=v(`" data-href="`),Eo=v(`">`),Do=v(`</style>`),Oo=!1,ko=!0,Ao=[],jo=v(` data-precedence="`),Mo=v(`" data-href="`),No=v(` `),Po=v(`">`),Fo=v(`</style>`);v(`<link rel="expect" href="#`),v(`" blocking="render"/>`);var Io=v(` id="`),Lo=v(`[`),Ro=v(`,[`),zo=v(`,`),Bo=v(`]`),Vo=0,Ho=1,Uo=2,Wo=3,Go=/[<>\r\n]/g,Ko=/["';,\r\n]/g,qo=Function.prototype.bind,Jo=Symbol.for(`react.client.reference`),Yo={};Object.freeze(Yo);var Xo={},Zo=null,Qo={},$o={},es=new Set,ts=new Set,ns=new Set,rs=new Set,is=new Set,as=new Set,os=new Set,ss=new Set,cs=new Set,ls={enqueueSetState:function(e,t,n){var r=e._reactInternals;r.queue===null?et(e,`setState`):(r.queue.push(t),n!=null&&$e(n))},enqueueReplaceState:function(e,t,n){e=e._reactInternals,e.replace=!0,e.queue=[t],n!=null&&$e(n)},enqueueForceUpdate:function(e,t){e._reactInternals.queue===null?et(e,`forceUpdate`):t!=null&&$e(t)}},us={id:1,overflow:``},ds=Math.clz32?Math.clz32:nt,fs=Math.log,ps=Math.LN2,ms=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),hs=null,gs=typeof Object.is==`function`?Object.is:ot,_s=null,vs=null,ys=null,bs=null,xs=null,Ss=null,Cs=!1,ws=!1,Ts=0,Es=0,Ds=-1,Os=0,ks=null,As=null,js=0,Ms=!1,Ns,Ps={readContext:ft,use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return xt(e);if(e.$$typeof===$n)return ft(e)}throw Error(`An unsupported type was passed to use(): `+String(e))},useContext:function(e){return Ns=`useContext`,st(),e._currentValue},useMemo:ht,useReducer:mt,useRef:function(e){_s=st(),Ss=lt();var t=Ss.memoizedState;return t===null?(e={current:e},Object.seal(e),Ss.memoizedState=e):t},useState:function(e){return Ns=`useState`,mt(pt,e)},useInsertionEffect:rt,useLayoutEffect:rt,useCallback:function(e,t){return ht(function(){return e},t)},useImperativeHandle:rt,useEffect:rt,useDebugValue:rt,useDeferredValue:function(e,t){return st(),t===void 0?e:t},useTransition:function(){return st(),[!1,vt]},useId:function(){var e=vs.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-ds(e)-1)).toString(32)+t;var n=Fs;if(n===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return t=Ts++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()},useOptimistic:function(e){return st(),[e,yt]},useActionState:bt,useFormState:bt,useHostTransitionStatus:function(){return st(),ti},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=cr;return t},useCacheRefresh:function(){return St},useEffectEvent:function(){return _t}},Fs=null,Is=null,Ls={getCacheForType:function(){throw Error(`Not implemented.`)},cacheSignal:function(){throw Error(`Not implemented.`)},getOwner:function(){return Is===null?null:Is.componentStack}},Rs=0,zs,Bs,Vs,Hs,Us,Ws,Gs;Ct.__reactDisabledLog=!0;var Ks,qs,Js=!1,Ys=new(typeof WeakMap==`function`?WeakMap:Map),Xs={react_stack_bottom_frame:function(e,t,n){return e(t,n)}},Zs=Xs.react_stack_bottom_frame.bind(Xs),Qs={react_stack_bottom_frame:function(e){return e.render()}},$s=Qs.react_stack_bottom_frame.bind(Qs),ec={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},tc=ec.react_stack_bottom_frame.bind(ec),nc=0;if(typeof performance==`object`&&typeof performance.now==`function`)var rc=performance,ic=function(){return rc.now()};else{var ac=Date;ic=function(){return ac.now()}}var oc=4,sc=0,cc=1,lc=2,uc=3,dc=4,fc=5,pc=14,mc=null,hc={},gc={},_c={},vc={},yc=!1,bc=!1,xc=!1,Sc=0,Cc=!1;Wn(),Wn(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Ft(e,o,L(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),B(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Bn(s,e)},cancel:function(e){s.destination=null,Vn(s,e)}},{highWaterMark:0});e={postponed:Un(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)Vn(s,c.reason);else{var l=function(){Vn(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}Rn(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Pt(e,l,L(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),B(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Bn(u,e)},cancel:function(e){u.destination=null,Vn(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Vn(u,d.reason);else{var f=function(){Vn(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}Rn(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=It(e,t,L(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Bn(c,e)},cancel:function(e){c.destination=null,Vn(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)Vn(c,l.reason);else{var u=function(){Vn(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}Rn(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Lt(e,t,L(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Bn(a,e)},cancel:function(e){a.destination=null,Vn(a,e)}},{highWaterMark:0});e={postponed:Un(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)Vn(a,o.reason);else{var s=function(){Vn(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}Rn(a)})},e.version=`19.2.4`})()})),b=l(s((e=>{var t,n;process.env.NODE_ENV===`production`?(t=g(),n=_()):(t=v(),n=y()),e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToReadableStream=n.renderToReadableStream,e.resume=n.resume}))(),1),x=l(f(),1),S=function(e,t){var n=this;Object.defineProperty(this,`element`,{get(){return e?e.querySelector(`[data-boc-content]`):null},set(e){n.mainElement=e}}),Object.defineProperty(this,`mainElement`,{get(){return e},set(t){e=t,e&&(e.innerHTML=`
|
|
206
|
-
<style>
|
|
207
|
-
.boc-dark, .boc-light{ display: flex; }
|
|
208
|
-
[data-boc-left]{ display: none; }
|
|
209
|
-
[data-boc-right]{ height: 100%; position: relative; overflow:hidden; flex-grow: 1; }
|
|
210
|
-
[data-boc-content]{ height: 100%; width: 100%; }
|
|
211
|
-
@media screen and (max-width: 500px) {
|
|
212
|
-
.boc-dark, .boc-light{ flex-direction: column; }
|
|
213
|
-
[data-boc-left]{ order: 2; height: 50vh; }
|
|
214
|
-
[data-boc-right]{ order: 1; }
|
|
215
|
-
}
|
|
216
|
-
</style>
|
|
217
|
-
<div data-boc-left></div>
|
|
218
|
-
<div data-boc-right>
|
|
219
|
-
<div data-boc-content></div>
|
|
220
|
-
</div>`)}}),Object.defineProperty(this,`leftElement`,{get(){return e.querySelector(`[data-boc-left]`)}}),n.init(e,t)};S.prototype.init=function(e,t){if(e&&!this._initCalled){this._initCalled=!0,(typeof e==`string`||e instanceof String)&&(e=document.querySelector(e)),this.element=e;var n=this;if(this.config=S.mergeDeep(S._defaultConfig(t),t),this._layoutConfigs={base:{orientation:this.config.orientation,levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:this.config.assistantSeparation,subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:this.config.siblingSeparation,layout:this.config.layout,columns:this.config.columns,collapse:this.config.collapse,partnerNodeSeparation:this.config.partnerNodeSeparation}},this.config.tags)for(var r in this.config.tags){var i=this.config.tags[r];i.subTreeConfig!=null&&(this._layoutConfigs[r]={orientation:i.subTreeConfig.orientation==null?this.config.orientation:i.subTreeConfig.orientation,levelSeparation:i.subTreeConfig.levelSeparation==null?this.config.levelSeparation:i.subTreeConfig.levelSeparation,mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation==null?this.config.mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation,assistantSeparation:i.subTreeConfig.assistantSeparation==null?this.config.assistantSeparation:i.subTreeConfig.assistantSeparation,subtreeSeparation:i.subTreeConfig.subtreeSeparation==null?this.config.subtreeSeparation:i.subTreeConfig.subtreeSeparation,siblingSeparation:i.subTreeConfig.siblingSeparation==null?this.config.siblingSeparation:i.subTreeConfig.siblingSeparation,layout:i.subTreeConfig.layout==null?this.config.layout:i.subTreeConfig.layout,columns:i.subTreeConfig.columns==null?this.config.columns:i.subTreeConfig.columns,collapse:i.subTreeConfig.collapse==null?this.config.collapse:i.subTreeConfig.collapse,partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation==null?this.config.partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation,template:i.subTreeConfig.template})}this._event_id=S._guid(),S._validateConfig(this.config)&&(this._vScroll={},this.config.ui||(this.ui=S.ui),this.config.editUI?this.editUI=this.config.editUI:this.editUI=new S.editUI,this.editUI.init(this),this.config.filterUI?this.filterUI=this.config.filterUI:this.filterUI=new S.filterUI,this.filterUI.init(this),this.manager=new S.manager(this),this._ai=new S._ai(this),this.config.searchUI?this.searchUI=this.config.searchUI:this.searchUI=new S.searchUI,this.config.aiUI?this.aiUI=this.config.aiUI:this.aiUI=new S.aiUI,this.config.orgScribeUI?this.orgScribeUI=this.config.orgScribeUI:this.orgScribeUI=new S.orgScribeUI,this.config.powerPointPreviewUI?this.powerPointPreviewUI=this.config.powerPointPreviewUI:this.powerPointPreviewUI=new S.exportUI(`pptx`),this.config.pdfPreviewUI?this.pdfPreviewUI=this.config.pdfPreviewUI:this.pdfPreviewUI=new S.exportUI(`pdf`),this.config.svgPreviewUI?this.svgPreviewUI=this.config.svgPreviewUI:this.svgPreviewUI=new S.exportUI(`svg`),this.config.pngPreviewUI?this.pngPreviewUI=this.config.pngPreviewUI:this.pngPreviewUI=new S.exportUI(`png`),this.config.nodeMenuUI?this.nodeMenuUI=this.config.nodeMenuUI:this.nodeMenuUI=new S.menuUI,this.nodeMenuUI.init(this,this.config.nodeMenu),this.config.nodeCircleMenuUI?this.nodeCircleMenuUI=this.config.nodeCircleMenuUI:this.nodeCircleMenuUI=new S.circleMenuUI,this.nodeCircleMenuUI.init(this,this.config.nodeCircleMenu),this.config.nodeContextMenuUI?this.nodeContextMenuUI=this.config.nodeContextMenuUI:this.nodeContextMenuUI=new S.menuUI,this.nodeContextMenuUI.init(this,this.config.nodeContextMenu),this.config.controlsUI?this.controlsUI=this.config.controlsUI:this.controlsUI=new S.controlsUI,this.config.toolbarUI?this.toolbarUI=this.config.toolbarUI:this.toolbarUI=new S.toolbarUI,this.config.notifierUI?this.notifierUI=this.config.notifierUI:this.notifierUI=new S.notifierUI,this.notifierUI.init(this),this.config.menuUI?this.menuUI=this.config.menuUI:this.menuUI=new S.menuUI,this.menuUI.init(this,this.config.menu),this.config.xScrollUI||(this.xScrollUI=new S.xScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,S.action.xScroll)})),this.config.yScrollUI||(this.yScrollUI=new S.yScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,S.action.xScroll)})),this.config.undoRedoUI?this.undoRedoUI=this.config.undoRedoUI:this.undoRedoUI=new S.undoRedoUI,this.mainElement.classList.add(`boc-`+this.config.mode),this._gragStartedId=null,this._timeout=null,this._touch=null,this._initialized=!1,this._loaded=!1,this._moveInterval=null,this._movePosition=null,this.response=null,this.nodes=null,this.isVisible=null,this._connectorLines={x:{},y:{}},S._intersectionObserver(this.element,function(e){n.isVisible=e,S.events.publish(`visibility-change`,[n])!==!1&&S.LAZY_LOADING&&n.isVisible&&(n._loaded?n._draw(!1,S.action.update):(n._setInitialSizeIfNotSet(),n._draw(!1,S.action.init)))}),this._resizeObserver=new ResizeObserver(e=>{for(let t of e){let{width:e,height:r}=t.contentRect;n._resizeHandler(e,r)}}),this._resizeObserver.observe(this.element))}},S.prototype.load=function(e,t){var n=this;return this.config.nodes=e,this._draw(!1,S.action.init,void 0,function(){n.filterUI.update(),t&&t()}),this},S.prototype.loadXML=function(e,t){var n=S._xml2json(e);return this.load(n,t)},S.prototype.getXML=function(){return S._json2xml(this.config.nodes)},S.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.prototype.removeListener=function(e,t){return S.events.remove(e,t,this._event_id)},S.prototype.draw=function(e,t,n){e??=S.action.update,this._draw(!1,e,t,n)},S.prototype._draw=function(e,t,n,r){var i=this;if(!(S.LAZY_LOADING&&!this.isVisible)){if(!S.LAZY_LOADING&&!this._initialized&&(this._setInitialSizeIfNotSet(),this.width()==0||this.height()==0)){console.error(`Cannot load the chart with size 0! If you are using the OrgChart within tabs set OrgChart.LAZY_LOADING to true! `);return}this._hideBeforeAnimationCompleted=!1;var a=t==S.action.init?null:this.getViewBox();this.manager.read(e,this.width(),this.height(),a,t,n,function(e){if(!i.notifierUI.show(e.notif)){t!=S.action.exporting&&(i.nodes=e.nodes,i.visibleNodeIds=e.visibleNodeIds,i.roots=e.roots),i._connectorLines={x:{},y:{}},i.editUI.fields=e.allFields;var a={defs:``};S.events.publish(`renderdefs`,[i,a]);var o=i.ui.defs(a.defs),s=i.getScale(e.viewBox);o+=i.ui.pointer(i.config,t,s);var c=i.getViewBox(),l=e.viewBox,a={content:o,res:e};S.events.publish(`prerender`,[i,a]),o=a.content;var u=[];if(S.RENDER_LINKS_BEFORE_NODES)for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]];S.getRootOf(f).stParent?u.push(f.id):o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);if(S.RENDER_LINKS_BEFORE_NODES&&u.includes(f.id)&&(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),f.isTreeListItem||(o+=i.ui.node(f,p,e.animations,i.config,void 0,void 0,void 0,t,s,i)),!f.min&&f.treeList){var m=function(n){if(!f.treeList.pinnedIds.includes(n.id)){var r=i._get(n.id);o+=i.ui.node(n,r,e.animations,i.config,void 0,void 0,void 0,t,s,i),o+=i.ui.expandCollapseBtn(i,n,r,i.config,i._layoutConfigs,t,s)}for(var a of n.children)m(a)},h=S.randomId();o+=`<clipPath id="treelist_${h}">
|
|
221
|
-
<rect rx="10" ry="10" x="${f.x+f.padding[3]}" y="${f.y+f.padding[0]}" width="${f.w-f.padding[1]-f.padding[3]}" height="${f.h-f.padding[2]-f.padding[0]}">
|
|
222
|
-
</clipPath><g clip-path="url(#treelist_${h})"><g data-treelist-content="${f.id}" transform="matrix(1,0,0,1,0,-${f.treeList.scrollTop})">`;for(var g of f.stChildren)m(g);for(var _ of f.treeList.pinnedIds){var v=i.getNode(_),y=i._get(_);o+=i.ui.node(v,y,e.animations,i.config,void 0,void 0,void 0,t,s,i,!0),o+=i.ui.expandCollapseBtn(i,v,y,i.config,i._layoutConfigs,t,s)}var{thumbHeight:b,thumbPosition:x,scrollBarDisplay:C}=S._treeListGetTumbPositionFromScrollTop(f);o+=`</g>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<rect style="display: ${C}" data-treelist-scroll="${f.id}" class="boc-scroll" x="${f.x+f.w-f.padding[1]-S.TREELIST_SCROLLBAR_WIDTH}" y="${f.y+f.padding[0]}" width="${S.TREELIST_SCROLLBAR_WIDTH}" height="${f.h-f.padding[2]-f.padding[0]}"></rect>
|
|
226
|
-
<rect style="display: ${C}" data-treelist-thumb="${f.id}" class="boc-scroll-thumb" x="${f.x+f.w-f.padding[1]-S.TREELIST_SCROLLBAR_WIDTH}" y="${x}" width="${S.TREELIST_SCROLLBAR_WIDTH}" height="${b}"></rect>
|
|
227
|
-
|
|
228
|
-
</g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(S.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(S.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===S.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===S.action.centernode||t===S.action.insert||t===S.action.expand||t===S.action.collapse||t===S.action.update)&&(l=c),t===S.action.init&&c!=null&&(l=c),t===S.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);S.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),S.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===S.action.centerNode?S.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),S.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===S.action.insert||t===S.action.expand||t===S.action.collapse||t===S.action.update||t===S.action.init)?S.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),S.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),S.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),S.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){S.events.publish(`ready`,[i,e])})}},S.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},S.prototype.width=function(){return this.element.offsetWidth},S.prototype.height=function(){return this.element.offsetHeight},S.prototype.getViewBox=function(){var e=this.getSvg();return S._getViewBox(e)},S.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},S.prototype.getScale=function(e){return e||=this.getViewBox(),S.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},S.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),S.events.publish(`redraw`,[this]),e},S.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),h=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),_=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),v=S.randomId();h.setAttribute(`id`,v);var y={ripple:S.t(r.templateName,r.min,this.getScale()).ripple,node:r};S.events.publish(`ripple`,[this,y]),g.setAttribute(`x`,y.ripple.rect?y.ripple.rect.x:0),g.setAttribute(`y`,y.ripple.rect?y.ripple.rect.y:0),g.setAttribute(`width`,y.ripple.rect?y.ripple.rect.width:r.w),g.setAttribute(`height`,y.ripple.rect?y.ripple.rect.height:r.h),g.setAttribute(`rx`,y.ripple.radius),g.setAttribute(`ry`,y.ripple.radius),_.setAttribute(`clip-path`,`url(#`+v+`)`),_.setAttribute(`cx`,o),_.setAttribute(`cy`,s),_.setAttribute(`r`,0),_.setAttribute(`fill`,y.ripple.color),_.setAttribute(`class`,`boc-ripple`),h.appendChild(g),m.appendChild(h),m.appendChild(_),i.appendChild(m),S.animate(_,{r:0,opacity:1},{r:p,opacity:0},500,S.anim.outPow,function(){i.removeChild(m)})}}},S.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=S.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(S.action.update,null,function(){e&&e.call(n)})})}},S.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),h=this.height(),u=m/n[2],d=h/n[3],g=u>d?d:u,_=n,v=n[2],y=n[3];n[2]/=f/g,n[3]/=f/g,n[0]=_[0]-(n[2]-v)/(100/p[0]),n[1]=_[1]-(n[3]-y)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(h/f-l)/2;var b=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=S.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){b.draw(S.action.update,null,function(){t&&t.call(b)})})},S.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,S.action.centerNode,{id:e,options:c},n)},S.prototype.fit=function(e){this.config.scaleInitial=S.match.boundary,this._draw(!0,S.action.init,{method:`fit`},e)},S.prototype.fitIfOutside=function(e){this.config.scaleInitial=S.match.boundaryIfOutside,this._draw(!0,S.action.init,{method:`fit`},e)},S.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+S.attr.tlbr+`r='fullScreen']`);document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=S.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=S.toolbarUI.closeFullScreenIcon))},S.prototype.getNode=function(e){return this.nodes[e]},S.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,S.action.update)},S.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,S.action.update,void 0,function(){r.getScale(),S._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,S.action.pan),n&&n()})})},S.prototype.search=function(e,t,n){return S.isNEU(t)&&(t=this.searchUI._searchFields),S.isNEU(n)&&(n=t),S._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},S.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<S.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>S.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>S.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+S.attr.link_id+`]`);if(i.length>S.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+S.attr.control_expcoll_id+`]`);if(a.length>S.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+S.attr.control_up_id+`]`);if(o.length>S.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},S.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+S.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+S.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+S.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},S.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},S.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},S.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join(`*`),e.min=this.manager.state.min.join(`*`),e.adjustify=this.manager.state.adjustify.x+`*`+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return``},S.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},S.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,h=s-l+this.config.padding*2,g=f/m,_=p/h,v=g>_?_:g,y=Math.ceil(f/v),b=Math.ceil(p/v),m=0,h=0;if(y-this.config.padding*2>=o-c)m=(o+c)/2-y/2;else switch(m=r.x-y/2+S.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case S.orientation.right:case S.orientation.right_top:m=-(y/2-(c-o)/2),m<this.config.padding-y&&(m=this.config.padding-y);break;case S.orientation.left:case S.orientation.bottom_left:case S.orientation.top_left:case S.orientation.left_top:m=-(y/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(b-this.config.padding*2>=s-l)h=(s+l)/2-b/2;else switch(h=-(b/2-(s-l)/2),h>-this.config.padding&&(h=-this.config.padding),this.config.orientation){case S.orientation.bottom:case S.orientation.bottom_left:h=-(b/2-(l-s)/2),h<this.config.padding-b&&(h=this.config.padding-b);break;case S.orientation.left:case S.orientation.right:h=r.y-b/2+S.manager._getNodeWidth(r,this.config)/2;break}var x=[m,h,y,b];a[0]!==x[0]||a[1]!==x[1]?S.animate(i,{viewBox:a},{viewBox:x},this.config.anim.duration,this.config.anim.func,function(){n.draw(S.action.update,void 0,t)}):t&&t()}},S.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!S.isNEU(e.pid)&&this.getNode(e.pid)},S.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),S.events.removeForEventId(this._event_id),this.element.innerHTML=null},S._defaultConfig=function(e){return{interactive:!0,mode:`light`,lazyLoading:`auto`,enableDragDrop:!1,enableSearch:!0,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:S.action.details,nodeMouseDbClick:S.none,mouseScrool:S.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:`ana`,tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:S.orientation.top,layout:S.layout.normal,layoutGridColumns:`dynamic`,scaleInitial:S.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:`https://balkan.app/export`,serverUrl:`https://serverjs.balkan.app`,aiChatTools:[],collapse:{},expand:{},align:S.CENTER,UI:null,anim:{func:S.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:{readOnly:!1,titleBinding:`name`,photoBinding:`img`,addMore:`Add more fields`,addMoreBtn:`Add`,addMoreFieldName:`Field name`,saveAndCloseBtn:`Save and close`,generateElementsFromFields:!0,focusBinding:null,buttons:{edit:{icon:S.icon.edit(24,24,`#fff`),text:`Edit`,hideIfEditMode:!0,hideIfDetailsMode:!1},share:{icon:S.icon.share(24,24,`#fff`),text:`Share`},pdf:{icon:S.icon.pdf(24,24,`#fff`),text:`Save as PDF`},remove:{icon:S.icon.remove(24,24,`#fff`),text:`Remove`,hideIfDetailsMode:!0}},elements:[]}}},S.localStorage={},S.localStorage.getItem=function(e){var t=localStorage.getItem(`to_date`);if(!t)t=new Date,t.setDate(t.getDate()+5),t=t.toISOString(),localStorage.setItem(`to_date`,t);else if(t=new Date(t),t<new Date){for(var n=0,r=localStorage.length;n<r;++n){var i=localStorage.key(n);i&&i.startsWith&&i.startsWith(`{"n"`)&&localStorage.removeItem(i)}localStorage.removeItem(`to_date`)}return localStorage.getItem(e)},S.localStorage.setItem=function(e,t){try{localStorage.setItem(e,t)}catch(e){e.code==e.QUOTA_EXCEEDED_ERR?(console.warn(`Local storage quota exceeded`),localStorage.clear()):(console.error(`Local storage error code:`+e.code),console.error(e))}},S.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},S.prototype._canUpdateLink=S.prototype.canUpdateLink,S.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&S.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),S.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,S.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},S.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},S.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&S.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),S.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,S.action.update,null,function(){t&&t()}),!0)},S.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},S.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},S.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&S.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),S.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,S.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},S.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!S.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},S.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,S.action.update,void 0,t)},S.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)S.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!S.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!S.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!S.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},S.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!S.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},S.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},S.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},S.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},S===void 0&&(S={}),S._ajax=function(e,t,n,r,i){r??=`arraybuffer`;var a=new XMLHttpRequest;for(var o in a.onload=function(e){a.readyState==4&&this.status===200&&(e.target==null?i(this.response):i(e.target.response))},a.onerror=function(e){i({error:e})},a.open(t,e),a.responseType=r,a.setRequestHeader(`Content-Type`,`application/json`),S.REQUEST_CUSTOM_HEADERS)a.setRequestHeader(o,S.REQUEST_CUSTOM_HEADERS[o]);n==null?a.send():a.send(n)},S===void 0&&(S={}),S.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=S._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var h=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],g=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+h+` `+g);break;case`r`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,_);break;case`x1`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,_);break;case`x2`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,_);break;case`y1`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,_);break;case`y2`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,_);break;case`scrolltop`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=_;break;case`rotate3d`:if(n[f][p]){var v=t[f][p],y=n[f][p],b=[0,0,0,0];for(var x in v)b[x]=i((l*s-s)/r)*(y[x]-v[x])+v[x];e[f].style.transform=`rotate3d(`+b.toString()+`deg)`}break;case`transform`:if(n[f][p]){var v=t[f][p],y=n[f][p],b=[0,0,0,0,0,0];for(var x in v)b[x]=i((l*s-s)/r)*(y[x]-v[x])+v[x];e[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+b.toString()+`)`):e[f].style.transform=`matrix(`+b.toString()+`)`}break;case`viewbox`:if(n[f][p]){var v=t[f][p],y=n[f][p],b=[0,0,0,0];for(var x in v)b[x]=i((l*s-s)/r)*(y[x]-v[x])+v[x];e[f].setAttribute(`viewBox`,b.toString())}break;case`margin`:if(n[f][p]){var v=t[f][p],y=n[f][p],b=[0,0,0,0];for(var x in v)b[x]=i((l*s-s)/r)*(y[x]-v[x])+v[x];for(var C=``,x=0;x<b.length;x++)C+=parseInt(b[x])+`px `;e[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,_);break;default:var _=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=_+m);break}}if(o){var _=i((l*s-s)/r);o(_)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},S.anim={},S.anim.inPow=function(e){return e<0?0:e>1?1:e**2},S.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},S.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return S.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},S.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},S.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},S.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},S.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},S.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},S.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},S.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},S.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},S.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},S.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},S.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},S.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},S.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},S.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},S.anim.expPulse=function(e){return Math.exp(-2*e**2)},S===void 0&&(S={}),S.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),t=this;e.addEventListener(`touchstart`,function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`mousedown`,function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener(`contextmenu`,function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`dblclick`,function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=S.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},S===void 0&&(S={}),S.VERSION=`9.2.31`,S.orientation={},S.orientation.top=0,S.orientation.bottom=1,S.orientation.right=2,S.orientation.left=3,S.orientation.top_left=4,S.orientation.bottom_left=5,S.orientation.right_top=6,S.orientation.left_top=7,S.anchor={top_right:`top_right`,right_top:`right_top`,bottom_right:`bottom_right`,right_bottom:`right_bottom`,top_left:`top_left`,left_top:`left_top`,bottom_left:`bottom_left`,left_bottom:`left_bottom`,top:`top`,bottom:`bottom`,left:`left`,right:`right`},S.align={},S.align.center=S.CENTER=8,S.align.orientation=S.ORIENTATION=9,S.attr={},S.attr.l=`data-l`,S.attr.id=`data-id`,S.attr.sl=`data-sl`,S.attr.lbl=`data-lbl`,S.attr.val=`data-val`,S.attr.tlbr=`data-tlbr`,S.attr.item=`data-item`,S.attr.layout=`data-layout`,S.attr.node_id=`data-n-id`,S.attr.link_id=`data-l-id`,S.attr.field_name=`data-f-name`,S.attr.c_link_to=`data-c-l-to`,S.attr.c_link_from=`data-c-l-from`,S.attr.s_link_to=`data-s-l-to`,S.attr.s_link_from=`data-s-l-from`,S.attr.control_add=`data-ctrl-add`,S.attr.control_expcoll_id=`data-ctrl-ec-id`,S.attr.control_up_id=`data-ctrl-up-id`,S.attr.control_export_menu=`data-ctrl-menu`,S.attr.control_node_menu_id=`data-ctrl-n-menu-id`,S.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,S.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,S.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,S.attr.width=`data-width`,S.attr.text_overflow=`data-text-overflow`,S.ID=`id`,S.PID=`pid`,S.STPID=`stpid`,S.TAGS=`tags`,S.NODES=`nodes`,S.ELASTIC=`elastic`,S.ASSISTANT=`Assistant`,S.action={},S.action.expand=0,S.action.collapse=1,S.action.maximize=101,S.action.minimize=102,S.action.expandCollapse=501,S.action.edit=1,S.action.zoom=2,S.action.ctrlZoom=22,S.action.scroll=41,S.action.xScroll=3,S.action.yScroll=4,S.action.none=5,S.action.init=6,S.action.update=7,S.action.move=70,S.action.pan=8,S.action.centerNode=9,S.action.resize=10,S.action.insert=11,S.action.insertfirst=12,S.action.details=13,S.action.exporting=14,S.none=400001,S.scroll={},S.scroll.visible=!0,S.scroll.smooth=12,S.scroll.speed=120,S.scroll.safari={smooth:12,speed:250},S.match={},S.match.height=100001,S.match.width=100002,S.match.boundary=100003,S.match.boundaryIfOutside=100004,S.match.none=1,S.movable={},S.movable.node=`node`,S.movable.tree=`tree`,S.movable.detachTree=`detachTree`,S.layout={},S.layout.normal=S.normal=0,S.layout.mixed=S.mixed=1,S.layout.tree=S.tree=2,S.layout.treeLeftOffset=S.treeLeftOffset=3,S.layout.treeRightOffset=S.treeRightOffset=4,S.layout.treeLeft=5,S.layout.treeRight=6,S.layout.grid=-1,S.layout.treeList=-2,S.nodeOpenTag=`<g `+S.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+S.attr.sl+`="{sl}" `+S.attr.l+`="{level}" {lcn}>`,S.linkOpenTag=`<g `+S.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,S.expcollOpenTag=`<g `+S.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,S.upOpenTag=`<g `+S.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,S.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,S.grCloseTag=`</g>`,S.A5={width:420,height:595},S.A4={width:595,height:842},S.A3={width:842,height:1191},S.A2={width:1191,height:1684},S.A1={width:1684,height:2384},S.Letter={width:612,height:791},S.Legal={width:612,height:1009},S.Legal={width:612,height:1009},S.Widescreen={width:720,height:1280},S.Standard={width:720,height:960},S.COLLAPSE_PARENT_NEIGHBORS=1,S.COLLAPSE_SUB_CHILDRENS=2,S.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,S.TEXT_THRESHOLD=4e3,S.IMAGES_THRESHOLD=1e3,S.LINKS_THRESHOLD=2e3,S.BUTTONS_THRESHOLD=700,S.ANIM_THRESHOLD=500,S.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+S.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,S.RES={},S.IT_IS_LONELY_HERE_LINK=S.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,S.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,S.STRING_TAGS=!1,S.MAX_NODES_MESS=`The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,S.OFFLINE_MESS=`The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,S.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,S.SEARCH_HELP_SYMBOL=`?`,S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,S.SEARCH_RESULT_LIMIT=10,S.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,S.FIXED_POSITION_ON_CLICK=!1,S.RENDER_LINKS_BEFORE_NODES=!1,S.RENDER_CLINKS_BEFORE_NODES=!1,S.MIXED_LAYOUT_ALL_NODES=!1,S.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,S.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,S.LINK_ROUNDED_CORNERS=5,S.MOVE_STEP=5,S.CLINK_CURVE=1,S.MAX_DEPTH=200,S.SCALE_FACTOR=1.44,S.LAZY_LOADING_FACTOR=`auto`,S.LAZY_LOADING=!0,S.ARRAY_FIELDS=[`tags`],S.CSV_DELIMITER=`,`,S.EDITFORM_CLOSE_BTN=`<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>`,S.ESCAPE_HTML=!1,S.VERTICAL_CHILDREN_ASSISTANT=!1,S.EXPORT_PAGES_CUT_NODES=!1,S.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,S.FILTER_ALPHABETICALLY=!0,S.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,S.FUNC_URL_NAME=`func-url-orgchartjs`,S.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,S.AI_SYSTEM_MESSAGES=[],S.ORGSCRIBE_OFFSET=` `,S.TREELIST_WHEEL_STEP=`auto`,S.TREELIST_SCROLLBAR_WIDTH=10,S.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,S.REQUEST_CUSTOM_HEADERS={},S.SLINK_GAP=7,S._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},S._addPoint=function(e,t,n,r,i){switch(n.orientation){case S.orientation.top:case S.orientation.top_left:return S._addPointTop(e,t,n,r,i);case S.orientation.bottom:case S.orientation.bottom_left:return S._addPointBottom(e,t,n,r,i);case S.orientation.left:case S.orientation.left_top:return S._addPointLeft(e,t,n,r,i);case S.orientation.right:case S.orientation.right_top:return S._addPointRight(e,t,n,r,i)}},S._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},S._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},S._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},S._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},S._addConnectorLines=function(e,t){S._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),S._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),S._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},S._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},S._addLineToPath=function(e,t,n){return S._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),S._addConnectorLine(t,n),n},S._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},S._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==S.orientation.top||r==S.orientation.top_left?n==`left`?o[0]-=S.SLINK_GAP:n==`right`&&(o[0]+=S.SLINK_GAP):(r==S.orientation.bottom||r==S.orientation.bottom_left)&&(n==`right`?o[0]+=S.SLINK_GAP:n==`left`&&(o[0]-=S.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==S.orientation.top||r==S.orientation.top_left?o[1]-=S.SLINK_GAP:(r==S.orientation.bottom||r==S.orientation.bottom_left)&&(o[1]+=S.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&S._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},S._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==S.orientation.top||n==S.orientation.top_left?a[1]-=S.SLINK_GAP:(n==S.orientation.bottom||n==S.orientation.bottom_left)&&(a[1]+=S.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||S._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},S._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==S.orientation.left||r==S.orientation.left_top?n==`top`?o[1]-=S.SLINK_GAP:n==`bottom`&&(o[1]+=S.SLINK_GAP):(r==S.orientation.right||r==S.orientation.right_top)&&(n==`bottom`?o[1]+=S.SLINK_GAP:n==`top`&&(o[1]-=S.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==S.orientation.left||r==S.orientation.left_top?o[0]-=S.SLINK_GAP:(r==S.orientation.right||r==S.orientation.right_top)&&(o[0]+=S.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&S._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},S._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==S.orientation.left||n==S.orientation.left_top?a[0]-=S.SLINK_GAP:(n==S.orientation.right||n==S.orientation.right_top)&&(a[0]+=S.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||S._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},S.editUI=function(){},S.editUI.prototype.init=function(e){this.obj=e,this.fields=null,this.nodeId=null,this.detailsMode=null,this._event_id=S._guid()},S.editUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.editUI.prototype.show=function(e,t,n){if(this.hide(!0)){if(this.nodeId=e,this.detailsMode=t,S.events.publish(`show`,[this,e])===!1)return!1;var r=this,i=this.content(e,t,n);this.obj.element.appendChild(i.element),S.input.init(this.obj.element),S.events.publish(`shown`,[this,{nodeId:e}]),n?t||this._focusElement(i.focusId):this.interval=S.animate(i.element,{right:-20,opacity:0},{right:0,opacity:1},300,S.anim.outSin,function(){t||r._focusElement(i.focusId)}),this.obj.element.querySelector(`[data-edit-from-close]`).addEventListener(`click`,function(t){t.preventDefault(),S.events.publish(`cancel`,[r,{id:e}])!==!1&&r.hide()}),this.obj.element.querySelector(`[data-edit-from-save]`).addEventListener(`click`,function(e){e.preventDefault(),r.hide()});for(var a=this.obj.element.querySelectorAll(`[data-input-btn]`),o=0;o<a.length;o++)a[o].addEventListener(`click`,function(t){t.preventDefault(),S.events.publish(`element-btn-click`,[r,{input:this.parentNode.querySelector(`input`),nodeId:e,event:t}])});this.obj.element.querySelector(`[data-add-more-fields-btn]`).addEventListener(`click`,function(e){e.stopPropagation(),e.preventDefault();var t=this,n=S.elements.textbox({},{type:`textbox`,label:r.obj.config.editForm.addMoreFieldName,btn:r.obj.config.editForm.addMoreBtn},`280px`);t.parentNode.insertAdjacentHTML(`beforebegin`,n.html),t.style.display=`none`,S.input.init(t.parentNode.previousSibling);var i=document.getElementById(n.id);i.focus(),i.nextElementSibling.addEventListener(`click`,function(e){e.stopPropagation(),e.preventDefault();var n=i.value,a=r.obj.element.querySelector(`[data-binding="`+S._escapeDoubleQuotes(i.value)+`"]`);if(!S.isNEU(n)&&!a){var o=S.elements.textbox({},{type:`textbox`,label:n,binding:n},`280px`);i.parentNode.parentNode.parentNode.removeChild(i.parentNode.parentNode),t.parentNode.insertAdjacentHTML(`beforebegin`,o.html),t.style.display=``,S.input.init(t.parentNode.previousSibling);var s=document.getElementById(o.id);s.focus(),s.addEventListener(`input`,function(){r._drawCurrentNodeElement()})}else i.focus()})}),this.obj.element.querySelector(`[data-boc-edit-from-btns]`).addEventListener(`click`,function(t){for(var n=t.target;n&&n.hasAttribute&&!n.hasAttribute(`data-edit-from-btn`);)n=n.parentNode;if(n&&n.hasAttribute){var i=n.getAttribute(`data-edit-from-btn`),a={button:r.obj.config.editForm.buttons[i],name:i,nodeId:e,event:t};if(S.events.publish(`button-click`,[r,a])===!1)return!1;switch(i){case`edit`:r.obj.editUI.show(e,!1,!0);break;case`pdf`:r.obj.exportToPDFProfile(e),r.hide();break;case`share`:r.obj.shareProfile(e);break;case`remove`:r.obj.removeNode(e,null,!0),r.hide();break}}});for(var s=this.obj.element.querySelectorAll(`[data-boc-edit-form] [data-binding]`),o=0;o<s.length;o++){var c=s[o];c.getAttribute(`data-binding`)&&c.addEventListener(`input`,function(){r._drawCurrentNodeElement()})}}},S.editUI.prototype._drawCurrentNodeElement=function(){var e=this.obj.element.querySelector(`[data-boc-edit-form]`),t=S.input.getData(e),n=this.obj.get(this.nodeId),r=this.obj.getNode(this.nodeId),i=S.mergeDeep(n,t),a=this.obj.ui.node(r,i,[],this.obj.config,void 0,void 0,void 0,void 0,this.obj.getScale(),this.obj);this._replaceNodeWith(a)},S.editUI.prototype._replaceNodeWith=function(e){var t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);t.innerHTML=e;var n=t.firstElementChild;this.obj.getNodeElement(this.nodeId).replaceWith(n)},S.editUI.prototype.setAvatar=function(e){var t=this.obj.element.querySelector(`[id="boc-avatar"]`),n=this.obj.element.querySelector(`[id="boc-avatar"] img`),r=this.obj.element.querySelector(`[id="boc-avatar"] svg`);if(t)n?n.setAttribute(`src`,e):r&&(t.innerHTML=`<img style="width: 100%;height:100%;border-radius: 50%;object-fit:cover;" src="${e}">`);else return;this._drawCurrentNodeElement()},S.editUI.prototype.save=function(e){var t=this.obj.element.querySelector(`[data-boc-edit-form]`),n=S.input.validateAndGetData(t);if(n!==!1){var r=this.obj.get(this.nodeId),i={data:S.mergeDeep(r,n)};return S.events.publish(`save`,[this,i])===!1?void 0:(this.obj.updateNode(i.data,null,!0,e),!0)}return!1},S.editUI.prototype._focusElement=function(e){var t=null;S.isNEU(this.obj.config.editForm.focusBinding)?S.isNEU(e)||(t=document.getElementById(e)):t=this.obj.element.querySelector(`[data-binding="`+this.obj.config.editForm.focusBinding+`"]`),t&&(t.value&&t.value.length&&t.setSelectionRange(t.value.length,t.value.length),t.focus())},S.editUI.prototype.content=function(e,t,n,r,i){var a=this.obj.config.editForm.readOnly,o=JSON.parse(JSON.stringify(this.obj.config.editForm.elements)),s=this.obj.config.editForm.addMore,c=this.obj.config.editForm.saveAndCloseBtn,l=this.obj.config.editForm.buttons,u=this.obj.config.editForm.titleBinding,d=this.obj.config.editForm.photoBinding,f=this.obj.getNode(e),p=this.obj._get(e),m=S.t(f.templateName,f.min,this.obj.getScale()),h=p[u],g=p[d];if(this.obj.config.editForm.generateElementsFromFields)for(var _=0;_<this.fields.length;_++){var v=this.fields[_];if(v!=`tags`){for(var y=!1,b=0;b<o.length;b++){if(Array.isArray(o[b])){for(var x=0;x<o[b].length;x++)if(v==o[b][x].binding){y=!0;break}}else if(v==o[b].binding){y=!0;break}if(y)break}y||o.push({type:`textbox`,label:v,binding:v})}}S.isNEU(h)&&(h=``),g=S.isNEU(g)?S.icon.user(150,150,`#8C8C8C`,0,0):`<img style="width: 100%;height:100%;border-radius: 50%;object-fit:cover;" src="${g}"></img>`;var C,w=!t,T=t?`display:none;`:``,E=t||!s?`display:none;`:``,D=m.editFormHeaderColor?`style="background-color:${m.editFormHeaderColor};"`:``,O=document.createElement(`form`);if(O.setAttribute(`data-boc-edit-form`,``),O.classList.add(`boc-edit-form`),O.classList.add(this.obj.config.mode),O.classList.add(f.templateName.replaceAll(` `,``)),O.classList.add(S.ui._defsIds[f.templateName]),Array.isArray(f.tags)&&f.tags.length)for(var _=0;_<f.tags.length;_++)O.classList.add(f.tags[_].replaceAll(` `,``));O.style.display=`flex`,O.style.opacity=n?1:0,O.style.right=n?0:`-20px`,r&&(O.style.width=r);var k=[];return O.innerHTML=`<div>
|
|
229
|
-
<div class="boc-edit-form-header" ${D}>
|
|
230
|
-
${i?``:S.EDITFORM_CLOSE_BTN}
|
|
231
|
-
${S.editUI.renderHeaderContent(h,g,f,p)}
|
|
232
|
-
</div>
|
|
233
|
-
<div data-boc-edit-from-btns class="boc-edit-form-instruments">
|
|
234
|
-
${(function(){if(i)return``;var e=``;for(var n in l){var r=l[n];S.isNEU(r)||w&&r.hideIfEditMode||t&&r.hideIfDetailsMode||a&&r.text==`Edit`||(e+=`<div data-edit-from-btn='${n}' class="boc-img-button" ${D} title="${r.text}">${r.icon}</div>`)}return e})()}
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
<div class="boc-edit-form-fields">
|
|
238
|
-
<div class="boc-edit-form-fields-inner">
|
|
239
|
-
<div class="boc-form-fieldset">
|
|
240
|
-
${(function(){for(var e=``,n=0;n<o.length;n++){var r=o[n];if(Array.isArray(r)){e+=`<div class="boc-form-field-100 boc-form-fieldset">`;for(var i=0;i<r.length;i++){var a=r[i],s=S.elements[a.type](p,a,`unset`,t);!S.isNEU(s.id)&&S.isNEU(C)&&S.isNEU(s.value)&&(C=s.id),S.isNEU(s.value)||k.push(`${a.label}: ${s.value}`),e+=s.html}e+=`</div>`}else{var s=S.elements[r.type](p,r,`280px`,t);!S.isNEU(s.id)&&S.isNEU(C)&&S.isNEU(s.value)&&(C=s.id),S.isNEU(s.value)||k.push(`${r.label}: ${s.value}`),e+=s.html}}return e})()}
|
|
241
|
-
|
|
242
|
-
<div class="boc-form-field" style="min-width: 280px; text-align:center; ${E}">
|
|
243
|
-
<a data-add-more-fields-btn href="#" class="boc-link">${s}</a>
|
|
244
|
-
</div>
|
|
245
|
-
</div>
|
|
246
|
-
</div>
|
|
247
|
-
</div>
|
|
248
|
-
<div class="boc-form-fieldset" style="padding: 14px 10px; ${T}">
|
|
249
|
-
<div class="boc-form-field" style="min-width: initial;">
|
|
250
|
-
<button type="submit" data-edit-from-save type="button" class="boc-button">${c}</button>
|
|
251
|
-
</div>
|
|
252
|
-
</div>`,{element:O,focusId:C,title:h,shareText:k.join(`
|
|
253
|
-
`)}},S.editUI.prototype.hide=function(e){var t=this.obj.element.querySelector(`[data-boc-edit-form]`);if(t){if(!this.detailsMode&&!this.save(e))return;if(S.events.publish(`hide`,[this])===!1)return!1;S.isNEU(this.interval)&&(clearInterval(this.interval),this.interval=null),t.parentNode.removeChild(t),this.nodeId=null,this.detailsMode=null}return!0},S.editUI.renderHeaderContent=function(e,t,n,r){return`<h1 class="boc-edit-form-title">${S._escapeGreaterLessSign(e)}</h1>
|
|
254
|
-
<div id="boc-avatar" class="boc-edit-form-avatar">${t}</div>`},S.prototype.getSvg=function(){return this.element.querySelector(`svg`)},S.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},S.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+S.attr.node_id+`='`+e+`']`)},S.prototype.getMenuButton=function(){return this.element.querySelector(`[`+S.attr.control_export_menu+`]`)},S.menuUI=function(){},S.menuUI.prototype.init=function(e,t){this.obj=e,this.wrapper=null,this.menu=t,this._event_id=S._guid()},S.menuUI.prototype.showStickIn=function(e,t,n,r){var i=e.getBoundingClientRect(),a=i.left,o=i.top;return this.show(a,o,t,n,r)},S.menuUI.prototype.show=function(e,t,n,r,i){return this._show(e,t,n,r,i)},S.menuUI.prototype._show=function(e,t,n,r,i){var a=this;this.hide(),i||=this.menu;var o={firstNodeId:n,secondNodeId:r,menu:i};if(S.events.publish(`show`,[this,o])===!1||(i=o.menu,!i||Object.keys(i).length==0))return!1;var s=this.obj;this.wrapper=S.menuUI._createMenuElement(i,s),this.wrapper.addEventListener(`click`,function(e){for(var t=e.target,o=[];t&&t!==a.wrapper;)t.hasAttribute&&t.hasAttribute(`data-item`)&&o.unshift(t.getAttribute(`data-item`)),t=t.parentNode;if(o.length){var s=!0,c=i;for(var l of o){var c=c[l];c.subMenu&&(c=c.subMenu)}var u=c.onClick;S._onClickHandler(a.obj,l,u,n,r)===!1&&(s=!1),s&&a.hide()}}),setTimeout(()=>{a.wrapper.classList.add(`active`)},10);let c=window.innerWidth,l=window.innerHeight,u=this.wrapper.offsetWidth,d=this.wrapper.offsetHeight;return e+u>c&&(e=c-u-10),t+d>l&&(t=l-d-10),this.wrapper.style.left=`${e}px`,this.wrapper.style.top=`${t}px`,this.wrapper.querySelectorAll(`.boc-has-submenu`).forEach(e=>{e.addEventListener(`mouseenter`,()=>{var t=e.querySelector(`.boc-submenu`);if(t){t.classList.remove(`boc-submenu-left`),t.classList.remove(`boc-submenu-top`);var n=t.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight;n.right>r&&t.classList.add(`boc-submenu-left`),n.bottom>i&&t.classList.add(`boc-submenu-top`)}})}),!0},S.menuUI.prototype.isVisible=function(){return this.wrapper!=null},S.menuUI.prototype.hide=function(){this.wrapper!=null&&(this.obj.element.removeChild(this.wrapper),this.wrapper=null)},S.menuUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.menuUI._createMenuElement=function(e,t){var n=document.createElement(`div`);n.classList.add(`boc-menu`),n.setAttribute(`data-menu`,``),n.id=`custom-boc-menu`;var r=document.createElement(`table`);return r.classList.add(`boc-menu-options`),r.setAttribute(`cellpadding`,`0`),r.setAttribute(`cellspacing`,`0`),S.menuUI._createMenuItemElements(e,r),n.appendChild(r),t.element.appendChild(n),n},S.menuUI._createMenuItemElements=function(e,t){for(var n in e){var r=e[n],i=document.createElement(`tr`);i.classList.add(`boc-menu-item`),i.setAttribute(`data-item`,n);var a=document.createElement(`td`);if(a.classList.add(`boc-menu-submenu`),r.subMenu){var o=document.createElement(`table`);o.setAttribute(`cellpadding`,`0`),o.setAttribute(`cellspacing`,`0`),o.classList.add(`boc-submenu`),S.menuUI._createMenuItemElements(r.subMenu,o),i.classList.add(`boc-has-submenu`),a.appendChild(o)}var s=r.text,c=r.icon,l=r.shortcut;c===void 0&&(c=S.icon[n]?typeof S.icon[n]==`function`?S.icon[n](24,24,`#7A7A7A`):S.icon[n]:``),typeof s==`function`?s=s():s||=n,typeof c==`function`&&(c=c());var u=document.createElement(`td`);u.classList.add(`boc-menu-icon`),u.innerHTML=c||``,i.appendChild(u);var d=document.createElement(`td`);d.classList.add(`boc-menu-text`),d.textContent=s,i.appendChild(d);var f=document.createElement(`td`);if(f.classList.add(`boc-menu-shortcut`),r.subMenu?f.innerHTML=`<span class="boc-submenu-arrow">▶</span>`:f.textContent=l||``,i.appendChild(f),i.appendChild(a),t.appendChild(i),r.devider){var p=document.createElement(`tr`);p.classList.add(`boc-menu-divider`),p.innerHTML=`<td colspan="3"><div class="boc-menu-line"></div></td>`,t.appendChild(p)}}},S.controlsUI=function(){},S.controlsUI.prototype.init=function(e){this.instance=e,this.elements={top_right:null,right_top:null,bottom_right:null,right_bottom:null,top_left:null,left_top:null,bottom_left:null,left_bottom:null,top:null,bottom:null,left:null,right:null},this.show()},S.controlsUI.prototype.show=function(){var e=this,t=function(t){for(var n=t.target;n&&n.hasAttribute&&!n.hasAttribute(`data-control-id`);)n=n.parentNode;if(n.hasAttribute&&n.hasAttribute(`data-control-id`)){var r=n.getAttribute(`data-control-id`),i=e.instance.config.controls[r];S.isNEU(i.isOn)||(n.classList.contains(`boc-control-selected`)?n.classList.remove(`boc-control-selected`):n.classList.add(`boc-control-selected`));var a=i.onClick;S._onClickHandler(e.instance,r,a,void 0,void 0)}},n=this.instance.config.controls;if(n){this.hide();var r={top_right:``,right_top:``,bottom_right:``,right_bottom:``,top_left:``,left_top:``,bottom_left:``,left_bottom:``,top:``,bottom:``,left:``,right:``};for(var i in n){var a=n[i],o=a.icon;o===void 0&&(o=S.icon[i]?S.icon[i](32,32,`#7A7A7A`):S.icon.cursor(32,32,`#7A7A7A`));var s=a.title;s||=i;var c=``;a.isOn===!0&&(c=`class="boc-control-selected"`);var l=`<div ${c} data-control-id="${i}" title="${s}">${o}</div>`;a.anchor||=S.anchor.bottom_right,r[a.anchor]+=l}for(var i in r)r[i]&&(this.elements[i]=document.createElement(`div`),this.elements[i].className=`boc-controls boc-controls-`+i,this.elements[i].innerHTML=r[i],this.elements[i].addEventListener(`click`,t),this.instance.element.appendChild(this.elements[i]))}},S.controlsUI.prototype.hide=function(){for(var e in this.elements)if(this.elements[e]){var t=this.elements[e];t.parentNode.removeChild(t)}},S.circleMenuUI=function(){},S.circleMenuUI.prototype.init=function(e,t){this.obj=e,this.menu=t,this._menu=null,this._buttonsInterval=[],this._linesInterval=[],this._event_id=S._guid()},S.circleMenuUI.prototype.show=function(e,t){this._show(e,t)},S.circleMenuUI.prototype.isVisible=function(){return this.obj.element.querySelector(`[`+S.attr.control_node_circle_menu_wrraper_id+`]`)!==null},S.circleMenuUI.prototype._show=function(e,t){var n=this,r=this.obj.getNode(e),i=S.t(r.templateName,r.min,this.obj.getScale());if(!S.isNEU(i.nodeCircleMenuButton)){var a=this.obj.getSvg(),o=this.obj.element.querySelector(`[`+S.attr.control_node_circle_menu_id+`="`+e+`"]`),s=this.obj.getNodeElement(e),c=S._getTransform(o),l=S._getTransform(s),u=c[4]+l[4],d=c[5]+l[5],f=o.querySelectorAll(`line`),p=this.obj.element.querySelector(`[`+S.attr.control_node_circle_menu_wrraper_id+`]`);if(!S.isNEU(p)&&p.getAttribute(S.attr.control_node_circle_menu_wrraper_id)==e){this.hide();return}else this.hide();t||=this.menu;var m={nodeId:e,menu:t},h=S.events.publish(`show`,[this,m]);if(this._menu=t,h===!1)return!1;for(var g=0,_=Object.keys(m.menu).length,v=i.nodeCircleMenuButton.radius*2+4,y=2*Math.PI*v,b=y/_-(i.nodeCircleMenuButton.radius*2+2);b<0;)v+=8,y=2*Math.PI*v,b=y/_-(i.nodeCircleMenuButton.radius*2+2);for(var x in p=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),p.setAttribute(S.attr.control_node_circle_menu_wrraper_id,e),p.setAttribute(`transform`,`matrix(1,0,0,1,`+u+`,`+d+`)`),a.appendChild(p),m.menu){var C=m.menu[x].icon,w=m.menu[x].color,T=m.menu[x].text;typeof C==`function`&&(C=C()),typeof w==`function`&&(w=w()),typeof T==`function`&&(T=T());var E=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);E.setAttribute(`transform`,`matrix(1,0,0,1,0,0)`),E.setAttribute(S.attr.control_node_circle_menu_name,x),E.style.cursor=`pointer`;var D=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);S.isNEU(T)||(D.innerHTML=T);var O=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`);O.setAttribute(`cx`,0),O.setAttribute(`cy`,0),O.setAttribute(`r`,i.nodeCircleMenuButton.radius),O.setAttribute(`fill`,w),O.setAttribute(`stroke-width`,`1`),O.setAttribute(`stroke`,i.nodeCircleMenuButton.stroke),E.appendChild(O),E.appendChild(D),E.innerHTML+=C,p.appendChild(E);var k=E.getElementsByTagName(`svg`)[0];if(k.setAttribute(`pointer-events`,`none`),k){var A=parseInt(k.getAttribute(`width`)),j=parseInt(k.getAttribute(`height`));k.setAttribute(`x`,-(A/2)),k.setAttribute(`y`,-(j/2))}var M=g*Math.PI/(_/2);g++;var N=Math.cos(M)*v,P=Math.sin(M)*v;this._buttonsInterval.push(S.animate(E,{transform:[1,0,0,1,0,0]},{transform:[1,0,0,1,N,P]},250,S.anim.outBack,function(e){var t=e[0].getAttribute(S.attr.control_node_circle_menu_name),r=e[0].parentNode.getAttribute(S.attr.control_node_circle_menu_wrraper_id);e[0].addEventListener(`mouseenter`,function(e){S.events.publish(`mouseenter`,[n,{from:r,menuItem:m.menu[t],menuItemName:t,event:e}])}),e[0].addEventListener(`mouseout`,function(e){S.events.publish(`mouseout`,[n,{from:r,menuItem:m.menu[t],menuItemName:t,event:e}])})}))}this._linesInterval.push(S.animate(f[0],{x1:-(i.nodeCircleMenuButton.radius/2),y1:-6,x2:i.nodeCircleMenuButton.radius/2,y2:-6},{x1:-7,y1:-7,x2:7,y2:7},500,S.anim.inOutSin)),this._linesInterval.push(S.animate(f[1],{x1:-(i.nodeCircleMenuButton.radius/2),y1:0,x2:i.nodeCircleMenuButton.radius/2,y2:0},{x1:0,y1:0,x2:0,y2:0},500,S.anim.inOutSin)),this._linesInterval.push(S.animate(f[2],{x1:-(i.nodeCircleMenuButton.radius/2),y1:6,x2:i.nodeCircleMenuButton.radius/2,y2:6},{x1:-7,y1:7,x2:7,y2:-7},500,S.anim.inOutSin))}},S.circleMenuUI.prototype.hide=function(){for(var e=this._buttonsInterval.length-1;e>=0;e--)clearInterval(this._buttonsInterval[e]),this._buttonsInterval.splice(e,1);this._buttonsInterval=[];for(var e=this._linesInterval.length-1;e>=0;e--)clearInterval(this._linesInterval[e]),this._linesInterval.splice(e,1);this._linesInterval=[];var t=this.obj.element.querySelector(`[`+S.attr.control_node_circle_menu_wrraper_id+`]`);if(t!=null){var n=t.getAttribute(S.attr.control_node_circle_menu_wrraper_id),r=this.obj.getNode(n),i=S.t(r.templateName,r.min,this.obj.getScale()),a=this.obj.element.querySelector(`[`+S.attr.control_node_circle_menu_id+`="`+n+`"]`).querySelectorAll(`line`);a[0].setAttribute(`x1`,-(i.nodeCircleMenuButton.radius/2)),a[0].setAttribute(`x2`,i.nodeCircleMenuButton.radius/2),a[0].setAttribute(`y1`,-6),a[0].setAttribute(`y2`,-6),a[1].setAttribute(`x1`,-(i.nodeCircleMenuButton.radius/2)),a[1].setAttribute(`x2`,i.nodeCircleMenuButton.radius/2),a[1].setAttribute(`y1`,0),a[1].setAttribute(`y2`,0),a[2].setAttribute(`x1`,-(i.nodeCircleMenuButton.radius/2)),a[2].setAttribute(`x2`,i.nodeCircleMenuButton.radius/2),a[2].setAttribute(`y1`,6),a[2].setAttribute(`y2`,6),t.parentElement.removeChild(t),t=null}},S.circleMenuUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S===void 0&&(S={}),S.idb={version:1,dbName:`BALKAN`,tableName:`orgchart-js`,keyPath:`id`},S.idb.db=null,S.idb._open=function(e){if(S._browser().msie){e&&e(!1);return}if((navigator.userAgent.toLowerCase().indexOf(`safari`)>0||navigator.userAgent.toLowerCase().indexOf(`firefox`)>0)&&window.location!==window.parent.location){e&&e(!1);return}if(!window.indexedDB){console.error(`Your browser doesn't support a stable version of IndexedDB.`),e&&e(!1);return}if(S.idb.db!=null){e&&e(!0);return}var t=indexedDB.open(S.idb.dbName,S.idb.version);t.onerror=function(t){console.error(`Cannot open database!`),e&&e(!1)},t.onsuccess=function(t){S.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(S.idb.tableName)&&t.deleteObjectStore(S.idb.tableName),t.createObjectStore(S.idb.tableName,{keyPath:S.idb.keyPath})}},S.idb.read=function(e,t){S.idb._open(function(n){if(n){var r=S.idb.db.transaction([S.idb.tableName]).objectStore(S.idb.tableName).get(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.result?t&&t(!0,r.result):t&&t(null)}}else t&&t(!1)})},S.idb.write=function(e,t){S.idb.read(e.id,function(n){if(n==null){var r=S.idb.db.transaction([S.idb.tableName],`readwrite`).objectStore(S.idb.tableName).add(e);r.onerror=function(e){console.error(`Unable to add data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(n)})},S.idb.put=function(e,t){S.idb._open(function(n){if(n){var r=S.idb.db.transaction([S.idb.tableName],`readwrite`).objectStore(S.idb.tableName).put(e);r.onerror=function(e){console.error(`Unable to put data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},S.idb.delete=function(e,t){S.idb._open(function(n){if(n){var r=S.idb.db.transaction([S.idb.tableName],`readwrite`).objectStore(S.idb.tableName).delete(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},S.toolbarUI=function(){},S.toolbarUI.expandAllIcon=`<svg style="margin-bottom:7px;box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border: 1px solid #cacaca;background-color: #f9f9f9;display: block;cursor: pointer;" width="32px" height="32px"><marker id="arrow" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="4" markerHeight="4" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#757575" /></marker><line x1="11" y1="11" x2="6" y2="6" stroke="#757575" stroke-width="2" marker-end="url(#arrow)" /><line x1="21" y1="11" x2="26" y2="6" stroke="#757575" stroke-width="2" marker-end="url(#arrow)" /><line x1="21" y1="21" x2="26" y2="26" stroke="#757575" stroke-width="2" marker-end="url(#arrow)" /><line x1="11" y1="21" x2="6" y2="26" stroke="#757575" stroke-width="2" marker-end="url(#arrow)" /><rect x="12" y="12" width="8" height="8" fill="#757575"></rect></svg>`,S.toolbarUI.fitIcon=`<svg style="margin-bottom:7px;box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border: 1px solid #cacaca;background-color: #f9f9f9;display: block;cursor: pointer;" width="32px" height="32px"><path stroke-width="3" fill="none" stroke="#757575" d="M4,11 L4,4 L11,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,11 L28,4 L21,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,21 L28,28 L21,28"></path><path stroke-width="3" fill="none" stroke="#757575" d="M4,21 L4,28 L11,28"></path><circle cx="16" cy="16" r="5" fill="#757575"></circle></svg>`,S.toolbarUI.openFullScreenIcon=`<svg style="margin-bottom:7px;box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border: 1px solid #cacaca;background-color: #f9f9f9;display: block;cursor: pointer;" width="32px" height="32px"><path stroke-width="3" fill="none" stroke="#757575" d="M4,11 L4,4 L11,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,11 L28,4 L21,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,21 L28,28 L21,28"></path><path stroke-width="3" fill="none" stroke="#757575" d="M4,21 L4,28 L11,28"></path><line x1="5" y1="5" x2="27" y2="27" stroke-width="3" stroke="#757575"></line><line x1="5" y1="27" x2="27" y2="5" stroke-width="3" stroke="#757575"></line></svg>`,S.toolbarUI.closeFullScreenIcon=`<svg style="margin-bottom:7px;box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border: 1px solid #cacaca;background-color: #f9f9f9;display: block;cursor: pointer;" width="32px" height="32px"><path stroke-width="3" fill="none" stroke="#757575" d="M4,11 L4,4 L11,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,11 L28,4 L21,4"></path><path stroke-width="3" fill="none" stroke="#757575" d="M28,21 L28,28 L21,28"></path><path stroke-width="3" fill="none" stroke="#757575" d="M4,21 L4,28 L11,28"></path><rect x="11" y="11" width="10" height="10" stroke-width="3" fill="none" stroke="#757575" ></rect></svg>`,S.toolbarUI.zoomInIcon=`<svg style="box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border-left: 1px solid #cacaca; border-right: 1px solid #cacaca; border-top: 1px solid #cacaca; background-color: #f9f9f9;display: block; cursor: pointer;" width="32px" height="32px" ><g><rect fill="#f9f9f9" x="0" y="0" width="32" height="32" ></rect><line x1="8" y1="16" x2="24" y2="16" stroke-width="3" stroke="#757575"></line><line x1="16" y1="8" x2="16" y2="24" stroke-width="3" stroke="#757575"></line></g><line x1="4" y1="32" x2="28" y2="32" stroke-width="1" stroke="#cacaca"></line></svg>`,S.toolbarUI.zoomOutIcon=`<svg style="box-shadow: 0px 1px 4px rgba(0,0,0,0.3); margin-bottom:7px; border-left: 1px solid #cacaca; border-right: 1px solid #cacaca; border-bottom: 1px solid #cacaca; background-color: #f9f9f9;display: block; cursor: pointer;" width="32px" height="32px" ><g><rect fill="#f9f9f9" x="0" y="0" width="32" height="32" ></rect><line x1="8" y1="16" x2="24" y2="16" stroke-width="3" stroke="#757575"></line></g></svg>`,S.toolbarUI.layoutIcon=`<svg `+S.attr.tlbr+`="layout" style="box-shadow: 0px 1px 4px rgba(0,0,0,0.3); border: 1px solid #cacaca;background-color: #f9f9f9;display: block;cursor: pointer;" width="32px" height="32px"><path stroke-width="3" fill="none" stroke="#757575" d="M8,24 L16,14 L24,24"></path><path stroke-width="3" fill="none" stroke="#757575" d="M8,16 L16,8 L24,16"></path></svg>`,S.toolbarUI.prototype.init=function(e,t){if(t){this.obj=e,this.toolbar=t,this._visible=!1,this.div=document.createElement(`div`),this.div.classList.add(`boc-toolbar-container`),Object.assign(this.div.style,{position:`absolute`,padding:`3px`,right:this.obj.config.padding-10+`px`,bottom:this.obj.config.padding-10+`px`}),t.expandAll&&(this.div.innerHTML+=`<div `+S.attr.tlbr+`="expand">`+S.toolbarUI.expandAllIcon+`</div>`),t.fit&&(this.div.innerHTML+=`<div `+S.attr.tlbr+`="fit">`+S.toolbarUI.fitIcon+`</div>`),t.zoom&&(this.div.innerHTML+=`<div `+S.attr.tlbr+`="plus">`+S.toolbarUI.zoomInIcon+`</div>`,this.div.innerHTML+=`<div `+S.attr.tlbr+`="minus">`+S.toolbarUI.zoomOutIcon+`</div>`),t.layout&&(this.div.innerHTML+=`<div `+S.attr.tlbr+`="layout">`+S.toolbarUI.layoutIcon+`</div>`,this.layouts=document.createElement(`div`),this.layouts.classList.add(`boc-toolbar-layout`),this.layouts.innerHTML=`<svg data-layout="normal" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="7" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="63" y="41" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line><line stroke="#000000" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line><line stroke="#000000" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line><line stroke="#000000" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line></svg>
|
|
255
|
-
<svg data-layout="treeRightOffset" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="40" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="40" y="73" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line><line stroke="#000000" x1="60" x2="35" y1="35" y2="35" stroke-width="1"></line><line stroke="#000000" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line><line stroke="#000000" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line><line stroke="#000000" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line></svg>
|
|
256
|
-
<svg data-layout="treeLeftOffset" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="30" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="30" y="73" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line><line stroke="#000000" x1="60" x2="85" y1="35" y2="35" stroke-width="1"></line><line stroke="#000000" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line><line stroke="#000000" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line><line stroke="#000000" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line></svg>
|
|
257
|
-
<svg data-layout="mixed" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="35" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="35" y="73" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line><line stroke="#000000" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line></svg>
|
|
258
|
-
<svg data-layout="tree" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="7" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="35" y="73" width="50" height="27"></rect><rect fill="#F57C00" x="63" y="41" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line><line stroke="#000000" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line></svg>
|
|
259
|
-
<svg data-layout="grid" style="cursor: pointer;" width="110" height="100"><rect fill="#039BE5" x="35" y="0" width="50" height="27"></rect><rect fill="#F57C00" x="7" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="7" y="73" width="50" height="27"></rect><rect fill="#F57C00" x="63" y="41" width="50" height="27"></rect><rect fill="#F57C00" x="63" y="73" width="50" height="27"></rect><line stroke="#000000" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line><line stroke="#000000" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line><line stroke="#000000" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line><line stroke="#000000" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line><line stroke="#000000" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line><line stroke="#000000" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line><line stroke="#000000" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line></svg>`,this.obj.element.appendChild(this.layouts)),t.fullScreen&&(this.div.innerHTML+=`<div `+S.attr.tlbr+`="fullScreen">`+S.toolbarUI.openFullScreenIcon+`</div>`),this.obj.element.appendChild(this.div),this.layoutBtn=this.div.querySelector(`[`+S.attr.tlbr+`="layout"]`);var n=this.div.querySelector(`[`+S.attr.tlbr+`="plus"]`),r=this.div.querySelector(`[`+S.attr.tlbr+`="minus"]`),i=this.div.querySelector(`[`+S.attr.tlbr+`="fit"]`),a=this.div.querySelector(`[`+S.attr.tlbr+`="fullScreen"]`),o=this.div.querySelector(`[`+S.attr.tlbr+`="expand"]`),s=this;n&&n.addEventListener(`click`,function(){s.obj.zoom(!0,null,!0)}),r&&r.addEventListener(`click`,function(){s.obj.zoom(!1,null,!0)}),i&&i.addEventListener(`click`,function(){s.obj.fit()}),a&&a.addEventListener(`click`,function(){s.obj.toggleFullScreen()}),o&&o.addEventListener(`click`,function(){s.obj.expand(null,`all`)}),this.layoutBtn&&this.layoutBtn.addEventListener(`click`,function(){s._visible?s.hideLayout():s.showLayout()}),this.layouts&&this.layouts.addEventListener(`click`,function(e){for(var t=e.target;t;){if(t.hasAttribute&&t.hasAttribute(S.attr.layout)){t=t.getAttribute(S.attr.layout),s.obj.setLayout(S.layout[t]);break}t=t.parentNode}})}},S.toolbarUI.prototype.showLayout=function(){this._visible=!0,this.layoutBtn.style.transform=`rotate(180deg) translateX(0px) translateY(0px)`,S.animate(this.div,{bottom:this.obj.config.padding-10},{bottom:this.obj.config.padding+135},this.obj.config.anim.duration,this.obj.config.anim.func),S.animate(this.layouts,{bottom:-145},{bottom:0},this.obj.config.anim.duration,this.obj.config.anim.func)},S.toolbarUI.prototype.hideLayout=function(){this._visible=!1,this.layoutBtn.style.transform=`rotate(0deg) translateX(0px) translateY(0px)`,S.animate(this.div,{bottom:this.obj.config.padding+135},{bottom:this.obj.config.padding-10},this.obj.config.anim.duration,this.obj.config.anim.func),S.animate(this.layouts,{bottom:0},{bottom:-145},this.obj.config.anim.duration,this.obj.config.anim.func)},S.notifierUI=function(){},S.notifierUI.prototype.init=function(e){this.obj=e},S.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=S.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=S.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.style,{position:`absolute`,"background-color":t,color:`#ffffff`,padding:`15px`,"border-radius":`40px`,opacity:0,overflow:`hidden`,"white-space":`nowrap`,"text-align":`center`}),this.obj.element.appendChild(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,S.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},S===void 0&&(S={}),S.icon={},S.icon.png_export=S.icon.png_preview=S.icon.pngpreview=S.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
260
|
-
<path fill="${n}" d="M146.747,276.708c0-13.998-9.711-22.352-26.887-22.352c-6.99,0-11.726,0.675-14.204,1.355v44.927 c2.932,0.676,6.539,0.896,11.52,0.896C135.449,301.546,146.747,292.28,146.747,276.708z"/>
|
|
261
|
-
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M234.344,335.86v45.831h-31.601V229.524h40.184 l31.611,55.759c9.025,16.031,18.064,34.983,24.825,52.154h0.675c-2.257-20.103-2.933-40.643-2.933-63.44v-44.473h31.614v152.167 h-36.117l-32.516-58.703c-9.049-16.253-18.971-35.892-26.438-53.727l-0.665,0.222C233.906,289.58,234.344,311.027,234.344,335.86z M71.556,381.691V231.56c10.613-1.804,25.516-3.159,46.506-3.159c21.215,0,36.353,4.061,46.509,12.192 c9.698,7.673,16.255,20.313,16.255,35.219c0,14.897-4.959,27.549-13.999,36.123c-11.738,11.063-29.123,16.031-49.441,16.031 c-4.522,0-8.593-0.231-11.736-0.675v54.411H71.556V381.691z M453.601,523.353H97.2V419.302h356.4V523.353z M485.652,374.688 c-10.61,3.607-30.713,8.585-50.805,8.585c-27.759,0-47.872-7.003-61.857-20.545c-13.995-13.1-21.684-32.97-21.452-55.318 c0.222-50.569,37.03-79.463,86.917-79.463c19.644,0,34.783,3.829,42.219,7.446l-7.214,27.543c-8.369-3.617-18.752-6.55-35.458-6.55 c-28.656,0-50.341,16.256-50.341,49.22c0,31.382,19.649,49.892,47.872,49.892c7.895,0,14.218-0.901,16.934-2.257v-31.835h-23.493 v-26.869h56.679V374.688z"/>
|
|
262
|
-
</svg>`},S.icon.pdf_export=S.icon.pdf_preview=S.icon.pdfpreview=S.icon.pdf=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
263
|
-
<path fill="${n}" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>
|
|
264
|
-
<path fill="${n}" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>
|
|
265
|
-
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"/>
|
|
266
|
-
</svg>`},S.icon.svg_export=S.icon.svg_preview=S.icon.svg=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
267
|
-
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M338.871,225.672L284.545,386.96h-42.591 l-51.69-161.288h39.967l19.617,68.196c5.508,19.143,10.531,37.567,14.36,57.67h0.717c4.061-19.385,9.089-38.527,14.592-56.953 l20.585-68.918h38.77V225.672z M68.458,379.54l7.415-30.153c9.811,5.021,24.888,10.051,40.439,10.051 c16.751,0,25.607-6.935,25.607-17.465c0-10.052-7.662-15.795-27.05-22.734c-26.8-9.328-44.263-24.168-44.263-47.611 c0-27.524,22.971-48.579,61.014-48.579c18.188,0,31.591,3.823,41.159,8.131l-8.126,29.437c-6.465-3.116-17.945-7.657-33.745-7.657 c-15.791,0-23.454,7.183-23.454,15.552c0,10.296,9.089,14.842,29.917,22.731c28.468,10.536,41.871,25.365,41.871,48.094 c0,27.042-20.812,50.013-65.09,50.013C95.731,389.349,77.538,384.571,68.458,379.54z M453.601,523.353H97.2V419.302h356.4V523.353z M488.911,379.54c-11.243,3.823-32.537,9.103-53.831,9.103c-29.437,0-50.73-7.426-65.57-21.779 c-14.839-13.875-22.971-34.942-22.738-58.625c0.253-53.604,39.255-84.235,92.137-84.235c20.81,0,36.852,4.073,44.74,7.896 l-7.657,29.202c-8.859-3.829-19.849-6.95-37.567-6.95c-30.396,0-53.357,17.233-53.357,52.173c0,33.265,20.81,52.882,50.73,52.882 c8.375,0,15.072-0.96,17.94-2.395v-33.745h-24.875v-28.471h60.049V379.54L488.911,379.54z" />
|
|
268
|
-
</svg>`},S.icon.csv_export=S.icon.csv=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 548.29 548.291" x="${r}" y="${i}">'
|
|
269
|
-
<path fill="${n}" d="M486.2,196.121h-13.164V132.59c0-0.399-0.064-0.795-0.116-1.2c-0.021-2.52-0.824-5-2.551-6.96L364.656,3.677 c-0.031-0.034-0.064-0.044-0.085-0.075c-0.629-0.707-1.364-1.292-2.141-1.796c-0.231-0.157-0.462-0.286-0.704-0.419 c-0.672-0.365-1.386-0.672-2.121-0.893c-0.199-0.052-0.377-0.134-0.576-0.188C358.229,0.118,357.4,0,356.562,0H96.757 C84.893,0,75.256,9.649,75.256,21.502v174.613H62.093c-16.972,0-30.733,13.756-30.733,30.73v159.81 c0,16.966,13.761,30.736,30.733,30.736h13.163V526.79c0,11.854,9.637,21.501,21.501,21.501h354.777 c11.853,0,21.502-9.647,21.502-21.501V417.392H486.2c16.966,0,30.729-13.764,30.729-30.731v-159.81 C516.93,209.872,503.166,196.121,486.2,196.121z M96.757,21.502h249.053v110.006c0,5.94,4.818,10.751,10.751,10.751h94.973v53.861 H96.757V21.502z M258.618,313.18c-26.68-9.291-44.063-24.053-44.063-47.389c0-27.404,22.861-48.368,60.733-48.368 c18.107,0,31.447,3.811,40.968,8.107l-8.09,29.3c-6.43-3.107-17.862-7.632-33.59-7.632c-15.717,0-23.339,7.149-23.339,15.485 c0,10.247,9.047,14.769,29.78,22.632c28.341,10.479,41.681,25.239,41.681,47.874c0,26.909-20.721,49.786-64.792,49.786 c-18.338,0-36.449-4.776-45.497-9.77l7.38-30.016c9.772,5.014,24.775,10.006,40.264,10.006c16.671,0,25.488-6.908,25.488-17.396 C285.536,325.789,277.909,320.078,258.618,313.18z M69.474,302.692c0-54.781,39.074-85.269,87.654-85.269 c18.822,0,33.113,3.811,39.549,7.149l-7.392,28.816c-7.38-3.084-17.632-5.939-30.491-5.939c-28.822,0-51.206,17.375-51.206,53.099 c0,32.158,19.051,52.4,51.456,52.4c10.947,0,23.097-2.378,30.241-5.238l5.483,28.346c-6.672,3.34-21.674,6.919-41.208,6.919 C98.06,382.976,69.474,348.424,69.474,302.692z M451.534,520.962H96.757v-103.57h354.777V520.962z M427.518,380.583h-42.399 l-51.45-160.536h39.787l19.526,67.894c5.479,19.046,10.479,37.386,14.299,57.397h0.709c4.048-19.298,9.045-38.352,14.526-56.693 l20.487-68.598h38.599L427.518,380.583z" />'
|
|
270
|
-
</svg>`},S.icon.json_export=S.icon.json=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 32 32" x="${r}" y="${i}">
|
|
271
|
-
<polygon fill="${n}" points="31 11 31 21 29 21 27 15 27 21 25 21 25 11 27 11 29 17 29 11 31 11"/>
|
|
272
|
-
<path fill="${n}" d="M21.3335,21h-2.667A1.6684,1.6684,0,0,1,17,19.3335v-6.667A1.6684,1.6684,0,0,1,18.6665,11h2.667A1.6684,1.6684,0,0,1,23,12.6665v6.667A1.6684,1.6684,0,0,1,21.3335,21ZM19,19h2V13H19Z"/>
|
|
273
|
-
<path fill="${n}" d="M13.3335,21H9V19h4V17H11a2.002,2.002,0,0,1-2-2V12.6665A1.6684,1.6684,0,0,1,10.6665,11H15v2H11v2h2a2.002,2.002,0,0,1,2,2v2.3335A1.6684,1.6684,0,0,1,13.3335,21Z"/>
|
|
274
|
-
<path fill="${n}" d="M5.3335,21H2.6665A1.6684,1.6684,0,0,1,1,19.3335V17H3v2H5V11H7v8.3335A1.6684,1.6684,0,0,1,5.3335,21Z"/>
|
|
275
|
-
<rect fill="${n}" id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" style="fill: none;" width="32" height="32"/>'
|
|
276
|
-
</svg>`},S.icon.excel=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
277
|
-
<path fill="${n}" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H7C7.55228 21 8 21.4477 8 22C8 22.5523 7.55228 23 7 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM19 12C19.5523 12 20 12.4477 20 13V19H23C23.5523 19 24 19.4477 24 20C24 20.5523 23.5523 21 23 21H19C18.4477 21 18 20.5523 18 20V13C18 12.4477 18.4477 12 19 12ZM11.8137 12.4188C11.4927 11.9693 10.8682 11.8653 10.4188 12.1863C9.96935 12.5073 9.86526 13.1318 10.1863 13.5812L12.2711 16.5L10.1863 19.4188C9.86526 19.8682 9.96935 20.4927 10.4188 20.8137C10.8682 21.1347 11.4927 21.0307 11.8137 20.5812L13.5 18.2205L15.1863 20.5812C15.5073 21.0307 16.1318 21.1347 16.5812 20.8137C17.0307 20.4927 17.1347 19.8682 16.8137 19.4188L14.7289 16.5L16.8137 13.5812C17.1347 13.1318 17.0307 12.5073 16.5812 12.1863C16.1318 11.8653 15.5073 11.9693 15.1863 12.4188L13.5 14.7795L11.8137 12.4188Z" fill="#000000"/>
|
|
278
|
-
</svg>`},S.icon.pp_export=S.icon.pp_preview=S.icon.pppreview=S.icon.powerpoint=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
279
|
-
<path fill="${n}" d="M10 1C9.73478 1 9.48043 1.10536 9.29289 1.29289L3.29289 7.29289C3.10536 7.48043 3 7.73478 3 8V20C3 21.6569 4.34315 23 6 23H11C11.5523 23 12 22.5523 12 22C12 21.4477 11.5523 21 11 21H6C5.44772 21 5 20.5523 5 20V9H10C10.5523 9 11 8.55228 11 8V3H18C18.5523 3 19 3.44772 19 4V9C19 9.55228 19.4477 10 20 10C20.5523 10 21 9.55228 21 9V4C21 2.34315 19.6569 1 18 1H10ZM9 7H6.41421L9 4.41421V7ZM15 12C14.4477 12 14 12.4477 14 13V17V20C14 20.5523 14.4477 21 15 21C15.5523 21 16 20.5523 16 20V18H19C20.6569 18 22 16.6569 22 15C22 13.3431 20.6569 12 19 12H15ZM19 16H16V14H19C19.5523 14 20 14.4477 20 15C20 15.5523 19.5523 16 19 16Z" fill="#000000"/>
|
|
280
|
-
</svg>`},S.icon.edit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 528.899 528.899" x="${r}" y="${i}">
|
|
281
|
-
<path fill="${n}" d="M328.883,89.125l107.59,107.589l-272.34,272.34L56.604,361.465L328.883,89.125z M518.113,63.177l-47.981-47.981 c-18.543-18.543-48.653-18.543-67.259,0l-45.961,45.961l107.59,107.59l53.611-53.611 C532.495,100.753,532.495,77.559,518.113,63.177z M0.3,512.69c-1.958,8.812,5.998,16.708,14.811,14.565l119.891-29.069 L27.473,390.597L0.3,512.69z" />'
|
|
282
|
-
</svg>`},S.icon.details=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
283
|
-
<path fill="${n}" d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008 C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237 h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931 l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278 c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239 h66.527V486.763z"/>
|
|
284
|
-
<path fill="${n}" d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>
|
|
285
|
-
<path fill="${n}" d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>
|
|
286
|
-
<path fill="${n}" d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>
|
|
287
|
-
<path fill="${n}" d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256 c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>
|
|
288
|
-
</svg>`},S.icon.remove=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 900.5 900.5" x="${r}" y="${i}">
|
|
289
|
-
<path fill="${n}" d="M176.415,880.5c0,11.046,8.954,20,20,20h507.67c11.046,0,20-8.954,20-20V232.487h-547.67V880.5L176.415,880.5z M562.75,342.766h75v436.029h-75V342.766z M412.75,342.766h75v436.029h-75V342.766z M262.75,342.766h75v436.029h-75V342.766z"/>
|
|
290
|
-
<path fill="${n}" d="M618.825,91.911V20c0-11.046-8.954-20-20-20h-297.15c-11.046,0-20,8.954-20,20v71.911v12.5v12.5H141.874 c-11.046,0-20,8.954-20,20v50.576c0,11.045,8.954,20,20,20h34.541h547.67h34.541c11.046,0,20-8.955,20-20v-50.576 c0-11.046-8.954-20-20-20H618.825v-12.5V91.911z M543.825,112.799h-187.15v-8.389v-12.5V75h187.15v16.911v12.5V112.799z"/>
|
|
291
|
-
</svg>`},S.icon.add=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 922 922" x="${r}" y="${i}">
|
|
292
|
-
<path fill="${n}" d="M922,453V81c0-11.046-8.954-20-20-20H410c-11.045,0-20,8.954-20,20v149h318c24.812,0,45,20.187,45,45v198h149 C913.046,473.001,922,464.046,922,453z" />
|
|
293
|
-
<path fill="${n}" d="M557,667.001h151c11.046,0,20-8.954,20-20v-174v-198c0-11.046-8.954-20-20-20H390H216c-11.045,0-20,8.954-20,20v149h194 h122c24.812,0,45,20.187,45,45v4V667.001z" />
|
|
294
|
-
<path fill="${n}" d="M0,469v372c0,11.046,8.955,20,20,20h492c11.046,0,20-8.954,20-20V692v-12.501V667V473v-4c0-11.046-8.954-20-20-20H390H196 h-12.5H171H20C8.955,449,0,457.955,0,469z" />
|
|
295
|
-
</svg>`},S.icon.search=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 485.213 485.213" x="${r}" y="${i}">
|
|
296
|
-
<path fill="${n}" d="M471.882,407.567L360.567,296.243c-16.586,25.795-38.536,47.734-64.331,64.321l111.324,111.324 c17.772,17.768,46.587,17.768,64.321,0C489.654,454.149,489.654,425.334,471.882,407.567z" />
|
|
297
|
-
<path fill="${n}" d="M363.909,181.955C363.909,81.473,282.44,0,181.956,0C81.474,0,0.001,81.473,0.001,181.955s81.473,181.951,181.955,181.951 C282.44,363.906,363.909,282.437,363.909,181.955z M181.956,318.416c-75.252,0-136.465-61.208-136.465-136.46 c0-75.252,61.213-136.465,136.465-136.465c75.25,0,136.468,61.213,136.468,136.465 C318.424,257.208,257.206,318.416,181.956,318.416z" />
|
|
298
|
-
<path fill="${n}" d="M75.817,181.955h30.322c0-41.803,34.014-75.814,75.816-75.814V75.816C123.438,75.816,75.817,123.437,75.817,181.955z" />
|
|
299
|
-
</svg>`},S.icon.xml_export=S.icon.xml=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
300
|
-
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.992L366.325,3.691 c-0.032-0.031-0.063-0.042-0.085-0.073c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422 c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542 c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87V227.89C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M369.531,374.53h-32.058l-2.156-55.519 c-0.644-17.434-1.298-38.518-1.298-59.611h-0.633c-4.514,18.516-10.547,39.166-16.137,56.162l-17.645,56.601h-25.618 l-15.494-56.157c-4.725-16.996-9.671-37.658-13.123-56.6h-0.43c-0.854,19.585-1.508,41.961-2.586,60.038l-2.576,55.086h-30.343 l9.26-145.035h43.677l14.207,48.421c4.517,16.774,9.041,34.847,12.258,51.843h0.654c4.081-16.77,9.038-35.923,13.774-52.064 l15.493-48.199h42.82L369.531,374.53z M69.992,374.53l41.955-73.385l-40.444-71.65h37.655l12.688,26.465 c4.316,8.828,7.533,15.928,10.99,24.092h0.422c3.438-9.242,6.23-15.694,9.893-24.092l12.274-26.465h37.434l-40.89,70.796 l43.044,74.239h-37.866l-13.134-26.257c-5.376-10.108-8.817-17.639-12.909-26.04h-0.433c-3.009,8.401-6.674,15.932-11.19,26.04 l-12.042,26.257H69.992z M453.601,523.353H97.2V419.302h356.4V523.353z M485.325,374.53h-90.608V229.495h32.933v117.497h57.682 v27.538H485.325z"/>
|
|
301
|
-
</svg>`},S.icon.visio_export=S.icon.visio=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
302
|
-
<path fill="${n}" d="M24 7.609v9.556q0 .424-.302.726-.303.303-.726.303h-5.19q-.072 1.149-.556 2.135-.484.986-1.264 1.717-.78.732-1.803 1.15-1.022.417-2.159.417-1.016 0-1.96-.35-.943-.352-1.705-.969-.762-.617-1.295-1.47-.532-.852-.713-1.856H1.028q-.423 0-.726-.303Q0 18.363 0 17.94V7.609q0-.424.302-.726.303-.302.726-.302h5.238q-.072-.182-.072-.387 0-.424.302-.726L11.274.69q.303-.303.726-.303t.726.303l4.778 4.778q.302.302.302.726 0 .205-.072.387h5.238q.423 0 .726.302.302.302.302.726zM12 2.153l-4.04 4.04.387.388h3.012q.423 0 .726.302.302.302.302.726v2.238l3.653-3.653zM7.161 16.84l3.085-8.13H8.238q-.508 1.489-1.028 2.952-.52 1.464-1.004 2.964-.496-1.488-.992-2.958-.496-1.47-1.004-2.957H2.153l3.037 8.129zM12 22.065q.883 0 1.657-.333t1.355-.913q.58-.581.913-1.355.333-.774.333-1.658 0-.81-.302-1.548-.303-.738-.823-1.318-.52-.581-1.228-.944-.707-.363-1.518-.423v4.367q0 .423-.302.725-.303.303-.726.303H7.923q.206.677.593 1.246.387.568.92.98.532.41 1.185.64.653.23 1.379.23zm10.452-5.42V8.13h-6.158q-.133.133-.441.454-.309.32-.714.725-.405.406-.847.853-.441.448-.828.823-.387.375-.684.641-.296.266-.393.302v.097q.968.036 1.845.411t1.578.998q.702.623 1.186 1.446t.677 1.766Z"/>
|
|
303
|
-
</svg>`},S.icon.link=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512.092 512.092" x="${r}" y="${i}">
|
|
304
|
-
<path fill="${n}" d="M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859 c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318 c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6 c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581 c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0 c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0 c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z" />
|
|
305
|
-
<path fill="${n}" d="M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387 c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877 l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768 l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0 c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893 c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365 c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597 c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403 l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z" />
|
|
306
|
-
</svg>`},S.icon.happy=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
307
|
-
<path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
|
|
308
|
-
<path fill="${n}" d="M176,176c17.673,0,32,14.327,32,32h32c0-35.346-28.654-64-64-64c-35.346,0-64,28.654-64,64h32 C144,190.327,158.327,176,176,176z"/>
|
|
309
|
-
<path fill="${n}" d="M336,144c-35.346,0-64,28.654-64,64h32c0-17.673,14.327-32,32-32c17.673,0,32,14.327,32,32h32 C400,172.654,371.346,144,336,144z"/>
|
|
310
|
-
<path fill="${n}" d="M256,368c-53.019,0-96-42.981-96-96h-32c0,70.692,57.308,128,128,128s128-57.308,128-128h-32 C352,325.019,309.019,368,256,368z"/>
|
|
311
|
-
</svg>`},S.icon.sad=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
312
|
-
<path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
|
|
313
|
-
<path fill="${n}" d="M336,192c-17.673,0-32-14.327-32-32h-32c0,35.346,28.654,64,64,64c35.346,0,64-28.654,64-64h-32 C368,177.673,353.673,192,336,192z"/>
|
|
314
|
-
<path fill="${n}" d="M176,224c35.346,0,64-28.654,64-64h-32c0,17.673-14.327,32-32,32s-32-14.327-32-32h-32C112,195.346,140.654,224,176,224z "/>
|
|
315
|
-
<path fill="${n}" d="M256,256c-70.692,0-128,57.308-128,128h32c0-53.019,42.981-96,96-96s96,42.981,96,96h32C384,313.308,326.692,256,256,256 z"/>
|
|
316
|
-
</svg>`},S.icon.share=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
|
|
317
|
-
<path fill="${n}" d="M406,332c-29.641,0-55.761,14.581-72.167,36.755L191.99,296.124c2.355-8.027,4.01-16.346,4.01-25.124
|
|
318
|
-
c0-11.906-2.441-23.225-6.658-33.636l148.445-89.328C354.307,167.424,378.589,180,406,180c49.629,0,90-40.371,90-90
|
|
319
|
-
c0-49.629-40.371-90-90-90c-49.629,0-90,40.371-90,90c0,11.437,2.355,22.286,6.262,32.358l-148.887,89.59
|
|
320
|
-
C156.869,193.136,132.937,181,106,181c-49.629,0-90,40.371-90,90c0,49.629,40.371,90,90,90c30.13,0,56.691-15.009,73.035-37.806
|
|
321
|
-
l141.376,72.395C317.807,403.995,316,412.75,316,422c0,49.629,40.371,90,90,90c49.629,0,90-40.371,90-90
|
|
322
|
-
C496,372.371,455.629,332,406,332z"/>
|
|
323
|
-
</svg>`},S.icon.user=function(e,t,n,r,i){return S.isNEU(r)&&(r=0),S.isNEU(i)&&(i=0),`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
324
|
-
<path fill="${n}" d="M12 11.796C14.7189 11.796 16.9231 9.60308 16.9231 6.89801C16.9231 4.19294 14.7189 2.00005 12 2.00005C9.28106 2.00005 7.07692 4.19294 7.07692 6.89801C7.07692 9.60308 9.28106 11.796 12 11.796Z" fill="#030D45"/>
|
|
325
|
-
<path fill="${n}" d="M14.5641 13.8369H9.4359C6.46154 13.8369 4 16.2859 4 19.245C4 19.9593 4.30769 20.5716 4.92308 20.8777C5.84615 21.3879 7.89744 22.0001 12 22.0001C16.1026 22.0001 18.1538 21.3879 19.0769 20.8777C19.5897 20.5716 20 19.9593 20 19.245C20 16.1838 17.5385 13.8369 14.5641 13.8369Z" fill="#030D45"/>
|
|
326
|
-
</svg>`},S.icon.close=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
|
|
327
|
-
<path fill="${n}" d="m256 0c-141.49 0-256 114.5-256 256 0 141.49 114.5 256 256 256 141.49 0 256-114.5 256-256 0-141.49-114.5-256-256-256zm-12.284 317.397-58.121 58.132c-6.565 6.553-15.283 10.166-24.557 10.166-19.196 0-34.734-15.526-34.734-34.734 0-9.274 3.612-17.992 10.166-24.557l58.132-58.121c6.785-6.784 6.785-17.783 0-24.568l-58.132-58.121c-6.553-6.565-10.166-15.283-10.166-24.557 0-19.196 15.526-34.734 34.734-34.734 9.274 0 17.992 3.613 24.557 10.166l58.121 58.132c6.785 6.773 17.784 6.773 24.568 0l58.121-58.132c6.565-6.553 15.283-10.166 24.557-10.166 19.196 0 34.734 15.526 34.734 34.734 0 9.274-3.612 17.992-10.166 24.557l-58.132 58.121c-6.785 6.784-6.785 17.783 0 24.568l58.132 58.121c6.553 6.565 10.166 15.283 10.166 24.557 0 19.196-15.526 34.734-34.734 34.734-9.274 0-17.992-3.613-24.557-10.166l-58.121-58.132c-6.784-6.784-17.784-6.773-24.568 0z"/>
|
|
328
|
-
</svg>`},S.icon.undo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
329
|
-
<path fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM9.25871 7.97395C9.56308 7.693 9.58205 7.21851 9.3011 6.91414C9.02015 6.60978 8.54565 6.5908 8.24129 6.87175L5.99129 8.94867C5.83748 9.09065 5.75 9.29045 5.75 9.49977C5.75 9.7091 5.83748 9.9089 5.99129 10.0509L8.24129 12.1278C8.54565 12.4088 9.02015 12.3898 9.3011 12.0854C9.58205 11.781 9.56308 11.3065 9.25871 11.0256L8.41824 10.2498H14.0385C14.7376 10.2498 15.2069 10.2506 15.5652 10.2862C15.9116 10.3205 16.0724 10.3813 16.1787 10.4501C16.3272 10.5461 16.4537 10.6726 16.5497 10.8211C16.6184 10.9274 16.6793 11.0882 16.7136 11.4345C16.7491 11.7929 16.75 12.2622 16.75 12.9613C16.75 13.6604 16.7491 14.1298 16.7136 14.4881C16.6793 14.8344 16.6185 14.9952 16.5497 15.1015C16.4537 15.2501 16.3272 15.3765 16.1787 15.4726C16.0724 15.5413 15.9116 15.6021 15.5652 15.6365C15.2069 15.672 14.7376 15.6729 14.0385 15.6729H9.5C9.08579 15.6729 8.75 16.0086 8.75 16.4229C8.75 16.8371 9.08579 17.1729 9.5 17.1729H14.0758C14.7279 17.1729 15.2721 17.1729 15.7133 17.1291C16.1748 17.0834 16.6038 16.9839 16.9931 16.7322C17.3199 16.5209 17.5981 16.2427 17.8094 15.916C18.0611 15.5266 18.1605 15.0976 18.2063 14.6361C18.25 14.195 18.25 13.6508 18.25 12.9987V12.924C18.25 12.2718 18.25 11.7276 18.2063 11.2865C18.1605 10.825 18.0611 10.396 17.8093 10.0067C17.5981 9.6799 17.3199 9.40169 16.9931 9.19042C16.6038 8.9387 16.1748 8.83927 15.7133 8.7935C15.2721 8.74975 14.7279 8.74976 14.0758 8.74977L8.41824 8.74977L9.25871 7.97395Z" />
|
|
330
|
-
<rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
|
|
331
|
-
</svg>`},S.icon.redo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
|
|
332
|
-
<path fill="#f9f9f9" fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM15.7587 6.87273C15.4543 6.59177 14.9799 6.61075 14.6989 6.91512C14.4179 7.21948 14.4369 7.69398 14.7413 7.97493L15.5818 8.75075H9.96155C7.63558 8.75075 5.75 10.6363 5.75 12.9623C5.75 15.2883 7.63557 17.1738 9.96154 17.1738H14.5C14.9142 17.1738 15.25 16.838 15.25 16.4238C15.25 16.0096 14.9142 15.6738 14.5 15.6738H9.96154C8.464 15.6738 7.25 14.4598 7.25 12.9623C7.25 11.4647 8.464 10.2508 9.96155 10.2508H15.5818L14.7413 11.0266C14.4369 11.3075 14.4179 11.782 14.6989 12.0864C14.9799 12.3908 15.4543 12.4097 15.7587 12.1288L18.0087 10.0519C18.1625 9.90987 18.25 9.71007 18.25 9.50075C18.25 9.29143 18.1625 9.09163 18.0087 8.94965L15.7587 6.87273Z"/>
|
|
333
|
-
<rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
|
|
334
|
-
</svg>`},S.icon.send=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
|
|
335
|
-
<path fill="none" stroke="${n}" stroke-width="2" d="M10.3009 13.6949L20.102 3.89742M10.5795 14.1355L12.8019 18.5804C13.339 19.6545 13.6075 20.1916 13.9458 20.3356C14.2394 20.4606 14.575 20.4379 14.8492 20.2747C15.1651 20.0866 15.3591 19.5183 15.7472 18.3818L19.9463 6.08434C20.2845 5.09409 20.4535 4.59896 20.3378 4.27142C20.2371 3.98648 20.013 3.76234 19.7281 3.66167C19.4005 3.54595 18.9054 3.71502 17.9151 4.05315L5.61763 8.2523C4.48114 8.64037 3.91289 8.83441 3.72478 9.15032C3.56153 9.42447 3.53891 9.76007 3.66389 10.0536C3.80791 10.3919 4.34498 10.6605 5.41912 11.1975L9.86397 13.42C10.041 13.5085 10.1295 13.5527 10.2061 13.6118C10.2742 13.6643 10.3352 13.7253 10.3876 13.7933C10.4468 13.87 10.491 13.9585 10.5795 14.1355Z" />
|
|
336
|
-
</svg>`},S.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
337
|
-
<line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
338
|
-
<line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
339
|
-
</svg>`},S.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
340
|
-
<line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
341
|
-
<line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
342
|
-
</svg>`},S.icon.fit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 128 128">
|
|
343
|
-
<path fill="${n}" d="M 58.1875 4.90625 C 29.957889 4.90625 6.9375 27.957888 6.9375 56.1875 C 6.9375 84.417111 29.957889 107.4375 58.1875 107.4375 C 69.752492 107.4375 80.436703 103.56785 89.03125 97.0625 L 108.59375 120.4375 A 7.0007 7.0007 0 1 0 119.3125 111.4375 L 98.96875 87.15625 C 105.53731 78.538312 109.4375 67.814416 109.4375 56.1875 C 109.4375 27.957888 86.417111 4.90625 58.1875 4.90625 z M 58.1875 18.875 C 78.850949 18.875 95.4375 35.52405 95.4375 56.1875 C 95.4375 76.850949 78.850949 93.4375 58.1875 93.4375 C 37.524051 93.4375 20.9375 76.850949 20.9375 56.1875 C 20.9375 35.52405 37.524051 18.875 58.1875 18.875 z M 33.125 31.09375 L 33.125 36.40625 L 33.125 75.90625 L 33.125 81.21875 L 38.4375 81.21875 L 77.9375 81.21875 L 83.25 81.21875 L 83.25 75.90625 L 83.25 36.40625 L 83.25 31.09375 L 77.9375 31.09375 L 38.4375 31.09375 L 33.125 31.09375 z M 43.78125 41.75 L 72.59375 41.75 L 72.59375 70.5625 L 43.78125 70.5625 L 43.78125 41.75 z "/>
|
|
344
|
-
</svg>`},S.icon.expand_all=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32">
|
|
345
|
-
<path fill="${n}" d="M13.816 5.989l-7.785 0.046 0.003 7.735 2.59-2.591 3.454 3.454 2.665-2.665-3.453-3.454 2.526-2.525zM12.079 17.35l-3.454 3.455-2.59-2.592-0.003 7.799 7.785-0.018-2.526-2.525 3.454-3.453-2.666-2.666zM19.922 14.633l3.453-3.454 2.59 2.591 0.004-7.735-7.785-0.046 2.526 2.525-3.454 3.454 2.666 2.665zM23.375 20.805l-3.453-3.455-2.666 2.666 3.454 3.453-2.526 2.525 7.785 0.018-0.004-7.799-2.59 2.592z"></path>
|
|
346
|
-
</svg>`},S.icon.full_screen=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 48 48">
|
|
347
|
-
<rect width="48" height="48" fill="${n}" fill-opacity="0.01"/>
|
|
348
|
-
<path fill="none" d="M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16" stroke="${n}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
349
|
-
<rect x="24" y="24" width="20" height="16" rx="2" fill="none" stroke="${n}" stroke-width="4" stroke-linejoin="round"/>
|
|
350
|
-
</svg>`},S.icon.zoom_in=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32" >
|
|
351
|
-
<g sketch:type="MSLayerGroup" transform="translate(-362.000000, -1037.000000)" fill="${n}">
|
|
352
|
-
<path d="M390,1049 L382,1049 L382,1041 C382,1038.79 380.209,1037 378,1037 C375.791,1037 374,1038.79 374,1041 L374,1049 L366,1049 C363.791,1049 362,1050.79 362,1053 C362,1055.21 363.791,1057 366,1057 L374,1057 L374,1065 C374,1067.21 375.791,1069 378,1069 C380.209,1069 382,1067.21 382,1065 L382,1057 L390,1057 C392.209,1057 394,1055.21 394,1053 C394,1050.79 392.209,1049 390,1049" id="plus" sketch:type="MSShapeGroup"></path>
|
|
353
|
-
</g>
|
|
354
|
-
</svg>`},S.icon.zoom_out=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 -12 32 32" >
|
|
355
|
-
<g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-414.000000, -1049.000000)" fill="${n}">
|
|
356
|
-
<path d="M442,1049 L418,1049 C415.791,1049 414,1050.79 414,1053 C414,1055.21 415.791,1057 418,1057 L442,1057 C444.209,1057 446,1055.21 446,1053 C446,1050.79 444.209,1049 442,1049" id="minus" sketch:type="MSShapeGroup"></path>
|
|
357
|
-
</g>
|
|
358
|
-
</svg>`},S.icon.layout_normal=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
359
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
360
|
-
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
361
|
-
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
362
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
|
|
363
|
-
<line stroke="${n}" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line>
|
|
364
|
-
<line stroke="${n}" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line>
|
|
365
|
-
<line stroke="${n}" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line>
|
|
366
|
-
</svg>`},S.icon.layout_right_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
367
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
368
|
-
<rect fill="${n}" x="40" y="41" width="50" height="27"></rect>
|
|
369
|
-
<rect fill="${n}" x="40" y="73" width="50" height="27"></rect>
|
|
370
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
|
|
371
|
-
<line stroke="${n}" x1="60" x2="35" y1="35" y2="35" stroke-width="1"></line>
|
|
372
|
-
<line stroke="${n}" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line>
|
|
373
|
-
<line stroke="${n}" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line>
|
|
374
|
-
<line stroke="${n}" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line>
|
|
375
|
-
</svg>`},S.icon.layout_left_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
376
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
377
|
-
<rect fill="${n}" x="30" y="41" width="50" height="27"></rect>
|
|
378
|
-
<rect fill="${n}" x="30" y="73" width="50" height="27"></rect>
|
|
379
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
|
|
380
|
-
<line stroke="${n}" x1="60" x2="85" y1="35" y2="35" stroke-width="1"></line>
|
|
381
|
-
<line stroke="${n}" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line>
|
|
382
|
-
<line stroke="${n}" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line>
|
|
383
|
-
<line stroke="${n}" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line>
|
|
384
|
-
</svg>`},S.icon.layout_mixed=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
385
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
386
|
-
<rect fill="${n}" x="35" y="41" width="50" height="27"></rect>
|
|
387
|
-
<rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
|
|
388
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line>
|
|
389
|
-
<line stroke="${n}" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line>
|
|
390
|
-
</svg>`},S.icon.layout_tree=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
391
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
392
|
-
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
393
|
-
<rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
|
|
394
|
-
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
395
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line>
|
|
396
|
-
<line stroke="${n}" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line>
|
|
397
|
-
</svg>`},S.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
398
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
399
|
-
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
400
|
-
<rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
|
|
401
|
-
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
402
|
-
<rect fill="${n}" x="63" y="73" width="50" height="27"></rect>
|
|
403
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>
|
|
404
|
-
<line stroke="${n}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>
|
|
405
|
-
<line stroke="${n}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>
|
|
406
|
-
<line stroke="${n}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>
|
|
407
|
-
<line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
|
|
408
|
-
<line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
|
|
409
|
-
<line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
|
|
410
|
-
</svg>`},S.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
411
|
-
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
412
|
-
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
413
|
-
<rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
|
|
414
|
-
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
415
|
-
<rect fill="${n}" x="63" y="73" width="50" height="27"></rect>
|
|
416
|
-
<line stroke="${n}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>
|
|
417
|
-
<line stroke="${n}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>
|
|
418
|
-
<line stroke="${n}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>
|
|
419
|
-
<line stroke="${n}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>
|
|
420
|
-
<line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
|
|
421
|
-
<line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
|
|
422
|
-
<line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
|
|
423
|
-
</svg>`},S.icon.cursor=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 16 16" >
|
|
424
|
-
<path d="M8 3V0H6V3H8Z" fill="${n}"/>
|
|
425
|
-
<path d="M0.792893 2.20711L3.29289 4.70711L4.70711 3.29289L2.20711 0.792893L0.792893 2.20711Z" fill="${n}"/>
|
|
426
|
-
<path d="M6 5L5 6.00001L8 15H10L10.7172 12.1314L14.2929 15.7071L15.7071 14.2929L12.1314 10.7172L15 10V8L6 5Z" fill="${n}"/>
|
|
427
|
-
<path d="M0 6H3V8H0V6Z" fill="${n}"/>
|
|
428
|
-
</svg>`},S.prototype.exportPDFProfile=function(e,t){console.warn(`exportPDFProfile is obsolete; use exportToPDFProfile instead.`)},S.prototype.exportPDFPreview=function(e,t){console.warn(`exportPDFPreview is obsolete; use exportToPDFProfile instead.`)},S.prototype.exportPNGProfile=function(e,t){console.warn(`exportPNGProfile is obsolete; use exportToPDFProfile instead.`)},S.prototype.exportPDF=function(e,t){console.warn(`exportPDF is obsolete; use exportToPDF instead.`)},S.prototype.exportPNG=function(e,t){console.warn(`exportPNG is obsolete; use exportToPNG instead.`)},S.prototype.exportSVG=function(e,t){console.warn(`exportSVG is obsolete; use exportToSVG instead.`)},S.prototype.exportVisio=function(e,t){console.warn(`exportVisio is obsolete; use exportToVisio instead.`)},S.exportPDFFromCharts=function(e,t,n,r){console.warn(`The "exportPDFFromCharts" is depricated. Use "chart1.exportToPDF" with pages instead.`)},S.prototype.shareProfile=function(e){var t;typeof e==`object`?(t=e,e=t.focusId):t=this.editUI.content(e,!0,!0,`100%`,!0);var n=new URL(window.location.href);n.searchParams.append(`nodeId`,e);var r={title:t.title,text:t.shareText,url:n.href};try{navigator.share(r)}catch(e){console.error(`error: `+e)}},S.prototype.exportToCSV=S.prototype.exportCSV=function(e){var t=S._defaultExportProfileOptionsForCSV_SVG_JSON(e,`csv`),n=this.getNode(t.nodeId),r=null;n?(r=[],S._exportIterateForJSON_XML_CSV(this,n,t,r)):t.min===!1||t.expandChildren===!1?S._exportIterateForJSON_XML_CSV(this,this.roots,t,r):r=JSON.parse(JSON.stringify(this.config.nodes));var i={ext:`csv`,filename:e,options:t,nodes:r},a=S.events.publish(`exportstart`,[this,i]);if(a===!1)return!1;var o=S._json2csv(i.nodes),s={ext:i.ext,filename:i.filename,options:t,nodes:i.nodes,content:o},a=S.events.publish(`exportend`,[this,s]);if(a===!1)return!1;S._downloadFile(`text/csv;charset=utf-8;`,``+s.content,s.options.filename,s.options.openInNewTab,s.ext)},S.prototype.exportToXML=S.prototype.exportXML=function(e){var t=S._defaultExportProfileOptionsForCSV_SVG_JSON(e,`xml`),n=this.getNode(t.nodeId),r=null;n?(r=[],S._exportIterateForJSON_XML_CSV(this,n,t,r)):t.min===!1||t.expandChildren===!1?S._exportIterateForJSON_XML_CSV(this,this.roots,t,r):r=JSON.parse(JSON.stringify(this.config.nodes));var i={ext:`xml`,filename:e,options:t,nodes:r},a=S.events.publish(`exportstart`,[this,i]);if(a===!1)return!1;var o=S._json2xml(i.nodes),s={ext:i.ext,filename:i.filename,options:t,nodes:i.nodes,content:o},a=S.events.publish(`exportend`,[this,s]);if(a===!1)return!1;S._downloadFile(`application/xml`,s.content,s.options.filename,s.options.openInNewTab,s.ext)},S.prototype.exportToJSON=S.prototype.exportJSON=function(e){var t=S._defaultExportProfileOptionsForCSV_SVG_JSON(e,`json`),n=this.getNode(t.nodeId),r=null;n?(r=[],S._exportIterateForJSON_XML_CSV(this,n,t,r)):t.min===!1||t.expandChildren===!1?S._exportIterateForJSON_XML_CSV(this,this.roots,t,r):r=JSON.parse(JSON.stringify(this.config.nodes));var i={ext:`json`,filename:t.filename,options:t,nodes:r},a=S.events.publish(`exportstart`,[this,i]);if(a===!1)return!1;var o={ext:i.ext,filename:i.filename,options:t,nodes:i.nodes,content:JSON.stringify(i.nodes)},a=S.events.publish(`exportend`,[this,o]);if(a===!1)return!1;S._downloadFile(`application/json`,o.content,o.options.filename,o.options.openInNewTab,o.ext)},S._exportIterateForJSON_XML_CSV=function(e,t,n,r){if(Array.isArray(t)){for(var i=0;i<t.length;i++)S._exportIterateForJSON_XML_CSV(e,t[i],n,r);return}var a=e.get(t.id);if(r.push(a),n.min)for(var i=0;i<t.stChildrenIds.length;i++)S._exportIterateForJSON_XML_CSV(e,e.getNode(t.stChildrenIds[i]),n,r);else for(var i=0;i<t.stChildren.length;i++)S._exportIterateForJSON_XML_CSV(e,t.stChildren[i],n,r);if(n.expandChildren)for(var i=0;i<t.childrenIds.length;i++)S._exportIterateForJSON_XML_CSV(e,e.getNode(t.childrenIds[i]),n,r);else for(var i=0;i<t.children.length;i++)S._exportIterateForJSON_XML_CSV(e,t.children[i],n,r)},S._defaultExportProfileOptionsForCSV_SVG_JSON=function(e,t){return S.isNEU(e)&&(e={}),typeof e==`string`&&(e={filename:e}),S.isNEU(e.filename)&&(e.filename=`OrgChart.${t}`),S.isNEU(e.expandChildren)&&(e.expandChildren=!0),S.isNEU(e.min)&&(e.min=!0),S.isNEU(e.openInNewTab)&&(e.openInNewTab=!1),e},S.prototype.exportToPDFProfile=function(e,t){chart.exportToPDF({format:`A4`,pages:[{nodeId:e,isProfile:!0}]},t)},S.prototype.exportToVisio=function(e,t){var n=this;e=S._setDefaultOptions(e,`vstx`),this._createExportPages(`vstx`,e,function(r){for(var i=0;i<e.pages.length;i++)S.loading.show(e.pages[i].chartInstance);n._requestToExportVisio(r,e,function(r){var i=!0;if(t&&(i=t(r)),i!==!1){var i=S.events.publish(`exportend`,[n,r]);if(i===!1)return S._exportHideAnimation(e),!1;S._downloadFile(`application/vnd.visio`,r,e.fileName,e.openInNewTab,`vsdx`)}S._exportHideAnimation(e)})})},S.prototype.exportToPDF=function(e,t){var n=this;e=S._setDefaultOptions(e,`pdf`),this._createExportPages(`pdf`,e,function(r){for(var i=0;i<e.pages.length;i++)S.loading.show(e.pages[i].chartInstance);n._requestToExportPDF(r,e,function(r){var i=!0;if(t&&(i=t(r)),i!==!1){var i=S.events.publish(`exportend`,[n,r]);if(i===!1)return S._exportHideAnimation(e),!1;S._downloadFile(`application/pdf`,r,e.fileName,e.openInNewTab,`pdf`)}S._exportHideAnimation(e)})})},S.prototype.exportToPNG=function(e,t){var n=this;e=S._setDefaultOptions(e,`png`),this._createExportPages(`png`,e,function(r){for(var i=0;i<e.pages.length;i++)S.loading.show(e.pages[i].chartInstance);n._requestToExportPNG(r,e,function(r){var i=!0;if(t&&(i=t(r)),i!==!1){var i=S.events.publish(`exportend`,[n,r]);if(i===!1)return S._exportHideAnimation(e),!1;e.pages.length==1?S._downloadFile(`image/png`,r,e.fileName,e.openInNewTab,`png`):S._downloadFile(`application/zip`,r,e.fileName.replaceAll(`.png`,`.zip`),!1,`zip`)}S._exportHideAnimation(e)})})},S.prototype.exportToSVG=function(e,t){var n=this;e=S._setDefaultOptions(e,`svg`),this._createExportPages(`svg`,e,function(r){for(var i=0;i<e.pages.length;i++)S.loading.show(e.pages[i].chartInstance);n._requestToExportSVG(r,e,function(r){var i=!0;if(t&&(i=t(r)),i!==!1){var i=S.events.publish(`exportend`,[n,r]);if(i===!1)return S._exportHideAnimation(e),!1;e.pages.length==1?S._downloadFile(`image/svg+xml`,r,e.fileName,e.openInNewTab,`svg`):S._downloadFile(`application/zip`,r,e.fileName.replaceAll(`.svg`,`.zip`),!1,`zip`)}S._exportHideAnimation(e)})})},S.prototype.exportToPowerPoint=function(e,t){var n=this;e=S._setDefaultOptions(e,`pptx`),this._createExportPages(`pptx`,e,function(r){for(var i=0;i<e.pages.length;i++)S.loading.show(e.pages[i].chartInstance);n._requestToExportPowerPoint(r,e,function(r){var i=!0;if(t&&(i=t(r)),i!==!1){var i=S.events.publish(`exportend`,[n,r]);if(i===!1)return S._exportHideAnimation(e),!1;S._downloadFile(`application/msword`,r,e.fileName,e.openInNewTab,`pptx`)}S._exportHideAnimation(e)})})},S._exportHideAnimation=function(e){for(var t=0;t<e.pages.length;t++)S.loading.hide(e.pages[t].chartInstance)},S._setDefaultOptions=function(e,t,n){return e||={},e.type=t,e.landscape??(t==`pdf`?e.landscape=!1:t==`pptx`&&(e.landscape=!0)),e.header??=``,e.expandChildren??=!1,e.childLevels??=null,e.parentLevels??=null,e.min??=!0,e.format??(t==`pdf`&&!n?e.format=`auto`:t==`pdf`&&n?e.format=`A4`:t==`pptx`&&(e.format=`Widescreen`)),e.footer??(t==`pdf`?e.format==`auto`?e.footer=``:e.footer=`<text style="fill: #aeaeae" x="0" y="15">Page {current-page} of {total-pages}</text>`:t==`png`||t==`svg`?e.footer=``:t==`pptx`?e.footer=`<text style="fill: #aeaeae" x="0" y="15">Slide {current-page} of {total-pages}</text>`:t==`vstx`&&(e.footer=``)),e.fileName??=`OrgChart.`+t,e.openInNewTab??=!1,e.width==null&&e.height==null&&(t==`png`||t==`svg`||t==`vstx`||t==`pdf`&&e.format==`auto`?(e.width=`auto`,e.height=`auto`):(S.Screen={width:screen.height/2,height:screen.width/2},e.landscape?(e.width=S[e.format].height,e.height=S[e.format].width):(e.width=S[e.format].width,e.height=S[e.format].height))),e.margin??=[30,20,30,20],e.padding??=0,e.pages||=[{}],e},S.prototype._requestToExportPDF=function(e,t,n){S.__requestExport(this.config.serverUrl+`/Export/PDF`,t.fileName,e,n)},S.prototype._requestToExportPNG=function(e,t,n){S.__requestExport(this.config.serverUrl+`/Export/PNG`,t.fileName,e,n)},S.prototype._requestToExportVisio=function(e,t,n){S.__requestExport(this.config.serverUrl+`/Export/VSTX`,t.fileName,e,n)},S.prototype._requestToExportSVG=function(e,t,n){S.__requestExport(this.config.serverUrl+`/Export/SVG`,t.fileName,e,n)},S.prototype._requestToExportPowerPoint=function(e,t,n){S.__requestExport(this.config.serverUrl+`/Export/PowerPoint`,t.fileName,e,n)},S.__requestExport=function(e,t,n,r){var i={filename:t,pages:n};S._ajax(e,`POST`,JSON.stringify(i),`arraybuffer`,function(e){r(e)})},S.prototype._createExportPages=function(e,t,n){var r=[];if(t.pages.length)for(var i=0;i<t.pages.length;i++)this.__createExportPages(e,i,r,t,n);else n(r)},S.prototype.__createExportPages=function(e,t,n,r,i){var a=this,o=r.pages[t];if(o.chartInstance||=this,o.expandChildren===void 0&&(o.expandChildren=r.expandChildren),o.childLevels===void 0&&(o.childLevels=r.childLevels),o.parentLevels===void 0&&(o.parentLevels=r.parentLevels),o.min===void 0&&(o.min=r.min),o.header===void 0&&(o.header=r.header),o.footer===void 0&&(o.footer=r.footer),o.childLevels!=null&&(o.expandChildren=!1),o.padding===void 0&&(o.padding=r.padding),o.margin===void 0&&(o.margin=r.margin),o.content!=null||o.isProfile===!0){o.isProfile&&(o.content=this._createProfileSvg(r,o));var s=a._createMasterSvg(e,o.content,t,r,o.content!=null);if(n.push(s),a.___createExportPages(e,t,n,r,i))return}else{var c={id:o.nodeId,expandChildren:o.expandChildren,parentLevels:o.parentLevels,childLevels:o.childLevels,min:o.min};r.pages[t].chartInstance._draw(!1,S.action.exporting,c,function(o,s){var c=a._createMasterSvg(e,o,t,r,!1);n.push(c),a.___createExportPages(e,t,n,r,i)})}},S.prototype._createMasterSvg=function(e,t,n,r,i){var a=!1;t==``&&(a=!0,t=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="100" height="100" viewBox="0,0,0,0"><svg>`);var o=r.pages[n],s=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);s.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),s.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`),document.body.appendChild(s);var c=S._getSvgAttributes(t);a?r.width==`auto`?o.width=1e3:o.width=r.width:r.width==`auto`?o.width=c.width+o.margin[3]+o.margin[1]:o.width=r.width;var l=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);l.innerHTML=`${o.header.replaceAll(`{current-page}`,n+1).replaceAll(`{total-pages}`,r.pages.length)}`,s.appendChild(l),S._setYAttrToTextElements(o,r,l);var u=l.getBoundingClientRect();u.height&&(u.height+=10),l.setAttribute(`transform`,`matrix(1,0,0,1,${o.margin[3]},${o.margin[0]})`);var d=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);d.innerHTML=`${o.footer.replaceAll(`{current-page}`,n+1).replaceAll(`{total-pages}`,r.pages.length)}`,s.appendChild(d),S._setYAttrToTextElements(o,r,d);var f=d.getBoundingClientRect();if(a?r.height==`auto`?o.height=1e3:o.height=r.height:r.height==`auto`?o.height=c.height+o.margin[0]+o.margin[2]+u.height+f.height:o.height=r.height,d.setAttribute(`transform`,`matrix(1,0,0,1,${o.margin[3]},${o.height-o.margin[2]-f.height})`),s.classList.add(`boc-`+this.config.mode),document.body.removeChild(s),!o.isProfile){var p=(o.width-o.margin[3]-o.margin[1])/c.width,m=(o.height-o.margin[0]-o.margin[2]-u.height-f.height)/c.height,h=Math.min(p,m,1);c.width*=h,c.height*=h,c.viewBox[0]-=o.padding,c.viewBox[1]-=o.padding,c.viewBox[2]+=o.padding*2,c.viewBox[3]+=o.padding*2,c.x=(o.width-c.width)/2,c.y=o.margin[0]+u.height+(o.height-o.margin[0]-u.height-o.margin[2]-f.height-c.height)/2}var g=i?S._isSVG(t)?t:`<foreignObject x="0" y="0" width="100%" height="100%">${t}</foreignObject>`:S._setSvgAttributes(t,c),_=o.width,v=o.height;return e==`pdf`&&!o.isProfile&&(_+=2,v+=2),s.setAttribute(`width`,_),s.setAttribute(`height`,v),s.innerHTML=g+s.innerHTML,s},S.prototype._createProfileSvg=function(e,t){var n=this.editUI.content(t.nodeId,!0,!0,`100%`,!0).element;return S.input.init(n),`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="${e.width}" height="${e.height}" viewBox="0,0,${e.width},${e.height}">
|
|
429
|
-
<style>
|
|
430
|
-
form.boc-edit-form, div.boc-edit-form-header {
|
|
431
|
-
border-radius: 0;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
</style>
|
|
435
|
-
<foreignobject class="node" x="0" y="0" width="${e.width}" height="${e.height}">${n.outerHTML}</foreignobject>
|
|
436
|
-
</svg>`},S.prototype.___createExportPages=function(e,t,n,r,i){if(t>=r.pages.length-1){var a={pages:n,options:r,styles:``};if(S.events.publish(`exportstart`,[this,a])===!1)return!1;var o=this.mainElement.querySelector(`[data-boc-styles]`);if(o&&(a.styles+=o.outerHTML),a.styles)for(var s=0;s<a.pages.length;s++){var c=a.pages[s];c.insertAdjacentHTML(`afterbegin`,a.styles),a.pages[s]=c.outerHTML}return S.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT?S._convertImagesToBase64(a.pages).then(function(e){a.pages=e,i(a.pages)}):i(a.pages),!0}return!1},S._setYAttrToTextElements=function(e,t,n){for(var r=n.querySelectorAll(`text`),i=0;i<r.length;i++){var a=r[i];if(!a.hasAttribute(`y`)){var o=a.getBoundingClientRect();a.setAttribute(`y`,o.height)}if(a.hasAttribute(`text-anchor`)&&!a.hasAttribute(`x`)){var s=a.getAttribute(`text-anchor`).toLowerCase(),c=e.width-e.margin[1]-e.margin[3];s==`end`?a.setAttribute(`x`,c):s==`middle`&&a.setAttribute(`x`,c/2)}}},S.exportUI=function(e){this.instance=null,this.interval=null,this.element=null,this.options=null,this.selectedIndex=0,this.type=e,this.locExport=`Export`,this.locLandscape=`Landscape`,this.locPortrait=`Portrait`,this.locCancel=`Close`,this.locParentLevels=`parent levels`,this.locChildLevels=`child levels`,this.locClickToAdd=`Click on a node to display it here`,this.locPrintTree=`Print tree`,this.locPrintProfile=`Print profile`,e==`pdf`?(this.locAddNew=`Add new page`,this.locRemove=`Remove page`):e==`png`?(this.locAddNew=`Add new PNG`,this.locRemove=`Remove PNG`):e==`svg`?(this.locAddNew=`Add new SVG`,this.locRemove=`Remove SVG`):e==`pptx`&&(this.locAddNew=`Add new slide`,this.locRemove=`Remove slide`),this.buttons={parentLevels:!1,childLevels:!0,printProfileOrTree:!0,removePage:!0,addNewPage:!0,landscapePortrait:!0},Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}}),Object.defineProperty(this,`selectedPage`,{get(){var e=this.instance.leftElement.querySelector(`.boc-export-selected`);if(e){var t=e.getAttribute(`data-boc-export-page`);return t=parseInt(t),this.options.pages[t]}return null}})},S.exportUI.prototype.init=function(e){this.instance=e},S.exportUI.prototype.show=function(e){this.selectedIndex=0,this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this.options=S._setDefaultOptions(e,this.type,!0);var t=this;this.instance._createExportPages(this.type,this.options,function(e){t._init(e)})},S.exportUI.prototype.isVisible=function(){return this.element!=null},S.exportUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},S.exportUI.prototype.refresh=function(){var e=this;this.instance._createExportPages(this.type,this.options,function(t){e._draw(t)})},S.exportUI.prototype._init=function(e){var t=this;this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-export-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-export-form`),this.element.classList.add(this.instance.config.mode),this.element.style.display=``;var n=``;this.type==`pdf`&&this.options.format!=`auto`&&(n=`<button ${this.buttons.landscapePortrait?``:`style="display: none;"`} data-boc-export-landcapeportrait>${this.options.landscape?this.locPortrait:this.locLandscape}</button> `),this.element.innerHTML=`<div class="boc-export-container">
|
|
437
|
-
<div class="boc-export-btns">
|
|
438
|
-
|
|
439
|
-
<div class="boc-export-btns-inner">
|
|
440
|
-
<div class="boc-export-left">
|
|
441
|
-
<button data-boc-export-cancel>${this.locCancel}</button>
|
|
442
|
-
${n}
|
|
443
|
-
<button ${this.buttons.addNewPage?``:`style="display: none;"`} data-boc-export-btnnewpage>${this.locAddNew}</button>
|
|
444
|
-
</div>
|
|
445
|
-
<div class="boc-export-right">
|
|
446
|
-
<button class="boc-export-btn" data-boc-export-export>${this.locExport}</button>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
<div class="boc-export-middle">
|
|
451
|
-
<div class="boc-export-middle-inner" data-boc-export-pages>
|
|
452
|
-
</div>
|
|
453
|
-
</div>
|
|
454
|
-
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,this.instance.leftElement.querySelector(`[data-boc-export-btnnewpage]`).addEventListener(`click`,function(e){t.addPage({content:``})});var r=this.instance.leftElement.querySelector(`[data-boc-export-landcapeportrait]`);r&&r.addEventListener(`click`,function(e){t.toggleLanscape()}),this.instance.leftElement.querySelector(`[data-boc-export-pages]`).addEventListener(`click`,function(e){for(var n=e.target;n&&n.hasAttribute&&!n.hasAttribute(`data-boc-export-page`);)n=n.parentNode;var r;n&&n.hasAttribute&&n.hasAttribute(`data-boc-export-page`)&&(r=n.getAttribute(`data-boc-export-page`)),e.target.hasAttribute&&(e.target.hasAttribute(`data-export-remove`)?t.removePage(r):e.target.hasAttribute(`data-export-child-plus`)?t._incrementDecrementChildLevel(r,!0):e.target.hasAttribute(`data-export-child-minus`)?t._incrementDecrementChildLevel(r,!1):e.target.hasAttribute(`data-export-parent-plus`)?t._incrementDecrementParentLevel(r,!0):e.target.hasAttribute(`data-export-parent-minus`)?t._incrementDecrementParentLevel(r,!1):e.target.hasAttribute(`data-export-profiletree`)?t.toggelePrintTreeOrProfile(r,!1):t.selectPage(r))});var i=this.instance.leftElement.querySelector(`[data-boc-export-cancel]`);i&&i.addEventListener(`click`,function(e){t.hide()});var a=this.instance.leftElement.querySelector(`[data-boc-export-export]`);a&&a.addEventListener(`click`,function(e){t.instance.powerPointPreviewUI.isVisible()?t.instance.exportToPowerPoint(t.options):t.instance.pdfPreviewUI.isVisible()?t.instance.exportToPDF(t.options):t.instance.pngPreviewUI.isVisible()?t.instance.exportToPNG(t.options):t.instance.svgPreviewUI.isVisible()&&t.instance.exportToSVG(t.options)}),this.interval&&=(clearTimeout(this.interval),null),this.interval=S.animate(this.element,{opacity:0},{opacity:1},300,S.anim.outSin,function(){t._draw(e)})},S.exportUI.prototype._draw=function(e){var t=this.instance.leftElement.querySelector(`[data-boc-export-pages]`);t.innerHTML=``;for(var n=0;n<e.length;n++){var r=e[n],i=this.options.pages[n].width/this.options.pages[n].height,a=S._getSvgAttributes(r);a.viewBox[0]=0,a.viewBox[1]=0,a.viewBox[2]=a.width,a.viewBox[3]=a.height,a.width=`100%`,a.height=`100%`;var o=S._setSvgAttributes(r,a),s=S._getSvgAttributes;this.options.pages[n].content==``&&(s=` boc-export-empty`);var c=`<div ${this.buttons.removePage?``:`style="display: none;"`} class="boc-export-remove-buttons">
|
|
455
|
-
<button data-export-remove="${n}">${this.locRemove}</button>
|
|
456
|
-
</div>`;this.type==`pdf`&&this.options.format!=`auto`&&!S.isNEU(this.options.pages[n].nodeId)&&(!this.options.pages[n].content||this.options.pages[n].isProfile&&this.options.pages[n].content)&&(c+=`<div ${this.buttons.printProfileOrTree?``:`style="display: none;"`} class="boc-export-profiletree-buttons">
|
|
457
|
-
<button data-export-profiletree="${n}">${this.options.pages[n].isProfile?this.locPrintTree:this.locPrintProfile}</button>
|
|
458
|
-
</div>`),!this.options.pages[n].isProfile&&!S.isNEU(this.options.pages[n].nodeId)&&(c=`<div ${this.buttons.parentLevels?``:`style="display: none;"`} class="boc-export-parent-buttons">
|
|
459
|
-
<button data-export-parent-minus="${n}">-</button>
|
|
460
|
-
<button data-export-parent-plus="${n}">+</button> ${this.options.pages[n].parentLevels==null?`all`:this.options.pages[n].parentLevels} ${this.locParentLevels}
|
|
461
|
-
</div>
|
|
462
|
-
<div ${this.buttons.childLevels?``:`style="display: none;"`} class="boc-export-child-buttons">
|
|
463
|
-
<button data-export-child-minus="${n}">-</button>
|
|
464
|
-
<button data-export-child-plus="${n}">+</button> ${this.options.pages[n].childLevels==null?`all`:this.options.pages[n].childLevels} ${this.locChildLevels}
|
|
465
|
-
</div>`+c),t.innerHTML+=`<div data-boc-export-page="${n}" style="aspect-ratio: ${i};" class="boc-export-page ${s}">
|
|
466
|
-
${o}
|
|
467
|
-
${c}
|
|
468
|
-
</div>`}this.selectPage(this.selectedIndex)},S.exportUI.prototype.toggleLanscape=function(){var e=this;this.options.landscape=!this.options.landscape,this.options.width=void 0,this.options.height=void 0,this.options=S._setDefaultOptions(this.options,this.type,!0);var t=this.instance.leftElement.querySelector(`[data-boc-export-landcapeportrait]`);t.innerHTML=this.options.landscape?this.locPortrait:this.locLandscape,this.instance._createExportPages(this.type,this.options,function(t){e._draw(t),e.selectPage(e.options.pages.length-1)})},S.exportUI.prototype.addPage=function(e){var t=this;this.options.pages.push(e),this.instance._createExportPages(this.type,this.options,function(e){t._draw(e),t.selectPage(t.options.pages.length-1);var n=t.element.querySelector(`.boc-export-middle`);S.animate(n,{scrollTop:n.scrollTop},{scrollTop:n.scrollHeight},600,S.anim.outSin)})},S.exportUI.prototype.removePage=function(e){e=parseInt(e);var t=this;e<=t.selectedIndex&&(t.selectedIndex--,t.selectedIndex<0&&(t.selectedIndex=0)),this.options.pages.splice(e,1),this.instance._createExportPages(this.type,this.options,function(e){t._draw(e),t.selectPage(t.selectedIndex)})},S.exportUI.prototype._incrementDecrementChildLevel=function(e,t){var n=this;e<n.selectedIndex&&n.selectedIndex--;var r=this.options.pages[e];r.childLevels??(t?r.childLevels=0:r.childLevels=2),t?r.childLevels++:r.childLevels--,r.childLevels==-1&&(r.childLevels=0),r.expandChildren=!1,this.instance._createExportPages(this.type,this.options,function(e){n._draw(e),n.selectPage(n.selectedIndex)})},S.exportUI.prototype.toggelePrintTreeOrProfile=function(e){var t=this,n=this.options.pages[e];n.isProfile=!n.isProfile,this.options.pages[e].content=void 0,this.instance._createExportPages(this.type,this.options,function(e){t._draw(e),t.selectPage(t.selectedIndex)})},S.exportUI.prototype._incrementDecrementParentLevel=function(e,t){var n=this;e<n.selectedIndex&&n.selectedIndex--;var r=this.options.pages[e];r.parentLevels==null?r.parentLevels=1:t?r.parentLevels++:r.parentLevels--,r.parentLevels==-1&&(r.parentLevels=0),this.instance._createExportPages(this.type,this.options,function(e){n._draw(e),n.selectPage(n.selectedIndex)})},S.exportUI.prototype.selectPage=function(e){for(var t=this.instance.leftElement.querySelectorAll(`[data-boc-export-page]`),n=0;n<t.length;n++)t[n].classList.remove(`boc-export-selected`);for(var t=this.instance.leftElement.querySelectorAll(`.boc-export-select`),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var r=this.instance.leftElement.querySelectorAll(`[data-boc-export-pages] .boc-export-page`);if(r.length){var i=r[e];i.classList.contains(`boc-export-empty`)&&(i.innerHTML+=`<div class="boc-export-select">${this.locClickToAdd}</div>`),i.classList.add(`boc-export-selected`),this.selectedIndex=e}},S===void 0&&(S={}),S.events=(function(){var e={};return{on:function(t,n,r){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:n,event_id:r})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,n,r){var i=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var a=e[t].length-1;a>=0;a--)(!S.isNEU(r)&&!S.isNEU(n)&&e[t][a].event_id==r&&e[t][a].listener==n||!S.isNEU(r)&&S.isNEU(n)&&e[t][a].event_id==r||S.isNEU(r)&&!S.isNEU(n)&&e[t][a].listener==n||S.isNEU(r)&&S.isNEU(n))&&(e[t].splice(a,1),i=!0);return i},has:function(t,n){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(S.isNEU(n))return!0;for(var r=0;r<e[t].length;r++)if(e[t][r].event_id==n)return!0}return!1},removeForEventId:function(t){for(var n in e)if(Array.isArray(e[n]))for(var r=e[n].length-1;r>=0;r--)e[n][r].event_id==t&&e[n].splice(r,1)},publish:function(t,n){if(e[t]){for(var r=[],i=0;i<e[t].length;i++){var a=e[t][i];(a.event_id==null||a.event_id==n[0]._event_id)&&r.push(a.listener)}if(r.length>0){for(var o=!0,i=0;i<r.length&&(n.length==1?o=r[i](n[0])&&o:n.length==2?o=r[i](n[0],n[1])&&o:n.length==3?o=r[i](n[0],n[1],n[2])&&o:n.length==4?o=r[i](n[0],n[1],n[2],n[3])&&o:n.length==5&&(o=r[i](n[0],n[1],n[2],n[3],n[4])&&o),o!==!1);i++);return o}}}}})(),S.prototype.importCSV=function(){var e=this,t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.setAttribute(`accept`,`.csv`),t.style.display=`none`,t.onchange=function(t){var n=t.target,r=new FileReader;r.onload=function(){var t=r.result,n=S._csvToArray(t),i=[],a=n[0];S._importSetColumnNames(a,function(t){for(var r=1;r<n.length;r++){for(var a={},o=0;o<n[r].length;o++){var s=t[o],c=n[r][o];a[s]=S._convertStringToArray(s,c)}a.id.trim()!=``&&i.push(a)}var l={nodes:i,columnNames:n[0]};S.events.publish(`import`,[e,l])!=0&&(e._putInUndoStack(),e.clearRedo(),e.config.nodes=l.nodes,e._ai.setContext(),S.events.publish(`updated`,[e]),e.filterUI.update(),e.draw())})},r.readAsText(n.files[0])},t.click()},S._importSetColumnNames=function(e,t){if(e.indexOf(`id`)!=-1&&e.indexOf(`pid`)!=-1){t(e);return}var n=document.createElement(`DIV`),r=document.createElement(`P`);r.style.padding=`5px`,r.style.color=`rgb(122, 122, 122)`,r.innerHTML=S.IMPORT_MESSAGE,n.appendChild(r);var i=document.createElement(`div`),a=document.createElement(`div`),o=document.createElement(`div`),s=document.createElement(`span`);i.setAttribute(`id`,`boc-sampleDialog`),i.style.height=`260px`,i.style.width=`400px`,i.style.background=`white`,i.style.border=`0.5px solid grey`,i.style.position=`fixed`,i.style.overflow=`hidden`,i.style.zIndex=`99`,a.setAttribute(`id`,`title`),a.style.backgroundColor=`#e5e5e5`,a.style.fontWeight=`bold`,a.style.color=`rgb(122, 122, 122)`,a.style.height=`20px`,a.style.padding=`3px 0 0 7px`,s.setAttribute(`id`,`close`),s.style.cursor=`pointer`,s.style.position=`absolute`,s.style.color=`rgb(122, 122, 122)`,s.style.fontWeight=`bold`,s.style.top=`2px`,s.style.zIndex=100,o.setAttribute(`id`,`content`),o.style.padding=`2px`,a.innerHTML=`Import Organizational Chart Data`,s.innerHTML=`×`;var c=document.createElement(`HR`);c.style.height=`0.1px`,c.style.backgroundColor=`#aeaeae`,c.style.border=`none`,c.style.margin=`0`,i.appendChild(a),i.appendChild(c),o.appendChild(n),i.appendChild(o),i.appendChild(s),document.body.appendChild(i),S._importCenter(i),s.style.left=i.offsetWidth-20+`px`;var l=document.createElement(`div`);l.setAttribute(`id`,`overlay`),l.style.width=`100%`,l.style.height=`100%`,l.style.left=0,l.style.top=0,l.style.position=`fixed`,l.style.background=`grey`,l.style.opacity=`0.5`,l.style.zIndex=98,document.body.appendChild(l),i._overlay=l;var u=document.createElement(`LABEL`),d=document.createTextNode(`Name:`);u.setAttribute(`for`,`boc-id-select`),u.appendChild(d),u.style.fontSize=`16px`,u.style.color=`rgb(122, 122, 122)`,u.style.padding=`5px`,u.style.margin=`5px`,u.style.width=`30%`,u.style.textAlign=`right`,u.style.display=`inline-block`,n.appendChild(u);var f=document.createElement(`SELECT`);f.id=`boc-id-select`,f.style.fontSize=`16px`,f.style.color=`rgb(122, 122, 122)`,f.style.padding=`5px`,f.style.margin=`5px`,f.style.width=`60%`,f.style.border=`1px solid #aeaeae`,n.appendChild(f);var p=document.createElement(`BR`);n.appendChild(p);for(var m=0;m<e.length;m++){var h=document.createElement(`option`);h.setAttribute(`value`,e[m]);var g=document.createTextNode(e[m]);h.appendChild(g),f.appendChild(h)}var _=document.createElement(`LABEL`),v=document.createTextNode(`Reports to:`);_.setAttribute(`for`,`pid-select`),_.appendChild(v),_.style.fontSize=`16px`,_.style.color=`rgb(122, 122, 122)`,_.style.padding=`5px`,_.style.margin=`5px`,_.style.width=`30%`,_.style.textAlign=`right`,_.style.display=`inline-block`,n.appendChild(_);var y=document.createElement(`SELECT`);y.id=`pid-select`,y.style.fontSize=`16px`,y.style.color=`rgb(122, 122, 122)`,y.style.padding=`5px`,y.style.margin=`5px`,y.style.width=`60%`,y.style.border=`1px solid #aeaeae`,n.appendChild(y);for(var m=0;m<e.length;m++){var h=document.createElement(`option`);h.setAttribute(`value`,e[m]);var g=document.createTextNode(e[m]);h.appendChild(g),y.appendChild(h)}var b=document.createElement(`BUTTON`);b.innerHTML=`Import`,b.style.fontSize=`16px`,b.style.color=`rgb(122, 122, 122)`,b.style.padding=`5px 20px`,b.style.margin=`20px auto`,b.style.display=`block`,b.onclick=function(){i.style.display=`none`,i._overlay&&i._overlay.parentNode.removeChild(i._overlay);var n=f.options[f.selectedIndex].value,r=e.indexOf(n);e[r]=`id`;var a=y.options[y.selectedIndex].value,o=e.indexOf(a);e[o]=`pid`,t(e)};var x=document.createElement(`DIV`);return x.appendChild(b),n.appendChild(x),s.onclick=function(e){i._overlay&&i._overlay.parentNode.removeChild(i._overlay),i.parentNode.removeChild(i),e.stopPropagation()},a.onmousedown=function(e){e||=window.event,i._dragging=!0,i._originalLeft=i.offsetLeft,i._originalTop=i.offsetTop,i._mouseLeft=e.clientX,i._mouseTop=e.clientY},document.onmousemove=function(e){e||=window.event,i._dragging&&(i.style.left=i._originalLeft+e.clientX-i._mouseLeft+`px`,i.style.top=i._originalTop+e.clientY-i._mouseTop+`px`)},document.onmouseup=function(e){e||=window.event,i._dragging&&=(i.style.left=i._originalLeft+e.clientX-i._mouseLeft+`px`,i.style.top=i._originalTop+e.clientY-i._mouseTop+`px`,!1)},i},S._importCenter=function(e){e&&(e.style.left=(window.innerWidth-e.offsetWidth)/2+`px`,e.style.top=(window.innerHeight-e.offsetHeight)/2+`px`)},S.prototype.importXML=function(){var e=this,t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.setAttribute(`accept`,`.xml`),t.style.display=`none`,t.onchange=function(t){var n=t.target,r=new FileReader;r.onload=function(){var t=r.result,n=S._xml2json(t);S.events.publish(`import`,[e,n])!=0&&(e._putInUndoStack(),e.clearRedo(),e.config.nodes=n,e._ai.setContext(),S.events.publish(`updated`,[e]),e.filterUI.update(),e.draw())},r.readAsText(n.files[0])},t.click()},S.prototype.importJSON=function(){var e=this,t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.setAttribute(`accept`,`.json`),t.style.display=`none`,t.onchange=function(t){var n=t.target,r=new FileReader;r.onload=function(){var t=r.result,n=JSON.parse(t);S.events.publish(`import`,[e,n])!=0&&(e._putInUndoStack(),e.clearRedo(),e.config.nodes=n,e._ai.setContext(),S.events.publish(`updated`,[e]),e.filterUI.update(),e.draw())},r.readAsText(n.files[0])},t.click()},S.prototype.expand=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,S.action.expand,r,n)},S.prototype.collapse=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,S.action.collapse,r,n)},S.prototype.expandCollapse=function(e,t,n,r){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(n)||(n=[]);var i={id:e,expandIds:t,collapseIds:n,ids:t.concat(n)};this._draw(!1,S.action.collapse,i,r)},S.prototype.changeRoots=function(e,t,n){this.config.roots=t;var r={id:e,changeRoots:t};this._draw(!1,S.action.update,r,n)},S.prototype._resetMovableNodes=function(){if(S.RESET_MOVABLE_ONEXPANDCOLLAPSE&&this.config.movable!=null){for(var e=!1,t=0;t<this.config.nodes.length;t++){var n=this.config.nodes[t];n.movex!=null&&(n.movex=0,e=!0),n.movey!=null&&(n.movey=0,e=!0)}e&&(this._ai.setContext(),S.events.publish(`updated`,[this]))}},S.prototype.maximize=function(e,t,n,r){var i=this,a={id:e,options:{}};S.isNEU(a.id)&&(a.id=this.roots[0].id,a.all=!0),a.options.horizontal=!1,a.options.vertical=!1,t&&(a.options.horizontal=t),n&&(a.options.vertical=n),this._draw(!1,S.action.maximize,a,function(){i.ripple(e),r&&r()})},S.prototype.minimize=function(e,t){var n=this,r={id:e};S.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),this._draw(!1,S.action.minimize,r,function(){n.ripple(e),t&&t()})},S.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),n=this.getCollapsedIds(t);if(n.length){var r=S.events.publish(`expcollclick`,[this,!1,e,n]);if(r===!1)return!1;this.expand(e,n,!1)}else{var r=S.events.publish(`expcollclick`,[this,!0,e,t.childrenIds]);if(r===!1)return!1;this.collapse(e,t.childrenIds,!1)}},S.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(S.events.publish(`up-click`,[this,t])===!1)return!1;this.changeRoots(t.id,t.roots,!1)},S.prototype._upHandlerCreateArgs=function(e){var t=this.getNode(e),n=Object.assign([],this.config.roots),r=this.getNode(t.pid),i;if(r&&(i=r),i){if(Array.isArray(n)){var a=n.indexOf(t.id);a!=-1&&n.splice(a,1)}else n=[];n.push(i.id)}return{id:t.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,`g`),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}),String.prototype.splice||(String.prototype.splice=function(e,t,n){return this.slice(0,e)+n+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,`unique`,{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var n=t+1;n<e.length;++n)e[t]===e[n]&&e.splice(n--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,`has`,{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,`compare`,{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,`assign`,{value:function(e,t){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),S.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var n=t.target;n!=e;){if(n.hasAttribute(S.attr.control_expcoll_id)){var r=n.getAttribute(S.attr.control_expcoll_id),i=this.getNode(r);this._expCollHandler(i.id);return}if(n.hasAttribute(S.attr.node_id)){var r=n.getAttribute(S.attr.node_id),i=this.getNode(r);this._nodeClickHandler(i.id,t);return}if(n.hasAttribute(S.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(S.attr.control_node_menu_id),i=this.getNode(r);this._nodeMenuClickHandler(i.id,n,t);return}if(n.hasAttribute(S.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(S.attr.control_node_circle_menu_id);this._nodeCircleMenuClickHandler(r);return}if(n.hasAttribute(S.attr.control_node_circle_menu_name)){t.stopPropagation(),this._nodeCircleMenuItemClickHandler(n,t);return}if(n.hasAttribute(S.attr.control_add)){this._lonelyButtonHandler();return}if(n.hasAttribute(S.attr.control_up_id)){var r=n.getAttribute(S.attr.control_up_id);t.stopPropagation(),t.preventDefault(),this._upHandler(r);return}if(n.hasAttribute(S.attr.c_link_from)){S.events.publish(`clink-click`,[this,{from:n.getAttribute(S.attr.c_link_from),to:n.getAttribute(S.attr.c_link_to),event:t}]);return}if(n.hasAttribute(S.attr.s_link_from)){S.events.publish(`slink-click`,[this,{from:n.getAttribute(S.attr.s_link_from),to:n.getAttribute(S.attr.s_link_to),event:t}]);return}if(n.hasAttribute(`data-ctrl-n-dotted-close`)){var r=n.getAttribute(`data-ctrl-n-dotted-close`);this.minimize(r);return}if(n.hasAttribute(`data-ctrl-n-dotted-open`)){var r=n.getAttribute(`data-ctrl-n-dotted-open`);this.maximize(r);return}n=n.parentNode}S.events.publish(`canvas-click`,[this,{event:t}])}},S.prototype._mouseDownHandler=function(e,t,n,r){var i=this;S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var a=this.getViewBox(),o=this.getScale(),s=S._getClientTouchesXY(t,0),c=S._getClientTouchesXY(t,1),l={diffX:0,diffY:0,x0:s.x,y0:s.y,type:this.config.enablePan?`pan`:`pan-not-enabled`,viewBoxLeft:a[0],viewBoxTop:a[1],time:Date.now()};t.touches&&t.touches.length>1&&(l.type=`pinch`,l.dist=Math.sqrt((s.x-c.x)*(s.x-c.x)+(s.y-c.y)*(s.y-c.y)));var u=null;if(r){var d=r.stChildren[0].lcn?r.stChildren[0].lcn:`base`;u=i.manager.layoutConfigs[d],l.scrollTop=r.treeList.scrollTop}var f=0,p=function(e){var t=S._getClientTouchesXY(e,0);if(l&&l.type==`pan`){clearTimeout(i._timeout),l.diffX=t.x-l.x0,l.diffY=t.y-l.y0,f=Math.max(Math.abs(l.diffY),Math.abs(l.diffX));var n=-(l.diffY/o)+l.viewBoxTop,s=-(l.diffX/o)+l.viewBoxLeft;f>3&&(r?(r.treeList.scrollTop=l.scrollTop-l.diffY/o,i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdate(r,u)):(i._hideBeforeAnimation(),i._changeCursorOnPanStart(a,o,e),i._move(n,s,a)))}else if(l&&l.type==`pinch`){var c=S._getClientTouchesXY(e,1),d=Math.sqrt((t.x-c.x)*(t.x-c.x)+(t.y-c.y)*(t.y-c.y)),p=1+(d-l.dist)/(l.dist/100)/100;l.dist=d;var m=S._pinchMiddlePointInPercent(i.element,i.width(),i.height(),e);i.zoom(p,m)}},m=function(t){if(f<3&&l.type!=`pinch`&&(t.touches==null||t.touches.length<=1))i._clickHandler(e,t);else if(l.type==`pan`&&r){var a=Date.now()-l.time,o=Math.abs(f/a);if(o>.5){var s=r.treeList.scrollTop,c=s+o*400*(l.diffY>0?-1:1),d=r.stChildren[0].h;c=Math.round(c/d)*d,c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=S.animate(null,{},{},1500,S.anim.outExp,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}else{var s=r.treeList.scrollTop,d=r.stChildren[0].h,c=Math.round(r.treeList.scrollTop/d)*d;c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=S.animate(null,{},{},200,S.anim.outSin,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}}else l.type==`pan`&&!r&&f>10&&i._draw(!0,S.action.pan);l.type==`pan`&&!r&&i._changeCursorOnPanEnd(),l=null,e.removeEventListener(n.move,p),e.removeEventListener(n.up,m),n.leave&&e.removeEventListener(n.leave,m),n.touchstart&&e.removeEventListener(n.touchstart,m)};e.addEventListener(n.move,p,{passive:!0}),e.addEventListener(n.up,m),n.leave&&e.addEventListener(n.leave,m),n.touchstart&&e.addEventListener(n.touchstart,m,{passive:!0})},S.prototype._changeCursorOnPanStart=function(e,t,n){var r=this.getPointerElement();if(r){var i=S._getOffsetXY(this.element,n),a=i.x/t+e[0]-16/t,o=i.y/t+e[1]-16/t;r.style.display=`inherit`,r.setAttribute(`transform`,`matrix(0,0,0,0,`+a+`,`+o+`)`),S.animate(r,{transform:[0,0,0,0,a,o],opacity:0},{transform:[1/t,0,0,1/t,a,o],opacity:1},300,S.anim.outBack)}else this.element.style.cursor=`move`},S.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display=`none`:this.element.style.cursor=`initial`},S.prototype._globalMouseDownHandler=function(e,t){var n={move:`mousemove`,up:`mouseup`,leave:`mouseleave`};t.type.indexOf(`touch`)!=-1&&(t.touches.length==1?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,n={move:`touchmove`,up:`touchend`,touchstart:`touchstart`}),this._treeListUpdateInterval&&=(clearInterval(this._treeListUpdateInterval),null);for(var r=null,i=t.target;i!=e&&!i.hasAttribute(S.attr.control_node_menu_id)&&!i.hasAttribute(S.attr.control_node_circle_menu_id);){if(i.hasAttribute){var a=null;i.hasAttribute(S.attr.node_id)?a=this.getNode(i.getAttribute(S.attr.node_id)):i.hasAttribute(S.attr.control_expcoll_id)?a=this.getNode(i.getAttribute(S.attr.control_expcoll_id)):(i.hasAttribute(S.attr.control_node_menu_id)||i.hasAttribute(S.attr.control_node_menu_id))&&(a=this.getNode(i.getAttribute(S.attr.control_node_menu_id))),r||=S._getScrollableTreeListNodeInTouchEnabledDevice(a)}if(i.hasAttribute(S.attr.node_id)&&!r&&(this.config.enableDragDrop||this.config.movable)){if(t.touches==null||t.touches.length<=1){this._nodeMouseDownHandler(i,t,n);return}}else if(i.hasAttribute(S.attr.control_node_circle_menu_name)){if(t.stopPropagation(),t.touches==null||t.touches.length<=1){this._nodeCircleNodeMenuItemMouseDownHandler(e,i,t,n);return}}else if(i.hasAttribute(`data-treelist-thumb`)&&(t.stopPropagation(),t.touches==null||t.touches.length<=1)){this._treeListThumbMouseDownHandler(i,t,n);return}i=i.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,n,r)},S.prototype._globalContextHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(S.attr.node_id)){var r=n.getAttribute(S.attr.node_id),i=this.getNode(r);this._nodeContextHandler(i.id,t);return}n=n.parentNode}},S.prototype._nodeContextHandler=function(e,t){t.preventDefault(),S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.get(e),r=null;if(n!=null&&Array.isArray(n.tags))for(var i=0;i<n.tags.length;i++){var a=n.tags[i];this.config.tags[a]&&this.config.tags[a].nodeContextMenu&&(r=this.config.tags[a].nodeContextMenu)}var o=this.element.getBoundingClientRect(),s=t.clientX-o.left,c=t.clientY-o.top;this.nodeContextMenuUI.show(s,c,e,null,r)},S.prototype._globalDbClickHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(S.attr.node_id)){var r=n.getAttribute(S.attr.node_id),i=this.getNode(r);this._nodeDbClickHandler(i.id,t);return}n=n.parentNode}},S.prototype._mouseScrollHandler=function(e,t){for(var n=!1,r=t.target,i=null;r&&r.hasAttribute&&!r.hasAttribute(`data-n-id`)&&!r.hasAttribute(`data-ctrl-ec-id`);)r=r.parentNode;if(r.hasAttribute&&r.hasAttribute(`data-n-id`)){var a=r.getAttribute(`data-n-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}if(r.hasAttribute&&r.hasAttribute(`data-ctrl-ec-id`)){var a=r.getAttribute(`data-ctrl-ec-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}t.ctrlKey&&(n=!1),n?this.__mouseScrollHandlerTreeList(i,t):this.__mouseScrollHandler(this.getSvg(),t)},S.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==S.action.zoom)return}else if(this.config.mouseScrool==S.action.ctrlZoom||this.config.mouseScrool!=S.action.zoom)return;if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let r=t.deltaY/1e3;r=Math.abs(r)<.1?.1*t.deltaY/Math.abs(t.deltaY):r;var n=S._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-r,n)}else{var r=this,i=!1,a=this.config.zoom.speed,o=this.config.zoom.smooth,s=0,c=this.getScale(),n=S._centerPointInPercent(e,t.clientX,t.clientY);function d(){i=!0;var e=(s-c)/o;e>0?e++:e--,c+=e,r.zoom(1-e/12/50,n),parseInt(c)==parseInt(s)?i=!1:l(d)}var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}();t.preventDefault();var u=t.delta||t.wheelDelta;u===void 0&&(u=-t.detail),u=Math.max(-1,Math.min(1,u)),s+=-u*a,i||d()}},S.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,n,r){var i=t.parentNode.getAttribute(S.attr.control_node_circle_menu_wrraper_id),a=t.getAttribute(S.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[a];if(!o.draggable){this._clickHandler(e,n);return}var s=this,c=S._getClientXY(n),l=this.getNode(i);t._dragEventFired=!1;var u=s.getScale(),d=null,f=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var p=this.getSvg(),m={x:c.x,y:c.y},h=function(e){for(;e&&!e.hasAttribute(S.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(!e){console.error(`cannot find parent`+S.attr.control_node_circle_menu_wrraper_id);return}var t=S._getTransform(e);return{x:t[4],y:t[5]}},g=t.cloneNode(!0);p.insertBefore(g,p.firstChild);var _=S._getTransform(g),v=_[4],y=_[5],b=h(t);g.setAttribute(`transform`,`matrix(1,0,0,1,`+(v+b.x)+`,`+(y+b.y)+`)`),g.style.opacity=.7;var x=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=S.getStParentNodes(s.getNode(d)),r=0;r<n.length;r++){var i=s.getNodeElement(n[r].id);i&&(i.style.opacity=1)}}},C=function(e){if(m){var n=S._getClientXY(e),r=e.target;S.isMobile()&&(r=document.elementFromPoint(n.x,n.y)),n.x+=b.x*u,n.y+=b.y*u;var i=S._getOffsetXY(s.element,e),c={left:s.width()-(i.x+s.config.padding)<0,right:i.x-s.config.padding<0,up:s.height()-(i.y+s.config.padding)<0,down:i.y-s.config.padding<0};if(c.left||c.right||c.up||c.down){p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.add(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`));var l=_[4],h=_[5],C=m.x,T=m.y,E=n.x,D=n.y;s.moveStart(c,function(e){_[4]=l+e.x,_[5]=h+e.y,m.x=C-e.xWithoutScale,m.y=T-e.yWithoutScale,n.x=E-e.xWithoutScale,n.y=D-e.yWithoutScale,g.setAttribute(`transform`,`matrix(`+_.toString()+`)`)})}else{for(s.moveEnd(),p.classList&&(p.classList.add(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),x(d,f),d=null,f=null;r!=null&&r!=p;){if(r.hasAttribute&&r.hasAttribute(S.attr.node_id)){var O=r.getAttribute(S.attr.node_id);d=O,f=r;break}r=r.parentNode}if(d!=null){f.classList.add(`boc-drag-over`);for(var k=s.getNode(d),A=S.getStParentNodes(k),j=0;j<A.length;j++){var M=s.getNodeElement(A[j].id);M&&(M.style.opacity=.1)}p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.add(`boc-cursor-copy`),p.classList.remove(`boc-cursor-nodrop`)}var N=(n.x-m.x)/u,P=(n.y-m.y)/u;_[4]=v+N,_[5]=y+P,!t._dragEventFired&&(Math.abs(n.x-m.x)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-m.y)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(s._gragStartedId=t.parentNode.getAttribute(S.attr.control_node_circle_menu_wrraper_id),S.events.publish(`drag`,[s.nodeCircleMenuUI,{from:O,menuItem:o,menuItemName:a}])===!1&&w(),t._dragEventFired=!0),g.setAttribute(`transform`,`matrix(`+_.toString()+`)`)}}},w=function(e){if(s.moveEnd(),p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),p.removeEventListener(r.move,C),p.removeEventListener(r.up,w),r.leave&&p.removeEventListener(r.leave,w),l.id==d||d==null){p.removeChild(g),s._gragStartedId=null,t._dragEventFired&&S.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,menuItemName:a,menuItem:o,event:e}]);return}var n=s.getNode(d);S.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,to:n.id,menuItem:o,menuItemName:a,event:e}]),x(d,f),p.removeChild(g),s._gragStartedId=null};p.addEventListener(r.move,C),p.addEventListener(r.up,w),r.leave&&p.addEventListener(r.leave,w)},S.prototype._nodeMouseDownHandler=function(e,t,n){var r=e.getAttribute(S.attr.node_id),i=this.getNode(r);this.config.movable&&!S.getRootOf(i).stParent?this._movableHandler(e,t,n):this.config.enableDragDrop&&this._dragDropHandler(e,t,n)},S.prototype._resizeHandler=function(e,t){if(this.isVisible&&!(e==0||t==0)){var n=this.getViewBox();if(n){n=n.slice(0);var r=e/n[2],i=t/n[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?n[3]=t/r:n[2]=e/i,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(n),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,S.action.resize)}}},S.prototype._nodeDbClickHandler=function(e,t){if(S.events.publish(`dbclick`,[this,this.get(e)])===!1)return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},S.prototype._nodeClickHandler=function(e,t){if(S.events.publish(`click`,[this,{node:this.getNode(e),event:t}])===!1)return!1;if(this.powerPointPreviewUI.isVisible()&&this.powerPointPreviewUI.selectedPage!=null){this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pdfPreviewUI.isVisible()&&this.pdfPreviewUI.selectedPage!=null){this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.svgPreviewUI.isVisible()&&this.svgPreviewUI.selectedPage!=null){this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pngPreviewUI.isVisible()&&this.pngPreviewUI.selectedPage!=null){this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}var n=this.getNodeElement(e);if(n&&n._dragEventFired){n._dragEventFired=!1;return}this._commonClickHandler(e,t,this.config.nodeMouseClick)},S.prototype._nodeCircleMenuItemClickHandler=function(e,t){var n=e.parentNode.getAttribute(S.attr.control_node_circle_menu_wrraper_id),r=e.getAttribute(S.attr.control_node_circle_menu_name),i=this.nodeCircleMenuUI._menu[r];S.events.publish(`click`,[this.nodeCircleMenuUI,{nodeId:n,menuItemName:r,menuItem:i,event:t}])},S.prototype._nodeCircleMenuClickHandler=function(e){if(S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),n=null;if(Array.isArray(t.tags))for(var r=0;r<t.tags.length;r++){var i=t.tags[r];this.config.tags[i]&&this.config.tags[i].nodeCircleMenu&&(n=this.config.tags[i].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,n)}},S.prototype._commonClickHandler=function(e,t,n){if(S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),n==S.action.expandCollapse&&this.toggleExpandCollapse(e,t),n==S.action.edit){var r=this.getNode(e);r&&(this.editUI.show(r.id),this.ripple(r.id,t.clientX,t.clientY))}if(n==S.action.details){var r=this.getNode(e);r&&(this.editUI.show(r.id,!0),this.ripple(r.id,t.clientX,t.clientY))}},S.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},S.prototype._nodeMenuClickHandler=function(e,t,n){S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var r=this.getNode(e),i=null;if(Array.isArray(r.tags))for(var a=0;a<r.tags.length;a++){var o=r.tags[a];this.config.tags[o]&&this.config.tags[o].nodeMenu&&(i=this.config.tags[o].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,i)},S.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},S.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};this.addNode(e,null,!0)!==!1&&this.center(e.id)},S.prototype.toggleExpandCollapse=function(e,t){var n=this.getNode(e),r=this.getCollapsedIds(n);if(r.length){var i=S.events.publish(`expcollclick`,[this,!1,e,r]);if(i===!1)return!1;this.expand(e,r,!1)}else{var i=S.events.publish(`expcollclick`,[this,!0,e,n.childrenIds]);if(i===!1)return!1;this.collapse(e,n.childrenIds,!1)}t&&this.ripple(n.id,t.clientX,t.clientY)},S.prototype._dragDropHandler=function(e,t,n){var r=S._getClientXY(t),i=e.getAttribute(S.attr.node_id),a=this.getNode(i);e._dragEventFired=!1;var o=null,s=null;this.element.style.mozUserSelect=this.element.style.webkitUserSelect=this.element.style.userSelect=`none`;var c=this,l=this.getSvg(),u={x:r.x,y:r.y},d=S._getTransform(e),f=d[4],p=d[5],m=c.getScale(),h=e.cloneNode(!0);h.setAttribute(`data-n-id`,`draging`),l.insertBefore(h,l.firstChild),h.style.opacity=.7;var g=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=c.getNode(o),r=S.getStParentNodes(n),i=0;i<r.length;i++){var a=c.getNodeElement(r[i].id);a&&(a.style.opacity=1)}}},_=function(t){if(t.touches!=null&&t.touches.length>1){v(t);return}if(u){var n=S._getClientXY(t),r=t.target;S.isMobile()&&(r=document.elementFromPoint(n.x,n.y));var i=S._getOffsetXY(c.element,t),_={left:c.width()-(i.x+c.config.padding)<0,right:i.x-c.config.padding<0,up:c.height()-(i.y+c.config.padding)<0,down:i.y-c.config.padding<0};if(_.left||_.right||_.up||_.down){l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.add(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`));var y=d[4],b=d[5],x=u.x,C=u.y,w=n.x,T=n.y;c.moveStart(_,function(e){d[4]=y+e.x,d[5]=b+e.y,u.x=x-e.xWithoutScale,u.y=C-e.yWithoutScale,n.x=w-e.xWithoutScale,n.y=T-e.yWithoutScale,h.setAttribute(`transform`,`matrix(`+d.toString()+`)`)})}else{if(c.moveEnd(),l.classList&&(l.classList.add(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`)),g(o,s),o=null,s=null,c.config.enableDragDrop)for(;r!=null&&r!=l;){if(r.hasAttribute&&r.hasAttribute(S.attr.node_id)){var E=r.getAttribute(S.attr.node_id);if(c._gragStartedId&&E!=c._gragStartedId){o=E,s=r;break}}r=r.parentNode}if(o==`draging`&&(o=null,s=null),o!=null){s.classList.add(`boc-drag-over`);for(var D=c.getNode(o),O=S.getStParentNodes(D),k=0;k<O.length;k++){var A=c.getNodeElement(O[k].id);A&&(A.style.opacity=.1)}!c.canUpdateLink(a.id,o)&&l.classList?(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-copy`),l.classList.add(`boc-cursor-nodrop`)):l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.add(`boc-cursor-copy`),l.classList.remove(`boc-cursor-nodrop`))}var j=(n.x-u.x)/m,M=(n.y-u.y)/m;d[4]=f+j,d[5]=p+M,!e._dragEventFired&&(Math.abs(n.x-u.x)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-u.y)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(c._gragStartedId=E,S.events.publish(`drag`,[c,E,t])===!1&&v(),e._dragEventFired=!0),h.setAttribute(`transform`,`matrix(`+d.toString()+`)`)}}},v=function(t){if(!e._dragEventFired&&(t.touches==null||t.touches.length<=1)&&c._clickHandler(c.getSvg(),t),c.moveEnd(),l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`)),l.removeEventListener(n.move,_),l.removeEventListener(n.up,v),n.leave&&l.removeEventListener(n.leave,v),a.id==o||o==null){e._dragEventFired&&S.events.publish(`drop`,[c,a.id,void 0,h,t]),l.removeChild(h),c._gragStartedId=null;return}var r=c.getNode(o);if(S.events.publish(`drop`,[c,a.id,r.id,h,t])===!1){g(o,s),l.removeChild(h),c._gragStartedId=null;return}if(c.canUpdateLink(a.id,o)){var i=c.get(a.id);i.pid=o,i.stpid=null,i.movex!=null&&(i.movex=void 0),i.movey!=null&&(i.movey=void 0),c.updateNode(i,null,!0)}else l.removeChild(h),g(o,s);c._gragStartedId=null};l.addEventListener(n.move,_),l.addEventListener(n.up,v),n.leave&&l.addEventListener(n.leave,v)},S.prototype._movableHandler=function(e,t,n){var r=this,i=e.getAttribute(S.attr.node_id),a=[],o=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)o(e[n],t);return}t.push(e.id);for(var n=0;n<e.stChildren.length;n++)o(e.stChildren[n],t);for(var n=0;n<e.children.length;n++)o(e.children[n],t)},s=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)o(e[n],t);return}t.push(e.id);for(var n=0;n<e.stChildrenIds.length;n++)s(r.getNode(e.stChildrenIds[n]),t);for(var n=0;n<e.childrenIds.length;n++)s(r.getNode(e.childrenIds[n]),t)},c=this.getNode(i);o(c,a);for(var l=this.getSvg(),u=S._getClientXY(t),d=[],f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=0;y<a.length;y++){var b=this.getNode(a[y]);d.push(b),p.push({x:b.x,y:b.y});var x=this.getNodeElement(a[y]);if(x){h.push(x);var C=S._getTransform(x);m.push({x:C[4],y:C[5]}),f.push(C);var w=this.element.querySelector(`[data-ctrl-ec-id="${a[y]}"]`);if(w){g.push(w);var T=S._getTransform(w);_.push(T),v.push({x:T[4],y:T[5]})}else g.push(null),_.push(null),v.push(null);if(this.config.movable==S.movable.node)break}}e._dragEventFired=!1;var E=null,D=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var O={x:u.x,y:u.y},k=r.getScale(),A=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=r.getNode(E),i=S.getStParentNodes(n),a=0;a<i.length;a++){var o=r.getNodeElement(i[a].id);o&&(o.style.opacity=1)}}},j=function(t){if(t.touches!=null&&t.touches.length>1){M(t);return}if(O){var n=S._getClientXY(t),o=t.target;S.isMobile()&&(o=document.elementFromPoint(n.x,n.y));var s=S._getOffsetXY(r.element,t),u={left:r.width()-(s.x+r.config.padding)<0,right:s.x-r.config.padding<0,up:r.height()-(s.y+r.config.padding)<0,down:s.y-r.config.padding<0};if(u.left||u.right||u.up||u.down){l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.add(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`));for(var y=[],b=[],x=[],C=[],w=0;w<f.length;w++)y.push(f[w][4]),b.push(f[w][5]),_[w]?(x.push(_[w][4]),C.push(_[w][5])):(x.push(null),C.push(null));var T=O.x,j=O.y,N=n.x,P=n.y;r.moveStart(u,function(e){for(var t=0;t<f.length;t++){var i=y[t],a=b[t],o=x[t],s=C[t];f[t][4]=i+e.x,f[t][5]=a+e.y,O.x=T-e.xWithoutScale,O.y=j-e.yWithoutScale,n.x=N-e.xWithoutScale,n.y=P-e.yWithoutScale,d[t].x=i+e.x,d[t].y=a+e.y,d[t].movex=e.x,d[t].movey=e.y,_[t]&&(_[t][4]=o+e.x,_[t][5]=s+e.y);for(var c=S.ui.link(d[t],r,k,r.response.bordersByRootIdAndLevel,r.nodes,S.action.update,!0),l=0;l<c.length;l++){var u=c[l],p=r.element.querySelector(`[data-l-id="[${u.id}][${u.childId}]"]`);p&&(p.innerHTML=u.html)}if(d[t].parent)for(var c=S.ui.link(d[t].parent,r,k,r.response.bordersByRootIdAndLevel,r.nodes,S.action.update,!0),l=0;l<c.length;l++){var u=c[l],p=r.element.querySelector(`[data-l-id="[${u.id}][${u.childId}]"]`);p&&(p.innerHTML=u.html)}h[t].setAttribute(`transform`,`matrix(`+f[t].toString()+`)`),g[t]&&g[t].setAttribute(`transform`,`matrix(`+_[t].toString()+`)`)}})}else{if(r.moveEnd(),l.classList&&(l.classList.add(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`)),A(E,D),E=null,D=null,r.config.enableDragDrop)for(;o!=null&&o!=l;){if(o.hasAttribute&&o.hasAttribute(S.attr.node_id)){var F=o.getAttribute(S.attr.node_id);if(r._gragStartedId&&F!=r._gragStartedId){E=F,D=o;break}}o=o.parentNode}if(E!=null){D.classList.add(`boc-drag-over`);for(var I=r.getNode(E),L=S.getStParentNodes(I),ee=0;ee<L.length;ee++){var R=r.getNodeElement(L[ee].id);R&&(R.style.opacity=.1)}!r.canUpdateLink(d[0].id,E)&&l.classList?(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-copy`),l.classList.add(`boc-cursor-nodrop`)):l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.add(`boc-cursor-copy`),l.classList.remove(`boc-cursor-nodrop`))}for(var z=(n.x-O.x)/k,B=(n.y-O.y)/k,w=0;w<f.length;w++){f[w][4]=m[w].x+z,f[w][5]=m[w].y+B,_[w]&&(_[w][4]=v[w].x+z,_[w][5]=v[w].y+B),d[w].x=p[w].x+z,d[w].y=p[w].y+B;for(var te=S.ui.link(d[w],r,k,r.response.bordersByRootIdAndLevel,r.nodes,S.action.update,!0),ee=0;ee<te.length;ee++){var V=te[ee],H=r.element.querySelector(`[data-l-id="[${V.id}][${V.childId}]"]`);H&&(H.innerHTML=V.html)}}if(c.parent)if(r.config.movable==S.movable.detachTree){var H=r.element.querySelector(`[data-l-id="[${c.parent.id}][${c.id}]"]`);H&&H.parentElement.removeChild(H)}else for(var te=S.ui.link(c.parent,r,k,r.response.bordersByRootIdAndLevel,r.nodes,S.action.update,!0),ee=0;ee<te.length;ee++){var V=te[ee],H=r.element.querySelector(`[data-l-id="[${V.id}][${V.childId}]"]`);H&&(H.innerHTML=V.html)}if(!e._dragEventFired&&(Math.abs(n.x-O.x)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-O.y)>S.FIRE_DRAG_NOT_CLICK_IF_MOVE)){if(r._gragStartedId=a[0],S.events.publish(`drag`,[r,i,t,a])===!1&&M(),r.config.enableDragDrop)for(var w=0;w<h.length;w++)l.insertBefore(h[w],l.firstChild);e._dragEventFired=!0}for(var w=0;w<f.length;w++)h[w].setAttribute(`transform`,`matrix(`+f[w].toString()+`)`),g[w]&&g[w].setAttribute(`transform`,`matrix(`+_[w].toString()+`)`)}}},M=function(i){!e._dragEventFired&&(i.touches==null||i.touches.length<=1)&&r._clickHandler(r.getSvg(),t);for(var a=0;a<d.length;a++)d[a].x=p[a].x,d[a].y=p[a].y;if(r.moveEnd(),l.classList&&(l.classList.remove(`boc-cursor-grab`),l.classList.remove(`boc-cursor-move`),l.classList.remove(`boc-cursor-nodrop`),l.classList.remove(`boc-cursor-copy`)),l.removeEventListener(n.move,j),l.removeEventListener(n.up,M),n.leave&&l.removeEventListener(n.leave,M),d[0].id==E||E==null){if(e._dragEventFired){var o=S.events.publish(`drop`,[r,d[0].id,void 0,h[0],i]);if(r.config.movable&&o!==!1)if(r.config.movable==S.movable.detachTree){var u=S._getTransform(r.getNodeElement(c.id)),f=r.get(c.id);f.pid=null,f.stpid=null,r.updateNode(f,null,!0)}else{var m=[];r.config.movable==S.movable.node?m.push(c.id):s(c,m);for(var u=S._getTransform(r.getNodeElement(c.id)),g=u[4]-c.x,_=u[5]-c.y,a=0;a<m.length;a++){var f=r.get(m[a]);f&&(f.movex==null?f.movex=g:f.movex+=g,f.movey==null?f.movey=_:f.movey+=_,r.update(f))}r._ai.setContext(),S.events.publish(`updated`,[r]),r.draw(S.action.update,{dragNodeIdList:m})}}r._gragStartedId=null;return}var v=r.getNode(E),o=S.events.publish(`drop`,[r,d[0].id,v.id,h[0],i]);if(o===!1){A(E,D),r._gragStartedId=null;return}if(r.canUpdateLink(d[0].id,E)){var f=r.get(d[0].id);f.pid=E,f.stpid=null,r.updateNode(f,null,!0)}else A(E,D);r._gragStartedId=null};l.addEventListener(n.move,j),l.addEventListener(n.up,M),n.leave&&l.addEventListener(n.leave,M)},S.prototype._move=function(e,t,n){n[0]=t,n[1]=e,this.setViewBox(n),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},S.prototype.moveStart=function(e,t,n,r){if(!e){console.error(`movePosition parameter not defined`);return}if(this._moveInterval)return;var i=this,a=this.getViewBox().slice(0),o=this.getScale(),s=0,c=0,l=10,u=1,d=1;S.isNEU(n)&&(n=S.anim.inSin),S.isNEU(r)&&(r=3e3);function f(){var f={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(s++,f.x=s*S.MOVE_STEP/o,f.xWithoutScale=s*S.MOVE_STEP):e.right&&(s++,f.x=-(s*S.MOVE_STEP)/o,f.xWithoutScale=-(s*S.MOVE_STEP)),e.up?(c++,f.y=c*S.MOVE_STEP/o,f.yWithoutScale=c*S.MOVE_STEP):e.down&&(c++,f.y=-(c*S.MOVE_STEP)/o,f.yWithoutScale=-(c*S.MOVE_STEP));var p=n((d*l-l)/r);f.x*=p,f.xWithoutScale*=p,f.y*=p,f.yWithoutScale*=p,i.setViewBox([a[0]+f.x,a[1]+f.y,a[2],a[3]]),t&&t(f),d+=u}this._moveInterval=setInterval(f,l)},S.prototype.moveEnd=function(){this._moveInterval&&=(clearInterval(this._moveInterval),null)},S===void 0&&(S={}),S.node=function(e,t,n,r){this.templateName=r,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=n,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||=[]},S.searchUI=function(){this.lastSearch=[],this._searchAfterEnterPress=!1,this._event_id=S._guid(),this.instance=null},S.searchUI.prototype.init=function(e){this.instance=e,this.obj=this.instance,this._initSearchFields();var t=this,n=this.instance.config.padding-10,r=this.instance.config.padding-10,i=this.instance.getMenuButton();if(i){var a=i.getBoundingClientRect(),o=this.instance.getSvg().getBoundingClientRect();n=o.right-a.left+10,r=a.top-o.top-10}var s=document.createElement(`div`);s.classList.add(`boc-search`),s.style.right=n+`px`,s.style.top=r+`px`;var c=S.elements.textbox({},{label:S.SEARCH_PLACEHOLDER,btn:`X`},`320px`);s.innerHTML+=c.html,this.xBtn=s.querySelector(`[data-input-btn]`),this.xBtn.style.display=`none`,this.searchTableWrapper=document.createElement(`div`),s.appendChild(this.searchTableWrapper);var l=this.instance.getSvg().nextSibling;this.instance.element.insertBefore(s,l),S.input.init(s),this.input=document.getElementById(c.id),this.xBtn.addEventListener(`click`,function(e){e.preventDefault(),t.hide()}),this.input.addEventListener(`keypress`,function(e){e.key==`Enter`&&e.preventDefault()}),this.input.addEventListener(`focus`,function(e){t.xBtn.style.display=``,t._search()}),this.input.addEventListener(`blur`,function(e){S.isNEU(t.input.value)&&S.SEARCH_HELP_SYMBOL!=t.input.value&&(t.xBtn.style.display=`none`)}),this.input.addEventListener(`keydown`,function(e){(e.key==`ArrowDown`||e.key==`ArrowUp`)&&e.preventDefault()}),this.input.addEventListener(`keyup`,function(e){e.key==`ArrowDown`?u():e.key==`ArrowUp`?d():e.key==`Enter`?t._enterHandler():e.key==`Escape`?t.hide():this.value.length>=S.MINIMUM_SYMBOLS_IN_SEARCH_INPUT&&t._search()});var u=function(){var e=t.instance.element.querySelectorAll(`[data-search-item-id]`),n=t.instance.element.querySelector(`[data-selected="yes"]`);n==null&&e.length>0?e[0].setAttribute(`data-selected`,`yes`):e.length>0&&n.nextSibling&&n.nextSibling.setAttribute&&(n.removeAttribute(`data-selected`),n.nextSibling.setAttribute(`data-selected`,`yes`))},d=function(){var e=t.instance.element.querySelectorAll(`[data-search-item-id]`),n=t.instance.element.querySelector(`[data-selected="yes"]`);n==null&&e.length>0?e[e.length-1].setAttribute(`data-selected`,`yes`):e.length>0&&n.previousSibling&&n.previousSibling.setAttribute&&(n.removeAttribute(`data-selected`),n.previousSibling.setAttribute(`data-selected`,`yes`))}},S.searchUI.prototype._enterHandler=function(){var e=this.instance.element.querySelector(`[data-selected="yes"]`);if(!e)this._searchAfterEnterPress=!0,this.__search(),this.searchTableWrapper.innerHTML=``,this.instance.draw();else if(e.hasAttribute(`data-search-item-id`)){var t=e.getAttribute(`data-search-item-id`);this.input.value==S.SEARCH_HELP_SYMBOL?(this.input.value=t+` `,this.searchTableWrapper.innerHTML=``):S.events.publish(`searchclick`,[this,{nodeId:t}])!=0&&(this.instance.center(t),S.isMobile()&&this.hide())}},S.searchUI.prototype._initSearchFields=function(){if(this.instance.config.searchFields==null){this._searchFields=[];for(var e=0;e<this.instance.response.allFields.length;e++){var t=this.instance.response.allFields[e];t!=`tags`&&!S._fieldIsImg(this.instance.config,t)&&this._searchFields.indexOf(t)==-1&&this._searchFields.push(t)}}else this._searchFields=this.instance.config.searchFields;if(this.instance.config.searchFieldsAbbreviation==null){this.searchFieldsAbbreviation={};for(var e=0;e<this._searchFields.length;e++){for(var n=this._searchFields[e],r=0,i=n.slice(0,r+1).toLowerCase();this.searchFieldsAbbreviation[i];)r++,i=n.slice(0,r+1).toLowerCase();this.searchFieldsAbbreviation[i]=n}}else this.searchFieldsAbbreviation=this.instance.config.searchFieldsAbbreviation;this._searchFieldsAbbreviation=this.searchFieldsAbbreviation},S.searchUI.prototype.find=function(e){this.input&&(this.input.value=e,document.activeElement==this.input?this._search(e):this.input.focus())},S.searchUI.prototype.addMatchTag=function(e){if(this._searchAfterEnterPress){for(var t=0;t<this.lastSearch.length;t++)if(this.lastSearch[t].id==e)return!0;return!1}return null},S.searchUI.prototype.__search=function(){this.lastSearch=S._search.search(this.instance.config.nodes,this.input.value,this._searchFields,this._searchFields,this.instance.config.searchDisplayField,this.instance.config.searchFieldsWeight,this.searchFieldsAbbreviation)},S.searchUI.prototype._search=function(){var e=this;this._searchAfterEnterPress=!1;var t;if(this.input.value==S.SEARCH_HELP_SYMBOL)t=this.helpView();else{this.__search();var n=S._getFistImgField(this.instance.config);t=`<table border="0" cellspacing="0" cellpadding="0">
|
|
469
|
-
<tbody>
|
|
470
|
-
${(function(){for(var t=``,r=0;r<e.lastSearch.length&&!(r>=S.SEARCH_RESULT_LIMIT);r++){var i=e.lastSearch[r],a=``;if(n){var o=e.instance._get(i.id);typeof n==`function`?a=n(e.instance,e.instance.getNode(i.id),o):o[n]&&(a=o[n])}var s=``,c=``;e.instance.config.searchDisplayField==i.__searchField?s=i.__searchMarks:e.instance.config.searchDisplayField?(s=i[e.instance.config.searchDisplayField],S.isNEU(s)&&(s=``),c=i.__searchMarks):s=i.__searchMarks;var l={img:a,nodeId:i.id,first:s,second:c,searchItem:i,html:S.searchUI.createItem(a,i.id,s,c)};S.events.publish(`add-item`,[e,l]),t+=l.html}return t})()}
|
|
471
|
-
</tbody>
|
|
472
|
-
</table>`}this.searchTableWrapper.innerHTML=t;for(var r=this.instance.element.querySelectorAll(`[data-search-item-id]`),i=0;i<r.length;i++)r[i].addEventListener(`click`,function(){if(this.hasAttribute(`data-search-item-id`)){var t=this.getAttribute(`data-search-item-id`);if(e.input.value!=S.SEARCH_HELP_SYMBOL){var n=S.events.publish(`searchclick`,[e.instance,t]),r=S.events.publish(`searchclick`,[e,{nodeId:t}]);if(n===!1&&(r=!1),r!==!1){e.instance.center(this.getAttribute(`data-search-item-id`));var i=e.instance.element.querySelector(`[data-selected="yes"]`);i&&i.removeAttribute(`data-selected`),this.setAttribute(`data-selected`,`yes`),e.input.focus(),S.isMobile()&&e.hide()}}else e.input.value=t+` `,e.searchTableWrapper.innerHTML=``,e.input.focus()}});S.events.publish(`show-items`,[this,{}])},S.searchUI.prototype.helpView=function(){var e=`<table border="0" cellspacing="0" cellpadding="0">`;for(var t in this.searchFieldsAbbreviation)e+=`<tr data-search-item-id="${t}" style="height: 50px;"><td class="boc-search-image-td" style="text-align: center;">${t}</td><td class="boc-search-text-td">${this.searchFieldsAbbreviation[t]}</td></tr>`;return e+=`</table>`,e},S.searchUI.createItem=function(e,t,n,r){return n&&=`<b>`+n+`</b>`,e=e?`<div class="boc-search-photo" style="background-image: url(${e})"></div>`:`<div class="boc-search-photo">${S.icon.user(32,32,`#aeaeae`)}</div>`,`<tr data-search-item-id="${t}">
|
|
473
|
-
<td class="boc-search-image-td">
|
|
474
|
-
${e}
|
|
475
|
-
</td>
|
|
476
|
-
<td class="boc-search-text-td">${n} <br/>${r}</td>
|
|
477
|
-
</tr>`},S.searchUI.prototype.hide=function(){if(S.events.publish(`hide`,[this])===!1)return!1;this._searchAfterEnterPress&&(this._searchAfterEnterPress=!1,this.instance.draw()),this.lastSearch=[],this.xBtn&&(this.xBtn.style.display=`none`),this.searchTableWrapper&&(this.searchTableWrapper.innerHTML=``),this.input&&(S.isMobile()||(this.input.value=``),document.activeElement==this.input&&this.input.blur(),document.activeElement==this.xBtn&&S.input.blurHandler(this.input))},S.searchUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.events.on(`redraw`,function(e,t){for(var n=e.element.querySelectorAll(`[data-n-id]`),r=0;r<n.length;r++)n[r].addEventListener(`mouseover`,function(t){if(!this.contains(t.relatedTarget)){var n=this.getAttribute(`data-n-id`),r={node:e.getNode(n),event:t};if(S.events.publish(`node-mouseover`,[e,r])===!1)return;S._addSelectedStyle(e,r.node,r.node.id)}}),n[r].addEventListener(`mouseleave`,function(t){var n=this.getAttribute(`data-n-id`),r={node:e.getNode(n),event:t};S.events.publish(`node-mouseleave`,[e,r])!==!1&&S._removeSelectedStyle(e)})}),S===void 0&&(S={}),S.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},S.manager.prototype.read=function(e,t,n,r,i,a,o,s){var c=this;S.state._get(this.config.state,t,n,function(l){c.state=l,c.action=i,c.actionParams=a,i!=S.action.init||!c.state||a&&a.method&&a.method==`fit`?(c.viewBox=r,c.vbIsInitializedFromState=!1):(c.viewBox=c.state.vb,c.vbIsInitializedFromState=!0,Array.isArray(c.state.roots)&&(c.config.roots=c.state.roots));var u=c.maxX,d=c.maxY,f=c.minX,p=c.minY,m=c.bordersByRootIdAndLevel,h=c.roots,g=c.nodes;if(!e)g?c.oldNodes=g:c.oldNodes=null,c._read(function(e){u=e.maxX,d=e.maxY,f=e.minX,p=e.minY,m=e.bordersByRootIdAndLevel,h=e.roots,g=e.nodes;var r=S.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);r.notif=e.limit,r.roots=h,r.bordersByRootIdAndLevel=m,r.adjustify=e.adjustify,i!=S.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=r.visibleNodeIds,c.bordersByRootIdAndLevel=m,c.rootList=e.rootList),o(r)},s);else{var _=S.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);i!=S.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=_.visibleNodeIds),_.bordersByRootIdAndLevel=m,_.roots=h,_.adjustify={x:0,y:0},c.state&&(_.adjustify=c.state.adjustify),o(_)}})},S.manager.prototype._read=function(e,t){var n=this,r=S.manager._createNodes(this.instance);t(r);var i=r.nodes,a=r.roots,o=S.remote;o??=S.local,o._setPositions(a,n.layoutConfigs,function(t){var o=S.manager._doNotChangePositionOfClickedNodeIfAny(a,i,n.action,n.actionParams,n.oldNodes,n.config.orientation);n.state&&n.action==S.action.init&&(o=n.state.adjustify),n.action==S.action.exporting?o=n._fixAdjustForExport:n._fixAdjustForExport=o;for(var s={minX:null,minY:null,maxX:null,maxY:null},c={},l=[],u=0;u<a.length;u++)S.manager._setMinMaxXYAdjustifyIterate(a[u],a[u],s,0,c,o,n.config.orientation,l);for(var u=0;u<a.length;u++)S.manager._setChildCountPropsIterate(a[u],i);for(var d in l)for(var f in l[d]){var p=c[d][f],m=l[d][f];p.minX==null&&p.minY==null&&p.maxX==null&&p.maxY==null&&S._setMinMaxXY(m,p,!0)}e({minX:s.minX,minY:s.minY,maxX:s.maxX,maxY:s.maxY,bordersByRootIdAndLevel:c,nodes:i,roots:a,rootList:r.rootList,limit:t,adjustify:o})},i)},S===void 0&&(S={}),S.manager._initDinamicNode=function(e,t,n){t&&(e.lcn=t),n&&(e.isAssistant=!0);var r=S.t(e.templateName);e.w=r&&r.size?r.size[0]:0,e.h=r&&r.size?r.size[1]:0,e.isSplit=e.templateName==`split`,e.isMirror=e.templateName==`mirror`,e.isSubLevel=e.templateName==`subLevel`},S.manager._setCollpasedProperty=function(e,t,n,r,i,a,o,s){if(e.collapsed==null&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:e.collapsed??=!1,i==S.action.expand&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!1),i==S.action.collapse&&(n.expandIds||n.collapseIds)?n.expandIds&&n.expandIds.indexOf(e.id)!=-1?e.collapsed=!1:n.collapseIds&&n.collapseIds.indexOf(e.id)!=-1&&(e.collapsed=!0):i==S.action.collapse&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!0),i==S.action.expand&&n.ids==`all`&&(e.collapsed=!1),i==S.action.exporting&&(!S.isNEU(n.parentLevels)||!S.isNEU(n.childLevels))&&n.id!=null){if(n.id!=null&&(!S.isNEU(n.parentLevels)||!S.isNEU(n.childLevels))){var c=s[n.id];if(c==e)e.collapsed=!1;else{for(var l=!1,u=-1,d=!1,f=-1;c;){if(u++,c==e){l=!0;break}c=s[c.pid]}c=s[n.id];for(var p=s[e.id];p;){if(f++,p==c){d=!0;break}p=s[p.pid]}n.parentLevels!=null&&l&&u<=n.parentLevels||n.childLevels!=null&&d&&f<=n.childLevels||d&&n.expandChildren?e.collapsed=!1:e.collapsed=!0}}}else i==S.action.exporting&&n.expandChildren&&(e.collapsed=!1);i==S.action.init&&o!=null?e.collapsed=!o.exp.has(e.id):i==S.action.init?e.tags.indexOf(`left-partner`)!=-1||e.tags.indexOf(`right-partner`)!=-1||e.tags.indexOf(`partner`)!=-1||e.parentPartner?e.collapsed=t.collapse&&a>=t.collapse.level&&r.indexOf(e.id)==-1:e.collapsed=t.collapse&&a>=t.collapse.level-1&&r.indexOf(e.id)==-1:i==S.action.centerNode||i==S.action.insert||i==S.action.expand||i==S.action.collapse?r.has(e.id)&&(e.collapsed=!1):i==S.action.update&&n&&n.changeRoots&&n.changeRoots.has(e.id)&&(e.collapsed=!1)},S.manager._initNode=function(e,t,n,r,i,a,o){var s=o.manager.config,c=o.manager.layoutConfigs,l=o.manager.action,u=o.manager.actionParams,d=o.manager.state,f=c[n||`base`];e.parent??S.manager._setCollpasedProperty(e,f,u,i,l,r-1,d,t);for(var p=0;p<e.childrenIds.length;p++){var m=t[e.childrenIds[p]];if(S.manager._setCollpasedProperty(m,f,u,i,l,r,d,t),m.collapsed)e.collapsedChildCount++;else{if(m.parent=e,m.ppid!=null){var h=t[m.ppid];h&&(m.parentPartner=h)}(m.tags.indexOf(`left-partner`)!=-1||m.tags.indexOf(`right-partner`)!=-1||m.tags.indexOf(`partner`)!=-1||m.parentPartner)&&a.indexOf(e.id)==-1&&a.push(e.id),e.children.push(m)}}if(l==S.action.minimize&&!e.min?(u.all||u.id==e.id)&&(e.min=!0):l==S.action.maximize&&e.min===!0?(u.all||u.id==e.id)&&(e.min=!1):l==S.action.exporting&&u.min===!1?e.min=!1:l==S.action.init&&d!=null&&(e.min=d.min.has(e.id)),!e.min&&(!e.tags||!e.tags.has(`filter`)))for(var p=0;p<e.stChildrenIds.length;p++){var m=t[e.stChildrenIds[p]];m.stParent=e,e.stChildren.push(m)}r!=null&&(e.level=r),n&&(e.lcn=n);var g=S._getSubLevels(e.tags,s.tags);g>0&&(e.subLevels=g),e.tags.indexOf(`assistant`)!=-1&&e.parent!=null&&(e.isAssistant=!0),f.layout==S.layout.treeList&&(e.isTreeListItem=!0),f.template&&s.template==e.templateName&&(e.templateName=f.template);var _=S.t(e.templateName,e.min);if(e.w=_&&_.size?_.size[0]:0,e.h=_&&_.size?_.size[1]:0,e.padding=_&&_.padding?_.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&e.stParent.treeList==null){var v=S.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:v.treeListMaxHeight}}var y={node:e};S.events.publish(`node-initialized`,[o,y])},S.manager._iterate=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=d.manager.layoutConfigs;if(S.manager._initNode(t,n,c,r,l,u,d),t.isAssistant&&(a[t.pid]||(a[t.pid]=[]),a[t.pid].push(t.id)),t.subLevels>0&&o.push(t.id),S.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var _=t.parent.children[g];_.tags.indexOf(`partner`)==-1&&_.tags.indexOf(`left-partner`)==-1&&_.tags.indexOf(`right-partner`)==-1&&_.tags.indexOf(`assistant`)==-1&&_.children.length==0?p.push(_.id):_.tags.indexOf(`assistant`)==-1?(_.tags.indexOf(`partner`)!=-1||_.tags.indexOf(`left-partner`)!=-1||_.tags.indexOf(`right-partner`)!=-1)&&h++:m++}(S.MIXED_LAYOUT_ALL_NODES&&p.length>1&&p.length==t.parent.children.length-m-h||!S.MIXED_LAYOUT_ALL_NODES&&p.length>1)&&(s[t.pid]=p)}}else if(!t.isAssistant&&t.childrenIds.length==0&&t.parent&&!s[t.pid]){for(var p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var _=t.parent.children[g];_.tags.indexOf(`partner`)==-1&&_.tags.indexOf(`left-partner`)==-1&&_.tags.indexOf(`right-partner`)==-1&&_.tags.indexOf(`assistant`)==-1&&_.childrenIds.length==0?p.push(_.id):_.tags.indexOf(`assistant`)==-1?(_.tags.indexOf(`partner`)!=-1||_.tags.indexOf(`left-partner`)!=-1||_.tags.indexOf(`right-partner`)!=-1)&&h++:m++}(S.MIXED_LAYOUT_ALL_NODES&&p.length>S.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&p.length==t.parent.childrenIds.length-m-h||!S.MIXED_LAYOUT_ALL_NODES&&p.length>S.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(s[t.pid]=p)}t.stChildren.length&&(e.stContainerNodes||=[],e.stContainerNodes.push(t));for(var v=0;v<t.stChildren.length;v++){for(var y=``,g=0;g<t.tags.length;g++)if(f[t.tags[g]]){y=t.tags[g];break}i.push(t.stChildren[v].id),S.manager._iterate(e,t.stChildren[v],n,0,i,a,o,s,y,l,u,d)}r++;for(var v=0;v<t.children.length;v++)t.isTreeListItem&&(t.children[v].isTreeListItem=t.isTreeListItem),S.manager._iterate(e,t.children[v],n,r,i,a,o,s,c,l,u,d)},S.manager.__createNodes=function(e,t,n,r,i,a,o,s){for(var c=[],l=S._addDottedLines(n),u=0;u<l.length;u++){var d=l[u],f=S.STRING_TAGS?d.tags?d.tags.split(`,`):[]:Array.isArray(d.tags)?d.tags.slice(0):[];s.filterUI.addFilterTag(d)&&f.unshift(`filter`);var p=s.searchUI.addMatchTag(d.id);p===!0?f.unshift(`match`):p===!1&&f.unshift(`no-match`);var m=S._getTemplate(f,n.tags,n.template);d&&d.template&&(m=d.template);var h=new S.node(d.id,d.pid,f,m);S.isNEU(d.ppid)||(h.ppid=d.ppid),S.isNEU(d.stpid)||(h.stpid=d.stpid),d.movex!=null&&(h.movex=d.movex),d.movey!=null&&(h.movey=d.movey),e[d.id]=h,c.push(d.id)}if(n.orderBy!=null){var g=S.manager._getOrderSortArray(n.orderBy);c.sort(function(e,t){var n,r;for(var i of l)if(i.id==e&&(n=i),i.id==t&&(r=i),n&&r)break;for(var a=0;a<g.length;a++){var o=n[g[a].field],s=r[g[a].field],c=o,u=s;if(c??=``,u??=``,typeof c==`string`&&typeof u==`string`){var d=c.localeCompare(u);if(g[a].desc&&(d*=-1),d!==0)return d}else{var d=o<s?-1:o>s?1:0;if(g[a].desc&&(d*=-1),d!==0)return d}}})}for(var u=0;u<c.length;u++){var _=c[u],h=e[_],v=a?a[_]:null,y=e[h.stpid],b=e[h.pid];if(y||(h.stpid=null),b||(h.pid=null),y){var x=a?a[y.id]:null;x&&(y.min=x.min),y.stChildrenIds.push(h.id)}else b?(v&&(h.collapsed=v.collapsed,h.min=v.min,h.treeList=v.treeList),b.childrenIds.push(h.id)):(v&&(h.collapsed=v.collapsed,h.min=v.min,h.treeList=v.treeList),t.push(h),o.push(h.id));r==S.action.init&&(h.min=S._getMin(h,n))}},S.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs,r=e.manager.action,i=e.manager.actionParams,a=e.manager.oldNodes,o=e.manager.state,s={},c=[],l=[];if(S.manager.__createNodes(s,c,t,r,i,a,l,e),t.roots!=null){c=[];for(var u=0;u<t.roots.length;u++){var d=s[t.roots[u]];if(d&&r==S.action.centerNode){for(var f=d;f.pid!=null||f.stpid!=null;)f=f.pid==null&&f.stpid!=null?s[f.stpid]:s[f.pid];for(var p=s[i.id];(p.pid!=null||p.stpid!=null)&&p!=d;)p=p.pid==null&&p.stpid!=null?s[p.stpid]:s[p.pid];f==p&&(d=f)}if(d){for(var m=!1,h=0;h<c.length;h++)if(c[h].id==d.id){m=!0;break}if(!m){if(!S.isNEU(d.pid)){var g=s[d.pid],_=g.childrenIds.indexOf(d.id);_>-1&&g.childrenIds.splice(_,1)}c.push(d)}}}t.roots=[];for(var u=0;u<c.length;u++)t.roots.push(c[u].id)}if(r==S.action.exporting&&i.id!=null)if(i.parentLevels){for(var g=s[i.id],v=0;v<i.parentLevels&&s[g.pid];)v++,g=s[g.pid];g.pid=null,c=[g]}else{var y=s[i.id];y&&(y.pid=null,c=[y])}var b=[];if(r==S.action.init&&t.expand&&t.expand.nodes&&o==null)for(var u=0;u<t.expand.nodes.length;u++){var y=s[t.expand.nodes[u]];for(t.expand.allChildren===!0&&S.manager._addExpandedNodeIdsIterate(y,s,b);y;)b.push(y.id),y.pid==null&&y.stpid!=null?(y=s[y.stpid],y.min=!1):y=s[y.pid]}else if(r==S.action.expand&&i.ids&&i.ids!=`all`||r==S.action.collapse&&i&&i.expandIds)for(var x=r==S.action.expand?i.ids:i.expandIds,u=0;u<x.length;u++)for(var y=s[x[u]],g=s[y.pid];g;)b.push(g.id),g.pid==null&&g.stpid!=null?(g=s[g.stpid],g.min=!1):g=s[g.pid];else if(r==S.action.centerNode){for(var C=S._getCenterNodeFromParams(s,i);C;){if(b.push(C.id),i.options.parentState===S.COLLAPSE_PARENT_NEIGHBORS&&C)for(var u=0;u<C.childrenIds.length;u++){var w=s[C.childrenIds[u]];w.collapsed=!0}if(C.pid==null&&C.stpid!=null){if(C=s[C.stpid],C.min=!1,C.tags){var _=C.tags.indexOf(`filter`);_!=-1&&(C.tags.splice(_,1),e.filterUI._removeFilter(C.id))}}else C=s[C.pid]}if(C=S._getCenterNodeFromParams(s,i),i.options.childrenState===S.COLLAPSE_SUB_CHILDRENS)for(var u=0;u<C.childrenIds.length;u++){var T=s[C.childrenIds[u]];T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}if(i.options.parentState===S.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED){var g=s[C.pid];if(g)for(var u=0;u<g.childrenIds.length;u++){var T=s[g.childrenIds[u]];if(T!=C){T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}}}}else if(r==S.action.insert)for(var y=s[i.insertedNodeId];y;)b.push(y.id),y.pid==null&&y.stpid!=null?(y=s[y.stpid],y.min=!1):y=s[y.pid];for(var O=[],k={},A=[],j={},M=[],u=0;u<c.length;u++)S.manager._iterate(c[u],c[u],s,0,O,k,A,j,``,b,M,e);if(r==S.action.collapse&&i&&Array.isArray(i.expandIds)&&Array.isArray(i.collapseIds))for(var u=0;u<i.ids.length;u++)if(i.expandIds.has(i.collapseIds[u]))console.error(`id ${i.collapseIds[u]} exist in both collapseIds and expandIds`);else{var y=s[i.collapseIds[u]];y&&(y.collapsed=!0)}for(var u=c.length-1;u>=0;u--)c[u].collapsed&&c.splice(u,1);for(var u=0;u<M.length;u++){for(var y=s[M[u]],N=[],P=[],F=[],I={},L=0,ee=0,R=0,z=[],B=[],E=0;E<y.children.length;E++){var w=y.children[E];w.isAssistant?N.push(w.id):w.tags.indexOf(`right-partner`)==-1?w.tags.indexOf(`left-partner`)==-1?w.tags.indexOf(`partner`)!=-1&&!(L%2)?(w.isPartner=1,w.children=[],P.push(w.id),L++):w.tags.indexOf(`partner`)!=-1&&L%2?(w.isPartner=2,w.children=[],F.push(w.id),L++):w.parentPartner?(I[w.parentPartner.id]||(I[w.parentPartner.id]=[]),I[w.parentPartner.id].push(w.id)):N.push(w.id):(w.isPartner=2,w.children=[],F.push(w.id)):(w.isPartner=1,w.children=[],P.push(w.id))}y.children=[];for(var te=[],E=0;E<P.length;E++){var w=s[P[E]];I[w.id]?y.children.push(w):y.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)te.push(w.childrenIds[V])}for(var H=[],E=0;E<F.length;E++){var w=s[F[E]];I[w.id]?y.children.push(w):y.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)H.push(w.childrenIds[V])}for(var E=0;E<H.length;E++){var w=s[H[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=y,w.isChildOfPartner=!0,y.children.push(w))}for(var E=F.length-1;E>=0;E--)if(I[F[E]])for(var h=0;h<I[F[E]].length;h++)y.children.push(s[I[F[E]][h]]),ee++,B.indexOf(F[E])==-1&&B.push(F[E]);for(var E=0;E<N.length;E++){var w=s[N[E]];y.children.push(w)}for(var E=0;E<P.length;E++)if(I[P[E]])for(var h=0;h<I[P[E]].length;h++)y.children.push(s[I[P[E]][h]]),R++,z.indexOf(P[E])==-1&&z.push(P[E]);for(var E=0;E<te.length;E++){var w=s[te[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=y,w.isChildOfPartner=!0,y.children.push(w))}y.partnerSeparation=Math.max(B.length,z.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,!N.length&&ee&&!R?y.hasPartners=2:!N.length&&!ee&&R?y.hasPartners=3:!N.length&&ee==1&&R==1?y.hasPartners=4:!N.length&&!ee&&!R?y.hasPartners=5:N.length&&!ee&&!R?y.hasPartners=6:N.length&&(ee||R)?y.hasPartners=7:y.hasPartners=1}for(var u=0;u<A.length;u++)for(var y=s[A[u]],ne=y.lcn?y.lcn:`base`,U=n[ne],E=0;E<y.subLevels;E++){var W=new S.node(y.id+`_sub_level_index_`+E,y.pid,[],`subLevel`);S.manager._initDinamicNode(W,y.lcn);var g=y.parent;if(g){y.movex!=null&&(W.movex=y.movex),y.movey!=null&&(W.movey=y.movey);var _=g.children.indexOf(y);_>-1&&(g.children.splice(_,1),g.children.splice(_,0,W)),W.children.push(y),W.parent=g,y.parent=W,s[W.id]=W}}for(var re in k){var g=s[re];g.hasAssistants=!0;var W=new S.node(g.id+`_split_assitant_0`,g.id,[`assistant`],`split`);g.movex!=null&&(W.movex=g.movex),g.movey!=null&&(W.movey=g.movey),S.manager._initDinamicNode(W,g.lcn,!0),s[W.id]=W;for(var ie=[],E=g.children.length-1;E>=0;E--){var w=g.children[E];w.isAssistant?(w.parent=null,g.children.splice(E,1),ie.splice(0,0,w.id)):w.isPartner||(w.parent&&j[w.parent.id]&&W&&w.parent.id!=W.id&&(Object.defineProperty(j,W.id,Object.getOwnPropertyDescriptor(j,w.parent.id)),delete j[w.parent.id]),w.parent=W,W.children.unshift(w),g.children.splice(E,1))}if(ie.length%2){var G=s[ie[ie.length-1]],ae=new S.node(G.id+`_mirror`,g.pid,[],`mirror`);S.manager._initDinamicNode(ae,G.lcn,!0),ae.isAssistant=!0,ae.w=G.w,ae.h=G.h,s[ae.id]=ae,ie.splice(ie.length-1,0,ae.id)}for(var K=1,E=ie.length-1;E>=0;E--)if(E%2&&E!=ie.length-1){var q=new S.node(g.id+`_split_assitant_`+K,g.pid,[],`split`);S.manager._initDinamicNode(q,g.lcn,!0),g.movex!=null&&(q.movex=g.movex),g.movey!=null&&(q.movey=g.movey),s[q.id]=q,ie.splice(E,0,q.id),K++}else E%2&&ie.splice(E,0,W.id);for(var E=0;E<ie.length;E+=3){var J=null;J=E==0?g:s[ie[E-2]];var oe=s[ie[E]],Y=s[ie[E+1]],se=s[ie[E+2]];oe.parent=J,Y.parent=J,se.parent=J,J.children.push(oe),J.children.push(Y),J.children.push(se)}}var ce=!1;for(var le in n){var U=n[le];if(U.layout!=0){ce=!0;break}}var ue=S.events.has(`node-layout`,e._event_id);if(ce||ue){var de={nodes:s,config:t,action:r,actionParams:i};if(A.length){var fe=!1;for(var re in j){for(var x=j[re],u=0;u<x.length;u++){var y=s[x[u]];if(y.subLevels){fe=!0;break}}if(fe)break}if(fe){var pe={},me={},he={};for(var re in j)for(var x=j[re],ge=!1,_e=null,u=0;u<x.length;u++){var ve=x[u];(_e===null||A.has(ve))&&(_e=s[ve].parent.id,!ge&&!S.isNEU(s[ve].subLevels)&&(ge=s[ve].subLevels>0)),pe[_e]||(pe[_e]=[]),pe[_e].push(ve),ge&&(he[_e]=re,me[_e]||(me[_e]=[]),me[_e].push(ve))}for(var re in j={},me)if(me[re].length>S.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)for(var ye=he[re],u=s[ye].children.length-1;u>=0;u--){var w=s[ye].children[u];me[re].has(w.id)&&s[ye].children.splice(u,1)}for(var re in pe)pe[re].length>S.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(j[re]=pe[re])}}for(var re in j){for(var g=s[re],be=g;be.isSplit;)be=s[be.pid];for(;be.isSubLevel;)be=s[be.pid];var ne=g.lcn?g.lcn:`base`,U=n[ne];if(U.layout!=0||ue){de.pnode=g,de.layout=U.layout,de.layoutGridColumns=t.layoutGridColumns,de.childrenIds=j[re],de.lastChildrenPidIds=j,de.subLevels=0,de.layouts=[],S.events.publish(`node-layout`,[e,de]),S.events.publish(`layout`,[de]),de.layouts.length||de.layouts.push({layout:de.layout,childrenIds:de.childrenIds,subLevels:de.subLevels,layoutGridColumns:de.layoutGridColumns});for(var X=0;X<de.layouts.length;X++){var Z=de.layouts[X];for(S.isNEU(Z.subLevels)&&(Z.subLevels=0),S.isNEU(Z.layout)&&(Z.layout=U.layout),g=s[re],be=g;be.isSplit;)be=s[be.pid];for(;be.isSubLevel;)be=s[be.pid];for(var xe=g,E=0;E<Z.subLevels;E++){var W=new S.node(X+`_sublevel_layout_`+E,xe.id,[],`subLevel`);S.manager._initDinamicNode(W,xe.lcn),W.parent=xe,xe.children.push(W),s[W.id]=W,xe=W}if(Z.subLevels){for(var E=0;E<Z.childrenIds.length;E++){var w=s[Z.childrenIds[E]],_=g.children.indexOf(w);_!=-1&&g.children.splice(_,1),w.parent=xe,xe.children.push(w)}g=xe}if(Z.layout==S.layout.grid&&Z.childrenIds.length>2){Z.layoutGridColumns==`dynamic`&&(Z.layoutGridColumns=S._getDynamicGridCoulumns(Z.childrenIds.length));for(var Se=g.id,u=g.children.length-1;u>=0;u--)for(var E=0;E<Z.childrenIds.length;E++){var ve=Z.childrenIds[E];if(g.children[u].id==ve){g.children.splice(u,1);break}}var Ce=Z.layoutGridColumns;Ce%2!=0&&Ce>2&&Ce--;for(var u=0;u<Z.childrenIds.length;u+=Ce)for(var we=null,E=0;E<Ce;E++){var Te=u+Ce>=Z.childrenIds.length;if(Z.childrenIds.length-1<u+E)break;var ve=Z.childrenIds[u+E],w=s[ve];w.parent=s[Se],s[Se].children.push(w),Te||(Ce/2-1==E&&(we=new S.node(Z.childrenIds[u+E-1]+`_grid_pseudo_node_`+Z.childrenIds[u+E+1],Se,[],`subLevel`),S.manager._initDinamicNode(we,g.lcn),we.parent=s[Se],s[Se].children.push(we),s[we.id]=we),Ce-1==E&&(Se=we.id))}}if(Z.layout==S.layout.mixed)for(var Ee=Z.childrenIds,u=Ee.length-1;u>=0;u--){var w=s[Ee[u]];g=w.parent,w.layout=S.layout.mixed;for(var E=g.children.length-1;E>=0;E--)if(w.id==g.children[E].id){g.children.splice(E,1);break}if(u>0){var De=s[Ee[u-1]];w.parent=De,w.layout=S.layout.mixed,De.children.push(w)}else g.children.push(w)}else if(Z.layout>1){var W=new S.node(X+`_`+g.id+`_split_0`,be.id,[],`split`);g.movex!=null&&(W.movex=g.movex),g.movey!=null&&(W.movey=g.movey),S.manager._initDinamicNode(W,g.lcn),s[W.id]=W,W.layout=Z.layout;for(var Oe=[],u=Z.childrenIds.length-1;u>=0;u--){for(var w=s[Z.childrenIds[u]],E=0;E<g.children.length;E++)g.children[E].id==w.id&&g.children.splice(E,1);if(w.parent=null,w.layout=Z.layout,(Z.layout==S.layout.treeRightOffset||Z.layout==S.layout.treeRight)&&Oe.splice(0,0,w.id),Z.layout>2){var ke=new S.node(X+`_`+w.id+`_mirror`,be.id,[],`mirror`);S.manager._initDinamicNode(ke,w.lcn),ke.layout=Z.layout,s[ke.id]=ke,Oe.splice(0,0,ke.id)}Z.layout!=S.layout.treeRightOffset&&Z.layout!=S.layout.treeRight&&Oe.splice(0,0,w.id)}for(var K=1,E=Oe.length-1;E>=0;E--)if(E%2&&E!=Oe.length-1){var q=new S.node(X+`_`+g.id+`_split_`+K,be.id,[],`split`);S.manager._initDinamicNode(q,g.lcn),g.movex!=null&&(q.movex=g.movex),g.movey!=null&&(q.movey=g.movey),q.layout=Z.layout,s[q.id]=q,Oe.splice(E,0,q.id),K++}else E%2&&Oe.splice(E,0,W.id);for(var E=0;E<Oe.length;E+=3){var J=null;E==0&&(J=g);var oe=s[Oe[E]],Y=s[Oe[E+1]],se=s[Oe[E+2]];E!=0&&(J=s[Oe[E-3]]),E!=0&&!Y&&(J=s[Oe[E-2]]),oe.parent=J,J.children.push(oe),Y&&(E!=0&&(J=s[Oe[E-2]]),Y.parent=J,J.children.push(Y)),se&&(E!=0&&(J=s[Oe[E-1]]),se.parent=J,J.children.push(se))}}}}}}if(S.VERTICAL_CHILDREN_ASSISTANT)for(var u=0;u<c.length;u++)S.manager._verticalAssistantIterate(c[u],s);var de={nodes:s,roots:c};return S.events.publish(`nodes-initialized`,[e,de]),{nodes:de.nodes,roots:de.roots,rootList:l}},S.manager._getOrderSortArray=function(e){if(typeof e==`string`)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var n of e)typeof n==`string`?t.push({field:n,desc:!1}):e instanceof Object?t.push(n):console.error(`Unseported orderBy value!`);return t}else if(e instanceof Object)return[e];else console.error(`Unseported orderBy value!`)},S.manager._getNodeWidth=function(e,t){switch(t.orientation){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:return e.w;case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:return e.h}return 0},S.manager._isVisible=function(e,t,n,r,i,a,o){var s=0;if(S.LAZY_LOADING_FACTOR==`auto`){var c=a/i*2,l=o/i*2;s=Math.ceil(c>l?c:l)}else s=S.LAZY_LOADING_FACTOR/i;if(!(e.x==null||e.y==null)){if(S._getLazyLoading(t)&&r!==S.action.exporting){function t(e,t){var n=e.x,r=e.y,i=e.w,a=e.h,o=t[0]-s,c=t[2]+s+t[0],l=t[1]-s,u=t[3]+s+t[1],d=n+i>o&&c>n;return d&&=r+a>l&&u>r,d}if(t(e,n))return!0;for(var u=0;u<e.children.length;u++)if(t(e.children[u],n))return!0;return!1}return!0}},S.manager.getAllFields=function(e){var t=[S.TAGS];for(var n in e.nodeBinding)t.push(e.nodeBinding[n]);for(var n=0;n<e.nodes.length;n++)for(var r in e.nodes[n])r!==S.ID&&r!==S.TAGS&&r!==S.NODES&&r!==S.PID&&r!==S.STPID&&r!==`movex`&&r!==`movey`&&(e.nodeBinding[r]||t.has(r)||t.push(r));return t},S.manager._getMostDeepChild=function(e){if(!e)return;var t=e;function n(e){e.sl>t.sl&&(t=e);for(var r=0;r<e.children.length;r++)n(e.children[r])}return n(e),t},S.manager._getResponse=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var h=l[0],g=[],_={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},v=[[],[],[]],y=i-o+r.padding*2,b=a-s+r.padding*2,x=S.getScale(c,e,t,r.scaleInitial,r.scaleMax,r.scaleMin,y,b);if(_.top=s-r.padding,_.left=o-r.padding,_.bottom=a+r.padding-t/x,_.right=i+r.padding-e/x,_.maxX=i,_.minX=o,_.maxY=a,_.minY=s,l.length==0||c==null&&!m&&r.align==S.CENTER){var C=Math.ceil(e/x),w=Math.ceil(t/x),T=0,E=0;if(C-r.padding*2>=i-o)switch(T=(i+o)/2-C/2,r.orientation){case S.orientation.right:case S.orientation.right_top:T=(o-i)/2-C/2;break}else switch(T=h.x-C/2+S.manager._getNodeWidth(h,r)/2,r.orientation){case S.orientation.right:case S.orientation.right_top:T=-(C/2-(o-i)/2),T<r.padding-C&&(T=r.padding-C);break;case S.orientation.left:case S.orientation.bottom_left:case S.orientation.top_left:case S.orientation.left_top:T=-(C/2-(i-o)/2),T>-r.padding&&(T=-r.padding);break}if(w-r.padding*2>=a-s)switch(E=(a+s)/2-w/2,r.orientation){case S.orientation.bottom:case S.orientation.bottom_left:E=(s-a)/2-w/2;break}else switch(E=-(w/2-(a-s)/2),E>-r.padding&&(E=-r.padding),r.orientation){case S.orientation.bottom:case S.orientation.bottom_left:E=-(w/2-(s-a)/2),E<r.padding-w&&(E=r.padding-w);break;case S.orientation.left:case S.orientation.right:E=h.y-w/2+S.manager._getNodeWidth(h,r)/2;break}c=[T,E,C,w]}else if(c==null&&!m&&r.align==S.ORIENTATION){var C=Math.ceil(e/x),w=Math.ceil(t/x),T=0,E=0;switch(r.orientation){case S.orientation.top:T=h.x-C/2+S.manager._getNodeWidth(h,r)/2,E=-r.padding;break;case S.orientation.bottom:T=h.x-C/2+S.manager._getNodeWidth(h,r)/2,E=r.padding-w;break;case S.orientation.left:T=-r.padding,E=h.y-w/2+S.manager._getNodeWidth(h,r)/2;break;case S.orientation.right:T=r.padding-C,E=h.y-w/2+S.manager._getNodeWidth(h,r)/2;break;case S.orientation.top_left:T=-r.padding,E=-r.padding;break;case S.orientation.right_top:T=r.padding-C,E=-r.padding;break;case S.orientation.left_top:T=-r.padding,E=-r.padding;break;case S.orientation.bottom_left:T=-r.padding,E=r.padding-w;break}c=[T,E,C,w]}if(u==S.action.centerNode||u==S.action.maximize){var D=S._getCenterNodeFromParams(f,d);d.options.horizontal==1&&(c[0]=D.x+D.w/2-c[2]/2),d.options.vertical==1&&(c[1]=D.y+D.h/2-c[3]/2)}if(u==S.action.insert||u==S.action.expand||u==S.action.collapse||u==S.action.update||u==S.action.centerNode){var O=null;if(u==S.action.insert&&d&&d.insertedNodeId!=null&&d.insertedNodeId!=null)O=f[d.insertedNodeId];else if(u==S.action.update&&d&&d.visId!=null&&d.visId!=null)O=f[d.visId];else if((u==S.action.expand||u==S.action.collapse)&&d&&d.id!=null&&d.id!=null)O=f[d.id],O=S.manager._getMostDeepChild(O);else if(u==S.action.centerNode){switch(r.orientation){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:d.options.vertical||(O=f[d.id]);break;case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:d.options.horizontal||(O=f[d.id]);break}O&&=S.manager._getMostDeepChild(O)}if(!S.FIXED_POSITION_ON_CLICK&&O){if(O.isTreeListItem){for(;!O.stParent;)O=O.parent;O=O.stParent}switch(r.orientation){case S.orientation.top:case S.orientation.top_left:var k=O.y+O.h-c[3]+r.padding;c[1]<k&&(c[1]=k);break;case S.orientation.bottom:case S.orientation.bottom_left:var k=O.y-r.padding;c[1]>k&&(c[1]=k);break;case S.orientation.right:case S.orientation.right_top:var k=O.x-r.padding;c[0]>k&&(c[0]=k);break;case S.orientation.left:case S.orientation.left_top:var k=O.x+O.w-c[2]+r.padding;c[0]<k&&(c[0]=k);break}}}for(var A=0;A<l.length;A++)S.manager._iterate2(l[A],f,r,c,u,d,g,p,n,v,x,e,t);return{animations:v,boundary:_,viewBox:c,visibleNodeIds:g,nodes:f,allFields:S.manager.getAllFields(r)}},S.manager._iterate2=function(e,t,n,r,i,a,o,s,c,l,u,d,f){if(S.manager._isVisible(e,n,r,i,u,d,f)){o.push(e.id);var p=null;if((i==S.action.expand||i==S.action.collapse||i==S.action.maximize)&&s&&s[e.id]&&a.method==`expandCollapseToLevel`){var m=s[e.id];if(p={x:m.x,y:m.y},m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var _=t[a.id];if(_){for(var h=e.parent;h!=null;)h=h.parent;h&&(p={x:_.x+_.w/2-e.w/2,y:_.y+_.h/2-e.h/2})}}else if((i==S.action.expand||i==S.action.collapse)&&s&&s[e.id]){var m=s[e.id];if(p={x:m.x,y:m.y},a.ids==`all`&&m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var _=t[a.id];if(_){for(var h=e.parent;h!=null&&a.ids.indexOf(e.id)==-1&&a.ids.indexOf(h.id)==-1;)h=h.parent;h&&(p={x:_.x+_.w/2-e.w/2,y:_.y+_.h/2-e.h/2})}}else if(i==S.action.centerNode&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var v=S._getCenterNodeFromParams(t,a);if(v&&v==e){var h=e.parent;h&&h.id==a.id&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==S.action.maximize&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var v=S._getCenterNodeFromParams(t,a);if(v&&v==e){var h=e.parent;h&&h.id==a.id&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==S.action.minimize&&s&&s[e.id]){var m=s[e.id];p={x:m.x,y:m.y}}else if(i==S.action.insert&&a&&a.insertedNodeId==e.id&&e.parent)p={x:e.parent.x,y:e.parent.y};else if((i==S.action.update||i==S.action.insert)&&s){var m=s[e.id];if((!m||S.isNEU(m.x)&&S.isNEU(m.y))&&a){var _=t[a.id];if(_){for(var h=_;h&&h.id==e.id;)h=h.parent;h&&(p={x:_.x,y:_.y})}}else m&&(p={x:m.x,y:m.y})}else i!==S.action.exporting&&i!==S.action.init&&c.indexOf(e.id)==-1&&(l[0].push(e.id),l[1].push({opacity:0}),l[2].push({opacity:1}));p!=null&&p.x!=null&&p.y!=null&&(p.x!=e.x||p.y!=e.y)&&!(a&&a.dragNodeIdList&&a.dragNodeIdList.indexOf(e.id)!=-1)&&!e.isSplit&&(l[0].push(e.id),l[1].push({transform:[1,0,0,1,p.x,p.y]}),l[2].push({transform:[1,0,0,1,e.x,e.y]}))}for(var y=0;y<e.stChildren.length;y++)S.manager._iterate2(e.stChildren[y],t,n,r,i,a,o,s,c,l,u,d,f);for(var y=0;y<e.children.length;y++)S.manager._iterate2(e.children[y],t,n,r,i,a,o,s,c,l,u,d,f)},S.manager._addExpandedNodeIdsIterate=function(e,t,n){for(var r=0;r<e.childrenIds.length;r++)n.push(e.childrenIds[r]),S.manager._addExpandedNodeIdsIterate(t[e.childrenIds[r]],t,n)},S.manager._setChildCountPropsIterate=function(e,t){e.w===void 0&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var n=t[e.pid];n;)n.deepCollapsedChildCount+=e.collapsedChildCount,n.deepChildCount+=e.childCount,n=t[n.pid];for(var r of e.stChildrenIds)S.manager._setChildCountPropsIterate(t[r],t);for(var r of e.childrenIds)S.manager._setChildCountPropsIterate(t[r],t)},S.manager._setMinMaxXYAdjustifyIterate=function(e,t,n,r,i,a,o,s){e.x+=a.x,e.y+=a.y;for(var c of e.stChildren)S.manager._setMinMaxXYAdjustifyIterate(c,c,n,0,i,a,o,s);e.isPartner?e.sl=r-1:e.sl=r,i[t.id]??(i[t.id]={}),i[t.id][e.sl]??(i[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(s[t.id]??(s[t.id]={}),s[t.id][e.sl]??(s[t.id][e.sl]=e)):S._setMinMaxXY(e,i[t.id][e.sl],!0),e.movex!=null&&(e.x+=e.movex),e.movey!=null&&(e.y+=e.movey),S._setMinMaxXY(e,n,!0),r++;for(var c of e.children)S.manager._setMinMaxXYAdjustifyIterate(c,t,n,r,i,a,o,s)},S.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,n,r,i,a){if(n!=S.action.expand&&n!=S.action.collapse&&n!=S.action.minimize&&n!=S.action.maximize&&n!=S.action.centerNode&&n!=S.action.update&&n!=S.action.insert)return{x:0,y:0};if(n==S.action.update&&(!r||r.id==null)){if(!e||!e.length)return{x:0,y:0};r={id:e[0].id}}if(r.id==null)return{x:0,y:0};var o=r.id;(n==S.action.minimize&&t[o].parent||n==S.action.maximize&&t[o].parent)&&(o=t[o].pid);var s=t[o],c=i[o];if(!c)return{x:0,y:0};var l=c.movex==null?0:c.movex,u=c.movey==null?0:c.movey,d={x:(c.x?c.x-l:0)-s.x,y:(c.y?c.y-u:0)-s.y};return s&&s.isTreeListItem?{x:0,y:0}:d},S.manager._verticalAssistantIterate=function(e,t){for(var n=0;n<e.stChildren.length;n++)S.manager._verticalAssistantIterate(e.stChildren[n],t);if(e.children.length==3)S.manager._verticalAssistantIterate(e.children[0],t),S.manager._verticalAssistantIterate(e.children[2],t),S.manager._verticalAssistantIterate(e.children[1],t);else for(var n=0;n<e.children.length;n++)S.manager._verticalAssistantIterate(e.children[n],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var r=e.parent.children[0],i=e.parent.children[2],a=e.parent;!a.hasAssistants;)a=a.parent;var o={max:0},s={max:0};S.manager._verticalAssistantLevelCountIterate(r,0,o),S.manager._verticalAssistantLevelCountIterate(i,0,s);for(var c=Math.max(o.max,s.max),l=[],n=0;n<c;n++){var u=new S.node(e.parent.id+`_split_assitant_level_`+n,e.pid,[],`subLevel`);S.manager._initDinamicNode(u,e.lcn,!0),a.movex!=null&&(u.movex=a.movex),a.movey!=null&&(u.movey=a.movey),n>0&&(l[n-1].children.push(u),u.parent=l[n-1]),t[u.id]=u,l.push(u)}if(l.length){for(var d=l[l.length-1],f=l[0],p=e.children.length-1;p>=0;p--){var m=e.children[p];d.children.unshift(m),m.parent=d,e.children.splice(p,1)}e.children.push(f),f.parent=e}}},S.manager._verticalAssistantLevelCountIterate=function(e,t,n){n.max<t&&(n.max=t),t++;for(var r=0;r<e.children.length;r++)S.manager._verticalAssistantLevelCountIterate(e.children[r],t,n)},S._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var n=[],r=0;r<e.groupDottedLines.length;r++){var i=e.groupDottedLines[r];i.rootId??=i.to;var a=`balkan_group_dotted_${i.rootId}`;if(!n.has(a)){for(var o=0;o<t.length;o++)if(t[o].id==i.rootId){var s=JSON.parse(JSON.stringify(t[o]));s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=void 0,s.stpid=t[o].id,t.push(s),n.push(a),t[o].tags||(t[o].tags=[]),t[o].tags.push(`group-dotted-lines`),t[o].tags.push(`group-dotted-lines-`+a);break}}for(var o=0;o<t.length;o++)if(t[o].id==i.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=`balkan_group_dotted_${i.rootId}_balkan_id_${i.to}`,s.tags){var c=s.tags.indexOf(`group-dotted-lines`);c!=-1&&s.tags.splice(c,1)}if(s.tags||=[],s.tags.push(`boc-dotted-connector`),i.tags)for(var l=0;l<i.tags.length;l++)s.tags.push(i.tags[l]);t.push(s);break}}if(e.dottedLines.length)for(var r=0;r<e.dottedLines.length;r++){var u=e.dottedLines[r];u.rootId??=u.to;for(var o=0;o<t.length;o++)if(t[o].id==u.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_dotted_${u.rootId}_balkan_id_${t[o].id}`,u.rootId==u.to?s.pid=u.to:s.pid=`balkan_dotted_${u.rootId}_balkan_id_${u.to}`,s.tags||=[],s.tags.push(`boc-dotted-connector`),u.tags)for(var l=0;l<u.tags.length;l++)s.tags.push(u.tags[l]);t.push(s);break}}return t},S===void 0&&(S={}),S.templates={},S.templates.base={defs:``,size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,node:`<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`,plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
478
|
-
<text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
479
|
-
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`,menuButton:`<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" `+S.attr.control_export_menu+`=""><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"></div>`,img_0:`<clipPath id="{randId}"><circle cx="60" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="20" y="20" width="80" height="80"></image>`,link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+S.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},S.templates.ana={defs:``,size:[250,120],linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},expandCollapseSize:30,svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,node:function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
480
|
-
<text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
481
|
-
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:`<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>`,nodeMenuButton:function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:S.templates.base.menuButton,img_0:function(e,t,n,r,i){var a=50,o=30,s=40,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+S.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,field_0:function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="${e.h-25}" text-anchor="middle"></text>`,e.w-20,1)},field_1:function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w-20}" y="30" text-anchor="end"></text>`,e.w-120,3)},padding:[75,5,50,5],editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},S.templates.split=Object.assign({},S.templates.ana),S.templates.split.size=[10,10],S.templates.split.node=`<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>`,S.templates.split.field_0=``,S.templates.split.field_1=``,S.templates.split.img_0=``,S.templates.dot=Object.assign({},S.templates.split),S.templates.group=Object.assign({},S.templates.ana),S.templates.group.size=[250,120],S.templates.group.padding=[50,20,35,20],S.templates.group.node=`<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>`,S.templates.group.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,S.templates.group.nodeMenuButton=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,{ew},25)"><g transform="matrix(1,0,0,1,-22,-8)"><rect x="0" y="0" fill="red" fill-opacity="0" width="18" height="22"></rect><line x1="0" y1="2" x2="9" y2="2" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="9" x2="18" y2="9" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="16" x2="22" y2="16" stroke="#aeaeae" stroke-width="1"></line></g></g>`,S.templates.group.field_0=`<text `+S.attr.width+`="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>`,S.templates.group.field_1=``,S.templates.group.ripple={radius:50,color:`#aeaeae`},S.templates.invisibleGroup=Object.assign({},S.templates.group),S.templates.invisibleGroup.node=``,S.templates.invisibleGroup.padding=[0,0,0,0],S.templates.invisibleGroup.field_0=``,S.templates.invisibleGroup.nodeMenuButton=``,S.templates.mirror={linkAdjuster:{},link:``,node:``,nodeMenuButton:``,size:[0,0]},S.templates.ula=Object.assign({},S.templates.ana),S.templates.ula.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>`,e.w-105,1)},S.templates.ula.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>`,e.w-105,3)},S.templates.ula.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#aeaeae"></rect><line x1="0" y1="0" x2="${e.w}" y2="0" stroke-width="2" stroke="#039BE5"></line>`},S.templates.ula.img_0=function(e,t,n,r,i){var a=50,o=60,s=40,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.ula.menu=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" `+S.attr.control_node_menu_id+`="{id}"><rect x="-4" y="-10" fill="#ffffff" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#039BE5"></circle><circle cx="7" cy="0" r="2" fill="#039BE5"></circle><circle cx="14" cy="0" r="2" fill="#039BE5"></circle></g>`,S.templates.ula.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},S.templates.ula.padding=[110,1,1,1],S.templates.olivia=Object.assign({},S.templates.ana),S.templates.olivia.defs=`<style>
|
|
482
|
-
#olivia_gradient {
|
|
483
|
-
--color-stop-1: #ffffff;
|
|
484
|
-
--color-stop-2: #eeeeee;
|
|
485
|
-
--opacity-stop: 1;
|
|
486
|
-
}
|
|
487
|
-
.olivia-f0{
|
|
488
|
-
font-size: 18px;
|
|
489
|
-
fill: #757575;
|
|
490
|
-
}
|
|
491
|
-
.olivia-f1{
|
|
492
|
-
font-size: 14px;
|
|
493
|
-
fill: #757575;
|
|
494
|
-
}
|
|
495
|
-
.boc-dark .olivia-f0,.boc-dark .olivia-f1{
|
|
496
|
-
fill: #aeaeae;
|
|
497
|
-
}
|
|
498
|
-
.boc-dark #olivia_gradient {
|
|
499
|
-
--color-stop-1: #646464;
|
|
500
|
-
--color-stop-2: #363636;
|
|
501
|
-
--opacity-stop: 1;
|
|
502
|
-
}
|
|
503
|
-
</style>
|
|
504
|
-
<linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>`,S.templates.olivia.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text class="olivia-f0" x="100" y="55"></text>`,e.w-105,1)},S.templates.olivia.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text class="olivia-f1" x="100" y="76"></text>`,e.w-105,3)},S.templates.olivia.node=function(e,t,n,r){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},S.templates.olivia.img_0=`<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>`,S.templates.olivia.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},S.templates.olivia.padding=[110,15,30,15],S.templates.belinda=Object.assign({},S.templates.ana),S.templates.belinda.size=[180,180],S.templates.belinda.ripple={radius:90,color:`#e6e6e6`,rect:null},S.templates.belinda.node=function(e,t,n,r){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},S.templates.belinda.img_0=function(e,t,n,r,i){var a=e.w/2,o=45,s=40,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.belinda.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},S.templates.belinda.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},S.templates.belinda.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,S.templates.belinda.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},S.templates.rony=Object.assign({},S.templates.ana),S.templates.rony.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,S.templates.rony.defs=`<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>`,S.templates.rony.size=[180,250],S.templates.rony.ripple={color:`#F57C00`,radius:5,rect:null},S.templates.rony.padding=[250,0,30,0],S.templates.rony.img_0=function(e,t,n,r,i){var a=e.w/2,o=160,s=60,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.rony.node=function(e,t,n,r){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},S.templates.rony.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},S.templates.rony.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},S.templates.rony.field_2=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},S.templates.rony.link=`<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,S.templates.rony.plus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},S.templates.rony.minus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},S.templates.rony.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},S.templates.mery=Object.assign({},S.templates.ana),S.templates.mery.ripple={color:`#e6e6e6`,radius:50,rect:null},S.templates.mery.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},S.templates.mery.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,S.templates.mery.img_0=function(e,t,n,r,i){var a=e.w/2,o=e.h/2,s=24,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.mery.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},S.templates.mery.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},S.templates.mery.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},S.templates.polina=Object.assign({},S.templates.ana),S.templates.polina.size=[300,80],S.templates.polina.padding=[80,15,30,15],S.templates.polina.ripple={color:`#e6e6e6`,radius:40,rect:null},S.templates.polina.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},S.templates.polina.img_0=`<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>`,S.templates.polina.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>`,e.w-90,1)},S.templates.polina.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>`,e.w-90,1)},S.templates.polina.link=`<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,S.templates.polina.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},S.templates.mila=Object.assign({},S.templates.ana),S.templates.mila.padding=[60,15,120,15],S.templates.mila.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},S.templates.mila.img_0=function(e,t,n,r,i){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${i}" x="20" y="${e.h-115}" width="64" height="64"></image>`},S.templates.mila.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},S.templates.mila.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},S.templates.diva=Object.assign({},S.templates.ana),S.templates.diva.size=[200,170],S.templates.diva.padding=[160,10,30,10],S.templates.diva.node=function(e,t,n,r){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},S.templates.diva.img_0=function(e,t,n,r,i){var a=e.w/2,o=50,s=45,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.diva.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},S.templates.diva.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},S.templates.diva.pointer=`<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>`,S.templates.diva.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},S.templates.luba=Object.assign({},S.templates.ana),S.templates.luba.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,S.templates.luba.defs=`<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>`,S.templates.luba.node=function(e,t,n,r){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},S.templates.luba.padding=[70,10,60,10],S.templates.luba.img_0=function(e,t,n,r,i){var a=50,o=25,s=40,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.luba.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},S.templates.luba.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},S.templates.luba.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},S.templates.luba.plus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>`,S.templates.luba.minus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>`,S.templates.luba.expandCollapseSize=36,S.templates.isla=Object.assign({},S.templates.ana),S.templates.isla.defs=`<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>`,S.templates.isla.size=[180,120],S.templates.isla.padding=[70,1,60,1],S.templates.isla.node=function(e,t,n,r){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},S.templates.isla.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},S.templates.isla.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},S.templates.isla.img_0=``,S.templates.isla.img_0=function(e,t,n,r,i){var a=S.randomId();return`<clipPath id="${a}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},S.templates.isla.minus=`<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>`,S.templates.isla.plus=`<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>`,S.templates.isla.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},S.templates.isla.ripple={radius:0,color:`#F57C00`,rect:{x:0,y:20,width:180,height:100}},S.templates.deborah=Object.assign({},S.templates.polina),S.templates.deborah.size=[150,150],S.templates.deborah.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},S.templates.deborah.img_0=function(e,t,n,r,i){var a=S.randomId();return`<clipPath id="${a}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},S.templates.deborah.field_0=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>`,e.w-25,1)},S.templates.deborah.field_1=function(e,t,n,r,i){return S.wrapText(i,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},S.templates.deborah.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},S.templates.subLevel=Object.assign({},S.templates.base),S.templates.subLevel.size=[0,0],S.templates.subLevel.node=``,S.templates.subLevel.plus=``,S.templates.subLevel.minus=``,S.templates.subLevel.nodeMenuButton=``,S.templates.group_dotted_lines=Object.assign({},S.templates.group),S.templates.group_dotted_lines.size=[250,120],S.templates.group_dotted_lines.padding=[50,20,35,20],S.templates.group_dotted_lines.link=`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,S.templates.group_dotted_lines.node=`<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>`,S.templates.group_dotted_lines.nodeGroupDottedCloseButton=`<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>`+S.icon.close(25,25,`#fff`,-13,8)+`</g>`,S.templates.group_dotted_lines.field_0=`<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>`,S.templates.group_dotted_lines.field_1=``,S.templates.group_dotted_lines.img_0=``,S.templates.group_dotted_lines.ripple.radius=5,S.templates.group_dotted_lines.min=Object.assign({},S.templates.olivia),S.templates.group_dotted_lines.min.nodeGroupDottedOpenButton=`<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>`,S.templates.clara=Object.assign({},S.templates.ana),S.templates.clara.size=[180,210],S.templates.clara.padding=[80,7,7,7],S.templates.clara.img_0=function(e,t,n,r,i){var a=50,o=30,s=40;e.stChildren.length||(s=60,a=e.w/2,o=70);var c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.clara.treeListMaxHeight=387,S.templates.clara.field_0=function(e,t,n,r,i){var a=65,o=e.w/2,s=`middle`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=160,c=e.w-20),S.wrapText(i,`<text style="font-size: 20px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},S.templates.clara.field_1=function(e,t,n,r,i){var a=35,o=e.w-15,s=`end`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=180,c=e.w-20),S.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},S.templates.clara.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">
|
|
505
|
-
<rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
|
|
506
|
-
<circle cy="13" cx="6" r="2" fill="#fff"></circle>
|
|
507
|
-
<circle cy="13" cx="13" r="2" fill="#fff"></circle>
|
|
508
|
-
<circle cy="13" cx="20" r="2" fill="#fff"></circle>
|
|
509
|
-
</g>`},S.templates.clara.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},S.templates.treeListItem=Object.assign({},S.templates.ana),S.templates.treeListItem.size=[350,60],S.templates.treeListItem.field_0=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return S.wrapText(i,`<text fill="${o}" x="${a}" y="27" style="font-size:16px;"></text>`,e.w-a-70,1)},S.templates.treeListItem.field_1=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return S.wrapText(i,`<text fill="${o}" x="${a}" y="47" style="font-size:12px;"></text>`,e.w-a-70,1)},S.templates.treeListItem.img_0=function(e,t,n,r,i){var a=e.w-55,o=e.h/2,s=e.h/2-4,c=S.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},S.templates.treeListItem.expandCollapseSize=24,S.templates.treeListItem.plus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><text x="6" style="font-size: 10px;" fill="${o}" y="15.5" text-anchor="end">${e.deepCollapsedChildCount}</text><path fill="${o}" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},S.templates.treeListItem.minus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><path fill="${o}" d="M7.42,8.59L12,13.17L16.59,8.59L18,10L12,16L6,10L7.42,8.59Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},S.templates.treeListItem.nodeMenuButton=function(e,t,n,r){var i=r.mode==`dark`?`#ccc`:`#757575`;return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-36}, ${e.h/2-13})">
|
|
510
|
-
<rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
|
|
511
|
-
<circle cx="13" cy="6" r="2" fill="${i}"></circle>
|
|
512
|
-
<circle cx="13" cy="13" r="2" fill="${i}"></circle>
|
|
513
|
-
<circle cx="13" cy="20" r="2" fill="${i}"></circle>
|
|
514
|
-
</g>`},S.templates.treeListItem.node=function(e,t,n,r){var i=``,a=`#FFFFFF`;if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var o=`#E0E0E0`;r.mode==`dark`&&(o=`#444444`),i=`<line stroke="${o}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return r.mode==`dark`&&(a=`#252526`),`<rect fill="${a}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${i}`},S.ui={_defsIds:{},defs:function(e){var t=``;for(var n in S.templates){var r=S.templates[n];r.defs&&(S.ui._defsIds[n]=S.randomId(),t+=r.defs.replaceAll(`{randId}`,S.ui._defsIds[n]))}return`<defs>`+t+e+`</defs>`},lonely:function(e){return!e.nodes||!e.nodes.length?S.IT_IS_LONELY_HERE.replace(`{link}`,S.RES.IT_IS_LONELY_HERE_LINK):``},pointer:function(e,t,n){if(t===S.action.exporting)return``;var r=S.t(e.template,!1,n).pointer;return r||=``,r},aiButton:function(e){return e.enableAI?`<div data-boc-ai-button class="boc-ai-button">AI</div>`:``},node:function(e,t,n,r,i,a,o,s,c,l,u){var d=S.t(e.templateName,e.min,c),f=``;typeof d.node==`function`?f=d.node(e,t,d,r):S.isNEU(d.node)||(f=d.node,f&&=f.replaceAll(`{w}`,e.w).replaceAll(`{h}`,e.h)),d.defs&&(f=f.replaceAll(`{randId}`,S.ui._defsIds[e.templateName])),o??=r.nodeBinding;var p={node:e,data:t};for(var m in o){var h=o[m],g;t&&(g=t[h]),g??=e[h],p.element=d[m],p.value=g;var _=!1;typeof p.element==`function`&&(_=!0,p.element=p.element(e,t,d,r,p.value));var v=S._lblIsImg(r,m);if(p.name=h,p.field=m,S.events.publish(`field`,[l,p])!==!1&&p.value!=null&&p.value!=null&&p.element!=null){if(_)f+=p.element;else if(!v||v&&!S.isNEU(p.value)){if(!v&&typeof p.value==`string`){var y=p.element;y&&=y.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2),p.value=S.wrapText(p.value,y)}var b=p.element.replace(`{val}`,p.value);b=b.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2).replaceAll(`{randId}`,S.randomId()).replaceAll(`{randId2}`,S.randomId()),f+=b}}}var x=S._getPosition(n,e,i,a),C=`node`;Array.isArray(e.tags)&&e.tags.length&&(C+=` `+e.tags.join(` `)),e.layout&&(C+=` tree-layout`),u&&(C+=` treelist-pinned`);var w=``;e.lcn&&(w=`lcn="`+e.lcn+`"`);var T=S.nodeOpenTag.replace(`{lcn}`,w).replace(`{id}`,e.id).replace(`{class}`,C).replace(`{sl}`,e.sl).replace(`{level}`,e.level).replace(`{x}`,x.x).replace(`{y}`,x.y),E=S._getOpacity(n,e);return T=T.replace(`{opacity}`,E),f+=S.ui.nodeBtns(r,e,t,s,d,l),f=T+f+S.grCloseTag,f},nodeBtns:function(e,t,n,r,i,a){var o=``;return e.nodeMenu!=null&&!t.isSplit&&r!==S.action.exporting&&(typeof i.nodeMenuButton==`function`?o+=i.nodeMenuButton(t,n,i,e):S.isNEU(i.nodeMenuButton)||(o+=i.nodeMenuButton.replace(`{id}`,t.id).replace(`{cw}`,t.w/2).replace(`{ch}`,t.h/2).replace(`{ew}`,t.w-(t.padding?t.padding[1]:0)).replace(`{eh}`,t.h-(t.padding?t.padding[2]:0)))),o&&=`<g style="cursor:pointer;" ${S.attr.control_node_menu_id}="${t.id}">${o}</g>`,e.nodeCircleMenu!=null&&!t.isSplit&&r!==S.action.exporting&&(S.isNEU(i.nodeCircleMenuButton)||(o+=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,`+i.nodeCircleMenuButton.x+`,`+i.nodeCircleMenuButton.y+`)" `+S.attr.control_node_circle_menu_id+`="`+t.id+`"><circle cx="0" cy="0" fill="`+i.nodeCircleMenuButton.color+`" r="`+i.nodeCircleMenuButton.radius+`" stroke-width="1" stroke="`+i.nodeCircleMenuButton.stroke+`"></circle><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="-6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="-6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="0" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="0" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line></g>`)),o},expandCollapseBtn:function(e,t,n,r,i,a,o){var s=``;if(a!==S.action.exporting&&!t.isSplit){var c=i[t.lcn?t.lcn:`base`],l=S.t(t.templateName,t.min,o);if(t.childrenIds.length>0){if(t.hasPartners){for(var u=!1,d=0;d<t.childrenIds.length;d++){var f=e.getNode(t.childrenIds[d]);f&&!f.parentPartner&&!f.isPartner&&(u=!0)}if(!u)return``}var p=S._getDefailtPositionForExpandCollpase(c,t),m={x:p.x+t.x-l.expandCollapseSize/2,y:p.y+t.y-l.expandCollapseSize/2},h=e.getCollapsedIds(t);h.length?(typeof l.plus==`function`?(s+=S.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.plus(t,n,l,r,p)):(s+=S.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.plus),s+=S.grCloseTag):(typeof l.minus==`function`?(s+=S.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.minus(t,n,l,r,p)):(s+=S.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.minus),s+=S.grCloseTag),(h.length&&typeof l.plus!=`function`||!h.length&&typeof l.minus!=`function`)&&(s.indexOf(`{collapsed-children-count}`)!=-1&&(s=s.replace(`{collapsed-children-count}`,t.collapsedChildCount)),s.indexOf(`{collapsed-children-total-count}`)!=-1&&(s=s.replace(`{collapsed-children-total-count}`,t.deepCollapsedChildCount)),s.indexOf(`{children-count}`)!=-1&&(s=s.replace(`{children-count}`,t.childCount)),s.indexOf(`{children-total-count}`)!=-1&&(s=s.replace(`{children-total-count}`,t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(s+=S.upOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.up,s+=S.grCloseTag)}var g={html:s,node:t};return S.events.publish(`renderbuttons`,[e,g]),g.html},link:function(e,t,n,r,i,a,o){var s=e.lcn?e.lcn:`base`,c=t._layoutConfigs[s],l=S.t(e.templateName,e.min,n),u=[],d=[],f=0,p=c.levelSeparation/2;e.layout>0&&(p=c.mixedHierarchyNodesSeparation/2);var m=0,h=S.getRootOf(e).id,g=r[h][e.sl],_=void 0;if(e.hasPartners){_={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var v=0;v<e.children.length;v++){var y=e.children[v];y.parentPartner?(_.ppnodes[y.id]=y.parentPartner,_.ids.push(y.id),y.parentPartner.isPartner==1?(_.rightIds.indexOf(y.parentPartner.id)==-1&&_.rightIds.push(y.parentPartner.id),_.indexes[y.id]=_.rightIds.indexOf(y.parentPartner.id),_.firstRight||=y):y.parentPartner.isPartner==2&&(_.leftIds.indexOf(y.parentPartner.id)==-1&&_.leftIds.push(y.parentPartner.id),_.indexes[y.id]=_.leftIds.indexOf(y.parentPartner.id),_.lastLeft=y)):y.isPartner||(_.lastLeft=y,_.firstRight||=y)}_.maxSidePartnersWithChildren=Math.max(_.leftIds.length,_.rightIds.length),m=_.maxSidePartnersWithChildren==0?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+_.partnerChildrenSplitSeparation*_.maxSidePartnersWithChildren+_.partnerChildrenSplitSeparation/2}for(var v=0;v<e.children.length;v++){var y=e.children[v],b=r[h][y.sl],x={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0};l=S.t(y.templateName,y.min,n);var C=l.link;if(y.isChildOfPartner)switch(c.orientation){case S.orientation.top:case S.orientation.top_left:var w=y.layout==1?void 0:b.minY-(b.minY-g.maxY)/2;x=S.ui._linkTopToBottom(y.parentPartner,y,l,p,w,t);break;case S.orientation.bottom:case S.orientation.bottom_left:var w=y.layout==1?void 0:b.maxY-(b.maxY-g.minY)/2;x=S.ui._linkBottomToTop(y.parentPartner,y,l,p,w,t);break;case S.orientation.right:case S.orientation.right_top:var w=y.layout==1?void 0:b.maxX-(b.maxX-g.minX)/2;x=S.ui._linkRightToLeft(y.parentPartner,y,l,p,w,t);break;case S.orientation.left:case S.orientation.left_top:var w=y.layout==1?void 0:b.minX-(b.minX-g.maxX)/2;x=S.ui._linkLeftToRight(y.parentPartner,y,l,p,w,t);break}else if(_&&_.ids.indexOf(y.id)!=-1)switch(c.orientation){case S.orientation.top:case S.orientation.top_left:x=S.ui._linkPpTop(_,e,y,b,g,l);break;case S.orientation.bottom:case S.orientation.bottom_left:x=S.ui._linkPpBottom(_,e,y,b,g,l);break;case S.orientation.right:case S.orientation.right_top:x=S.ui._linkPpRight(_,e,y,b,g,l);break;case S.orientation.left:case S.orientation.left_top:x=S.ui._linkPpLeft(_,e,y,b,g,l);break}else{var T=y.isAssistant&&y.rightNeighbor&&y.rightNeighbor.isAssistant&&y.parent==y.rightNeighbor.parent,E=y.isAssistant&&y.leftNeighbor&&y.leftNeighbor.isAssistant&&y.parent==y.leftNeighbor.parent;if((T||y.layout>1)&&y.rightNeighbor&&y.rightNeighbor.isSplit)switch(c.orientation){case S.orientation.top:case S.orientation.top_left:x=S.ui._linkRightToLeft(y.rightNeighbor,y,l,p);break;case S.orientation.bottom:case S.orientation.bottom_left:x=S.ui._linkRightToLeft(y.rightNeighbor,y,l,p);break;case S.orientation.right:case S.orientation.right_top:x=S.ui._linkBottomToTop(y.rightNeighbor,y,l,p);break;case S.orientation.left:case S.orientation.left_top:x=S.ui._linkBottomToTop(y.rightNeighbor,y,l,p);break}else if((E||y.layout>1)&&y.leftNeighbor&&y.leftNeighbor.isSplit)switch(c.orientation){case S.orientation.top:case S.orientation.top_left:x=S.ui._linkLeftToRight(y.leftNeighbor,y,l,p,t);break;case S.orientation.bottom:case S.orientation.bottom_left:x=S.ui._linkLeftToRight(y.leftNeighbor,y,l,p,t);break;case S.orientation.right:case S.orientation.right_top:x=S.ui._linkTopToBottom(y.leftNeighbor,y,l,p,t);break;case S.orientation.left:case S.orientation.left_top:x=S.ui._linkTopToBottom(y.leftNeighbor,y,l,p,t);break}else switch(c.orientation){case S.orientation.top:case S.orientation.top_left:if(y.isPartner==1)x=S.ui._linkLeftToRight(e,y,l,m);else if(y.isPartner==2)x=S.ui._linkRightToLeft(e,y,l,m);else{var w=y.layout==1?void 0:b.minY-(b.minY-g.maxY)/2;x=S.ui._linkTopToBottom(e,y,l,p,w,t)}break;case S.orientation.bottom:case S.orientation.bottom_left:if(y.isPartner==1)x=S.ui._linkLeftToRight(e,y,l,m);else if(y.isPartner==2)x=S.ui._linkRightToLeft(e,y,l,m);else{var w=y.layout==1?void 0:b.maxY-(b.maxY-g.minY)/2;x=S.ui._linkBottomToTop(e,y,l,p,w,t)}break;case S.orientation.right:case S.orientation.right_top:if(y.isPartner==1)x=S.ui._linkTopToBottom(e,y,l,m);else if(y.isPartner==2)x=S.ui._linkBottomToTop(e,y,l,m);else{var w=y.layout==1?void 0:b.maxX-(b.maxX-g.minX)/2;x=S.ui._linkRightToLeft(e,y,l,p,w,t)}break;case S.orientation.left:case S.orientation.left_top:if(y.isPartner==1)x=S.ui._linkTopToBottom(e,y,l,m);else if(y.isPartner==2)x=S.ui._linkBottomToTop(e,y,l,m);else{var w=y.layout==1?void 0:b.minX-(b.minX-g.maxX)/2;x=S.ui._linkLeftToRight(e,y,l,p,w,t)}break}}var D,O=S.ui._draggableLinkPath(t,e,y,x,p,c.orientation);if(O)D=O,C=C.replaceAll(`{rounded}`,O).replaceAll(`{edge}`,O).replaceAll(`{curve}`,D);else if(C.indexOf(`{rounded}`)!=-1)if(x.xa==x.xb&&x.xa==x.xc&&x.xa==x.xd||x.ya==x.yb&&x.ya==x.yc&&x.ya==x.yd)D=`M`+x.xa+`,`+x.ya+` L`+x.xd+`,`+x.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(x.xa-x.xd)<=S.LINK_ROUNDED_CORNERS&&Math.abs(x.xa-x.xc)<=S.LINK_ROUNDED_CORNERS&&Math.abs(x.xa-x.xb)<=S.LINK_ROUNDED_CORNERS)D=`M`+x.xa+`,`+x.ya+` L`+x.xa+`,`+x.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(x.ya-x.yd)<=S.LINK_ROUNDED_CORNERS&&Math.abs(x.ya-x.yc)<=S.LINK_ROUNDED_CORNERS&&Math.abs(x.ya-x.yb)<=S.LINK_ROUNDED_CORNERS)D=`M`+x.xa+`,`+x.ya+` L`+x.xd+`,`+x.ya,C=C.replaceAll(`{rounded}`,D);else{var k=S.ui._roundedEdge(x.xa,x.ya,x.xb,x.yb,x.xc,x.yc),A=S.ui._roundedEdge(x.xb,x.yb,x.xc,x.yc,x.xd,x.yd);D=`M`+k.x1+`,`+k.y1+` `+k.x2+`,`+k.y2+` Q`+k.qx1+`,`+k.qy1+` `+k.qx2+`,`+k.qy2+` L`+A.x2+`,`+A.y2+` Q`+A.qx1+`,`+A.qy1+` `+A.qx2+`,`+A.qy2+` L`+A.x3+`,`+A.y3,C=C.replaceAll(`{rounded}`,D)}else C.indexOf(`{edge}`)==-1?C.indexOf(`{curve}`)==-1?(D=C.replaceAll(`{xa}`,x.xa).replaceAll(`{ya}`,x.ya).replaceAll(`{xb}`,x.xb).replaceAll(`{yb}`,x.yb).replaceAll(`{xc}`,x.xc).replaceAll(`{yc}`,x.yc).replaceAll(`{xd}`,x.xd).replaceAll(`{yd}`,x.yd),C=D):(D=`M`+x.xa+`,`+x.ya+` C`+x.xb+`,`+x.yb+` `+x.xc+`,`+x.yc+` `+x.xd+`,`+x.yd,C=C.replaceAll(`{curve}`,D)):(D=`M`+x.xa+`,`+x.ya+` `+x.xb+`,`+x.yb+` `+x.xc+`,`+x.yc+` L`+x.xd+`,`+x.yd,C=C.replaceAll(`{edge}`,D));u.push(S.linkOpenTag.replaceAll(`{id}`,e.id).replaceAll(`{class}`,`link `+y.tags.join(` `)).replaceAll(`{child-id}`,y.id));var j={node:e,cnode:y,p:x,html:C,action:a};S.events.publish(`render-link`,[t,j]),u.push(j.html),o&&d.push({id:e.id,childId:y.id,html:j.html});var M=``;for(var N in t.config.linkBinding){var P=t.config.linkBinding[N],F=t._get(y.id);F&&(j.value=F[P],j.element=l[N],j.name=P,S.events.publish(`label`,[t,j])!==!1&&!S.isNEU(j.value)&&!S.isNEU(j.element)&&(M+=j.element.replace(`{val}`,j.value)))}if(M!=``){var I=x.x,L=x.y;y.movey!=null&&(L+=y.movey),M=S.linkFieldsOpenTag.replace(`{x}`,I).replace(`{y}`,L).replace(`{rotate}`,f)+M+S.grCloseTag,u.push(M)}u.push(S.grCloseTag)}return o?d:u.join(``)},svg:function(e,t,n,r,i,a){return S.t(r.template,!1,a).svg.replace(`{w}`,e).replace(`{h}`,t).replace(`{viewBox}`,n).replace(`{randId}`,S.ui._defsIds[r.template]).replace(`{mode}`,r.mode).replace(`{template}`,r.template).replace(`{content}`,function(){return i})},menuButton:function(e){return e.menu==null?``:S.t(e.template,!1).menuButton.replaceAll(`{p}`,e.padding)},_roundedEdge:function(e,t,n,r,i,a){var o=S.LINK_ROUNDED_CORNERS,s,c,l,u=0;return e==n&&e==i||t==r&&t==a?(s=l=n,c=u=r):(e!=i&&n==i&&(s=l=n,c=r,t<a?u=r+o:t>a&&(u=r-o)),e<i&&n==i?n-=o:e>i&&n==i&&(n+=o),t!=a&&r==a&&(s=n,c=u=r,e<i?l=n+o:e>i&&(l=n-o)),t<a&&r==a?r-=o:t>a&&r==a&&(r+=o)),{x1:e,y1:t,x2:n,y2:r,x3:i,y3:a,qx1:s,qy1:c,qx2:l,qy2:u}},_linkTopToBottom:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+e.h+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y+e.rightNeighbor.h+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s+r:i??p-r,m=u,h=S.isNEU(t.parentPartner)?d+16:d;var _={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&S._addConnectorLines(a._connectorLines,_),_},_linkBottomToTop:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+t.h+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s-r:i??p+r,m=u,h=d-14;var _={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&S._addConnectorLines(a._connectorLines,_),_},_linkRightToLeft:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+t.w+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o-r:i??f+r,m=u-16,h=d,g=90;var _={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&S._addConnectorLines(a._connectorLines,_),_},_linkLeftToRight:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x+e.rightNeighbor.w+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o+r:i??f-r,m=u+14,h=d,g=270;var _={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&S._addConnectorLines(a._connectorLines,_),_},_linkPpTop:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.minY-(r.minY-i.maxY)/2,l=(r.minY-i.maxY)/e.maxSidePartnersWithChildren/4,u=S.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,S.ui._linkTopToBottom({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpBottom:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.maxY-(r.maxY-i.minY)/2,l=(r.maxY-i.minY)/e.maxSidePartnersWithChildren/4,u=S.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,S.ui._linkBottomToTop({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpLeft:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.minX-(r.minX-i.maxX)/2,c=(r.minX-i.maxX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=S.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,S.ui._linkLeftToRight({x:l,y:d,w:0,h:0},n,a,0,s)},_linkPpRight:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.maxX-(r.maxX-i.minX)/2,c=(r.maxX-i.minX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=S.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,S.ui._linkRightToLeft({x:l,y:d,w:0,h:0},n,a,0,s)},__linkPpBottomTop:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.x-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.x+e.lastLeft.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.x+a.w+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.x+e.firstRight.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{x:o,mid:r}},__linkPpLeftRight:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.y-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.y+e.lastLeft.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.y+a.h+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.y+e.firstRight.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{y:o,mid:r}},_draggableLinkPath:function(e,t,n,r,i,a){if(n.isSubLevel||t.isSubLevel||n.leftNeighbor&&n.leftNeighbor.isSplit||n.rightNeighbor&&n.rightNeighbor.isSplit||n.isPartner||n.isAssistant)return null;if(S._isMoved(n)&&!S._isMoved(t)){var o,s,c=[];switch(a){case S.orientation.top:case S.orientation.top_left:if(r.yb+i/2<r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case S.orientation.bottom:case S.orientation.bottom_left:if(r.yb-i/2>r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case S.orientation.right:case S.orientation.right_top:if(r.xb-i/2>r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case S.orientation.left:case S.orientation.left_top:if(r.xb+i/2<r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}switch(a){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:var c=[];c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return S.roundPathCorners(c,S.LINK_ROUNDED_CORNERS,!1)}else if(!S._isMoved(n)&&S._isMoved(t)){var o,s,l=!1,c=[];switch(a){case S.orientation.top:case S.orientation.top_left:if(r.ya+i/2>r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i;else if(r.yb+i/2<r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case S.orientation.bottom:case S.orientation.bottom_left:if(r.ya-i/2<r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i;else if(r.yb-i/2>r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case S.orientation.right:case S.orientation.right_top:if(r.xa-i/2<r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i;else if(r.xb-i/2>r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case S.orientation.left:case S.orientation.left_top:if(r.xa+i/2>r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i;else if(r.xb+i/2<r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}if(l)switch(a){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yc]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,r.xc,s]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break}else switch(a){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.right:case S.orientation.right_top:case S.orientation.left:case S.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return S.roundPathCorners(c,S.LINK_ROUNDED_CORNERS,!1)}else if(S._isMoved(n)&&S._isMoved(t)){var c=[];switch(a){case S.orientation.top:case S.orientation.top_left:if(r.ya+i>r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i,u=n.y-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y+t.h+i]),c.push([`L`,r.xc,t.y+t.h+i]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.bottom:case S.orientation.bottom_left:if(r.ya-i<r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i,u=n.y+n.h+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y-i]),c.push([`L`,r.xc,t.y-i]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.right:case S.orientation.right_top:if(r.xa-i<r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i,d=n.x+n.w+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x-i,r.ya]),c.push([`L`,t.x-i,r.yc]),c.push([`L`,r.xd,r.yd]);break;case S.orientation.left:case S.orientation.left_top:if(r.xa+i>r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i,d=n.x-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x+t.w+i,r.ya]),c.push([`L`,t.x+t.w+i,r.yc]),c.push([`L`,r.xd,r.yd]);break}return S.roundPathCorners(c,S.LINK_ROUNDED_CORNERS,!1)}return null}},S===void 0&&(S={}),S._validateConfig=function(e){if(!e)console.error(`config is not defined`);else return!0;return!1},S._arrayContains=function(e,t){if(e&&Array.isArray(e)){for(var n=e.length;n--;)if(e[n]===t)return!0}return!1},S._interceptions=function(e,t){if(!e||!t)return[];var n=[];if(Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)e[r]==t[i]&&n.push(e[r]);else if(Array.isArray(e)&&!Array.isArray(t))for(var r in e)for(var i in t)e[r]==i&&n.push(e[r]);else if(!Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)r==t[i]&&n.push(t[i]);return n},S._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(`,`):e.tags&&Array.isArray(e.tags)?e.tags:[]},S._centerPointInPercent=function(e,t,n){var r=e.getBoundingClientRect(),i=t-r.left,a=n-r.top;return[i/(r.width/100),a/(r.height/100)]},S._trim=function(e){return e.replace(/^\s+|\s+$/g,``)},S._getTransform=function(e){var t=e.getAttribute(`transform`);return t=t.replace(`matrix`,``).replace(`(`,``).replace(`)`,``),S._browser().msie&&(t=t.replace(/ /g,`,`)),t=S._trim(t),t=`[`+t+`]`,t=JSON.parse(t),t},S.getScale=function(e,t,n,r,i,a,o,s){var c=1;if(!e&&(r===S.match.boundary||r===S.match.boundaryIfOutside)){var l=t/o,u=n/s;c=l>u?u:l,r===S.match.boundaryIfOutside&&c>1&&(c=1)}else if(!e&&r===S.match.width)c=t/o;else if(!e&&r===S.match.height)c=n/s;else if(!e)c=r;else{var l=t/e[2],u=n/e[3];c=l>u?u:l}return c&&c>i&&(c=i),c&&c<a&&(c=a),c},S.isObject=function(e){return e&&typeof e==`object`&&!Array.isArray(e)&&e!==null&&e.constructor&&e.constructor.name.toLowerCase()==`object`},S.fileUploadDialog=function(e){var t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.style.display=`none`,t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},S.mergeDeep=function(e,t){if(S.isObject(e)&&S.isObject(t))for(var n in t)S.isObject(t[n])?(e[n]||Object.assign(e,{[n]:{}}),S.mergeDeep(e[n],t[n])):Object.assign(e,{[n]:t[n]});return e},S._lblIsImg=function(e,t){return!!(e.nodeBinding&&typeof t==`string`&&t.indexOf(`img`)!=-1&&e.nodeBinding[t])},S._getFistImgField=function(e){if(e.nodeBinding){for(var t in e.nodeBinding)if(t.indexOf(`img`)!=-1)return e.nodeBinding[t]}return!1},S._fieldIsImg=function(e,t){if(e.nodeBinding){for(var n in e.nodeBinding)if(e.nodeBinding[n]==t)return S._lblIsImg(e,n)}return!1},S._guid=function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+`-`+e()+`-`+e()+`-`+e()+`-`+e()+e()+e()},S.htmlRipple=function(e){var t=document.createElement(`style`);t.type=`text/css`,t.innerHTML=` .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}`,document.head.appendChild(t);var n=function(e,t){var n=void 0;return function(){var r,i=this;return r=arguments,clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}},r=function(t){var n,r=this,i=document.createElement(`span`),a=r.offsetWidth,o,s,c;return n=r.getBoundingClientRect(),s=t.pageX-n.left-a/2,c=t.pageY-n.top-a/2,o=`top:`+c+`px; left: `+s+`px; height: `+a+`px; width: `+a+`px;`,e.rippleContainer.appendChild(i),i.setAttribute(`style`,o)},i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},a=document.createElement(`div`);a.className=`boc-ripple-container`,e.addEventListener(`mousedown`,r),e.addEventListener(`mouseup`,n(i,2e3)),e.rippleContainer=a,e.appendChild(a)},S._moveToBoundaryArea=function(e,t,n,r){var i=t.slice(0);t[0]<n.left&&t[0]<n.right&&(i[0]=n.left>n.right?n.right:n.left),t[0]>n.right&&t[0]>n.left&&(i[0]=n.left>n.right?n.left:n.right),t[1]<n.top&&t[1]<n.bottom&&(i[1]=n.top>n.bottom?n.bottom:n.top),t[1]>n.bottom&&t[1]>n.top&&(i[1]=n.top>n.bottom?n.top:n.bottom),t[0]!==i[0]||t[1]!==i[1]?S.animate(e,{viewBox:t},{viewBox:i},300,S.anim.outPow,function(){r&&r()}):r&&r()},S.randomId=function(){return`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4)},S._getClientXY=function(e){if(e.type.indexOf(`touch`)!=-1){if(e.changedTouches.length)return{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}}else return{x:e.clientX,y:e.clientY}},S._getClientTouchesXY=function(e,t){return e.type.indexOf(`touch`)==-1?{x:e.clientX,y:e.clientY}:e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}},S._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,S._getOffset(e.offsetParent,t))},S._getTopLeft=function(e){var t={x:0,y:0};return S._getOffset(e,t),t},S._getOffsetXY=function(e,t){if(t.type.indexOf(`touch`)!=-1){if(t.touches.length){var n=S._getTopLeft(e);return{x:t.touches[0].pageX-n.x,y:t.touches[0].pageY-n.y}}else if(t.changedTouches.length){var n=S._getTopLeft(e);return isNaN(n.x)||isNaN(n.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-n.x,y:t.changedTouches[0].pageY-n.y}}}else return{x:t.offsetX,y:t.offsetY}},S._pinchMiddlePointInPercent=function(e,t,n,r){var i=S._getTopLeft(e),a=r.touches[0].pageX-i.x,o=r.touches[0].pageY-i.y,s=r.touches[1].pageX-i.x,c=r.touches[1].pageY-i.y;return[((a-s)/2+s)/(t/100),((o-c)/2+c)/(n/100)]},S._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(` OPR/`)>=0,t=typeof InstallTrigger<`u`,n=/constructor/i.test(window.HTMLElement)||(function(e){return e.toString()===`[object SafariRemoteNotification]`})(!window.safari||window.safari!==void 0&&safari.pushNotification),r=!!document.documentMode,i=!r&&!!window.StyleMedia,a=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime);return{opera:e,firefox:t,safari:n,msie:r,edge:i,chrome:a,blink:(a||e)&&!!window.CSS}},S._menuPosition=function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.getBoundingClientRect(),o=r.left-i.left,s=r.top-i.top;return r.top+a.height>i.top+i.height&&(s-=a.height),r.left-a.width<i.left&&(o+=a.width),{x:o,y:s}},S._getTemplate=function(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=t[e[r]];if(i&&i.template)return i.template}return n},S._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var n=0;n<e.tags.length;n++){var r=t.tags[e.tags[n]];if(r&&r.min===!0)return!0}return t.min},S._getSubLevels=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=t[e[n]];if(r&&r.subLevels)return r.subLevels}return 0},S._isHTML=function(e){var t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.body.childNodes).some(e=>e.nodeType===1)},S._getTestDiv=function(){var e=document.getElementById(`orgchart_js_test_div`);return e||(e=document.createElement(`div`),e.id=`orgchart_js_test_div`,e.style.position=`fixed`,e.style.top=`-10000px`,e.style.left=`-10000px`,document.body.appendChild(e)),e},S._getLabelSize=function(e){var t=S._getTestDiv();return t.innerHTML=`<svg>`+e+`</svg>`,t.querySelector(`text`).getBoundingClientRect()},S.wrapText=function(e,t,n,r){if(n!=null&&r!=null)return S._lineClamp(t,e,n,r);var i=t,a=i.toLowerCase();if(a.indexOf(`<text`)==-1||a.indexOf(S.attr.width)==-1||a.indexOf(`foreignobject`)!=-1||i.indexOf(S.attr.width)==-1||S.ESCAPE_HTML&&typeof str==`string`&&S._isHTML(e))return S._escapeHtml(e);if(!S.ESCAPE_HTML&&S._isHTML(e))return e;var o=S._getTestDiv();i=i.replaceAll(`{cw}`,0),o.innerHTML=`<svg>`+i+`</svg>`;var s=new DOMParser().parseFromString(i,`text/xml`).getElementsByTagName(`text`)[0],c=parseFloat(s.getAttribute(`x`)),l=parseFloat(s.getAttribute(`y`)),u=s.getAttribute(`text-anchor`),n=s.getAttribute(S.attr.width),d=s.getAttribute(S.attr.text_overflow),f=`http://www.w3.org/2000/svg`,p=o.getElementsByTagName(`svg`)[0].getElementsByTagName(`text`)[0],r,m;d||=`ellipsis`;var h=d.split(`-`);if(h.length>1&&(r=parseInt(d.split(`-`)[1]),h.length>2&&h[2]==`ellipsis`&&(m=!0)),!n)return S._escapeHtml(e);if(n=parseFloat(n),c||=0,l||=0,c||(u=`start`),d==`ellipsis`){p.removeChild(p.firstChild),p.textContent=e;for(var g=p.getComputedTextLength(),_=2;g>n;)p.textContent=e.substring(0,e.length-_),p.textContent+=`...`,g=p.getComputedTextLength(),_++;return _>2?`<title>${S._escapeHtml(e)}</title>${p.textContent}`:S._escapeHtml(e)}else if(d.indexOf(`multiline`)!=-1){var v=e.split(` `),y=p.getBBox().height;p.textContent=``;var b=document.createElementNS(f,`tspan`),x=document.createTextNode(v[0]);b.setAttributeNS(null,`x`,c),b.setAttributeNS(null,`y`,l),b.setAttributeNS(null,`text-anchor`,u),b.appendChild(x),p.appendChild(b);for(var _=1,C=1,w=!1,T=1;T<v.length;T++){var E=b.firstChild.data.length;if(b.firstChild.data+=` `+v[T],b.getComputedTextLength()>n){if(b.firstChild.data=b.firstChild.data.slice(0,E),C++,r&&C>r){if(m&&p.children.length==r){var D=p.children[r-1].textContent;p.children[r-1].textContent=D.substring(0,D.length-3)+`...`,w=!0}break}var b=document.createElementNS(f,`tspan`);b.setAttributeNS(null,`x`,c),b.setAttributeNS(null,`y`,l+y*_),b.setAttributeNS(null,`text-anchor`,u),x=document.createTextNode(v[T]),b.appendChild(x),p.appendChild(b),_++}}var O=``;if(p.innerHTML!=null)O=p.innerHTML,p.innerHTML=``;else{for(var k=``,T=p.childNodes.length-1;T>=0;T--)k=XMLSerializer().serializeToString(p.childNodes[T])+k,p.removeChild(p.childNodes[T]);O=k}return w?`<title>${S._escapeHtml(e)}</title>${O}`:O}},S._downloadFile=function(e,t,n,r,i){var a=new Blob([t],{type:e});if(r==1){var o=URL.createObjectURL(a);window.open(o,`_blank`).focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(a,n);else{var s=document.createElement(`a`);if(s.download!==void 0){var o=URL.createObjectURL(a);s.setAttribute(`href`,o);var c=n;c.toLowerCase().endsWith(i.toLowerCase())||(c=c+`.`+i),s.setAttribute(`download`,c),s.style.visibility=`hidden`,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}},S._getPosition=function(e,t,n,r){var i={x:t.x,y:t.y};if(n!=null&&(i.x=n),r!=null&&(i.y=n),e&&e.length==3){var a=e[0].indexOf(t.id);a!=-1&&e[1][a].transform!=null&&(n??(i.x=e[1][a].transform[4]),r??(i.y=e[1][a].transform[5]))}return i},S._getOpacity=function(e,t){var n=1;if(e&&e.length==3){var r=e[0].indexOf(t.id);r!=-1&&e[1][r].opacity!=null&&(n=e[1][r].opacity)}return n},S.t=function(e,t,n){var r=S.templates[e];r??console.error(`Template "${e}" does not exist!`);var i=null;if(n!=null&&r.scaleLessThen){var a=[];for(var o in r.scaleLessThen){var s=parseFloat(o);n<s&&a.push(s)}if(a.length>0){a.sort(function(e,t){return e-t});var c=r.scaleLessThen[a[0]];for(var l in c)i??=Object.assign({},r),i[l]=c[l]}}return t?i==null?r.min?r.min:r:i.min?i.min:i:i??r},S.setNodeSize=function(e){var t=S.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},S._imgs2base64=function(e,t,n,r){var i=e.getElementsByTagName(t),a=i.length;a==0&&r();for(var o=0;o<a;o++)(function(){var e=o,t=i[e];S._getDataUri(t.getAttribute(n),function(i){i.success&&t.setAttribute(n,i.result),e==a-1&&r()})})()},S._getDataUri=function(e,t){if(e.indexOf(`base64`)!=-1)t({success:!1});else{var n=new XMLHttpRequest;n.open(`GET`,e),n.responseType=`blob`,n.onload=function(){n.status===200?r.readAsDataURL(n.response):n.status===404&&t({success:!1,result:n.status})};var r=new FileReader;r.onloadend=function(){t({success:!0,result:r.result})},n.send()}},S._convertStringToArray=function(e,t){return S.ARRAY_FIELDS.indexOf(e)==-1?t:S.isNEU(t)?[]:t.split(`,`)},S._convertArrayToString=function(e){return!S.isNEU(e)&&Array.isArray(e)?e.join():e},S._csvToArray=function(e,t){t||=S.CSV_DELIMITER;for(var n=RegExp(`(\\`+t+`|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\`+t+`\\r\\n]*))`,`gi`),r=[[]],i=null;i=n.exec(e);){var a=i[1];a.length&&a!==t&&r.push([]);var o=i[2]?i[2].replace(RegExp(`""`,`g`),`"`):i[3];r[r.length-1].push(o)}return r},S._json2xml=function(e){for(var t=document.implementation.createDocument(``,``,null),n=t.createElement(`nodes`),r=0;r<e.length;r++){var i=t.createElement(`node`),a=e[r];for(var o in a){var s=a[o];i.setAttribute(o,S._convertArrayToString(s))}n.appendChild(i)}return t.appendChild(n),`<?xml version="1.0" encoding="utf-8" ?>`+new XMLSerializer().serializeToString(t.documentElement)},S._xml2json=function(e){for(var t=new DOMParser().parseFromString(e,`text/xml`).getElementsByTagName(`node`),n=[],r=0;r<t.length;r++){for(var i=t[r],a={},o=0;o<i.attributes.length;o++){var s=i.attributes[o];a[s.name]=S._convertStringToArray(s.name,s.value)}n.push(a)}return n},S.convertNodesToCsv=function(e){return S._json2csv(e)},S._json2csv=function(e){for(var t=[],n=function(e){for(var n=``,r=0;r<t.length;r++){var i=t[r]==`reportsTo`?null:e[t[r]]==null?``:e[t[r]];i instanceof Date&&(i=i.toLocaleString()),i=i===null?``:i.toString();var a=i.replace(/"/g,`""`),o=RegExp(`("|;|
|
|
515
|
-
)`,`g`);a.search(o)>=0&&(a=`"`+a+`"`),r>0&&(n+=S.CSV_DELIMITER),n+=a}return n+`
|
|
516
|
-
`},r=``,i=0;i<e.length;i++)for(var a in e[i])S._arrayContains(t,a)||(t.push(a),r+=a+S.CSV_DELIMITER);r=r.substring(0,r.length-1),r+=`
|
|
517
|
-
`;for(var i=0;i<e.length;i++)r+=n(e[i]);return r=r.substring(0,r.length-1),r},S.accentFold=function(e){return e=e.toString().toLowerCase(),e.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])/g,function(e,t,n,r,i,a,o,s,c,l,u){if(t)return`a`;if(n)return`c`;if(r)return`e`;if(i)return`i`;if(a)return`n`;if(o)return`o`;if(s)return`s`;if(c)return`u`;if(l)return`y`;if(u)return`ae`})},S.copy=function(e){if(typeof e!=`object`||!e||`isActiveClone`in e)return e;if(e instanceof Date)var t=new e.constructor;else var t=e.constructor();for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e.isActiveClone=null,t[n]=S.copy(e[n]),delete e.isActiveClone);return t},S._getScrollSensitivity=function(){var e=S._browser();return e.msie&&S.scroll.ie?S.scroll.ie:e.edge&&S.scroll.edge?S.scroll.edge:e.safari&&S.scroll.safari?S.scroll.safari:e.chrome&&S.scroll.chrome?S.scroll.chrome:e.firefox&&S.scroll.firefox?S.scroll.firefox:e.opera&&S.scroll.opera?S.scroll.opera:{smooth:S.scroll.smooth,speed:S.scroll.speed}},S.isMobile=function(){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),n=navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1;return t||n},S._isTouchDevice=function(){return navigator.maxTouchPoints>0},S.isTrial=function(){return S.remote!==void 0},S.childrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++)e.nodes[t.childrenIds[r]]&&n++;return n},S.childrenTotalCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&(n++,n+=S.childrenTotalCount(e,i))}return n},S.collapsedChildrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&i.collapsed===!0&&n++}return n},S.collapsedChildrenTotalCount=function(e,t,n){for(var r=0,i=0;i<t.childrenIds.length;i++){var a=e.nodes[t.childrenIds[i]];a&&((n||a.collapsed===!0)&&r++,r+=S.collapsedChildrenTotalCount(e,a,!0))}return r},S._setMinMaxXY=function(e,t,n){n&&e.isTreeListItem||((t.minX==null||e.x!=null&&e.x<t.minX)&&(t.minX=e.x),(t.minY==null||e.y!=null&&e.y<t.minY)&&(t.minY=e.y),(t.maxX==null||e.x!=null&&e.x+e.w>t.maxX)&&(t.maxX=e.x+e.w),(t.maxY==null||e.y!=null&&e.y+e.h>t.maxY)&&(t.maxY=e.y+e.h))},S.getStParentNodes=function(e,t){for(t||=[];e.parent;)e=e.parent;return e.stParent&&(t.push(e.stParent),S.getStParentNodes(e.stParent,t)),t},S.getRootOf=function(e){for(;e&&e.parent;)e=e.parent;return e},S._getViewBox=function(e){var t=null;return e?(t=e.getAttribute(`viewBox`),t=`[`+t+`]`,t=t.replace(/\ /g,`,`),t=JSON.parse(t),t):null},S.isNEU=function(e){return e==null||e===``},S.gradientCircleForDefs=function(e,t,n,r){Array.isArray(t)||(t=[t,t,t,t,t,t]);function i(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}function a(e,t,n,r,a){var o=i(e,t,n,a),s=i(e,t,n,r),c=a-r<=180?`0`:`1`;return[`M`,o.x,o.y,`A`,n,n,0,c,0,s.x,s.y].join(` `)}return`<linearGradient id="${e}_linearColors1" x1="0" y1="0" x2="1" y2="1">
|
|
518
|
-
<stop offset="0%" stop-color="${t[0]}"></stop>
|
|
519
|
-
<stop offset="100%" stop-color="${t[1]}"></stop>
|
|
520
|
-
</linearGradient>
|
|
521
|
-
<linearGradient id="${e}_linearColors2" x1="0.5" y1="0" x2="0.5" y2="1">
|
|
522
|
-
<stop offset="0%" stop-color="${t[1]}"></stop>
|
|
523
|
-
<stop offset="100%" stop-color="${t[2]}"></stop>
|
|
524
|
-
</linearGradient>
|
|
525
|
-
<linearGradient id="${e}_linearColors3" x1="1" y1="0" x2="0" y2="1">
|
|
526
|
-
<stop offset="0%" stop-color="${t[2]}"></stop>
|
|
527
|
-
<stop offset="100%" stop-color="${t[3]}"></stop>
|
|
528
|
-
</linearGradient>
|
|
529
|
-
<linearGradient id="${e}_linearColors4" x1="1" y1="1" x2="0" y2="0">
|
|
530
|
-
<stop offset="0%" stop-color="${t[3]}"></stop>
|
|
531
|
-
<stop offset="100%" stop-color="${t[4]}"></stop>
|
|
532
|
-
</linearGradient>
|
|
533
|
-
<linearGradient id="${e}_linearColors5" x1="0.5" y1="1" x2="0.5" y2="0">
|
|
534
|
-
<stop offset="0%" stop-color="${t[4]}"></stop>
|
|
535
|
-
<stop offset="100%" stop-color="${t[5]}"></stop>
|
|
536
|
-
</linearGradient>
|
|
537
|
-
<linearGradient id="${e}_linearColors6" x1="0" y1="1" x2="1" y2="0">
|
|
538
|
-
<stop offset="0%" stop-color="${t[5]}"></stop>
|
|
539
|
-
<stop offset="100%" stop-color="${t[0]}"></stop>
|
|
540
|
-
</linearGradient>
|
|
541
|
-
<g id="${e}">
|
|
542
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors1)" d="${a(n,n,n,1,60)}" />
|
|
543
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors2)" d="${a(n,n,n,60,120)}"/>
|
|
544
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors3)" d="${a(n,n,n,120,180)}" />
|
|
545
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors4)" d="${a(n,n,n,180,240)}" />
|
|
546
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors5)" d="${a(n,n,n,240,300)}" />
|
|
547
|
-
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors6)" d="${a(n,n,n,300,1)}"/>
|
|
548
|
-
</g>`},S._intersectionObserver=function(e,t){typeof IntersectionObserver==`function`?new IntersectionObserver(function(e,n){e.forEach(function(e){var n=e.intersectionRatio>0;e.intersectionRatio==0&&(n=e.isIntersecting),t(n)})}).observe(e):t(!0)},S.convertCsvToNodes=function(e){for(var t=S._csvToArray(e),n=t[0],r=[],i=1;i<t.length;i++){for(var a={},o=0;o<t[i].length;o++){var s=n[o],c=t[i][o];a[n[o]]=S._convertStringToArray(s,c)}a.id.trim()!=``&&r.push(a)}return r},S._escapeHtml=function(e){return S.ESCAPE_HTML&&typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):e},S._escapeDoubleQuotes=function(e){return typeof e==`string`?e.replace(/"/g,`"`):e},S._escapeGreaterLessSign=function(e){return typeof e==`string`?e.replace(/</g,`<`).replace(/>/g,`>`):e},S.roundPathCorners=function(e,t,n){function r(e,t,n){var r=t.x-e.x,a=t.y-e.y,o=Math.sqrt(r*r+a*a);return i(e,t,Math.min(1,n/o))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function a(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function o(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}Array.isArray(e)||(e=e.split(/[,\s]/).reduce(function(e,t){var n=t.match(`([a-zA-Z])(.+)`);return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]),e=e.reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]));var s=[];if(e.length>1){var c=o(e[0]),l=null;e[e.length-1][0]==`Z`&&e[0].length>2&&(l=[`L`,c.x,c.y],e[e.length-1]=l),s.push(e[0]);for(var u=1;u<e.length;u++){var d=s[s.length-1],f=e[u],p=f==l?e[1]:e[u+1];if(p&&d&&d.length>2&&f[0]==`L`&&p.length>2&&p[0]==`L`){var m=o(d),h=o(f),g=o(p),_,v;n?(_=i(h,d.origPoint||m,t),v=i(h,p.origPoint||g,t)):(_=r(h,m,t),v=r(h,g,t)),a(f,_),f.origPoint=h,s.push(f);var y=i(_,h,.5),b=i(h,v,.5),x=[`C`,y.x,y.y,b.x,b.y,v.x,v.y];x.origPoint=h,s.push(x)}else s.push(f)}if(l){var S=o(s[s.length-1]);s.push([`Z`]),a(s[0],S)}}else s=e;return s.reduce(function(e,t){return e+t.join(` `)+` `},``)},S._isMoved=function(e){return e.movex!=null||e.movey!=null},S._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&(e/t,!(e/t-t<=0));t++);return t%2!=0&&t>2&&t--,t},S._getLazyLoading=function(e){var t=e.lazyLoading;return t==`auto`&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},S._getSvgAttributes=function(e){let t=/width="([\d.]+)"/,n=/height="([\d.]+)"/,r=/x="([\d.]+)"/,i=/y="([\d.]+)"/,a=/viewBox="([^"]+)"/,o=e.match(t),s=e.match(n),c=e.match(r),l=e.match(i),u=e.match(a),d=o?parseFloat(o[1]):0,f=s?parseFloat(s[1]):0,p=c?parseFloat(c[1]):0,m=l?parseFloat(l[1]):0,h=[0,0,0,0];return u&&(h=u[1],h=JSON.parse(`[${h}]`)),{width:d,height:f,viewBox:h,x:p,y:m}},S._setSvgAttributes=function(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.viewBox.join(`,`);let s=e.match(/<svg\s+([^>]*?)>/);if(!s)return e;let c=s[0],l=s[1],u=(e,t,n)=>{if(n==null)return e;let r=RegExp(`\\s*${t}="[^"]*"`,`i`),i=` ${t}="${n}"`;return e.match(r)?e.replace(r,i):e+i};l=u(l,`x`,n),l=u(l,`y`,r),l=u(l,`width`,i),l=u(l,`height`,a),l=u(l,`viewBox`,o);let d=`<svg ${l}>`;return e.replace(c,d)},S._convertTextToNodes=function(e,t){let n=e.split(/\r?\n/).filter(e=>e.trim()!==``),r=[],i=1,a=[];for(let e of n){let n=0;for(;e.startsWith(t);)e=e.slice(t.length),n++;if(e=e.trim(),!e)continue;let o=e.match(/^\[([^\]]+)](.*)$/);if(o){let e=o[1].trim(),t=o[2].trim();a.length>0&&(a[a.length-1][e]=t);continue}let s=e.match(/^([^\(]+)\(([^)]+)\)$/),c,l=[];s?(c=s[1].trim(),l=s[2].split(`,`).map(e=>e.trim())):c=e;let u=n===0?null:a[n-1].id,d={id:i++,pid:u,name:c,tags:l};a[n]=d,a.length=n+1,r.push(d)}return r},S._convertFromNodesToText=function(e,t){let n={},r=[];e.forEach(e=>{n[e.id]={...e,children:[]}}),e.forEach(e=>{e.pid&&n[e.pid]?n[e.pid].children.push(n[e.id]):r.push(n[e.id])});function i(e,n){let r=t.repeat(n),a=r+e.name;Array.isArray(e.tags)&&e.tags.length>0&&(a+=`(`+e.tags.join(`,`)+`)`),a+=`
|
|
549
|
-
`;for(let t of Object.keys(e))[`id`,`pid`,`name`,`children`,`tags`].includes(t)||(a+=r+`[`+t+`]`+e[t]+`
|
|
550
|
-
`);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},S._onClickHandler=function(e,t,n,r,i){var a;if(n===void 0)if(t===`add`){var o={id:e.generateId(),pid:r};e.addNode(o,null,!0)}else if(t===`edit`){var s=e.getNode(r);e.editUI.show(s.id)}else if(t===`details`){var s=e.getNode(r);e.editUI.show(s.id,!0)}else if(t===`remove`)e.removeNode(r,null,!0);else if(t===`svg_export`||t===`svg`){var c={};S.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};S.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};S.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPNG(c)}else if(t===`visio_export`||t===`visio`)e.exportToVisio({nodeId:r});else if(t===`pp_export`||t===`powerpoint`)e.exportToPowerPoint();else if(t===`pp_preview`||t===`pppreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.powerPointPreviewUI.show(c)}else if(t===`pdf_preview`||t===`pdfpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pdfPreviewUI.show(c)}else if(t===`svg_preview`||t===`svgpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.svgPreviewUI.show(c)}else if(t===`png_preview`||t===`pngpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pngPreviewUI.show(c)}else t===`csv_export`||t===`csv`?e.exportToCSV({nodeId:r}):t===`xml_export`||t===`xml`?e.exportToXML({nodeId:r}):t===`json_export`||t===`json`?e.exportToJSON({nodeId:r}):t===`fit`?e.fit():t===`expand_all`?e.expand(null,`all`):t===`full_screen`?e.toggleFullScreen():t===`zoom_in`?e.zoom(!0,null,!0):t===`zoom_out`||t===`zoom_out`?e.zoom(!1,null,!0):t===`layout_mixed`?e.setLayout(S.layout.mixed):t===`layout_normal`?e.setLayout(S.layout.normal):t===`layout_right_offset`?e.setLayout(S.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(S.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(S.layout.tree):t===`layout_grid`&&e.setLayout(S.layout.grid);else a=n.call(e,r,i);return a},S._isSVG=function(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t.startsWith(`<svg`)||!t.endsWith(`</svg>`))return!1;try{let e=new DOMParser().parseFromString(t,`image/svg+xml`);return e.querySelector(`parsererror`)?!1:e.documentElement.nodeName.toLowerCase()===`svg`}catch{return!1}},S._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],S._treeListAdjustToSTNodePostition(n.children,t)},S._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],S._treeListIterate(e.stChildren,r,-1);var i=r.lastNode.y+r.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);n>0||i<0?n=0:n!=0&&n*-1>i&&(n=-i);for(var a=r.nodesByLevels.length-1;a>=0;a--)for(var o=r.nodesByLevels[a],s=o.length-1;s>=0;s--){for(var c=o[s],l=c.y,u=0,d=c.parent;d&&(u+=d.h,d.parent);)d=d.parent;if(c.children.length&&c.y+n<=u){l=-n+u;var f=o[s+1];if(f&&f.y<l+c.h&&(l=f.y-c.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var m=e.stChildren[p+1];m.y<l+c.h&&(l=m.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==S.orientation.bottom){var h=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=h-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},S._treeListIterate=function(e,t,n){n++;for(var r of e)r.y=t.y,t.y+=r.h,t.nodesByLevels[n]||(t.nodesByLevels[n]=[]),t.nodesByLevels[n].push(r),t.lastNode=r,S._treeListIterate(r.children,t,n)},S._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],n=t/((e.treeList.scrollTopMax+t)/100),r=t/100*n,i=t-r,a=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),o=e.y+e.padding[0]+i/-100*a,s=`initial`;return(isNaN(r)||isNaN(o)||r<0||n>100)&&(s=`none`,r=0,o=0),{thumbHeight:r,thumbPosition:o,scrollBarDisplay:s}},S._treeListGetScrollTopFromTumbPosition=function(e,t,n){var r=e.h-e.padding[0]-e.padding[2]-t,i=(n-(e.y+e.padding[0]))/r*100/100*e.treeList.scrollTopMax;return(isNaN(i)||i<0)&&(i=0),i>e.treeList.scrollTopMax&&(i=e.treeList.scrollTopMax),i},S._getCenterNodeFromParams=function(e,t){var n=e[t.id];if(n){if(n.isTreeListItem){for(;!n.stParent;)n=n.parent;n=n.stParent}return n}return null},S._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};S._treeListIterate(e.stChildren,n,-1);var r=null;for(var i of n.nodesByLevels){for(var a of i)if(a.id==t){r=a;break}if(r)break}if(!r)return e.treeList.scrollTop;for(var o=0,s=r.parent;s&&(o+=s.h,s.parent);)s=s.parent;var c=e.padding[0],l=e.padding[2],u=e.treeList.maxHeight-c-l,d=n.lastNode.y+n.lastNode.h-u;d<0&&(d=0);var f=e.treeList.scrollTop,p=r.y-o,m=r.y+r.h-u,h=f;return r.y<f+o?h=p:r.y+r.h>f+u&&(h=r.h>u-o?p:m),h<0?h=0:h>d&&(h=d),h},S._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case S.orientation.top:case S.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case S.orientation.bottom:case S.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case S.orientation.right:case S.orientation.right_top:n.x=0,n.y=t.h/2;break;case S.orientation.left:case S.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},S._measureCache={svg:null,text:null},S._getMeasureElement=function(){if(S._measureCache.svg)return S._measureCache.text;let e=`http://www.w3.org/2000/svg`;return S._measureCache.svg=document.createElementNS(e,`svg`),S._measureCache.svg.id=`orgchart_js_test__measure`,S._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,S._measureCache.text=document.createElementNS(e,`text`),S._measureCache.svg.appendChild(S._measureCache.text),document.body.appendChild(S._measureCache.svg),S._measureCache.text},S._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=S._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=S._getMeasureElement();s.textContent=``;for(let[e,t]of Object.entries(a))e!==`x`&&e!==`y`&&s.setAttribute(e,t);let c=e=>(s.textContent=e,s.getComputedTextLength()),l=t.split(` `),u=[],d=``,f=0;for(;f<l.length&&u.length<r;){let e=l[f],t=d?d+` `+e:e;if(c(t)<=n)d=t,f++;else if(d===``){let t=0,r=e.length,i=1;for(;t<=r;){let a=t+r>>1;c(e.slice(0,a))<=n?(i=a,t=a+1):r=a-1}u.push(e.slice(0,i)),l[f]=e.slice(i)}else u.push(d),d=``}d&&u.length<r&&u.push(d);let p=f<l.length||f===l.length&&l[f-1]===``&&t.endsWith(` `);if(p&&u.length>0){let e=u[u.length-1],t=0,r=e.length,i=``;for(;t<=r;){let a=Math.floor((t+r)/2),o=e.substring(0,a)+`...`;c(o)<=n?(i=o,t=a+1):r=a-1}u[u.length-1]=i}let m=` x="${a.x||`0`}"`,h=u.length===1?u[0]:u.map((e,t)=>`<tspan${m} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${p?`<title>${t}</title>`:``}${h}</text>`},S._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!S._isTouchDevice())return null;var t=S.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=S._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},S._convertImagesToBase64=async function(e){let t=new DOMParser;return await Promise.all(e.map(async e=>{let n=t.parseFromString(e,`image/svg+xml`),r=n.querySelectorAll(`image`);for(let e of r){let t=e.getAttribute(`href`)||e.getAttribute(`xlink:href`);if(t&&!t.startsWith(`data:`))try{let n=parseFloat(e.getAttribute(`width`))||0,r=parseFloat(e.getAttribute(`height`))||0;if(n>0&&r>0){let i=await S._resizeAndConvert(t,n,r);e.setAttribute(`href`,i),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}}catch(e){console.error(`Failed to process image:`,t,e)}}return new XMLSerializer().serializeToString(n)}))},S._resizeAndConvert=function(e,t,n){return new Promise((r,i)=>{let a=new Image;a.crossOrigin=`anonymous`,a.onload=()=>{let e=document.createElement(`canvas`),i=e.getContext(`2d`),o=Math.min(t/a.width,n/a.height),s=a.width*o,c=a.height*o;e.width=s,e.height=c,i.drawImage(a,0,0,s,c),r(e.toDataURL(`image/png`))},a.onerror=i,a.src=e})},S._addSelectedStyle=function(e,t,n){var r=e.getNodeElement(t.id);if(r&&r.classList.add(`boc-selected`),n!=t.id){var i=e.element.querySelector(`[data-ctrl-ec-id="${t.id}"]`);i&&i.classList.add(`boc-selected`)}var a=e.getNode(t.pid);if(a){let r=e.element.querySelector(`[data-l-id="[${t.parent.id}][${t.id}]"]`);r&&r.classList.add(`boc-selected`),S._addSelectedStyle(e,a,n)}},S._removeSelectedStyle=function(e){let t=e.element.querySelectorAll(`.boc-selected`);for(let e=0;e<t.length;e++)t[e].classList.remove(`boc-selected`)},S.xScrollUI=function(e,t,n,r,i){this.element=e,this.requestParams=n,this.config=t,this.onSetViewBoxCallback=r,this.onDrawCallback=i,this.position=0,this.bar=null,this._event_id=S._guid()},S.xScrollUI.prototype.addListener=function(e){var t=this;if(this.config.mouseScrool!=S.action.xScroll&&this.config.mouseScrool!=S.action.scroll||!this.bar)return;var n=navigator.userAgent.indexOf(`Mac OS`)!==-1;function r(e,r,i){var a=!1;e.addEventListener(`wheel`,o,{passive:!1});function o(e){if(e.preventDefault(),!e.ctrlKey){var i=0;if(t.config.mouseScrool==S.action.xScroll)i=e.deltaX||e.wheelDeltaX,i||=e.deltaY||e.wheelDeltaY;else if(t.config.mouseScrool==S.action.scroll&&(i=n||!e.shiftKey?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,!i))return;i=-i,i=Math.max(-1,Math.min(1,i)),t.position+=-i*r;var o=parseFloat(t.innerBar.clientWidth)-parseFloat(t.bar.clientWidth);t.position<0&&(t.position=0),t.position>o&&(t.position=o),a||s()}}function s(){a=!0;var e=(t.position-t.bar.scrollLeft)/i;if(e>0)e++;else if(e==0){a=!1;return}else e--;Math.ceil(t.bar.scrollLeft)==Math.ceil(t.position)?a=!1:(t.bar.scrollLeft+=e,c(s))}var c=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}()}var i=S._getScrollSensitivity();r(e,i.speed,i.smooth)},S.xScrollUI.prototype.create=function(e){if(!(this.config.showXScroll!==!0&&this.config.mouseScrool!==S.action.scroll&&this.config.mouseScrool!==S.action.xScroll)){var t=this;this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.bar=document.createElement(`div`),this.innerBar=document.createElement(`div`),this.requestParams(),this.innerBar.innerHTML=` `,Object.assign(this.bar.style,{position:`absolute`,left:0,bottom:0,width:e+`px`,"overflow-x":`scroll`,height:`20px`}),this.element.appendChild(this.bar),this.bar.appendChild(this.innerBar),this.bar.addEventListener(`scroll`,function(){if(this.ignore){this.ignore=!1;return}var e=t.requestParams(),n=(parseFloat(t.innerBar.clientWidth)-parseFloat(t.bar.clientWidth))/100,r=this.scrollLeft/n,i=(e.boundary.right-e.boundary.left)/100;e.viewBox[0]=r*i+e.boundary.left,t.onSetViewBoxCallback(e.viewBox),clearTimeout(this._timeout),this._timeout=setTimeout(function(){t.onDrawCallback()},500)})}},S.xScrollUI.prototype.setPosition=function(){if(this.bar){var e=this.requestParams(),t=(Math.abs(e.boundary.maxX-e.boundary.minX)+this.config.padding*2)*e.scale;switch(this.config.orientation){case S.orientation.right:case S.orientation.right_top:t=Math.abs(e.boundary.minX*e.scale);break}this.innerBar.style.width=t+`px`;var n=(e.boundary.right-e.boundary.left)/100,r=(e.viewBox[0]-e.boundary.left)/n;r<0?r=0:r>100&&(r=100);var i=(parseFloat(this.innerBar.clientWidth)-parseFloat(this.bar.clientWidth))/100,a=r*i;this.bar.ignore=!0,this.bar.scrollLeft=a,this.position=this.bar.scrollLeft,i<=0?this.bar.style.visibility=`hidden`:this.bar.style.visibility=``,this.config.showXScroll!==!0&&(this.bar.style.visibility=`hidden`),S.events.publish(`change`,[this,{isScrollBarVisible:this.bar.style.visibility!=`hidden`}])}},S.xScrollUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.yScrollUI=function(e,t,n,r,i){this.element=e,this.requestParams=n,this.config=t,this.onSetViewBoxCallback=r,this.onDrawCallback=i,this.position=0,this.bar=null,this._event_id=S._guid()},S.yScrollUI.prototype.addListener=function(e){var t=this;if(this.config.mouseScrool!=S.action.yScroll&&this.config.mouseScrool!=S.action.scroll||!this.bar)return;var n=navigator.userAgent.indexOf(`Mac OS`)!==-1;function r(e,r,i){var a=!1;e.addEventListener(`wheel`,o,{passive:!1});function o(e){if(e.preventDefault(),!e.ctrlKey){var i=0;if(t.config.mouseScrool==S.action.yScroll)i=e.deltaY||e.wheelDeltaY,i||=e.deltaX||e.wheelDeltaX;else if(t.config.mouseScrool==S.action.scroll&&(i=n||!e.shiftKey?e.deltaY||e.wheelDeltaY:e.deltaX||e.wheelDeltaX,!i))return;i=-i,i=Math.max(-1,Math.min(1,i)),t.position+=-i*r;var o=parseFloat(t.innerBar.clientHeight)-parseFloat(t.bar.clientHeight);t.position<0&&(t.position=0),t.position>o&&(t.position=o),a||s()}}function s(){a=!0;var e=(t.position-t.bar.scrollTop)/i;if(e>0)e++;else if(e==0){a=!1;return}else e--;Math.ceil(t.bar.scrollTop)==Math.ceil(t.position)?a=!1:(t.bar.scrollTop+=e,c(s))}var c=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}()}var i=S._getScrollSensitivity();r(e,i.speed,i.smooth)},S.yScrollUI.prototype.create=function(e){if(!(this.config.showYScroll!==!0&&this.config.mouseScrool!==S.action.scroll&&this.config.mouseScrool!==S.action.yScroll)){var t=this;this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.bar=document.createElement(`div`),this.innerBar=document.createElement(`div`),this.innerBar.innerHTML=` `,Object.assign(this.bar.style,{position:`absolute`,right:0,bottom:0,height:e+`px`,"overflow-y":`scroll`,width:`20px`}),this.element.appendChild(this.bar),this.bar.appendChild(this.innerBar),this.bar.addEventListener(`scroll`,function(){if(this.ignore){this.ignore=!1;return}var e=t.requestParams(),n=(parseFloat(t.innerBar.clientHeight)-parseFloat(t.bar.clientHeight))/100,r=this.scrollTop/n,i=(e.boundary.bottom-e.boundary.top)/100;e.viewBox[1]=r*i+e.boundary.top,t.onSetViewBoxCallback(e.viewBox),clearTimeout(this._timeout),this._timeout=setTimeout(function(){t.onDrawCallback()},500)})}},S.yScrollUI.prototype.setPosition=function(){if(this.bar){var e=this.requestParams(),t=(Math.abs(e.boundary.maxY-e.boundary.minY)+this.config.padding*2)*e.scale;switch(this.config.orientation){case S.orientation.bottom:case S.orientation.bottom_left:t=Math.abs(e.boundary.minY*e.scale);break}this.innerBar.style.height=t+`px`;var n=(e.boundary.bottom-e.boundary.top)/100,r=(e.viewBox[1]-e.boundary.top)/Math.abs(n);r<0?r=0:r>100&&(r=100);var i=(parseFloat(this.innerBar.clientHeight)-parseFloat(this.bar.clientHeight))/100,a=r*i;this.bar.ignore=!0,this.bar.scrollTop=a,this.position=this.bar.scrollTop,i<=0?this.bar.style.visibility=`hidden`:this.bar.style.visibility=``,this.config.showYScroll!==!0&&(this.bar.style.visibility=`hidden`),S.events.publish(`change`,[this,{isScrollBarVisible:this.bar.style.visibility!=`hidden`}])}},S.yScrollUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.prototype.zoom=function(e,t,n,r){var i=this.getViewBox().slice(0),a=i,o=i[2],s=i[3];e===!0?(i[2]/=S.SCALE_FACTOR,i[3]/=S.SCALE_FACTOR):e===!1?(i[2]*=S.SCALE_FACTOR,i[3]*=S.SCALE_FACTOR):(i[2]/=e,i[3]/=e),t||=[50,50],i[0]=a[0]-(i[2]-o)/(100/t[0]),i[1]=a[1]-(i[3]-s)/(100/t[1]);var c=this.getScale(i);if(i[2]=this.width()/c,i[3]=this.height()/c,e===!0&&c<this.config.scaleMax||e===!1&&c>this.config.scaleMin||e!=0&&e!=1&&c<this.config.scaleMax&&c>this.config.scaleMin){this._hideBeforeAnimation();var l=this;n?(clearTimeout(l._timeout),S.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:i},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,S.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,S.action.zoom,null,r)},500))}},S.loading={},S.loading.show=function(e){var t=`<style>@-webkit-keyframes dot-keyframes {0% { opacity: .4; -webkit-transform: scale(1, 1);transform: scale(1, 1);}50% {opacity: 1;-webkit-transform: scale(1.2, 1.2);transform: scale(1.2, 1.2);}100% {opacity: .4;-webkit-transform: scale(1, 1);transform: scale(1, 1);}}@keyframes dot-keyframes {0% {opacity: .4;-webkit-transform: scale(1, 1);transform: scale(1, 1);}50% {opacity: 1;-webkit-transform: scale(1.2, 1.2);transform: scale(1.2, 1.2);}100% {opacity: .4;-webkit-transform: scale(1, 1);transform: scale(1, 1);}}.boc-loading-dots div {margin: 10px;} .boc-dot-1 {background-color: #039BE5;}.boc-dot-2 {background-color: #F57C00;}.boc-dot-3 {background-color: #FFCA28;} .boc-loading-dots {text-align: center;width: 100%; position: absolute; top: 0;}.boc-loading-dots--dot {-webkit-animation: dot-keyframes 1.5s infinite ease-in-out;animation: dot-keyframes 1.5s infinite ease-in-out; border-radius: 10px;display: inline-block;height: 10px;width: 10px;}.boc-loading-dots--dot:nth-child(2) {-webkit-animation-delay: .5s;animation-delay: .5s;}.boc-loading-dots--dot:nth-child(3) {-webkit-animation-delay: 1s;animation-delay: 1s;}</style><div class="boc-loading-dots"><div class="boc-loading-dots--dot boc-dot-1"></div><div class="boc-loading-dots--dot boc-dot-2"></div><div class="boc-loading-dots--dot boc-dot-3"></div></div>`,n=document.createElement(`div`);n.id=`boc-loading`,n.innerHTML=t,e.element.appendChild(n)},S.loading.hide=function(e){var t=e.element.querySelector(`#boc-loading`);t&&t.parentNode.removeChild(t)},S.pdfPrevUI={},S.pdfPrevUI.show=function(e,t){console.warn(`OrgChart.pdfPrevUI.show is obsolete; use chart.pdfPreviewUI.show instead.`)},S.pdfPrevUI.hide=function(){console.warn(`OrgChart.pdfPrevUI.hide is obsolete; use chart.pdfPreviewUI.hide instead.`)},S===void 0&&(S={}),S.events.on(`renderdefs`,function(e,t){for(var n=0;n<e.config.clinks.length;n++){var r=e.config.clinks[n].template;r||=`orange`;var i=S.clinkTemplates[r];t.defs+=i.defs}}),S.events.on(`prerender`,function(e,t){S.RENDER_CLINKS_BEFORE_NODES&&e._clink(e,t)}),S.events.on(`render`,function(e,t){S.RENDER_CLINKS_BEFORE_NODES||e._clink(e,t)}),S.events.on(`drag`,function(e,t,n,r){if(e instanceof S&&e.config.movable&&r)for(var i=0;i<r.length;i++){for(var a=r[i],o=e.element.querySelectorAll(`[data-c-l-from="${a}"]`),s=e.element.querySelectorAll(`[data-c-l-to="${a}"]`),c=0;c<o.length;c++)o[c].parentNode.removeChild(o[c]);for(var c=0;c<s.length;c++)s[c].parentNode.removeChild(s[c])}}),S.prototype._clink=function(e,t){for(var n=``,r=0;r<this.config.clinks.length;r++){var i=this.config.clinks[r],a=e.getNode(i.from),o=e.getNode(i.to);if(!a||t.res.visibleNodeIds.indexOf(a.id)==-1||!o||t.res.visibleNodeIds.indexOf(o.id)==-1)continue;var s=a.x,c=a.y,l=o.x,u=o.y,d={},f={},p=s+a.w/2,m=l+o.w/2,h=c+a.h/2,g=u+o.h/2,_=1;switch(this.config.orientation){case S.orientation.top:case S.orientation.top_left:p<=m?(_=1,d.x=p+a.w/10,f.x=m-o.w/10):(_=-1,d.x=p-a.w/10,f.x=m+o.w/10),c==u?(_=1,d.y=c,f.y=u):c>u?(d.y=c,f.y=u+o.h):(d.y=c+a.h,f.y=u);break;case S.orientation.bottom:case S.orientation.bottom_left:p<=m?(_=-1,d.x=p+a.w/10,f.x=m+o.w/10):(_=1,d.x=p-a.w/10,f.x=m+o.w/10),c==u?(_=-1,d.y=c+a.h,f.y=u+o.h):c>u?(d.y=c,f.y=u+o.h):(d.y=c+a.h,f.y=u);break;case S.orientation.left:case S.orientation.left_top:h<=g?(_=-1,d.y=h+a.h/5,f.y=g+o.h/5):(_=1,d.y=h-a.h/5,f.y=g+o.h/5),s==l?(_=-1,d.x=s,f.x=l):s>l?(d.x=s,f.x=l+o.w):(d.x=s+a.w,f.x=l);break;case S.orientation.right:case S.orientation.right_top:h<=g?(_=1,d.y=h+a.h/5,f.y=g+o.h/5):(_=-1,d.y=h-a.h/5,f.y=g+o.h/5),s==l?(_=1,d.x=s+a.w,f.x=l+o.w):s>l?(d.x=s,f.x=l+o.w):(d.x=s+a.w,f.x=l);break}function w(e,t,n){n??=1;var r=t.x-e.x,a=t.y-e.y,o=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)/3;return o=o/(Math.sqrt(r*r+a*a)*n)*S.clinkCurve(i),{x:e.x+r/2-a*o,y:e.y+a/2+r*o}}var v=w(d,f,_),y=i.template;y||=`orange`;var b=S.clinkTemplates[y];if(i.label){var x=S.clinkLabelPosition(i,d,f,v);n+=b.label.replace(`{x}`,x.x).replace(`{y}`,x.y).replace(`{val}`,i.label)}var C=`M`+d.x+`,`+d.y+`C`+d.x+`,`+d.y+` `+v.x+`,`+v.y+` `+f.x+`,`+f.y;n+=(`<g `+S.attr.c_link_from+`="{from}" `+S.attr.c_link_to+`="{to}">`).replace(`{from}`,a.id).replace(`{to}`,o.id)+b.link.replaceAll(`{d}`,C)+`<path stroke="transparent" stroke-width="15" fill="none" d="`+C+`" />`,n+=S.grCloseTag}t.content+=n},S.clinkLabelPosition=function(e,t,n,r){var i=(n.x-t.x)/2+t.x,a=(n.y-t.y)/2+t.y;return{x:(i-r.x)/2+r.x,y:(a-r.y)/2+r.y}},S.clinkCurve=function(e){return S.CLINK_CURVE},S.prototype.addClink=function(e,t,n,r){this._putInUndoStack(),this.clearRedo();for(var i=this.config.clinks.length-1;i>=0;i--){var a=this.config.clinks[i];a.from==e&&a.to==t&&this.config.clinks.splice(i,1)}return this.config.clinks.push({from:e,to:t,label:n,template:r}),this._ai.setContext(),S.events.publish(`updated`,[this]),this},S.prototype.removeClink=function(e,t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.clinks.length-1;n>=0;n--){var r=this.config.clinks[n];r.from==e&&r.to==t&&this.config.clinks.splice(n,1)}return this._ai.setContext(),S.events.publish(`updated`,[this]),this},S.clinkTemplates={},S.clinkTemplates.orange={defs:`<marker id="arrowOrange" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#F57C00" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotOrange" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#F57C00" /></marker>`,link:`<path marker-start="url(#dotOrange)" marker-end="url(#arrowOrange)" stroke="#F57C00" stroke-width="2" fill="none" d="{d}" />`,label:`<text fill="#F57C00" text-anchor="middle" x="{x}" y="{y}">{val}</text>`},S.clinkTemplates.blue={defs:`<marker id="arrowBlue" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#039BE5" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotBlue" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#039BE5" /></marker>`,link:`<path marker-start="url(#dotBlue)" marker-end="url(#arrowBlue)" stroke="#039BE5" stroke-width="2" fill="none" d="{d}" />`,label:`<text fill="#039BE5" text-anchor="middle" x="{x}" y="{y}">{val}</text>`},S.clinkTemplates.yellow={defs:`<marker id="arrowYellow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#FFCA28" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotYellow" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#FFCA28" /></marker>`,link:`<path marker-start="url(#dotYellow)" marker-end="url(#arrowYellow)" stroke="#FFCA28" stroke-width="2" fill="none" d="{d}" />`,label:`<text fill="#FFCA28" text-anchor="middle" x="{x}" y="{y}">{val}</text>`},S===void 0&&(S={}),S.events.on(`renderdefs`,function(e,t){for(var n=0;n<e.config.slinks.length;n++){var r=e.config.slinks[n].template;r||=`orange`;var i=S.slinkTemplates[r];t.defs+=i.defs}}),S.events.on(`render`,function(e,t){e._slinks(e,t)}),S.events.on(`drag`,function(e,t,n,r){if(e instanceof S&&e.config.movable&&r)for(var i=0;i<r.length;i++){for(var a=r[i],o=e.element.querySelectorAll(`[data-s-l-from="${a}"]`),s=e.element.querySelectorAll(`[data-s-l-to="${a}"]`),c=0;c<o.length;c++)o[c].parentNode.removeChild(o[c]);for(var c=0;c<s.length;c++)s[c].parentNode.removeChild(s[c])}}),S.prototype._slinks=function(e,t){var n=``,r=this.getScale(),i=t.res.boundary;function a(e,t){return{x:(e[0]+t[0])/2,y:(e[1]+t[1])/2}}function o(t,n,a,o,s){var c=[],l=null,u=S.t(t.templateName,t.min,r),d=o.levelSeparation;t.parent&&t.parent.layout&&(d=o.mixedHierarchyNodesSeparation);var f;switch(o.orientation){case S.orientation.top:case S.orientation.top_left:f={p:t.x+t.w/2,q:t.y,r:t.x+t.w/2,s:i.minY+d};break;case S.orientation.bottom:case S.orientation.bottom_left:f={p:t.x+t.w/2,q:t.y+t.h,r:t.x+t.w/2,s:i.maxY};break;case S.orientation.left:case S.orientation.left_top:f={p:t.x,q:t.y+t.h/2,r:i.minX+d,s:t.y+t.h/2};break;case S.orientation.right:case S.orientation.right_top:f={p:t.x+t.w,q:t.y+t.h/2,r:i.maxX,s:t.y+t.h/2};break}if(t.sl==n.sl)switch(l=n,o.orientation){case S.orientation.top:case S.orientation.top_left:c.push([f.p,f.q]),c.push([f.p,f.q-S.SLINK_GAP*2]),u=S.t(l.templateName,l.min,r),c.push([l.x+l.w/2,c[c.length-1][1]]),c.push([c[c.length-1][0],l.y]);break;case S.orientation.bottom:case S.orientation.bottom_left:c.push([f.p,f.q]),c.push([f.p,f.q+S.SLINK_GAP*2]),u=S.t(l.templateName,l.min,r),c.push([l.x+l.w/2,c[c.length-1][1]]),c.push([c[c.length-1][0],l.y+l.h]);break;case S.orientation.left:case S.orientation.left_top:c.push([f.p,f.q]),c.push([f.p-S.SLINK_GAP*2,f.q]),u=S.t(l.templateName,l.min,r),c.push([c[c.length-1][0],l.y+l.h/2]),c.push([l.x,c[c.length-1][1]]);break;case S.orientation.right:case S.orientation.right_top:c.push([f.p,f.q]),c.push([f.p+S.SLINK_GAP*2,f.q]),u=S.t(l.templateName,l.min,r),c.push([c[c.length-1][0],l.y+l.h/2]),c.push([l.x+l.w,c[c.length-1][1]]);break}else{switch(o.orientation){case S.orientation.top:case S.orientation.top_left:c.push([f.p,f.q]),c.push([f.r,t.y-S.SLINK_GAP*2]);break;case S.orientation.bottom:case S.orientation.bottom_left:c.push([f.p,f.q]),c.push([f.r,t.y+t.h+S.SLINK_GAP*2]);break;case S.orientation.left:case S.orientation.left_top:c.push([f.p,f.q]),c.push([t.x-S.SLINK_GAP*2,f.s]);break;case S.orientation.right:case S.orientation.right_top:c.push([f.p,f.q]),c.push([t.x+t.w+S.SLINK_GAP*2,f.s]);break}for(var p=t,m=t;m.parent;)m=m.parent;for(;l==null;){var h=!1,g=p.parent,_=g.leftNeighbor,v=g.rightNeighbor;if(g.id==n.id?l=g:S._intersects(g,f,o)&&(f=S._addPoint(g,c,o,f,s),h=!0),g.id!=n.id){for(;_;){if(_.id==n.id){l=_;break}S._intersects(_,f,o)&&(f=S._addPoint(_,c,o,f,s),h=!0),_=_.leftNeighbor}for(;v;){if(v.id==n.id){l=v;break}S._intersects(v,f,o)&&(f=S._addPoint(v,c,o,f,s),h=!0),v=v.rightNeighbor}}if(!h){var y=0,b=0;if(g.parent){d=o.levelSeparation,g.parent.layout&&(d=o.mixedHierarchyNodesSeparation);var x=e.manager.bordersByRootIdAndLevel[m.id][g.parent.sl];switch(o.orientation){case S.orientation.top:case S.orientation.top_left:y=c[c.length-1][0],b=x.maxY+d-S.SLINK_GAP;break;case S.orientation.bottom:case S.orientation.bottom_left:y=c[c.length-1][0],b=x.minY-d+S.SLINK_GAP;break;case S.orientation.left:case S.orientation.left_top:y=x.maxX+d-S.SLINK_GAP,b=c[c.length-1][1];break;case S.orientation.right:case S.orientation.right_top:y=x.minX-d+S.SLINK_GAP,b=c[c.length-1][1];break}}c.push([y,b])}p=g}switch(u=S.t(l.templateName,l.min,r),c.splice(c.length-1,1),o.orientation){case S.orientation.top:case S.orientation.top_left:var C=u.expandCollapseSize;s==`left`&&(C*=-1),c.push([l.x+l.w/2+C,c[c.length-1][1]]),c.push([c[c.length-1][0],l.y+l.h]);break;case S.orientation.bottom:case S.orientation.bottom_left:var C=u.expandCollapseSize;s==`left`&&(C*=-1),c.push([l.x+l.w/2+C,c[c.length-1][1]]),c.push([c[c.length-1][0],l.y]);break;case S.orientation.left:case S.orientation.left_top:var C=u.expandCollapseSize;s==`top`&&(C*=-1),c.push([c[c.length-1][0],l.y+l.h/2+C]),c.push([l.x+l.w,c[c.length-1][1]]);break;case S.orientation.right:case S.orientation.right_top:var C=u.expandCollapseSize;s==`top`&&(C*=-1),c.push([c[c.length-1][0],l.y+l.h/2+C]),c.push([l.x,c[c.length-1][1]]);break}}return a&&(c=c.reverse()),c}for(var s=[],c=[],l=[],u=[],d=[],f=0;f<this.config.slinks.length;f++){var p=this.config.slinks[f],m=e.getNode(p.from),h=e.getNode(p.to);if(m&&h&&t.res.visibleNodeIds.indexOf(h.id)!=-1&&t.res.visibleNodeIds.indexOf(m.id)!=-1){var g=m.lcn?m.lcn:`base`,_=e._layoutConfigs[g],v=m.sl<h.sl,y=`left`;switch(_.orientation){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:h.x>=m.x&&(y=`right`);break;case S.orientation.left:case S.orientation.left_top:case S.orientation.right:case S.orientation.right_top:y=`top`,h.y>m.y&&(y=`bottom`);break}var b=v?o(h,m,v,_,y):o(m,h,v,_,y);s.push(b),c.push(p),u.push(y),l.push(_),d.push({from:m,to:h})}}for(var f=0;f<s.length;f++){var b=s[f],p=c[f],y=u[f];switch(S._slinkRemoveUnusedPoints(b),_.orientation){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:S._slinkAvoidOverlaping(e._connectorLines,b,y,_.orientation);break;case S.orientation.left:case S.orientation.left_top:case S.orientation.right:case S.orientation.right_top:S._slinkAvoidOverlaping2(e._connectorLines,b,y,_.orientation);break}}for(var f=s.length-1;f>=0;f--){var b=s[f],p=c[f];switch(_.orientation){case S.orientation.top:case S.orientation.top_left:case S.orientation.bottom:case S.orientation.bottom_left:S._slinkAvoidOverlapingSecond(e._connectorLines,b,_.orientation);break;case S.orientation.left:case S.orientation.left_top:case S.orientation.right:case S.orientation.right_top:S._slinkAvoidOverlapingSecond2(e._connectorLines,b,_.orientation);break}}for(var f=0;f<s.length;f++){var b=s[f],p=c[f],_=l[f],m=d[f].from,h=d[f].to,x=p.template;x||=`orange`;var C=S.slinkTemplates[x],w=null;switch(C.labelPosition){case`start`:w={x:b[1][0],y:b[1][1]};break;case`middle`:var T=Math.ceil(b.length/2);w=a(b[T],b[T-1]);break;case`end`:w={x:b[b.length-2][0],y:b[b.length-2][1]};break}var E=structuredClone(b);E[0].unshift(`M`);for(var D=1;D<b.length;D++)E[D].unshift(`L`);var O=S.roundPathCorners(E,S.LINK_ROUNDED_CORNERS,!1);if(p.label){var k=C.label.replace(`{x}`,w.x).replace(`{y}`,w.y).replace(`{val}`,p.label),A=S._getLabelSize(k),j=-(A.height/2);switch(_.orientation){case S.orientation.bottom:case S.orientation.bottom_left:j=A.height;break}n+=C.label.replace(`{x}`,w.x).replace(`{y}`,w.y+j).replace(`{val}`,p.label)}var M=m.id,N=h.id;v&&(M=h.id,N=m.id),n+=(`<g `+S.attr.s_link_from+`="{from}" `+S.attr.s_link_to+`="{to}">`).replace(`{from}`,M).replace(`{to}`,N)+C.link.replaceAll(`{d}`,O)+`<path stroke="transparent" stroke-width="15" fill="none" d="`+O+`" />`,n+=S.grCloseTag}t.content+=n},S.prototype.addSlink=function(e,t,n,r){this._putInUndoStack(),this.clearRedo();for(var i=this.config.slinks.length-1;i>=0;i--){var a=this.config.slinks[i];a.from==e&&a.to==t&&this.config.slinks.splice(i,1)}return this.config.slinks.push({from:e,to:t,label:n,template:r}),this._ai.setContext(),S.events.publish(`updated`,[this]),this},S.prototype.removeSlink=function(e,t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.slinks.length-1;n>=0;n--){var r=this.config.slinks[n];r.from==e&&r.to==t&&this.config.slinks.splice(n,1)}return this._ai.setContext(),S.events.publish(`updated`,[this]),this},S.slinkTemplates={},S.slinkTemplates.orange={defs:`<marker id="arrowSlinkOrange" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#F57C00" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotSlinkOrange" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#F57C00" /></marker>`,link:`<path stroke-dasharray="4, 2" marker-start="url(#dotSlinkOrange)" marker-end="url(#arrowSlinkOrange)" stroke-linejoin="round" stroke="#F57C00" stroke-width="2" fill="none" d="{d}" />`,label:`<text dominant-baseline="middle" fill="#F57C00" alignment-baseline="middle" text-anchor="middle" x="{x}" y="{y}">{val}</text>`,labelPosition:`middle`},S.slinkTemplates.blue={defs:`<marker id="arrowSlinkBlue" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#039BE5" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotSlinkBlue" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#039BE5" /></marker>`,link:`<path stroke-dasharray="4, 2" marker-start="url(#dotSlinkBlue)" marker-end="url(#arrowSlinkBlue)" stroke-linejoin="round" stroke="#039BE5" stroke-width="2" fill="none" d="{d}" />`,label:`<text fill="#039BE5" text-anchor="middle" x="{x}" y="{y}">{val}</text>`,labelPosition:`middle`},S.slinkTemplates.yellow={defs:`<marker id="arrowSlinkYellow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path fill="#FFCA28" d="M 0 0 L 10 5 L 0 10 z" /></marker><marker id="dotSlinkYellow" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="5" markerHeight="5"> <circle cx="5" cy="5" r="5" fill="#FFCA28" /></marker>`,link:`<path stroke-dasharray="4, 2" marker-start="url(#dotSlinkYellow)" marker-end="url(#arrowSlinkYellow)" stroke-linejoin="round" stroke="#FFCA28" stroke-width="2" fill="none" d="{d}" />`,label:`<text fill="#FFCA28" text-anchor="middle" x="{x}" y="{y}">{val}</text>`,labelPosition:`middle`},S._ai=function(e){this.instance=e,this.sessionId=null},S._ai.prototype.prompt=function(e,t){var n=this;e=e.trim(),e&&(this.sessionId?n._prompt([{Role:`user`,Text:e}],t):this.setContext(function(){n._prompt([{Role:`user`,Text:e}],t)}))},S._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of S.AI_SYSTEM_MESSAGES)r.push({Role:`system`,Text:i});var a=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(r))}&sessionId=${this.sessionId}`;let o=new EventSource(a);o.onmessage=function(e){var r=JSON.parse(e.data),i=``;r.kind==`end`&&o.close(),r.kind==`text`&&(i+=r.text,t&&t(r.text)),r.kind==`assistant-message-with-tools`?n.toolCalls(r.message,t):r.kind==`error`&&console.error(r.text)},o.onerror=function(e){console.error(e),o.close()}},S._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+`/OrgChartJSAI/SetContext`,n=this.instance.config.aiChatTools.slice();for(var r of n)r.functionParameters??=null,r.functionParameters=JSON.stringify(r.functionParameters);fetch(t,{method:`post`,headers:{"Content-Type":`application/json`,"x-request-type":`ajax`},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:n})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},S._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};S.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,u=null,d=null,f=null,p=null;for(var m of r.toolCalls)m.FunctionResult??(m.FunctionName==`removeNode`?i.push(m):m.FunctionName==`addNode`?a.push(m):m.FunctionName==`updateNode`?o.push(m):m.FunctionName==`select`?s.push(m):m.FunctionName==`deselect`?c.push(m):m.FunctionName==`exportToPDF`?l=m:m.FunctionName==`changeTemplate`?u=m:m.FunctionName==`addSlink`?d=m:m.FunctionName==`removeSlink`?f=m:m.FunctionName==`fit`&&(p=m));var h=!1;if(u&&(h=!0,m.FunctionResult=`ok`,this.instance.config.template=m.FunctionArguments.templateName),d){var g=this.instance.getNode(m.FunctionArguments.employeeId1),_=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!_||g==_?m.FunctionResult=`Cannot add link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.addSlink(g.id,_.id),m.FunctionResult=`ok`)}if(f){var g=this.instance.getNode(m.FunctionArguments.employeeId1),_=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!_||g==_?m.FunctionResult=`Cannot remove link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.removeSlink(g.id,_.id),m.FunctionResult=`ok`)}p&&(this.instance.fit(),h=!1);for(var m of i)h=!0,m.FunctionResult=`ok`,this.instance.remove(m.FunctionArguments.id);for(var m of a){h=!0,m.FunctionResult=`ok`;var v=JSON.parse(JSON.stringify(m.FunctionArguments));v.isAssistant&&(v.tags=[`assistant`]),delete v.isAssistant,S.isNEU(v.id)&&(v.id=this.instance.generateId()),this.instance.add(v)}for(var m of o){h=!0,m.FunctionResult=`ok`;var v=this.instance.get(m.FunctionArguments.id);for(var y in m.FunctionArguments)y!=`id`&&m.FunctionArguments[y]!=null&&(v[y]=m.FunctionArguments[y]);this.instance.update(v)}for(var m of s){m.FunctionResult=`ok`;for(var b of m.FunctionArguments.ids){var x=m.FunctionArguments.color;x||=`#FFCA28`;var C=this.instance.getNodeElement(b).firstChild;C&&(C.style.stroke=m.FunctionArguments.color,C.style.strokeWidth=5)}}var w=function(){for(var e of c)if(e.FunctionResult=`ok`,e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var r=n.instance.getNodeElement(t).firstChild;r&&(r.style.stroke=`#aeaeae`,r.style.strokeWidth=1)}else h=!0};h?(this.setContext(),this.instance.draw(S.action.update,void 0,w)):w();var T=function(){var e=[];for(var i of r.toolCalls)e.push({Role:`tool`,Text:i.FunctionResult,Id:i.Id});n._prompt(e,t)};l?this.chartInstance.exportToPDF({},function(){m.FunctionResult=`ok`,S._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},S.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}})},S.aiUI.title=`AI for OrgChart JS`,S.aiUI.prototype.init=function(e){this.instance=e;var t=this,n=this.instance.element.querySelector(`[data-boc-ai-button]`);n&&n.addEventListener(`click`,function(e){t.show()})},S.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},S.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display=``,this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var n=this;t||(this.timeout&&clearInterval(this.interval),this.interval=S.animate(this.element,{opacity:0},{opacity:1},300,S.anim.outSin,function(){e||n.inputElement.focus()}))},S.aiUI.prototype._create=function(){if(!this.element){var e=this,t=`inp_`+this.instance.generateId();this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-ai-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-ai-form`),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">
|
|
551
|
-
<div data-boc-ai-close class="boc-ai-close">${S.icon.x(20,20,`#aeaeae`)}</div>
|
|
552
|
-
<div class="boc-ai-middle boc-ai-start">
|
|
553
|
-
<div data-boc-ai-messages class="boc-ai-messages">
|
|
554
|
-
<img src="https://orgchartjs.balkan.app/logo.svg">
|
|
555
|
-
<span>
|
|
556
|
-
${S.aiUI.title}
|
|
557
|
-
</span>
|
|
558
|
-
</div>
|
|
559
|
-
</div>
|
|
560
|
-
<div>
|
|
561
|
-
<div class="boc-input" data-boc-input="">
|
|
562
|
-
<label for="${t}">Message OrgChart</label>
|
|
563
|
-
<input maxlength="256" id="${t}" name="${t}" type="text" value="" autocomplete="off">
|
|
564
|
-
<div data-boc-ai-send class="boc-ai-send">
|
|
565
|
-
${S.icon.send(20,20,`#aeaeae`)}
|
|
566
|
-
</div>
|
|
567
|
-
</div>
|
|
568
|
-
|
|
569
|
-
</div>
|
|
570
|
-
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,S.input.init(this.element);var n=this.instance.leftElement.querySelector(`[data-boc-ai-close] svg`);n&&n.addEventListener(`click`,function(t){e.hide()}),this.inputElement=this.element.querySelector(`#`+t),this.btnSendElement=this.inputElement.parentNode.querySelector(`[data-boc-ai-send]`),this.messagesElement=this.element.querySelector(`[data-boc-ai-messages]`),this.inputElement.addEventListener(`input`,function(e){this.value?this.parentNode.querySelector(`.boc-ai-send`).classList.add(`boc-ai-send-cansend`):this.parentNode.querySelector(`.boc-ai-send`).classList.remove(`boc-ai-send-cansend`)}),this.element.querySelector(`[data-boc-ai-send]`).addEventListener(`click`,function(t){e.sendUserInput()}),this.inputElement.addEventListener(`keyup`,function(t){var n=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),n.key){case`Enter`:e.sendUserInput();break;case`ArrowUp`:var r=S.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=r.length-1:i--,i==-1&&(i=r.length-1),e.inputElement.value=r[i]}break;case`ArrowDown`:var r=S.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=0:i++,i==r.length&&(i=0),e.inputElement.value=r[i]}break;default:}})}},S.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove(`boc-ai-send-cansend`);var t=this.element.querySelector(`.boc-ai-start`);t&&(t.classList.remove(`boc-ai-start`),this.messagesElement.innerHTML=``);var n=document.createElement(`div`);n.classList.add(`boc-ai-user-message`),n.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(n)},S.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},S.aiUI.prototype.sendUserInput=function(){var e=this;S.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement(`div`);t.classList.add(`boc-ai-assistant-message`);var n=document.createElement(`span`);n.classList.add(`boc-inner-assistant-message`),t.appendChild(n),this.messagesElement.appendChild(t);var r=``;this.instance._ai.prompt(this.inputElement.value,function(t){r+=t,n.innerHTML=marked.parse(r);var i=e.element.querySelector(`.boc-ai-middle`);i.scrollTo(0,i.scrollHeight)}),this.inputElement.value=``},S.aiUI._addSuggestion=function(e){e=e.trim();var t=S.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},S.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},S.orgScribeUI=function(){this.instance=null,this.element=null,this.textAreaElement=null,this._timeout=null,Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}})},S.orgScribeUI.prototype.init=function(e){this.instance=e},S.events.on(`updated`,function(e,t){if(e.orgScribeUI.isVisible()){var n=S._convertFromNodesToText(e.config.nodes,S.ORGSCRIBE_OFFSET);e.orgScribeUI.textAreaElement.value=n}}),S.orgScribeUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},S.orgScribeUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display=``;var n=this;t||(this.timeout&&clearInterval(this.interval),this.interval=S.animate(this.element,{opacity:0},{opacity:1},300,S.anim.outSin,function(){if(!e){var t=n.textAreaElement.value.length;n.textAreaElement.focus(),n.textAreaElement.setSelectionRange(t,t)}}))},S.orgScribeUI.prototype._create=function(){if(!this.element){var e=this;this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-orgscribe-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-orgscribe-form`),this.element.classList.add(this.instance.config.mode);var t=S._convertFromNodesToText(this.instance.config.nodes,S.ORGSCRIBE_OFFSET);this.element.innerHTML=`<div class="boc-orgscribe-container">
|
|
571
|
-
<div data-boc-orgscribe-close class="boc-orgscribe-close">${S.icon.x(20,20,`#aeaeae`)}</div>
|
|
572
|
-
<div>
|
|
573
|
-
<textarea wrap="off" class="boc-orgscribe-txt" data-id="boc_orgscribe_txt">${t}</textarea>
|
|
574
|
-
</div>
|
|
575
|
-
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`;var n=this.instance.leftElement.querySelector(`[data-boc-orgscribe-close] svg`);n&&n.addEventListener(`click`,function(t){e.hide()}),this.textAreaElement=this.element.querySelector(`[data-id="boc_orgscribe_txt"]`),this.textAreaElement.addEventListener(`input`,function(){e._timeout&&=(clearTimeout(e._timeout),null);var t=this.value;e._timeout=setTimeout(function(){var n=S._convertTextToNodes(t,S.ORGSCRIBE_OFFSET);e.instance.load(n)},500)})}},S.orgScribeUI.prototype.hide=function(){this.element&&=(this.element.parentNode.removeChild(this.element),null)},(function(t,n){typeof e==`object`&&typeof module<`u`?n(e):typeof define==`function`&&define.amd?define([`exports`],n):n((t=typeof globalThis<`u`?globalThis:t||self).marked={})})(void 0,(function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function n(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};let r={exec:()=>null};function i(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(a.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}let a={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},o=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,s=/(?:[*+-]|\d{1,9}[.)])/,c=i(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,s).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),l=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,u=/(?!\s*\])(?:\\.|[^\[\]\\])+/,d=i(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,u).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),f=i(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,s).getRegex(),p=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,m=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,h=i(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,m).replace(`tag`,p).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),g=i(l).replace(`hr`,o).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,p).getRegex(),_={blockquote:i(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,g).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:d,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:o,html:h,lheading:c,list:f,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:g,table:r,text:/^[^\n]+/},v=i(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,o).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,p).getRegex(),y={..._,table:v,paragraph:i(l).replace(`hr`,o).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,v).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,p).getRegex()},b={..._,html:i(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,m).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:r,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:i(l).replace(`hr`,o).replace(`heading`,` *#{1,6} *[^
|
|
576
|
-
]`).replace(`lheading`,c).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},x=/^( {2,}|\\)\n(?!\s*$)/,S=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,w=/[^\s\p{P}\p{S}]/u,T=i(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,C).getRegex(),E=/(?!~)[\p{P}\p{S}]/u,D=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,O=i(D,`u`).replace(/punct/g,S).getRegex(),k=i(D,`u`).replace(/punct/g,E).getRegex(),A=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,j=i(A,`gu`).replace(/notPunctSpace/g,w).replace(/punctSpace/g,C).replace(/punct/g,S).getRegex(),M=i(A,`gu`).replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,E).getRegex(),N=i(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,w).replace(/punctSpace/g,C).replace(/punct/g,S).getRegex(),P=i(/\\(punct)/,`gu`).replace(/punct/g,S).getRegex(),F=i(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),I=i(m).replace(`(?:-->|$)`,`-->`).getRegex(),L=i(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,I).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ee=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R=i(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace(`label`,ee).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),z=i(/^!?\[(label)\]\[(ref)\]/).replace(`label`,ee).replace(`ref`,u).getRegex(),B=i(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,u).getRegex(),te={_backpedal:r,anyPunctuation:P,autolink:F,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:x,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:r,emStrongLDelim:O,emStrongRDelimAst:j,emStrongRDelimUnd:N,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:R,nolink:B,punctuation:T,reflink:z,reflinkSearch:i(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,z).replace(`nolink`,B).getRegex(),tag:L,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:r},V={...te,link:i(/^!?\[(label)\]\((.*?)\)/).replace(`label`,ee).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,ee).getRegex()},H={...te,emStrongRDelimAst:M,emStrongLDelim:k,url:i(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ne={...H,br:i(x).replace(`{2,}`,`*`).getRegex(),text:i(H.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},U={normal:_,gfm:y,pedantic:b},W={normal:te,gfm:H,breaks:ne,pedantic:V},re={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},ie=e=>re[e];function G(e,t){if(t){if(a.escapeTest.test(e))return e.replace(a.escapeReplace,ie)}else if(a.escapeTestNoEncode.test(e))return e.replace(a.escapeReplaceNoEncode,ie);return e}function ae(e){try{e=encodeURI(e).replace(a.percentDecode,`%`)}catch{return null}return e}function K(e,t){let n=e.replace(a.findPipe,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`})).split(a.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(a.slashPipe,`|`);return n}function q(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function J(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:a,title:o,text:s}}class oe{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:q(e,`
|
|
577
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
578
|
-
`).map((e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e})).join(`
|
|
579
|
-
`)}(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=q(e,`#`);this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:q(t[0],`
|
|
580
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=q(t[0],`
|
|
581
|
-
`).split(`
|
|
582
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else{if(t)break;a.push(e[o])}e=e.slice(o);let s=a.join(`
|
|
583
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
584
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}\n${s}`:s,r=r?`${r}\n${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|
585
|
-
`+e.join(`
|
|
586
|
-
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
587
|
-
`+e.join(`
|
|
588
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
589
|
-
`)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
|
|
590
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,(e=>` `.repeat(3*e.length))),l=e.split(`
|
|
591
|
-
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|
592
|
-
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
|
|
593
|
-
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|
594
|
-
`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
595
|
-
`+l}u||l.trim()||(u=!0),r+=f+`
|
|
596
|
-
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(f=p[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!p,checked:f,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter((e=>e.type===`space`));i.loose=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=K(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
597
|
-
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(K(e,a.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]}))));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
598
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=q(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}(t[2],`()`);if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),J(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return J(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&!(r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}}class Y{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:a,block:U.normal,inline:W.normal};this.options.pedantic?(n.block=U.pedantic,n.inline=W.pedantic):this.options.gfm&&(n.block=U.gfm,this.options.breaks?n.inline=W.breaks:n.inline=W.gfm),this.tokenizer.rules=n}static get rules(){return{block:U,inline:W}}static lex(e,t){return new Y(t).lex(e)}static lexInline(e,t){return new Y(t).inlineTokens(e)}lex(e){e=e.replace(a.carriageReturn,`
|
|
599
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(a.tabCharGlobal,` `).replace(a.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
|
|
600
|
-
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
|
|
601
|
-
`+r.raw,n.text+=`
|
|
602
|
-
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
|
|
603
|
-
`+r.raw,n.text+=`
|
|
604
|
-
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach((e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=`
|
|
605
|
-
`+r.raw,a.text+=`
|
|
606
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=`
|
|
607
|
-
`+r.raw,n.text+=`
|
|
608
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,a=``;for(;e;){let r;if(i||(a=``),i=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach((e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class se{options;parser;constructor(t){this.options=t||e.defaults}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(a.notSpaceStart)?.[0],i=e.replace(a.endingNewline,``)+`
|
|
609
|
-
`;return r?`<pre><code class="language-`+G(r)+`">`+(n?i:G(i,!0))+`</code></pre>
|
|
610
|
-
`:`<pre><code>`+(n?i:G(i,!0))+`</code></pre>
|
|
611
|
-
`}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return`<hr>
|
|
612
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`;return`<`+i+(t&&n!==1?` start="`+n+`"`:``)+`>
|
|
613
|
-
`+r+`</`+i+`>
|
|
614
|
-
`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+G(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
615
|
-
<thead>
|
|
616
|
-
`+t+`</thead>
|
|
617
|
-
`+r+`</table>
|
|
618
|
-
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${G(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ae(e);if(i===null)return r;let a=`<a href="`+(e=i)+`"`;return t&&(a+=` title="`+G(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n}){let r=ae(e);if(r===null)return G(n);let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${G(t)}"`),i+=`>`,i}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:G(e.text)}}class ce{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}}class le{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ce}static parse(e,t){return new le(t).parse(e)}static parseInline(e,t){return new le(t).parseInline(e)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
619
|
-
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:case`text`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}}class ue{options;block;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Y.lex:Y.lexInline}provideParser(){return this.block?le.parse:le.parseInline}}class de{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=le;Renderer=se;TextRenderer=ce;Lexer=Y;Tokenizer=oe;Hooks=ue;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new se(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new oe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ue;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];ue.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then((e=>a.call(t,e)));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Y.lex(e,t??this.defaults)}parser(e,t){return le.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Y.lex:Y.lexInline,s=i.hooks?i.hooks.provideParser():e?le.parse:le.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then((e=>o(e,i))).then((e=>i.hooks?i.hooks.processAllTokens(e):e)).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>s(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
620
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+G(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}let fe=new de;function pe(e,t){return fe.parse(e,t)}pe.options=pe.setOptions=function(e){return fe.setOptions(e),pe.defaults=fe.defaults,n(pe.defaults),pe},pe.getDefaults=t,pe.defaults=e.defaults,pe.use=function(...e){return fe.use(...e),pe.defaults=fe.defaults,n(pe.defaults),pe},pe.walkTokens=function(e,t){return fe.walkTokens(e,t)},pe.parseInline=fe.parseInline,pe.Parser=le,pe.parser=le.parse,pe.Renderer=se,pe.TextRenderer=ce,pe.Lexer=Y,pe.lexer=Y.lex,pe.Tokenizer=oe,pe.Hooks=ue,pe.parse=pe;let me=pe.options,he=pe.setOptions,ge=pe.use,_e=pe.walkTokens,ve=pe.parseInline,ye=pe,be=le.parse,X=Y.lex;e.Hooks=ue,e.Lexer=Y,e.Marked=de,e.Parser=le,e.Renderer=se,e.TextRenderer=ce,e.Tokenizer=oe,e.getDefaults=t,e.lexer=X,e.marked=pe,e.options=me,e.parse=ye,e.parseInline=ve,e.parser=be,e.setOptions=he,e.use=ge,e.walkTokens=_e})),S.events.on(`renderbuttons`,function(e,t){if(t.node&&t.node.tags&&t.node.tags.has(`group-dotted-lines`)){var n=e.getScale(),r=S.t(t.node.templateName,t.node.min,n),i=``;t.node.min?(r.nodeGroupDottedOpenButton||console.error(`[${t.node.templateName}].nodeGroupDottedOpenButton is not defined`),i+=`<g style="cursor:pointer;" data-ctrl-n-dotted-open="${t.node.id}" transform="matrix(1,0,0,1,${t.node.x},${t.node.y})">`,i+=r.nodeGroupDottedOpenButton):(r.nodeGroupDottedCloseButton||console.error(`[${t.node.templateName}].nodeGroupDottedCloseButton is not defined`),i+=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${t.node.x},${t.node.y})" data-ctrl-n-dotted-close="${t.node.id}">`,i+=r.nodeGroupDottedCloseButton),i+=`</g>`,i=i.replaceAll(`{cw}`,t.node.w/2).replaceAll(`{ch}`,t.node.h/2).replaceAll(`{ew}`,t.node.w-(t.node.padding?t.node.padding[1]:0)).replaceAll(`{eh}`,t.node.h-(t.node.padding?t.node.padding[2]:0));var a=e.getNode(t.node.stChildrenIds[0]);i.indexOf(`{collapsed-children-count}`)!=-1&&(i=i.replace(`{collapsed-children-count}`,a.collapsedChildCount)),i.indexOf(`{collapsed-children-total-count}`)!=-1&&(i=i.replace(`{collapsed-children-total-count}`,a.deepCollapsedChildCount)),i.indexOf(`{children-count}`)!=-1&&(i=i.replace(`{children-count}`,a.childCount)),i.indexOf(`{children-total-count}`)!=-1&&(i=i.replace(`{children-total-count}`,a.deepChildCount)),t.html+=i}}),S.events.on(`redraw`,function(e,t){var n=null;if(e.manager.action==S.action.centerNode&&(n=e.manager.actionParams.id),n!=null){var r=e.getNode(n);if(r.isTreeListItem){var i=S._getCenterNodeFromParams(e.manager.nodes,e.manager.actionParams),a=i.stChildren[0].lcn?i.stChildren[0].lcn:`base`,o=e.manager.layoutConfigs[a],s=S._getScrollTopForNode(i,r.id),c=i.treeList.scrollTop;s!=c&&(e._treeListUpdateInterval=S.animate(null,{},{},400,S.anim.inOutPow,function(){},function(t){i.treeList.scrollTop=t*(s-c)+c,e._treeListUpdate(i,o.orientation)}))}}}),S.prototype.__mouseScrollHandlerTreeList=function(e,t){var n=t.delta||t.wheelDelta;for(n===void 0&&(n=-t.detail),n=Math.max(-1,Math.min(1,n));e&&!e.stParent;)e=e.parent;e=e.stParent;var r=S.TREELIST_WHEEL_STEP;r==`auto`&&(r=e.stChildren[0].h/2),e.treeList.scrollTop+=-n*r;var i=e.stChildren[0].lcn?e.stChildren[0].lcn:`base`,a=this.manager.layoutConfigs[i];this._treeListUpdateInterval&&=(clearInterval(this._treeListUpdateInterval),null),S._treeListGetTumbPositionFromScrollTop(e).scrollBarDisplay==`none`||(t.preventDefault(),this._treeListUpdate(e,a.orientation))},S.prototype._treeListUpdate=function(e,t){S._treeListSetProps(e,t),S._treeListAdjustToSTNodePostition(e.stChildren,e);var n=this.getScale(),r=this.element.querySelector(`[data-treelist-content="${e.id}"]`),i=r.transform.baseVal.consolidate().matrix;i.f=-e.treeList.scrollTop,this._treeListIterate2(e.stChildren,e,n,r);for(var a of e.treeList.pinnedIds){var o=this.getNode(a);this._treeListSetPositions(o,n,r,!0)}var s=this.element.querySelector(`[data-treelist-thumb="${e.id}"]`),c=this.element.querySelector(`[data-treelist-scroll="${e.id}"]`),{thumbHeight:l,thumbPosition:u,scrollBarDisplay:d}=S._treeListGetTumbPositionFromScrollTop(e);s.style.display=d,c.style.display=d,s.setAttributeNS(null,`height`,l),s.setAttributeNS(null,`y`,+u)},S.prototype._treeListIterate2=function(e,t,n,r){for(var i of e)t.treeList.pinnedIds.includes(i.id)||this._treeListSetPositions(i,n,r,!1),this._treeListIterate2(i.children,t,n,r)},S.prototype._treeListSetPositions=function(e,t,n,r){var i=this.getNodeElement(e.id);if(i){var a=i.transform.baseVal.consolidate().matrix;i.classList.remove(`treelist-pinned`),r&&(i.classList.add(`treelist-pinned`),n.appendChild(i)),a.f=e.y,a.e=e.x;var o=this.element.querySelector(`[data-ctrl-ec-id="${e.id}"]`);if(o){var s=o.transform.baseVal.consolidate().matrix;s.f=e.y,n.appendChild(o)}}},S.prototype._treeListThumbMouseDownHandler=function(e,t,n){var r=e.getAttribute(`data-treelist-thumb`),i=this.getNode(r),a=this.getSvg(),o=this,s=!0,c=S._getClientXY(t),l=this.getScale(),u=parseFloat(e.getAttribute(`y`)),d=parseFloat(e.getAttribute(`height`)),f=function(e){if(s){thumbPosition=u+(S._getClientXY(e).y-c.y)/l;var t=S._treeListGetScrollTopFromTumbPosition(i,d,thumbPosition);i.treeList.scrollTop=t,o._treeListUpdateInterval&&=(clearInterval(o._treeListUpdateInterval),null),o._treeListUpdate(i)}},p=function(e){s=!1,a.removeEventListener(n.move,f),a.removeEventListener(n.up,p)};a.addEventListener(n.move,f),a.addEventListener(n.up,p)},S.prototype._treeListExpandCollapseHandler=function(e){var t=this.getNode(e);if(t&&t.isTreeListItem){var n=S.getRootOf(t).stParent;if(n.treeList.pinnedIds.includes(e)){var r=S._getScrollTopForNode(n,t.id);n.treeList.scrollTop=r,this._treeListUpdate(n)}}},S===void 0&&(S={}),S.prototype.undo=function(e){if(this.config.undoRedoStorageName){var t=this.undoStepsCount();if(t!=0){this._putInRedoStack();var n=`${this.config.undoRedoStorageName}_undo_`+(t-1),r=sessionStorage.getItem(n);sessionStorage.removeItem(n);var i=JSON.parse(r);this.config.nodes=i.nodes,this.config.clinks=i.clinks,this.config.slinks=i.slinks,this.config.groupDottedLines=i.groupDottedLines,this.config.dottedLines=i.dottedLines,this._ai.setContext(),S.events.publish(`updated`,[this]),this.filterUI.update(),this.draw(S.action.update,void 0,e),this.undoRedoUI.refresh()}}},S.prototype.redo=function(e){if(this.config.undoRedoStorageName){var t=this.redoStepsCount();if(t!=0){this._putInUndoStack();var n=`${this.config.undoRedoStorageName}_redo_`+(t-1),r=sessionStorage.getItem(n);sessionStorage.removeItem(n);var i=JSON.parse(r);this.config.nodes=i.nodes,this.config.clinks=i.clinks,this.config.slinks=i.slinks,this.config.groupDottedLines=i.groupDottedLines,this.config.dottedLines=i.dottedLines,this._ai.setContext(),S.events.publish(`updated`,[this]),this.filterUI.update(),this.draw(S.action.update,void 0,e),this.undoRedoUI.refresh()}}},S.prototype.clearRedo=function(){if(this.config.undoRedoStorageName){for(var e=`${this.config.undoRedoStorageName}_redo_`,t=Object.keys(sessionStorage),n=0;t.indexOf(e+n)!=-1;)sessionStorage.removeItem(e+n),n++;this.undoRedoUI.refresh()}},S.prototype.clearUndo=function(){if(this.config.undoRedoStorageName){for(var e=`${this.config.undoRedoStorageName}_undo_`,t=Object.keys(sessionStorage),n=0;t.indexOf(e+n)!=-1;)sessionStorage.removeItem(e+n),n++;this.undoRedoUI.refresh()}},S.prototype.undoStepsCount=function(){for(var e=`${this.config.undoRedoStorageName}_undo_`,t=Object.keys(sessionStorage),n=0;t.indexOf(e+n)!=-1;)n++;return n},S.prototype.redoStepsCount=function(){for(var e=`${this.config.undoRedoStorageName}_redo_`,t=Object.keys(sessionStorage),n=0;t.indexOf(e+n)!=-1;)n++;return n},S.prototype._putInUndoStack=function(){if(this.config.undoRedoStorageName){var e=`${this.config.undoRedoStorageName}_undo_`+this.undoStepsCount();sessionStorage.setItem(e,JSON.stringify({nodes:this.config.nodes,clinks:this.config.clinks,slinks:this.config.slinks,groupDottedLines:this.config.groupDottedLines,dottedLines:this.config.dottedLines}))}},S.prototype._putInRedoStack=function(){if(this.config.undoRedoStorageName){var e=`${this.config.undoRedoStorageName}_redo_`+this.redoStepsCount();sessionStorage.setItem(e,JSON.stringify({nodes:this.config.nodes,clinks:this.config.clinks,slinks:this.config.slinks,groupDottedLines:this.config.groupDottedLines,dottedLines:this.config.dottedLines}))}},S===void 0&&(S={}),S.undoRedoUI=function(){this.instance=null,this._event_id=S._guid()},S.undoRedoUI.prototype.init=function(e){e.config.undoRedoStorageName&&(this.instance=e,this.refresh())},S.undoRedoUI.prototype.refresh=function(){var e=this;if(this.instance.config.undoRedoStorageName){var t={undoStepsCount:this.instance.undoStepsCount(),redoStepsCount:this.instance.redoStepsCount()};if(S.events.publish(`change`,[this,t])!==!1){var n=this.instance.element.querySelector(`[data-undo]`),r=this.instance.element.querySelector(`[data-redo]`);if(!n||!r){var i=document.createElement(`div`);i.classList.add(`boc-undo-redo`),i.innerHTML=`<span data-undo>${S.icon.undo(50,50,``)}<span class="boc-undo-i"></span></span>
|
|
621
|
-
<span data-redo>${S.icon.redo(50,50,``)}<span class="boc-redo-i"></span></span>`,this.instance.element.appendChild(i),n=this.instance.element.querySelector(`[data-undo]`),r=this.instance.element.querySelector(`[data-redo]`),n.addEventListener(`click`,function(){e.instance.undo()}),r.addEventListener(`click`,function(){e.instance.redo()})}t.undoStepsCount>0?(n.classList.add(`boc-ur-clickable`),n.querySelector(`.boc-undo-i`).innerHTML=t.undoStepsCount,n.querySelector(`.boc-undo-i`).style.display=`inline-block`):(n.classList.remove(`boc-ur-clickable`),n.querySelector(`.boc-undo-i`).style.display=`none`),t.redoStepsCount>0?(r.classList.add(`boc-ur-clickable`),r.querySelector(`.boc-redo-i`).innerHTML=t.redoStepsCount,r.querySelector(`.boc-redo-i`).style.display=`inline-block`):(r.classList.remove(`boc-ur-clickable`),r.querySelector(`.boc-redo-i`).style.display=`none`)}}},S.undoRedoUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.undoRedoUI.prototype.onChange=function(e){return this.on(`change`,function(t,n){return e.call(t,n)})},S.events.on(`redraw`,function(e,t){if(!e.config.miniMap){var n=e.element.querySelector(`[data-id="mini-map"]`);n&&n.parentNode.removeChild(n);return}if(e.manager.action==S.action.move)return;S.miniMap._settings._scale=Math.min(S.miniMap.width/(e.response.boundary.maxX-e.response.boundary.minX),S.miniMap.height/(e.response.boundary.maxY-e.response.boundary.minY)),S.miniMap._settings._translateX=-e.response.boundary.minX*S.miniMap._settings._scale+(S.miniMap.width-(e.response.boundary.maxX-e.response.boundary.minX)*S.miniMap._settings._scale)/2,S.miniMap._settings._translateY=-e.response.boundary.minY*S.miniMap._settings._scale+(S.miniMap.height-(e.response.boundary.maxY-e.response.boundary.minY)*S.miniMap._settings._scale)/2;var r=e.getViewBox();S.miniMap._init(e),S.miniMap._drawMainCanvas(e),S.miniMap._drawRectSelectorCanvas(e,r);var i=e.element.querySelector(`[data-id="mini-map-focus"]`),a=!1,o,s,c,l,u=null;function d(e,t){var n=(e-S.miniMap._settings._translateX)/S.miniMap._settings._scale,i=(t-S.miniMap._settings._translateY)/S.miniMap._settings._scale;return n>r[0]&&n<r[0]+r[2]&&i>r[1]&&i<r[1]+r[3]}function f(e){var t=i.getBoundingClientRect(),n=t.left,r=t.top;if(o=parseInt(e.clientX-n),s=parseInt(e.clientY-r),d(o,s)){e.preventDefault(),e.stopPropagation(),a=!0;return}}function p(t){if(a){t.preventDefault(),t.stopPropagation(),S.miniMap._mouseMove=!0;var n=i.getBoundingClientRect(),d=n.left,f=n.top;c=parseInt(t.clientX-d),l=parseInt(t.clientY-f);var p=(c-o)/S.miniMap._settings._scale,m=(l-s)/S.miniMap._settings._scale;r[0]=p+r[0],r[1]=m+r[1],e.setViewBox(r),u&&=(clearTimeout(u),null),u=setTimeout(function(){e._draw(!0,S.action.move)},300),S.miniMap._drawRectSelectorCanvas(e,r),o=c,s=l}}function m(e){a&&=(e.preventDefault(),e.stopPropagation(),!1)}function h(e){a&&(e.preventDefault(),e.stopPropagation(),a=!1,S.miniMap._mouseMove=!1)}function g(t){if(t.preventDefault(),t.stopPropagation(),S.miniMap._mouseMove)S.miniMap._mouseMove=!1;else{var n=i.getBoundingClientRect(),a=n.left,o=n.top;c=parseInt(t.clientX-a),l=parseInt(t.clientY-o);var s=c/S.miniMap._settings._scale,d=l/S.miniMap._settings._scale;r[0]=s-(r[0]+r[2]-r[0])/2-S.miniMap._settings._translateX/S.miniMap._settings._scale,r[1]=d-(r[1]+r[3]-r[1])/2-S.miniMap._settings._translateY/S.miniMap._settings._scale,e.setViewBox(r),u&&=(clearTimeout(u),null),u=setTimeout(function(){e._draw(!0,S.action.move)},300),S.miniMap._drawRectSelectorCanvas(e,r)}}i.onmousedown=f,i.onmousemove=p,i.onmouseup=m,i.onmouseout=h,i.onclick=g}),S.miniMap={},S.miniMap._settings={_translateX:0,_translateY:0,_scale:1},S.miniMap._drawMainCanvas=function(e){var t=e.element.querySelector(`[data-id="mini-map-main"]`),n=t.getContext(`2d`);S.miniMap._initCtx(e,t,1);var r=0,i=[];function a(e,t){if(Array.isArray(t)){for(var o=0;o<t.length;o++)a(e,t[o]);return}n.fillStyle=S.miniMap.colors[3],n.beginPath(),n.lineWidth=`0.5`,n.fillRect(t.x,t.y,t.w,t.h),n.strokeRect(t.x,t.y,t.w,t.h);for(var o=0;o<t.stChildrenIds.length;o++)r++,i.includes(t.id)||(r==1?n.fillStyle=S.miniMap.colors[0]:r==2?n.fillStyle=S.miniMap.colors[1]:r==3&&(n.fillStyle=S.miniMap.colors[2]),n.beginPath(),n.fillRect(t.x,t.y,t.w,t.h),n.strokeRect(t.x,t.y,t.w,t.h),i.push(t.id)),a(e,e.getNode(t.stChildrenIds[o])),r--;for(var o=0;o<t.childrenIds.length;o++)a(e,e.getNode(t.childrenIds[o]))}a(e,e.roots)},S.miniMap._drawRectSelectorCanvas=function(e,t){var n=e.element.querySelector(`[data-id="mini-map-focus"]`),r=n.getContext(`2d`);S.miniMap._initCtx(e,n,S.miniMap.opacity);var i=t[0],a=t[1],o=t[2],s=t[3];r.lineWidth=.5/S.miniMap._settings._scale,r.strokeStyle=S.miniMap.focusStroke,r.globalAlpha=1,r.clearRect(i,a,o,s),r.strokeRect(i,a,o,s)},S.miniMap._initCtx=function(e,t,n){var r=t.getContext(`2d`);t.width=t.width,t.height=t.height,r.clearRect(0,0,S.miniMap.width,S.miniMap.height),r.globalAlpha=n,n!=1&&(r.fillStyle=S.miniMap.selectorBackgroundColor,r.fillRect(0,0,S.miniMap.width,S.miniMap.height)),r.translate(S.miniMap._settings._translateX,S.miniMap._settings._translateY),r.scale(S.miniMap._settings._scale,S.miniMap._settings._scale)},S.miniMap._init=function(e){if(!e.element.querySelector(`[data-id="mini-map"]`)){var t=document.createElement(`canvas`);t.width=S.miniMap.width,t.height=S.miniMap.height,t.setAttribute(`data-id`,`mini-map-main`),t.style.display=`inline-block`,t.style.backgroundColor=S.miniMap.backgroundColor,t.style.position=`absolute`,t.style.top=0,t.style.left=0;var n=document.createElement(`canvas`);n.width=S.miniMap.width,n.height=S.miniMap.height,n.setAttribute(`data-id`,`mini-map-focus`),n.style.display=`inline-block`,n.style.position=`absolute`,n.style.top=0,n.style.left=0;var r=document.createElement(`div`);r.setAttribute(`data-id`,`mini-map`),r.style.position=`absolute`;for(var i=[`top`,`right`,`left`,`bottom`],a=0;a<i.length;a++){var o=i[a];S.isNEU(S.miniMap.position[o])||(S.miniMap.position[o]==`padding`?r.style[o]=e.config.padding+`px`:r.style[o]=S.miniMap.position[o]+`px`)}r.style.border=S.miniMap.border,r.style.padding=S.miniMap.padding+`px`,r.style.backgroundColor=S.miniMap.backgroundColor;var s=document.createElement(`div`);s.style.position=`relative`,s.style.width=S.miniMap.width+`px`,s.style.height=S.miniMap.height+`px`,s.appendChild(t),s.appendChild(n),r.appendChild(s),e.element.appendChild(r),r.addEventListener(`DOMMouseScroll`,function(t){e.__mouseScrollHandler(r,t)}),r.addEventListener(`mousewheel`,function(t){e.__mouseScrollHandler(r,t)});var c=0,l=0,u=function(e){c=e.clientX,l=e.clientY,document.addEventListener(`mousemove`,d),document.addEventListener(`mouseup`,f)},d=function(e){S.miniMap._mouseMove=!0;var t=e.clientX-c,n=e.clientY-l;if(!S.isNEU(r.style.left)){var i=parseFloat(r.style.left)+t;r.style.left=`${i}px`}if(!S.isNEU(r.style.right)){var a=parseFloat(r.style.right)-t;r.style.right=`${a}px`}if(!S.isNEU(r.style.bottom)){var o=parseFloat(r.style.bottom)-n;r.style.bottom=`${o}px`}if(!S.isNEU(r.style.top)){var s=parseFloat(r.style.top)+n;r.style.top=`${s}px`}c=e.clientX,l=e.clientY},f=function(){document.removeEventListener(`mousemove`,d),document.removeEventListener(`mouseup`,f)};S.miniMap.draggable&&r.addEventListener(`mousedown`,u)}},S.miniMap.colors=[`#E0E0E0`,`#BDBDBD`,`#9E9E9E`,`#757575`],S.miniMap.selectorBackgroundColor=`white`,S.miniMap.backgroundColor=`white`,S.miniMap.focusStroke=`#f57c00`,S.miniMap.opacity=.4,S.miniMap.border=`1px solid #aeaeae`,S.miniMap.width=250,S.miniMap.height=140,S.miniMap.padding=5,S.miniMap.position={top:void 0,left:`padding`,right:void 0,bottom:`padding`},S.miniMap.draggable=!0,S._search={},S._search.search=function(e,t,n,r,i,a,o){var s=[],c=t.toLowerCase();document.documentElement.lang&&(c=t.toLocaleLowerCase(document.documentElement.lang));var l=c.split(` `);if(o&&l.length>1){var u=l[0];o[u]&&(n=[o[u]],c=c.replace(u,``).trim(),l=c.split(` `))}l=l.filter(function(e,t,n){return n.indexOf(e)===t});for(var d={},f=0;f<e.length;f++)for(var p=e[f],m=0;m<n.length;m++){var h=n[m];if(!S.isNEU(p[h])){var g=p[h],t=S._search.searchAndComputeScore(l,g,h,a);if(t!=null){var _=p.id;if(!d[_])d[_]=t.__score,S._search.addNodeToResult(s,r,p,t,h,i);else if(d[_]&&d[_]<t.__score){d[_]=t.__score;for(var v=s.length-1;v>=0;v--)s[v].id==_&&s.splice(v,1);S._search.addNodeToResult(s,r,p,t,h,i)}}}}return s.sort(function(e,t){return e.__score<t.__score?1:e.__score>t.__score?-1:0}),s},S._search.addNodeToResult=function(e,t,n,r,i,a){var o={};o.id=n.id,S.isNEU(n[a])||(o[a]=n[a]);for(var s=0;s<t.length;s++){var c=t[s];S.isNEU(n[c])||S.isNEU(o[c])&&(o[c]=n[c])}r!=null&&(S.isNEU(o.__score)&&(o.__score=r.__score),S.isNEU(o.__searchField)&&(o.__searchField=i),S.isNEU(o.__searchMarks)&&(o.__searchMarks=r.__searchMarks)),e.push(o)},S._search.searchAndComputeScore=function(e,t,n,r){if(S.isNEU(t)||S.isNEU(e)||!e.length)return null;typeof t!=`string`&&(t=t.toString());var i=t.toLowerCase();document.documentElement.lang&&(i=t.toLocaleLowerCase(document.documentElement.lang));var a=S._search.searchIndexesOf(i,e);if(!a.length)return null;for(var o=i.length/100,s=0,c=0,l=s>0?100:0,u=0,d=0;d<e.length;d++)for(var f=e[d],p=0;p<a.length;p++)if(f.indexOf(a[p].searchPhrase)!=-1){u++;break}var m=100/(e.length/u);if(a.length){c=a[0].start;for(var p=0;p<a.length;p++)if(s+=a[p].length,a[p].start<c&&(c=a[p].start),p>=1&&a[p-1].start>a[p].start){l=0;break}}var h=0;s!=0&&(h=s/o);var g=s>0?100:0;c!=0&&(g=100-c/o);var _=0;r&&r[n]&&(_=r[n]),m&&=m/100*50,h>0&&(h=h/100*10),g>0&&(g=g/100*10),l>0&&(l=l/100*10),_>0&&(_=_/100*20);var v=Math.round((m+h+g+l+_)*1e4);a.sort(function(e,t){return e.start<t.start?-1:e.start>t.start?1:0});for(var p=a.length-1;p>=0;p--)for(var d=0;d<a.length;d++)d<p&&a[d].start+a[d].length>a[p].start&&a.splice(p,1);for(var y=t,p=a.length-1;p>=0;p--)y=y.insert(a[p].start+a[p].length,`</mark>`),y=y.insert(a[p].start,`<mark>`);return{__searchMarks:y,__score:v}},S._search.searchIndexesOf=function(e,t){var n=[];if(!S.isNEU(e))for(var r=0;r<t.length;r++){var i=t[r];if(!S.isNEU(i))for(var a=0;a=e.indexOf(i,a),a>-1;)n.push({length:i.length,start:a,searchPhrase:i}),a+=i.length}return n.sort(function(e,t){return e.length<t.length?1:e.length>t.length||e.start<t.start?-1:e.start>t.start?1:0}),n=n.filter(function(e){for(var t=!1,r=0;r<n.length;r++){var i=n[r].start,a=n[r].start+n[r].length-1,o=e.start,s=e.start+e.length-1;if(i==o&&a==s){t=!1;break}if(i>=o&&a<=s){t=!0;break}else if(i<=o&&a>=s){t=!0;break}}return!t}),n},S.events.on(`redraw`,function(e,t){if(!e.config.state)return;var n=[],r=[];function i(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)i(e[t]);return}(typeof e.id!=`string`||typeof e.id==`string`&&e.id.indexOf(`split`)==-1&&e.id.indexOf(`mirror`)==-1)&&(n.push(e.id),e.min==1&&r.push(e.id));for(var t=0;t<e.stChildren.length;t++)i(e.stChildren[t]);for(var t=0;t<e.children.length;t++)i(e.children[t])}i(e.roots),S.state._put(e.config.roots,e.width(),e.height(),e.response.viewBox,n,r,e.response.adjustify,e.config.state)}),S.state={},S.state._buildStateNames=function(e){return{paramScale:e+`-scale`,paramX:e+`-x`,paramY:e+`-y`,paramExp:e+`-exp`,paramMin:e+`-min`,paramRoots:e+`-roots`,paramAdjustify:e+`-adjustify`}},S.state._put=function(e,t,n,r,i,a,o,s){if(s&&!(S.isNEU(i)||i.length==0)){var c=S.state._buildStateNames(s.name),l={roots:e,scale:Math.min(t/r[2],n/r[3]),x:r[0],y:r[1],exp:i,min:a,adjustify:o};if(s.writeToUrlParams){var u=new URLSearchParams(window.location.search);u.has(c.paramScale)?u.set(c.paramScale,l.scale):u.append(c.paramScale,l.scale),u.has(c.paramX)?u.set(c.paramX,l.x):u.append(c.paramX,l.x),u.has(c.paramY)?u.set(c.paramY,l.y):u.append(c.paramY,l.y),u.has(c.paramExp)?u.set(c.paramExp,l.exp.join(`*`)):u.append(c.paramExp,l.exp.join(`*`)),u.has(c.paramRoots)&&Array.isArray(l.roots)?u.set(c.paramRoots,l.roots.join(`*`)):Array.isArray(l.roots)&&u.append(c.paramRoots,l.roots.join(`*`)),u.has(c.paramMin)?u.set(c.paramMin,l.min.join(`*`)):u.append(c.paramMin,l.min.join(`*`)),u.has(c.paramAdjustify)?u.set(c.paramAdjustify,l.adjustify.x+`*`+l.adjustify.y):u.append(c.paramAdjustify,l.adjustify.x+`*`+l.adjustify.y),window.history.replaceState(null,null,`?`+u)}s.writeToIndexedDB&&(l.id=s.name,S.idb.put(l,function(e){e==0&&console.error(`Cannot write row - `+s.name)})),s.writeToLocalStorage&&S.localStorage.setItem(s.name,JSON.stringify(l))}},S.state._get=function(e,t,n,r){if(!e){r(null);return}var i=S.state._buildStateNames(e.name);if(e.readFromUrlParams){var a=new URLSearchParams(window.location.search);if(a.has(i.paramScale)&&a.has(i.paramX)&&a.has(i.paramY)&&a.has(i.paramExp)&&a.has(i.paramMin)&&a.has(i.paramAdjustify)){var o={},s=parseFloat(a.get(i.paramScale)),c=parseFloat(a.get(i.paramX)),l=parseFloat(a.get(i.paramY)),u=[];u[0]=c,u[1]=l,u[2]=t/s,u[3]=n/s,o.vb=u,o.scale=s,o.x=c,o.y=l,o.roots=null,a.has(i.paramRoots)&&(o.roots=a.get(i.paramRoots).split(`*`)),o.exp=a.get(i.paramExp).split(`*`),o.min=a.get(i.paramMin).split(`*`);var d=a.get(i.paramAdjustify).split(`*`);o.adjustify={x:parseFloat(d[0]),y:parseFloat(d[1])},r(o);return}else if(!e.readFromIndexedDB&&!e.readFromLocalStorage){r(null);return}}if(e.readFromLocalStorage){var o=S.localStorage.getItem(e.name);if(o!=null){o=JSON.parse(o);var u=[];u[0]=o.x,u[1]=o.y,u[2]=t/o.scale,u[3]=n/o.scale,o.vb=u,r(o);return}else if(!e.readFromIndexedDB){r(null);return}}e.readFromIndexedDB&&S.idb.read(e.name,function(i,a){if(i==0)console.error(`Cannot read from - `+e.name),r(null);else if(i==null)r(null);else{var o=[];o[0]=a.x,o[1]=a.y,o[2]=t/a.scale,o[3]=n/a.scale,a.vb=o,r(a)}})},S.state.clear=function(e){if(!e)return!1;try{localStorage.removeItem(e);var t=S.state._buildStateNames(e),n=new URLSearchParams(window.location.search);n.has(t.paramScale)&&n.delete(t.paramScale),n.has(t.paramX)&&n.delete(t.paramX),n.has(t.paramY)&&n.delete(t.paramY),n.has(t.paramExp)&&n.delete(t.paramExp),n.has(t.paramRoots)&&n.delete(t.paramRoots),n.has(t.paramMin)&&n.delete(t.paramMin),n.has(t.paramAdjustify)&&n.delete(t.paramAdjustify),window.history.replaceState(null,null,`?`+n),S.idb.delete(e,function(t){t==0&&console.error(`Cannot delete row - `+e)})}catch{}},S._magnify={},S.prototype.magnify=function(e,t,n,r,i){r||=this.config.anim;var a=this.getNode(e),o=this.getNodeElement(e);if(!(!a&&!o)){var s=S._magnify[e];s&&(s.timer!=null&&clearInterval(s.timer),s.timerBack!=null&&clearInterval(s.timerBack),o.setAttribute(`transform`,`matrix(`+s.transformStart.toString()+`)`),S._magnify[e]=null),n&&(o=o.cloneNode(!0),this.getSvg().appendChild(o));var c=S._getTransform(o),l=JSON.parse(JSON.stringify(c));l[0]=t,l[3]=t;var u=a.w+a.w*(t-1),d=a.h+a.h*(t-1);l[4]+=(a.w-u)/2,l[5]+=(a.h-d)/2;var f=S.animate(o,{transform:c},{transform:l},r.duration,r.func);S._magnify[e]={timer:f,transformStart:c,nodeElement:o,front:n},i&&i(o)}},S.prototype.magnifyBack=function(e,t,n){t||=this.config.anim;var r=S._magnify[e];if(r){r.timer!=null&&clearInterval(r.timer),r.timerBack!=null&&clearInterval(r.timerBack);var i=S._getTransform(r.nodeElement);r.timerBack=S.animate(r.nodeElement,{transform:i},{transform:r.transformStart},t.duration,t.func,function(e){var t=e[0].getAttribute(S.attr.node_id);S._magnify[t]&&S._magnify[t].front&&(e[0].parentNode.removeChild(e[0]),S._magnify[t]=null),n&&n(e[0])})}},S===void 0&&(S={}),S.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),S.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;S.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),S.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(S.attr.node_id)){r=n.getAttribute(S.attr.node_id);break}n=n.parentNode}if(n){var i=r?this.getNode(r):null,a={node:i,data:r?this.get(r):null,event:t};if(S.events.publish(`key-down`,[this,a])!==!1&&i){if(t.code==`KeyF`)this.searchUI.find(``);else if(t.code==`ArrowRight`||i.isAssistant&&t.code==`ArrowDown`||i.isPartner&&t.code==`ArrowDown`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s++,s<o.childrenIds.length){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowLeft`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s--,s>=0){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowUp`){var o=this.getNode(i.pid);if(o){var c=o.id;if(i.isAssistant||o.hasAssistants||i.isPartner||o.hasPartners){var s=o.childrenIds.indexOf(i.id);s--,s>=0&&(c=o.childrenIds[s])}this._keyNavigationActiveNodeId=c,this.center(c)}}else if(t.code==`ArrowDown`)i.childrenIds.length&&(this._keyNavigationActiveNodeId=i.childrenIds[0],this.center(i.childrenIds[0]));else if(t.code==`Space`){var l=n.getAttribute(S.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},S.events.on(`redraw`,function(e,t){e.config.keyNavigation&&S._keyNavigation(e)}),S.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),S._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(S.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!S.isNEU(e._keyNavigationActiveNodeId)){var n=e.getNodeElement(e._keyNavigationActiveNodeId);if(!(!n||!n.children.length)){var r=n.children[0];r.setAttribute(`tabindex`,2);var a={text:``,id:e._keyNavigationActiveNodeId};if(S.events.publish(`screen-reader-text`,[e,a]),!S.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}S.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},S.elements={},S.elements.textbox=function(e,t,n,r){var i=S.elements._vidrf(e,t,r);if(i.doNotRender)return{html:``};var a=``;return t.btn&&(a=`<a href="#" data-input-btn="" class="boc-link boc-link-boc-button">${t.btn}</a>`),{html:`<div class="boc-form-field" style="min-width: ${n};">
|
|
622
|
-
<div class="boc-input" data-boc-input="" ${i.disabledAttribute} ${i.vlidators}>
|
|
623
|
-
<label for="${i.id}">${S._escapeGreaterLessSign(i.label)}</label>
|
|
624
|
-
<input ${i.readOnlyAttribute} data-binding="${S._escapeDoubleQuotes(i.binding)}" maxlength="256" id="${i.id}" name="${i.id}" type="text" value="${S._escapeDoubleQuotes(i.value)}" autocomplete="off">
|
|
625
|
-
${a}
|
|
626
|
-
</div>
|
|
627
|
-
</div>`,id:i.id,value:i.value}},S.elements.checkbox=function(e,t,n,r){var i=S.elements._vidrf(e,t,r);if(i.doNotRender)return{html:``};var a=i.value?`checked`:``,o=r?`onclick="return false;"`:``;return{html:`<div class="boc-form-field" style="min-width: ${n};" >
|
|
628
|
-
<label class="boc-checkbox" data-boc-input="" ${i.disabledAttribute}>
|
|
629
|
-
<input ${a} ${o} data-binding="${S._escapeDoubleQuotes(i.binding)}" type="checkbox"><span class="boc-checkbox-checkmark" type="checkbox"></span>${S._escapeGreaterLessSign(i.label)}
|
|
630
|
-
</label>
|
|
631
|
-
</div>`,id:i.id,value:a}},S.elements.select=function(e,t,n,r){if(r)return S.elements.textbox(e,t,n,r);var i=S.elements._vidrf(e,t,r);return i.doNotRender?{html:``}:{html:`<div class="boc-form-field" style="min-width: ${n};">
|
|
632
|
-
<div class="boc-input" data-boc-input="" ${i.disabledAttribute} ${i.vlidators}>
|
|
633
|
-
<label for="${i.id}">${S._escapeGreaterLessSign(i.label)}</label>
|
|
634
|
-
<select data-binding="${S._escapeDoubleQuotes(i.binding)}" ${i.readOnlyAttribute} id="${i.id}" name="${i.id}">
|
|
635
|
-
${(function(){for(var e=``,t=0;t<i.options.length;t++){var n=i.options[t],r=n.value==i.value?`selected`:``;e+=`<option ${r} value="${S._escapeDoubleQuotes(n.value)}">${S._escapeGreaterLessSign(n.text)}</option>`}return e})()}
|
|
636
|
-
</select>
|
|
637
|
-
</div>
|
|
638
|
-
</div>`,id:i.id,value:i.value}},S.elements.multiSelect=function(e,t,n,r){if(r)return S.elements.textbox(e,t,n,r);var i=S.elements._vidrf(e,t,r);return i.doNotRender?{html:``}:{html:`<div class="boc-form-field" style="min-width: ${n};">
|
|
639
|
-
<div class="boc-input" data-boc-input="" ${i.disabledAttribute} ${i.vlidators}>
|
|
640
|
-
<label for="${i.id}">${S._escapeGreaterLessSign(i.label)}</label>
|
|
641
|
-
<select class="multiple" data-binding="${S._escapeDoubleQuotes(i.binding)}" ${i.readOnlyAttribute} id="${i.id}" name="${i.id}" multiple>
|
|
642
|
-
${(function(){for(var e=``,t=0;t<i.options.length;t++){var n=i.options[t],r=i.value.includes(n.value)?`selected`:``;e+=`<option ${r} value="${S._escapeDoubleQuotes(n.value)}">${S._escapeGreaterLessSign(n.text)}</option>`}return e})()}
|
|
643
|
-
</select>
|
|
644
|
-
</div>
|
|
645
|
-
</div>`,id:i.id,value:i.value}},S.elements.date=function(e,t,n,r){var i=S.elements._vidrf(e,t,r);return i.doNotRender?{html:``}:{html:`<div class="boc-form-field" style="min-width: ${n};">
|
|
646
|
-
<div class="boc-input" data-boc-input="" ${i.disabledAttribute} ${i.vlidators}>
|
|
647
|
-
<label for="${i.id}" class="hasval">${S._escapeGreaterLessSign(i.label)}</label>
|
|
648
|
-
<input data-binding="${S._escapeDoubleQuotes(i.binding)}" ${i.readOnlyAttribute} maxlength="256" id="${i.id}" name="${i.id}" type="date" value="${S._escapeDoubleQuotes(i.value)}" autocomplete="off">
|
|
649
|
-
</div>
|
|
650
|
-
</div>`,id:i.id,value:i.value}},S.elements._vidrf=function(e,t,n){var r={};if(t.binding||=``,t.label||=``,t.type==`select`&&!Array.isArray(t.options)?r.options=[]:r.options=t.options,r.value=e&&!S.isNEU(e[t.binding])?e[t.binding]:``,n&&r.options){for(var i=0;i<r.options.length;i++)if(r.options[i].value==r.value){r.value=r.options[i].text;break}}if(r.id=S.elements.generateId(),r.disabledAttribute=n?`data-boc-input-disabled`:``,r.readOnlyAttribute=n?`readonly`:``,r.id=r.id,n&&S.isNEU(r.value)&&(r.doNotRender=!0),n&&t.binding==`photo`&&(r.id=null,r.doNotRender=!0),r.binding=t.binding,r.label=t.label,r.vlidators=``,t.vlidators)for(var a in t.vlidators)r.vlidators+=`data-v-${a}="${t.vlidators[a]}" `;return r},S.elements.ids=[],S.elements.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(!S.elements.ids.has(e))return S.elements.ids.push(e),e}},S.input={},S.input._timeout=null,S.input.initWithTimeout=function(){S.input._timeout&&(clearTimeout(S.input._timeout),S.input._timeout=null),S.input._timeout=setTimeout(S.input.init,200)},S.input.init=function(e){for(var t=e?e.querySelectorAll(`[data-boc-input]`):document.querySelectorAll(`[data-boc-input]`),n=0;n<t.length;n++){var r=t[n],i=null;r.type&&r.type.toLowerCase()==`hidden`&&(i=r),i||=r.querySelector(`input`),i||=r.querySelector(`select`);var a=r.querySelector(`label`);a&&(i.value||i.type==`select-one`&&i.selectedOptions&&i.selectedOptions.length&&i.selectedOptions[0].value==``&&i.selectedOptions[0].innerHTML)&&a.classList.add(`hasval`),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`focus`,function(){this.classList.remove(`boc-validation-error`);var e=this.parentNode.querySelector(`label`);e.classList.add(`focused`);var t=e.querySelector(`.boc-validation-error-message`);t&&t.parentNode.removeChild(t)}),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`blur`,function(){S.input.blurHandler(this)})}},S.input.blurHandler=function(e){var t=e.parentNode.querySelector(`label`);t.classList.remove(`focused`),e.value||e.type==`date`?t.classList.add(`hasval`):t.classList.remove(`hasval`)},S.input.validate=function(e){var t=null;e.type&&e.type.toLowerCase()==`hidden`&&(t=e),t||=e.querySelector(`input`),t||=e.querySelector(`select`);var n=e.querySelector(`label`);if(t.classList.remove(`boc-validation-error`),n){var r=n.querySelector(`.boc-validation-error-message`);r&&r.parentNode.removeChild(r)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var i=e.getAttribute(`data-v-required`),a=e.getAttribute(`data-v-password`),o=e.getAttribute(`data-v-email`),s=e.getAttribute(`data-v-emails`);return i&&t.value==``?(n.innerHTML+=`<span class="boc-validation-error-message"> `+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!S.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!S.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!S.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},S.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];S.input.validate(i)||(n=!1)}return n?S.input.getData(e):!1},S.input.getData=function(e){for(var t=e.querySelectorAll(`[data-binding]`),n={},r=0;r<t.length;r++){var i=t[r],a=i.getAttribute(`data-binding`);if(i.type.toLowerCase()==`checkbox`)n[a]=i.checked;else if(i.selectedOptions&&i.hasAttribute(`multiple`)){var o=i.selectedOptions;n[a]=Array.from(o).map(({value:e})=>e)}else n[a]=i.value}return n},S.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},S.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!S.input.isValidEmail(r))return!1}return!0},S.input.isValidEmail=function(e){return e&&=e.trim(),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},S.ui.css=function(){return`<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle;font-size:20px}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-selected .boc-selectable{stroke:#ffca28;stroke-width:3px}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>`},S===void 0&&(S={}),S.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},S.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},S.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},S.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},S.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},S.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},S.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},S.prototype.onDrop=function(e){return this.on(`drop`,function(t,n,r,i,a){var o={dragId:n,dropId:r,dragNodeElement:i,event:a};return e.call(t,o)})},S.prototype.onDrag=function(e){return this.on(`drag`,function(t,n,r,i){var a={dragId:n,event:r,nodeIds:i};return e.call(t,a)})},S.prototype.onExpandCollapseButtonClick=S.prototype.onExpandCollpaseButtonClick=function(e){return this.on(`expcollclick`,function(t,n,r,i){var a={collapsing:n,id:r,ids:i};return e.call(t,a)})},S.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},S.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},S.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},S.prototype.onNodeMouseover=function(e){return this.on(`node-mouseover`,function(t,n){return e.call(t,n)})},S.prototype.onNodeMouseleave=function(e){return this.on(`node-mouseleave`,function(t,n){return e.call(t,n)})},S.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},S.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},S.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},S.filterUI=function(){},S.filterUI.prototype.init=function(e){this.instance=e,this.element=null,this.filterBy=null,this._event_id=S._guid()},S.filterUI.prototype.addFilterTag=function(e){if(!this.instance.config.filterBy||S.isNEU(e))return!1;if(this.filterBy===null&&typeof this.instance.config.filterBy==`object`&&!Array.isArray(this.instance.config.filterBy)&&(this.filterBy=JSON.parse(JSON.stringify(this.instance.config.filterBy))),this.filterBy!=null)for(var t in this.filterBy){var n=e[t];if(n!=null){var r=this.filterBy[t];if(r!=null){var i=r[n];if(i!=null&&i.checked===!1)return!0}}}return!1},S.filterUI.prototype.show=function(e){var t=this.element.querySelector(`[data-filter-field="`+e+`"]`);t&&t.click()},S.filterUI.prototype.hide=function(){var e=this.instance.element.querySelector(`[data-filter-close]`);e&&e.click()},S.filterUI.prototype._removeFilter=function(e){var t=this.instance.get(e);for(var n in this.filterBy){var r=this.filterBy[n];for(var i in t){var a=t[i];r[a]&&(r[a].checked=!0)}}this.update()},S.filterUI.prototype.update=function(){if(this.instance.config.filterBy){var e={};if(this.instance.config.filterBy==`all`)for(var t=S.manager.getAllFields(this.instance.config),n=0;n<t.length;n++){var r=t[n];r!=`tags`&&r!=`id`&&r!=`pid`&&r!=`ppid`&&r!=`stpid`&&(e[r]={})}else if(Array.isArray(this.instance.config.filterBy))for(var n=0;n<this.instance.config.filterBy.length;n++)e[this.instance.config.filterBy[n]]={};else if(typeof this.instance.config.filterBy==`object`)for(var i in this.instance.config.filterBy)e[i]={};for(var a in e)for(var o=e[a],n=0;n<this.instance.config.nodes.length;n++){var s=this.instance.config.nodes[n][a];s!=null&&(o[s]||(o[s]={checked:!0,text:s}))}if(this.filterBy!=null){for(var c in e)if(this.filterBy[c])for(var l in e[c])this.filterBy[c][l]&&(e[c][l]=this.filterBy[c][l])}if(S.FILTER_ALPHABETICALLY){var u=Object.keys(e).sort(),d=e;e={};for(var n=0;n<u.length;n++){var f=u[n];e[f]=d[f]}for(var a in e){var o=e[a];e[a]={};for(var u=Object.keys(o).sort(),n=0;n<u.length;n++){var f=u[n];e[a][f]=o[f]}}}this.filterBy=e;var p=this;this.element=this.instance.element.querySelector(`[data-filter]`),this.element&&this.element.parentNode.removeChild(this.element),this.element=document.createElement(`div`),this.element.setAttribute(`data-filter`,``),this.element.style.position=`absolute`,this.element.setAttribute(`class`,`boc-filter`),this.instance.config.undoRedoStorageName?(this.element.style.top=0,this.element.style.left=`50%`,this.element.style.transform=`translate(-50%)`):(this.element.style.top=this.instance.config.padding+`px`,this.element.style.left=this.instance.config.padding+`px`);var m=``;for(var c in this.filterBy){var h={name:c,html:`<div data-filter-field="${c}">${c}</div>`};S.events.publish(`add-filter`,[p,h]),m+=h.html}this.element.innerHTML=`<div>${m}</div>`,this.element.addEventListener(`click`,function(e){if(e.target.hasAttribute(`data-filter-close`)||e.target.hasAttribute(`data-filter-field`)){for(var t=e.target.getAttribute(`data-filter-field`),n=p.instance.element.querySelectorAll(`[data-filter-menu]`),r=0;r<n.length;r++)n[r].style.display=`none`;for(var i=p.instance.element.querySelectorAll(`.filter-field-selected`),r=0;r<i.length;r++)i[r].classList.remove(`filter-field-selected`);var a=p.instance.element.querySelector(`[data-filter-close]`);if(a&&a.parentNode.removeChild(a),e.target.hasAttribute(`data-filter-close`)||!e.target.hasAttribute(`data-filter-field`))return;var o=p.instance.element.querySelector(`[data-filter-menu="${t}"]`);if(!o){var s=`checked`;for(var c in p.filterBy[t])p.filterBy[t][c].checked||(s=``);var l={name:t,text:S.filterUI.all,value:t,checked:!0,html:`<div>
|
|
651
|
-
<input data-all type="checkbox" id="${t}" name="${t}" ${s}>
|
|
652
|
-
<label for="${t}">${S.filterUI.all}</label>
|
|
653
|
-
</div>`};S.events.publish(`add-item`,[p,l]);var u=l.html;for(var d in p.filterBy[t]){var f=p.filterBy[t][d],m=f.text;m??=d,l={name:t,text:m,value:d,checked:f.checked,html:`<div>
|
|
654
|
-
<input type="checkbox" id="${t}_${d}" name="${d}" ${f.checked?`checked`:``}>
|
|
655
|
-
<label for="${t}_${d}">${m}</label>
|
|
656
|
-
</div>`},S.events.publish(`add-item`,[p,l]),u+=l.html}o=document.createElement(`div`);var h=S.filterUI.textFilterBy;o.innerHTML=`<fieldset>
|
|
657
|
-
<legend>${h} ${t}:</legend>
|
|
658
|
-
${u}
|
|
659
|
-
</fieldset>`,o.setAttribute(`data-filter-menu`,t),o.classList.add(`boc-filter-menu`),e.target.parentNode.parentNode.appendChild(o);for(var g=o.querySelectorAll(`input`),r=0;r<g.length;r++)g[r].addEventListener(`change`,function(e){for(var t=e.target;t&&!t.hasAttribute(`data-filter-menu`);)t=t.parentNode;if(t){var n=t.getAttribute(`data-filter-menu`);if(e.target.hasAttribute(`data-all`)){for(var r=e.target.parentNode.parentNode.querySelectorAll(`input`),i=0;i<r.length;i++)if(r[i]!=e.target)for(var a in r[i].checked=e.target.checked,p.filterBy[n])p.filterBy[n][a].checked=e.target.checked}else if(p.filterBy[n][this.name]!=null&&(p.filterBy[n][this.name].checked=this.checked),this.checked){for(var o=p.instance.config.nodes,s=0;s<o.length;s++)if(o[s][n]==this.name){for(var c=o[s];c;)if(S.isNEU(c.stpid))c=S.isNEU(c.pid)?null:p.instance._get(c.pid);else if(c=p.instance._get(c.stpid),c[n]){var l=e.target.parentNode.parentNode.querySelector(`[name="`+c[n]+`"]`);l?(l.checked=this.checked,p.filterBy[n][c[n]].checked=this.checked):console.error(`Cannot find element with selector: [name="`+c[n]+`"]`)}}}var u=!0;for(var d in p.filterBy[n])p.filterBy[n][d].checked||(u=!1);var f=t.querySelector(`[data-all]`);f.checked=u,p.instance.draw()}})}o.style.display=`block`,e.target.classList.add(`filter-field-selected`),a=document.createElement(`div`),a.classList.add(`close`),a.innerHTML=`x`,a.setAttribute(`data-filter-close`,``),e.target.parentNode.appendChild(a),S.events.publish(`show-items`,[p,{name:t}])}}),this.instance.element.appendChild(this.element),S.events.publish(`update`,[this,{}])}},S.filterUI.prototype.on=function(e,t){return S.events.on(e,t,this._event_id),this},S.filterUI.textFilterBy=`Filter by`,S.filterUI.all=`[All]`,S===void 0&&(S={}),S.remote===void 0&&(S.remote={}),S.LIMIT_NODES=!0,S.remote._fromResDTO=function(e,t,n,r,i){var a=t[e.id];e.x=a.p[0],e.y=a.p[1],e.w=a.p[2],e.h=a.p[3],a.ln!=null&&(e.leftNeighbor=i[a.ln]),a.rn!=null&&(e.rightNeighbor=i[a.rn]),a.tl&&(e.treeList={},e.treeList.pinnedIds=a.tl[0],e.treeList.scrollTop=a.tl[1],e.treeList.scrollTopMax=a.tl[2],e.treeList.maxHeight=a.tl[3]);for(var o=0;o<e.stChildren.length;o++)S.remote._fromResDTO(e.stChildren[o],t,n,r,i);for(var o=0;o<e.children.length;o++)S.remote._fromResDTO(e.children[o],t,n,r,i)},S.remote._toReqDTO=function(e,t){var n={p:[e.id,e.parent==null?null:e.parent.id,e.stParent==null?null:e.stParent.id,e.w,e.h]};e.children.length>0&&(n.c=S.remote._convertToIdArray(e.children)),e.stChildren.length>0&&(n.v=S.remote._convertToIdArray(e.stChildren)),e.layout!=null&&e.layout!=0&&(n.l=e.layout),e.isAssistant&&(n.a=1),e.isSplit&&(n.s=e.isSplit),e.isMirror&&(n.im=e.isMirror),e.padding&&(n.q=e.padding),e.lcn&&(n.k=e.lcn),e.stContainerNodes&&(n.b=S.remote._convertToIdArray(e.stContainerNodes)),e.isPartner&&(n.i=e.isPartner),e.hasPartners&&(n.g=e.hasPartners),e.partnerSeparation&&(n.e=e.partnerSeparation),e.treeList&&(n.z=[e.treeList.scrollTop,e.treeList.maxHeight]),t.push(n);for(var r=0;r<e.stChildren.length;r++)S.remote._toReqDTO(e.stChildren[r],t);for(var r=0;r<e.children.length;r++)S.remote._toReqDTO(e.children[r],t)},S.remote._toReqLayoutConfigsDTO=function(e){var t={};for(var n in e){var r=e[n];t[n]||(t[n]=[]),t[n][0]=r.orientation,t[n][1]=r.levelSeparation,t[n][2]=r.mixedHierarchyNodesSeparation,t[n][3]=r.subtreeSeparation,t[n][4]=r.siblingSeparation,t[n][5]=r.layout,t[n][6]=r.columns,t[n][7]=r.collapse,t[n][8]=r.assistantSeparation,t[n][9]=r.partnerNodeSeparation}return t},S.remote._convertToIdArray=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].id);return t},S.remote._setPositions=function(e,t,n,r){for(var i=[],a=[],o=S.remote._toReqLayoutConfigsDTO(t),s=0;s<e.length;s++)a.push(e[s].id),S.remote._toReqDTO(e[s],i);var c={n:i,c:o,r:a,v:`9.00.19`};if(S.LIMIT_NODES||(c.l=!0),S.remote._fromReqDTO!=null)S.remote._fromReqDTO(c.n,c.r,c.c,function(t){for(var i=0;i<e.length;i++)S.remote._fromResDTO(e[i],t,0,e,r);n()});else{c=JSON.stringify(c);var l=S.localStorage.getItem(c);l&&=JSON.parse(l),l&&!l.limit?S.remote._proceed(e,l,r,n):S.remote._findRegion(function(t){S._ajax(t,`post`,c,`json`,function(t){t.error?n(2):(S.remote._proceed(e,t,r,n),S.localStorage.setItem(c,JSON.stringify(t)))})})}},S.remote._proceed=function(e,t,n,r){if(typeof t==`string`&&(t=JSON.parse(t)),t.limit&&t.limit==1)r(t.limit);else{for(var i=0;i<e.length;i++)S.remote._fromResDTO(e[i],t,0,e,n);r()}},S.remote._findRegion=function(e){var t=S.localStorage.getItem(S.FUNC_URL_NAME);if(t)e(t);else{for(var n=[`defunc2`,`cusfunc2`,`bsfunc2`,`acfunc2`,`kcfunc2`,`safunc2`,`wifunc2`],r=[],i=0;i<n.length;i++)r.push(new XMLHttpRequest);for(var i=0;i<n.length;i++)(function(){var t=`https://`+n[i]+S.SERVER_PREFIX,a=r[i];a.onreadystatechange=function(){if(this.readyState==4&&this.status==200){S.localStorage.setItem(S.FUNC_URL_NAME,t),e(t);for(var n=0;n<r.length;n++)r[n].abort()}},a.open(`GET`,t,!0),a.send()})()}};var C=S,w=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),T=s((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case D:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=A.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){P||(P=!0,console.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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var f=n.children;if(f!==void 0)if(o)if(M(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,ee[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
660
|
-
let props = %s;
|
|
661
|
-
<%s {...props} />
|
|
662
|
-
React keys must be passed directly to JSX without using spread:
|
|
663
|
-
let props = %s;
|
|
664
|
-
<%s key={someKey} {...props} />`,o,f,m,f),ee[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=f(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var P,F={},I=h.react_stack_bottom_frame.bind(h,o)(),L=N(i(o)),ee={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):I,r?N(i(e)):L)},e.jsxs=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):I,r?N(i(e)):L)}})()})),E=s(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=w():t.exports=T()}))(),D={camelToKebab:function(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()},kebabToCamel:function(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())},divToEmployees:function(e){let t=[],n=1;function r(e,i){let a=n++,o={id:a};i!==void 0&&(o.pid=i),Array.from(e.attributes).forEach(e=>{let t=e.name.replace(`data-`,``),n=D.kebabToCamel(t),r=e.value;n===`assistant`||n===`partner`?r===`true`&&(o.tags||=[],o.tags.push(n)):o[n]=r}),t.push(o),Array.from(e.children).forEach(e=>{r(e,a)})}return Array.from(e.children).forEach(e=>r(e)),t}},O=function({children:e,title:t,name:n,photo:r,assistant:i,partner:a,template:o,...s}){return(0,E.jsx)(`div`,{...Object.keys(s).reduce((e,t)=>{let n=D.camelToKebab(t);return e[`data-${n}`]=s[t],e},{}),"data-title":t,"data-name":n,"data-photo":r,"data-assistant":i,"data-partner":a,"data-template":o,children:e})},k=(0,x.forwardRef)((e,t)=>{let n=(0,x.useRef)(null),r=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(n.current&&!r.current){let i=D.divToEmployees(n.current),a=e?.data;i&&!a&&(a=i);let o={...e,nodes:a},s=new C(n.current,o);r.current=s,typeof t==`function`?t(s):t&&(t.current=s),e.onUpdateNode&&s.onUpdateNode(e.onUpdateNode),e.onUpdated&&s.onUpdated(e.onUpdated),e.onRemoveNode&&s.onRemoveNode(e.onRemoveNode),e.onAddNode&&s.onAddNode(e.onAddNode),e.onDrag&&s.onDrag(e.onDrag),e.onDrop&&s.onDrop(e.onDrop),e.onInit&&s.onInit(e.onInit),e.onRedraw&&s.onRedraw(e.onRedraw),e.onExpandCollapseButtonClick&&s.onExpandCollapseButtonClick(e.onExpandCollapseButtonClick),e.onExportStart&&s.onExportStart(e.onExportStart),e.onExportEnd&&s.onExportEnd(e.onExportEnd),e.onNodeClick&&s.onNodeClick(e.onNodeClick),e.onCanvasClick&&s.onCanvasClick(e.onCanvasClick),e.onAIToolCalls&&s.onAIToolCalls(e.onAIToolCalls),e.onNodeDoubleClick&&s.onNodeDoubleClick(e.onNodeDoubleClick)}},[]),(0,x.useEffect)(()=>{r.current&&e.data&&e.data.length>0&&r.current.load(e.data)},[e.data]),(0,E.jsx)(`div`,{ref:n,style:{width:`100%`,height:`100%`,...e?.style},children:e?.children})});e.Employee=O,e.OrgChartJS=C,e.OrgChartReact=k,e.Template=function({name:e,baseTemplateName:t,renderNode:n,renderPlus:r,renderMinus:i,renderNodeMenuButton:a,nodeWidth:o,nodeHeight:s,padding:c,treeListMaxHeight:l,editFormHeaderColor:u,rippleRadius:d,rippleColor:f}){if(!C.templates[e]){if(t||=`ana`,C.templates[e]=Object.assign({},C.templates[t]),o!=null&&C.templates[e].size){let t=[...C.templates[e].size];t[0]=o,C.templates[e].size=t}if(s!=null&&C.templates[e].size){let t=[...C.templates[e].size];t[1]=s,C.templates[e].size=t}c!=null&&(C.templates[e].padding=c),l!=null&&(C.templates[e].treeListMaxHeight=l),u!=null&&(C.templates[e].editFormHeaderColor=u),d!=null&&(C.templates[e].ripple||(C.templates[e].ripple={radius:0,color:`#ddd`}),C.templates[e].ripple.radius=d),f!=null&&(C.templates[e].ripple||(C.templates[e].ripple={radius:0,color:`#ddd`}),C.templates[e].ripple.color=f),n!=null&&(C.templates[e].node=function(e,t,r,i){return b.renderToStaticMarkup((0,E.jsx)(E.Fragment,{children:n(e,t,r,i)}))}),r!=null&&(C.templates[e].plus=function(e,t,n,i){return b.renderToStaticMarkup((0,E.jsx)(E.Fragment,{children:r(e,t,n,i)}))}),i!=null&&(C.templates[e].minus=function(e,t,n,r){return b.renderToStaticMarkup((0,E.jsx)(E.Fragment,{children:i(e,t,n,r)}))}),a!=null&&(C.templates[e].nodeMenuButton=function(e,t,n,r){return b.renderToStaticMarkup((0,E.jsx)(E.Fragment,{children:a(e,t,n,r)}))})}return null}});
|
|
1
|
+
(function(global, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom/server"), require("balkan-orgchart-js"), require("react/jsx-runtime")) : typeof define === "function" && define.amd ? define([
|
|
3
|
+
"exports",
|
|
4
|
+
"react",
|
|
5
|
+
"react-dom/server",
|
|
6
|
+
"balkan-orgchart-js",
|
|
7
|
+
"react/jsx-runtime"
|
|
8
|
+
], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.MyReactLib = {}, global.react, global.react_dom_server, global.balkan_orgchart_js, global.react_jsx_runtime));
|
|
9
|
+
})(this, function(exports, react, react_dom_server, balkan_orgchart_js, react_jsx_runtime) {
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
//#region \0rolldown/runtime.js
|
|
12
|
+
var __create = Object.create;
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
react = __toESM(react, 1);
|
|
34
|
+
react_dom_server = __toESM(react_dom_server, 1);
|
|
35
|
+
balkan_orgchart_js = __toESM(balkan_orgchart_js, 1);
|
|
36
|
+
//#region src/OrgChartReact.tsx
|
|
37
|
+
var util = {
|
|
38
|
+
camelToKebab: function(str) {
|
|
39
|
+
return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
40
|
+
},
|
|
41
|
+
kebabToCamel: function(str) {
|
|
42
|
+
return str.replace(/-([a-z0-9])/g, (_match, character) => {
|
|
43
|
+
return character.toUpperCase();
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
divToEmployees: function(div) {
|
|
47
|
+
const results = [];
|
|
48
|
+
let currentId = 1;
|
|
49
|
+
function traverse(element, pid) {
|
|
50
|
+
const id = currentId++;
|
|
51
|
+
const nodeData = { id };
|
|
52
|
+
if (pid !== void 0) nodeData.pid = pid;
|
|
53
|
+
Array.from(element.attributes).forEach((attr) => {
|
|
54
|
+
const key = attr.name.replace("data-", "");
|
|
55
|
+
const camelKey = util.kebabToCamel(key);
|
|
56
|
+
const value = attr.value;
|
|
57
|
+
if (camelKey === "assistant" || camelKey === "partner") {
|
|
58
|
+
if (value === "true") {
|
|
59
|
+
if (!nodeData.tags) nodeData.tags = [];
|
|
60
|
+
nodeData.tags.push(camelKey);
|
|
61
|
+
}
|
|
62
|
+
} else nodeData[camelKey] = value;
|
|
63
|
+
});
|
|
64
|
+
results.push(nodeData);
|
|
65
|
+
Array.from(element.children).forEach((child) => {
|
|
66
|
+
traverse(child, id);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
Array.from(div.children).forEach((root) => traverse(root));
|
|
70
|
+
return results;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var Employee = function({ children, title, name, photo, assistant, partner, template, ...rest }) {
|
|
74
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
75
|
+
...Object.keys(rest).reduce((acc, key) => {
|
|
76
|
+
const kebabKey = util.camelToKebab(key);
|
|
77
|
+
acc[`data-${kebabKey}`] = rest[key];
|
|
78
|
+
return acc;
|
|
79
|
+
}, {}),
|
|
80
|
+
"data-title": title,
|
|
81
|
+
"data-name": name,
|
|
82
|
+
"data-photo": photo,
|
|
83
|
+
"data-assistant": assistant,
|
|
84
|
+
"data-partner": partner,
|
|
85
|
+
"data-template": template,
|
|
86
|
+
children
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
var OrgChartReact = (0, react.forwardRef)((props, ref) => {
|
|
90
|
+
const containerRef = (0, react.useRef)(null);
|
|
91
|
+
const orgChartInstance = (0, react.useRef)(null);
|
|
92
|
+
(0, react.useEffect)(() => {
|
|
93
|
+
if (containerRef.current && !orgChartInstance.current) {
|
|
94
|
+
const employees = util.divToEmployees(containerRef.current);
|
|
95
|
+
let data = props?.data;
|
|
96
|
+
if (employees && !data) data = employees;
|
|
97
|
+
const options = {
|
|
98
|
+
...props,
|
|
99
|
+
nodes: data
|
|
100
|
+
};
|
|
101
|
+
const chart = new balkan_orgchart_js.default(containerRef.current, options);
|
|
102
|
+
orgChartInstance.current = chart;
|
|
103
|
+
if (typeof ref === "function") ref(chart);
|
|
104
|
+
else if (ref) ref.current = chart;
|
|
105
|
+
if (props.onUpdateNode) chart.onUpdateNode(props.onUpdateNode);
|
|
106
|
+
if (props.onUpdated) chart.onUpdated(props.onUpdated);
|
|
107
|
+
if (props.onRemoveNode) chart.onRemoveNode(props.onRemoveNode);
|
|
108
|
+
if (props.onAddNode) chart.onAddNode(props.onAddNode);
|
|
109
|
+
if (props.onDrag) chart.onDrag(props.onDrag);
|
|
110
|
+
if (props.onDrop) chart.onDrop(props.onDrop);
|
|
111
|
+
if (props.onInit) chart.onInit(props.onInit);
|
|
112
|
+
if (props.onRedraw) chart.onRedraw(props.onRedraw);
|
|
113
|
+
if (props.onExpandCollapseButtonClick) chart.onExpandCollapseButtonClick(props.onExpandCollapseButtonClick);
|
|
114
|
+
if (props.onExportStart) chart.onExportStart(props.onExportStart);
|
|
115
|
+
if (props.onExportEnd) chart.onExportEnd(props.onExportEnd);
|
|
116
|
+
if (props.onNodeClick) chart.onNodeClick(props.onNodeClick);
|
|
117
|
+
if (props.onCanvasClick) chart.onCanvasClick(props.onCanvasClick);
|
|
118
|
+
if (props.onAIToolCalls) chart.onAIToolCalls(props.onAIToolCalls);
|
|
119
|
+
if (props.onNodeDoubleClick) chart.onNodeDoubleClick(props.onNodeDoubleClick);
|
|
120
|
+
}
|
|
121
|
+
}, []);
|
|
122
|
+
(0, react.useEffect)(() => {
|
|
123
|
+
if (orgChartInstance.current && props.data && props.data.length > 0) orgChartInstance.current.load(props.data);
|
|
124
|
+
}, [props.data]);
|
|
125
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
126
|
+
ref: containerRef,
|
|
127
|
+
style: {
|
|
128
|
+
width: "100%",
|
|
129
|
+
height: "100%",
|
|
130
|
+
...props?.style
|
|
131
|
+
},
|
|
132
|
+
children: props?.children
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
var Template = function({ name, baseTemplateName, renderNode, renderPlus, renderMinus, renderNodeMenuButton, nodeWidth, nodeHeight, padding, treeListMaxHeight, editFormHeaderColor, rippleRadius, rippleColor }) {
|
|
136
|
+
if (!balkan_orgchart_js.default.templates[name]) {
|
|
137
|
+
if (!baseTemplateName) baseTemplateName = "ana";
|
|
138
|
+
balkan_orgchart_js.default.templates[name] = Object.assign({}, balkan_orgchart_js.default.templates[baseTemplateName]);
|
|
139
|
+
if (nodeWidth != void 0 && balkan_orgchart_js.default.templates[name].size) {
|
|
140
|
+
const size = [...balkan_orgchart_js.default.templates[name].size];
|
|
141
|
+
size[0] = nodeWidth;
|
|
142
|
+
balkan_orgchart_js.default.templates[name].size = size;
|
|
143
|
+
}
|
|
144
|
+
if (nodeHeight != void 0 && balkan_orgchart_js.default.templates[name].size) {
|
|
145
|
+
const size = [...balkan_orgchart_js.default.templates[name].size];
|
|
146
|
+
size[1] = nodeHeight;
|
|
147
|
+
balkan_orgchart_js.default.templates[name].size = size;
|
|
148
|
+
}
|
|
149
|
+
if (padding != void 0) balkan_orgchart_js.default.templates[name].padding = padding;
|
|
150
|
+
if (treeListMaxHeight != void 0) balkan_orgchart_js.default.templates[name].treeListMaxHeight = treeListMaxHeight;
|
|
151
|
+
if (editFormHeaderColor != void 0) balkan_orgchart_js.default.templates[name].editFormHeaderColor = editFormHeaderColor;
|
|
152
|
+
if (rippleRadius != void 0) {
|
|
153
|
+
if (!balkan_orgchart_js.default.templates[name].ripple) balkan_orgchart_js.default.templates[name].ripple = {
|
|
154
|
+
radius: 0,
|
|
155
|
+
color: "#ddd"
|
|
156
|
+
};
|
|
157
|
+
balkan_orgchart_js.default.templates[name].ripple.radius = rippleRadius;
|
|
158
|
+
}
|
|
159
|
+
if (rippleColor != void 0) {
|
|
160
|
+
if (!balkan_orgchart_js.default.templates[name].ripple) balkan_orgchart_js.default.templates[name].ripple = {
|
|
161
|
+
radius: 0,
|
|
162
|
+
color: "#ddd"
|
|
163
|
+
};
|
|
164
|
+
balkan_orgchart_js.default.templates[name].ripple.color = rippleColor;
|
|
165
|
+
}
|
|
166
|
+
if (renderNode != void 0) balkan_orgchart_js.default.templates[name].node = function(node, data, template, config) {
|
|
167
|
+
return react_dom_server.default.renderToStaticMarkup(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: renderNode(node, data, template, config) }));
|
|
168
|
+
};
|
|
169
|
+
if (renderPlus != void 0) balkan_orgchart_js.default.templates[name].plus = function(node, data, template, config) {
|
|
170
|
+
return react_dom_server.default.renderToStaticMarkup(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: renderPlus(node, data, template, config) }));
|
|
171
|
+
};
|
|
172
|
+
if (renderMinus != void 0) balkan_orgchart_js.default.templates[name].minus = function(node, data, template, config) {
|
|
173
|
+
return react_dom_server.default.renderToStaticMarkup(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: renderMinus(node, data, template, config) }));
|
|
174
|
+
};
|
|
175
|
+
if (renderNodeMenuButton != void 0) balkan_orgchart_js.default.templates[name].nodeMenuButton = function(node, data, template, config) {
|
|
176
|
+
return react_dom_server.default.renderToStaticMarkup(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: renderNodeMenuButton(node, data, template, config) }));
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return null;
|
|
180
|
+
};
|
|
181
|
+
//#endregion
|
|
182
|
+
exports.Employee = Employee;
|
|
183
|
+
exports.OrgChartJS = balkan_orgchart_js.default;
|
|
184
|
+
exports.OrgChartReact = OrgChartReact;
|
|
185
|
+
exports.Template = Template;
|
|
186
|
+
});
|