reneco-hierarchized-picker 0.4.2 → 0.4.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-ffa47dcf.system.js"],(function(e){"use strict";var t,r,n,i;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.g}],execute:function(){function o(e,t){var r=document.documentElement.style;r.setProperty("--hpicker-theme-palette-primary-main",(e===null||e===void 0?void 0:e.palette.primary.main)||t.palette.primary.main);r.setProperty("--hpicker-theme-palette-primary-light",(e===null||e===void 0?void 0:e.palette.primary.light)||t.palette.primary.light);r.setProperty("--hpicker-theme-palette-primary-contrastText",(e===null||e===void 0?void 0:e.palette.primary.contrastText)||t.palette.primary.contrastText);r.setProperty("--hpicker-theme-palette-background-default",(e===null||e===void 0?void 0:e.palette.background.default)||t.palette.background.default);r.setProperty("--hpicker-theme-palette-background-light",(e===null||e===void 0?void 0:e.palette.background.light)||t.palette.background.light);r.setProperty("--hpicker-theme-palette-background-dark",(e===null||e===void 0?void 0:e.palette.background.dark)||t.palette.background.dark);r.setProperty("--hpicker-theme-typography-body-font-size",(e===null||e===void 0?void 0:e.typography.body.fontSize)||t.typography.body.fontSize);r.setProperty("--hpicker-theme-typography-body-font-weight",(e===null||e===void 0?void 0:e.typography.body.fontWeight)||t.typography.body.fontWeight);r.setProperty("--hpicker-theme-palette-font-color",(e===null||e===void 0?void 0:e.palette.text.primary)||t.palette.text.primary)}var a=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function u(e,t,r){return r={path:t,exports:{},require:function(e,t){return l()}},e(r,r.exports),r.exports}function l(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var c=u((function(e,t){
2
- /*! For license information please see vanilla-context-menu.js.LICENSE.txt */
3
- !function(t,r){e.exports=r()}(a,(function(){return function(){var e={550:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(81),i=r.n(n),o=r(645),a=r.n(o)()(i());a.push([e.id,'.PJsSKU2kCXjeIsVSdFoI{font-family:"Open Sans",sans-serif;position:fixed;z-index:10000;width:150px;transform:scale(0);transition-property:transform;transition-timing-function:ease-in-out}.novl09c_yWe4MBqKpWyN{background:#1b1a1a}.novl09c_yWe4MBqKpWyN hr{background-color:#555}.novl09c_yWe4MBqKpWyN>*:not(hr){color:#eee}.novl09c_yWe4MBqKpWyN>*:not(hr):hover{background:#555}.F5LtzLqHVYZuI1H_SR9q{background:#fff}.F5LtzLqHVYZuI1H_SR9q hr{background-color:#e4e4e4}.F5LtzLqHVYZuI1H_SR9q>*:not(hr){color:#262626}.F5LtzLqHVYZuI1H_SR9q>*:not(hr):hover{background:#e4e4e4}.PJsSKU2kCXjeIsVSdFoI.ibAEWR3dINCWDsWq1G2P{transform:scale(1)}.PJsSKU2kCXjeIsVSdFoI hr{margin:2px 0;height:1px;border:0}.PJsSKU2kCXjeIsVSdFoI>*:not(hr){padding:8px 10px;font-size:15px;cursor:pointer;display:flex;align-items:center;gap:5px}.PJsSKU2kCXjeIsVSdFoI .gfl6YXq1tuGnYKHXwDHP{display:flex;align-items:center;justify-content:center}.PJsSKU2kCXjeIsVSdFoI .gfl6YXq1tuGnYKHXwDHP>*{margin:0;padding:0;font-size:16px}.PJsSKU2kCXjeIsVSdFoI .QkRci5U3hKz5RODdOkco{line-height:21px;font-size:26px;position:relative;margin-left:auto}',""]),a.locals={"context-menu":"PJsSKU2kCXjeIsVSdFoI","context-menu--black-theme":"novl09c_yWe4MBqKpWyN","context-menu--white-theme":"F5LtzLqHVYZuI1H_SR9q",visible:"ibAEWR3dINCWDsWq1G2P","menu-item-icon":"gfl6YXq1tuGnYKHXwDHP","nested-menu-arrow":"QkRci5U3hKz5RODdOkco"};var s=a},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},81:function(e){e.exports=function(e){return e[1]}},856:function(e){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,i,o){return n=r()?Reflect.construct:function(e,r,n){var i=[null];i.push.apply(i,r);var o=new(Function.bind.apply(e,i));return n&&t(o,n.prototype),o},n.apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,u=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,f=Object.freeze,p=Object.seal,h=Object.create,d="undefined"!=typeof Reflect&&Reflect,v=d.apply,g=d.construct;v||(v=function(e,t,r){return e.apply(t,r)}),f||(f=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return n(e,i(t))});var m,y=I(Array.prototype.forEach),b=I(Array.prototype.pop),_=I(Array.prototype.push),w=I(String.prototype.toLowerCase),k=I(String.prototype.match),x=I(String.prototype.replace),O=I(String.prototype.indexOf),T=I(String.prototype.trim),D=I(RegExp.prototype.test),j=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return g(m,t)});function I(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return v(e,t,n)}}function M(e,t,r){r=r||w,s&&s(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var o=r(i);o!==i&&(u(t)||(t[n]=o),i=o)}e[i]=!0}return e}function A(e){var t,r=h(null);for(t in e)v(a,e,[t])&&(r[t]=e[t]);return r}function E(e,t){for(;null!==e;){var r=c(e,t);if(r){if(r.get)return I(r.get);if("function"==typeof r.value)return I(r.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var C=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=f(["#text"]),P=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),H=p(/^data-[\-\w.\u00B7-\uFFFF]/),J=p(/^aria-[\-\w]+$/),G=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=p(/^(?:\w+script|data):/i),K=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=p(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Z=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),n=function(e){return t(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var o=r.document,a=r.document,s=r.DocumentFragment,u=r.HTMLTemplateElement,l=r.Node,c=r.Element,p=r.NodeFilter,h=r.NamedNodeMap,d=void 0===h?r.NamedNodeMap||r.MozNamedAttrMap:h,v=r.HTMLFormElement,g=r.DOMParser,m=r.trustedTypes,I=c.prototype,Q=E(I,"cloneNode"),ee=E(I,"nextSibling"),te=E(I,"childNodes"),re=E(I,"parentNode");if("function"==typeof u){var ne=a.createElement("template");ne.content&&ne.content.ownerDocument&&(a=ne.content.ownerDocument)}var ie=Z(m,o),oe=ie?ie.createHTML(""):"",ae=a,se=ae.implementation,ue=ae.createNodeIterator,le=ae.createDocumentFragment,ce=ae.getElementsByTagName,fe=o.importNode,pe={};try{pe=A(a).documentMode?a.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof re&&se&&void 0!==se.createHTMLDocument&&9!==pe;var de,ve,ge=q,me=W,ye=H,be=J,_e=$,we=K,ke=G,xe=null,Oe=M({},[].concat(i(C),i(S),i(N),i(L),i(F))),Te=null,De=M({},[].concat(i(P),i(V),i(B),i(U))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,Me=null,Ae=!0,Ee=!0,Ce=!1,Se=!1,Ne=!1,ze=!1,Le=!1,Re=!1,Fe=!1,Pe=!1,Ve=!0,Be=!1,Ue="user-content-",qe=!0,We=!1,He={},Je=null,Ge=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Ke=M({},["audio","video","img","source","image","track"]),Ye=null,Xe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,rt=!1,nt=["application/xhtml+xml","text/html"],it="text/html",ot=null,at=a.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ut=function(t){ot&&ot===t||(t&&"object"===e(t)||(t={}),t=A(t),de=de=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?it:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===de?function(e){return e}:w,xe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,ve):Oe,Te="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,ve):De,Ye="ADD_URI_SAFE_ATTR"in t?M(A(Xe),t.ADD_URI_SAFE_ATTR,ve):Xe,$e="ADD_DATA_URI_TAGS"in t?M(A(Ke),t.ADD_DATA_URI_TAGS,ve):Ke,Je="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,ve):Ge,Ie="FORBID_TAGS"in t?M({},t.FORBID_TAGS,ve):{},Me="FORBID_ATTR"in t?M({},t.FORBID_ATTR,ve):{},He="USE_PROFILES"in t&&t.USE_PROFILES,Ae=!1!==t.ALLOW_ARIA_ATTR,Ee=!1!==t.ALLOW_DATA_ATTR,Ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,qe=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(Ee=!1),Fe&&(Re=!0),He&&(xe=M({},i(F)),Te=[],!0===He.html&&(M(xe,C),M(Te,P)),!0===He.svg&&(M(xe,S),M(Te,V),M(Te,U)),!0===He.svgFilters&&(M(xe,N),M(Te,V),M(Te,U)),!0===He.mathMl&&(M(xe,L),M(Te,B),M(Te,U))),t.ADD_TAGS&&(xe===Oe&&(xe=A(xe)),M(xe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Te===De&&(Te=A(Te)),M(Te,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&M(Ye,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Je===Ge&&(Je=A(Je)),M(Je,t.FORBID_CONTENTS,ve)),qe&&(xe["#text"]=!0),Ne&&M(xe,["html","head","body"]),xe.table&&(M(xe,["tbody"]),delete Ie.tbody),f&&f(t),ot=t)},lt=M({},["mi","mo","mn","ms","mtext"]),ct=M({},["foreignobject","desc","title","annotation-xml"]),ft=M({},["title","style","font","a","script"]),pt=M({},S);M(pt,N),M(pt,z);var ht=M({},L);M(ht,R);var dt=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var r=w(e.tagName),n=w(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===et?"svg"===r:t.namespaceURI===Ze?"svg"===r&&("annotation-xml"===n||lt[n]):Boolean(pt[r]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===r:t.namespaceURI===Qe?"math"===r&&ct[n]:Boolean(ht[r]):e.namespaceURI===et&&!(t.namespaceURI===Qe&&!ct[n])&&!(t.namespaceURI===Ze&&!lt[n])&&!ht[r]&&(ft[r]||!pt[r])},vt=function(e){_(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},gt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Re||Fe)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,r;if(Le)e="<remove></remove>"+e;else{var n=k(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===de&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ie?ie.createHTML(e):e;if(tt===et)try{t=(new g).parseFromString(i,de)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=rt?"":i}catch(e){}}var o=t.body||t.documentElement;return e&&r&&o.insertBefore(a.createTextNode(r),o.childNodes[0]||null),tt===et?ce.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:o},yt=function(e){return ue.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof v&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},_t=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,r){he[e]&&y(he[e],(function(e){e.call(n,t,r,ot)}))},kt=function(e){var t;if(wt("beforeSanitizeElements",e,null),bt(e))return vt(e),!0;if(D(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var r=ve(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:r,allowedTags:xe}),e.hasChildNodes()&&!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstElementChild))&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===r&&D(/<template/i,e.innerHTML))return vt(e),!0;if(!xe[r]||Ie[r]){if(!Ie[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(qe&&!Je[r]){var i=re(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(Q(o[a],!0),ee(e))}return vt(e),!0}return e instanceof c&&!dt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r||!D(/<\/no(script|embed)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,t=x(t,ge," "),t=x(t,me," "),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(vt(e),!0)},xt=function(e,t,r){if(Ve&&("id"===t||"name"===t)&&(r in a||r in at))return!1;if(Ee&&!Me[t]&&D(ye,t));else if(Ae&&D(be,t));else if(!Te[t]||Me[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&D(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,r)||je.tagNameCheck instanceof Function&&je.tagNameCheck(r))))return!1}else if(Ye[t]);else if(D(ke,x(r,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(r,"data:")||!$e[e])if(Ce&&!D(_e,x(r,we,"")));else if(r)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},Tt=function(t){var r,i,o,a;wt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(a=s.length;a--;){var l=r=s[a],c=l.name,f=l.namespaceURI;if(i="value"===c?r.value:T(r.value),o=ve(c),u.attrName=o,u.attrValue=i,u.keepAttr=!0,u.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,u),i=u.attrValue,!u.forceKeepAttr&&(gt(c,t),u.keepAttr))if(D(/\/>/i,i))gt(c,t);else{Se&&(i=x(i,ge," "),i=x(i,me," "));var p=ve(t.nodeName);if(xt(p,o,i)){if(!Be||"id"!==o&&"name"!==o||(gt(c,t),i=Ue+i),ie&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(f);else switch(m.getAttributeType(p,o)){case"TrustedHTML":i=ie.createHTML(i);break;case"TrustedScriptURL":i=ie.createScriptURL(i)}try{f?t.setAttributeNS(f,c,i):t.setAttribute(c,i),b(n.removed)}catch(e){}}}}wt("afterSanitizeAttributes",t,null)}},Dt=function e(t){var r,n=yt(t);for(wt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)wt("uponSanitizeShadowNode",r,null),kt(r)||(r.content instanceof s&&e(r.content),Tt(r));wt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var i,a,u,c,f,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_t(t)){if("function"!=typeof t.toString)throw j("toString is not a function");if("string"!=typeof(t=t.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(_t(t))return r.toStaticHTML(t.outerHTML)}return t}if(ze||ut(p),n.removed=[],"string"==typeof t&&(We=!1),We){if(t.nodeName){var h=ve(t.nodeName);if(!xe[h]||Ie[h])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(a=(i=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Re&&!Se&&!Ne&&-1===t.indexOf("<"))return ie&&Pe?ie.createHTML(t):t;if(!(i=mt(t)))return Re?null:Pe?oe:""}i&&Le&&vt(i.firstChild);for(var d=yt(We?t:i);u=d.nextNode();)3===u.nodeType&&u===c||kt(u)||(u.content instanceof s&&Dt(u.content),Tt(u),c=u);if(c=null,We)return t;if(Re){if(Fe)for(f=le.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Te.shadowroot&&(f=fe.call(o,f,!0)),f}var v=Ne?i.outerHTML:i.innerHTML;return Ne&&xe["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&D(Y,i.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+v),Se&&(v=x(v,ge," "),v=x(v,me," ")),ie&&Pe?ie.createHTML(v):v},n.setConfig=function(e){ut(e),ze=!0},n.clearConfig=function(){ot=null,ze=!1},n.isValidAttribute=function(e,t,r){ot||ut({});var n=ve(e),i=ve(t);return xt(n,i,r)},n.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],_(he[e],t))},n.removeHook=function(e){if(he[e])return b(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}()}()},138:function(e,t,r){var n=r(55);e.exports=function(e){var t,r="",i=e||{};return function(e,i){r=r+"<div"+n.attr("class",n.classes(["".concat(i["context-menu"])],[!0]),!1,!0)+"> ",function(){var o=e;if("number"==typeof o.length)for(var a=0,s=o.length;a<s;a++)"hr"===(u=o[a])?r+="<hr>":(r=r+"<div"+n.attr("id","context-menu-item-".concat(u._id),!0,!0)+"> ",(u.iconClass||u.iconHTML)&&(r=r+"<span"+n.attr("class",n.classes(["".concat(i["menu-item-icon"])],[!0]),!1,!0)+">",u.iconClass&&(r=r+"<i"+n.attr("class",n.classes(["".concat(u.iconClass)],[!0]),!1,!0)+"></i>"),u.iconHTML&&(r+=null==(t=u.iconHTML)?"":t),r+="</span>"),r=r+"<span>"+n.escape(null==(t=u.label)?"":t)+"</span>",u.nestedMenu&&(r=r+"<span"+n.attr("class",n.classes(["".concat(i["nested-menu-arrow"])],[!0]),!1,!0)+">&#x203A;</span>"),r+="</div>");else for(var a in s=0,o){var u;s++,"hr"===(u=o[a])?r+="<hr>":(r=r+"<div"+n.attr("id","context-menu-item-".concat(u._id),!0,!0)+"> ",(u.iconClass||u.iconHTML)&&(r=r+"<span"+n.attr("class",n.classes(["".concat(i["menu-item-icon"])],[!0]),!1,!0)+">",u.iconClass&&(r=r+"<i"+n.attr("class",n.classes(["".concat(u.iconClass)],[!0]),!1,!0)+"></i>"),u.iconHTML&&(r+=null==(t=u.iconHTML)?"":t),r+="</span>"),r=r+"<span>"+n.escape(null==(t=u.label)?"":t)+"</span>",u.nestedMenu&&(r=r+"<span"+n.attr("class",n.classes(["".concat(i["nested-menu-arrow"])],[!0]),!1,!0)+">&#x203A;</span>"),r+="</div>")}}.call(this),r+="</div>"}.call(this,"menuItems"in i?i.menuItems:"undefined"!=typeof menuItems?menuItems:void 0,"style"in i?i.style:"undefined"!=typeof style?style:void 0),r}},55:function(e,t,r){var n=Object.prototype.hasOwnProperty;function i(e,t){return Array.isArray(e)?function(e,t){for(var r,n="",o="",a=Array.isArray(t),s=0;s<e.length;s++)(r=i(e[s]))&&(a&&t[s]&&(r=u(r)),n=n+o+r,o=" ");return n}(e,t):e&&"object"==typeof e?function(e){var t="",r="";for(var i in e)i&&e[i]&&n.call(e,i)&&(t=t+r+i,r=" ");return t}(e):e||""}function o(e){if(!e)return"";if("object"==typeof e){var t="";for(var r in e)n.call(e,r)&&(t=t+r+":"+e[r]+";");return t}return e+""}function a(e,t,r,n){if(!1===t||null==t||!t&&("class"===e||"style"===e))return"";if(!0===t)return" "+(n?e:e+'="'+e+'"');var i=typeof t;return"object"!==i&&"function"!==i||"function"!=typeof t.toJSON||(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),r||-1===t.indexOf('"'))?(r&&(t=u(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"&#39;")+"'"}t.merge=function e(t,r){if(1===arguments.length){for(var n=t[0],i=1;i<t.length;i++)n=e(n,t[i]);return n}for(var a in r)if("class"===a){var s=t[a]||[];t[a]=(Array.isArray(s)?s:[s]).concat(r[a]||[])}else if("style"===a){s=(s=o(t[a]))&&";"!==s[s.length-1]?s+";":s;var u=o(r[a]);u=u&&";"!==u[u.length-1]?u+";":u,t[a]=s+u}else t[a]=r[a];return t},t.classes=i,t.style=o,t.attr=a,t.attrs=function(e,t){var r="";for(var s in e)if(n.call(e,s)){var u=e[s];if("class"===s){r=a(s,u=i(u),!1,t)+r;continue}"style"===s&&(u=o(u)),r+=a(s,u,!1,t)}return r};var s=/["&<>]/;function u(e){var t=""+e,r=s.exec(t);if(!r)return e;var n,i,o,a="";for(n=r.index,i=0;n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}i!==n&&(a+=t.substring(i,n)),i=n+1,a+=o}return i!==n?a+t.substring(i,n):a}t.escape=u,t.rethrow=function e(t,n,i,o){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&n||o))throw t.message+=" on line "+i,t;var a,s,u,l;try{o=o||r(835).readFileSync(n,{encoding:"utf8"}),a=3,s=o.split("\n"),u=Math.max(i-a,0),l=Math.min(s.length,i+a)}catch(r){return t.message+=" - could not read from "+n+" ("+r.message+")",void e(t,null,i)}a=s.slice(u,l).map((function(e,t){var r=t+u+1;return(r==i?" > ":" ")+r+"| "+e})).join("\n"),t.path=n;try{t.message=(n||"Pug")+":"+i+"\n"+a+"\n\n"+t.message}catch(e){}throw t}},379:function(e){var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],l=n.base?u[0]+n.base:u[0],c=o[l]||0,f="".concat(l," ").concat(c);o[l]=c+1;var p=r(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=i(h,n);n.byIndex=s,t.splice(s,0,{identifier:f,updater:d,references:1})}a.push(f)}return a}function i(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=r(o[a]);t[s].references--}for(var u=n(e,i),l=0;l<o.length;l++){var c=r(o[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=u}}},569:function(e){var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:function(e,t,r){e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:function(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},835:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.nc=void 0;var n={};return function(){r.d(n,{default:function(){return V}});var e=r(856),t=r(379),i=r.n(t),o=r(795),a=r.n(o),s=r(569),u=r.n(s),l=r(565),c=r.n(l),f=r(216),p=r.n(f),h=r(589),d=r.n(h),v=r(550),g={};g.styleTagTransform=d(),g.setAttributes=c(),g.insert=u().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),i()(v.Z,g);var m=v.Z&&v.Z.locals?v.Z.locals:void 0;var y=r(138),b=r.n(y);function _(e,t,r){var n=e.x,i=e.y,o=r.getBoundingClientRect(),a=o.left,s=o.top,u=i-s,l=n-a+t.clientWidth>r.clientWidth,c=u+t.clientHeight>r.clientHeight;var f=n,p=i;return l&&(f=a+r.clientWidth-t.clientWidth),c&&(p=s+r.clientHeight-t.clientHeight),{normalizedX:f,normalizedY:p}}var w,k,x,O,T,D,j,I,M,A,E,C,S,N,z,L,R=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};var F=function(){function t(){var t=this;w.add(this),k.set(this,{style:m,menuItems:[]}),x.set(this,{transformOrigin:["top","left"]}),O.set(this,{theme:"black",transitionDuration:200}),this.options={},T.set(this,(function(t){return t.map((function(t){return"object"==typeof t&&t.hasOwnProperty("iconHTML")&&(t.iconHTML=(0,e.sanitize)(t.iconHTML)),t}))})),this.applyStyleOnContextMenu=function(e,r,n){e.style.transitionDuration="".concat(t.options.transitionDuration,"ms");var i=Array.from(t.options.transformOrigin);r&&(i[1]="right"),n&&(i[0]="bottom"),e.style.transformOrigin=i.join(" "),t.options.customThemeClass?e.classList.add(t.options.customThemeClass):e.classList.add(m["context-menu--".concat(t.options.theme,"-theme")]),t.options.customClass&&e.classList.add(t.options.customClass)},this.buildContextMenu=function(){var e=document.createElement("div");return e.innerHTML=b()(R(t,k,"f")),e.children[0]}}t.prototype.updateOptions=function(e){var t=R(this,T,"f").call(this,e.menuItems),r=R(this,w,"m",D).call(this,t);R(this,w,"m",j).call(this,r),Object.assign(this.options,R(this,O,"f")),Object.assign(this.options,Object.assign(Object.assign({},e),{menuItems:r})),Object.assign(this.options,R(this,x,"f")),R(this,k,"f").menuItems=this.options.menuItems};return t}();k=new WeakMap,x=new WeakMap,O=new WeakMap,T=new WeakMap,w=new WeakSet,D=function(e){var t=this;return e.filter((function(e){return"object"==typeof e&&e.hasOwnProperty("nestedMenu")})).map((function(e){var r=e.callback;e.callback=function(n){r&&r(n),new P(Object.assign(Object.assign({},t.options),{menuItems:e.nestedMenu}),n,document.getElementById("context-menu-item-".concat(e._id)))}})),e},j=function e(t){var r=this;t.filter((function(e){return"object"==typeof e})).forEach((function(t,n){t._id=Date.now()+n,t.nestedMenu&&R(r,w,"m",e).call(r,t.nestedMenu)}))};var P=function(e){__extends(t,e);function t(t,r,n){var i=this;i=e.call(this)||this,I.add(i),M.set(i,(function(){var e;null===(e=document.querySelector(".".concat(m["context-menu"],".nested-context-menu")))||void 0===e||e.remove()})),A.set(i,(function(e){i.options.menuItems.forEach((function(t,r){"hr"!==t&&t.callback&&(e.children[r].onclick=function(){var e,r,n;t.callback(i.initialContextMenuEvent),null!==(r=null!==(e=t.preventCloseOnClick)&&void 0!==e?e:i.options.preventCloseOnClick)&&void 0!==r&&r||(R(i,M,"f").call(i),null===(n=document.querySelector(".".concat(m["context-menu"])))||void 0===n||n.remove())})}))})),i.updateOptions(t),R(i,I,"m",E).call(i,r,n);return i}return t}(F);M=new WeakMap,A=new WeakMap,I=new WeakSet,E=function(e,t){this.initialContextMenuEvent=e,R(this,M,"f").call(this);var r=this.buildContextMenu();r.classList.add("nested-context-menu"),document.querySelector("body").append(r),this.applyStyleOnContextMenu(r,!1,!1);var n=t.getBoundingClientRect(),i=n.x,o=n.y;var a=_({x:i,y:o},r,this.options.scope),s=a.normalizedX,u=a.normalizedY;s+=r.clientWidth,r.style.top="".concat(u,"px"),r.style.left="".concat(s,"px"),r.oncontextmenu=function(e){return e.preventDefault()},R(this,A,"f").call(this,r),setTimeout((function(){r.classList.add(m.visible)}))};var V=function(e){__extends(t,e);function t(t){var r=this;r=e.call(this)||this,C.set(r,(function(){var e;R(r,S,"f").call(r),null===(e=document.querySelector(".".concat(m["context-menu"])))||void 0===e||e.remove()})),S.set(r,(function(){document.querySelectorAll(".".concat(m["context-menu"],".nested-context-menu")).forEach((function(e){return e.remove()}))})),N.set(r,(function(e){r.options.menuItems.forEach((function(t,n){"hr"!==t&&t.callback&&(e.children[n].onclick=function(){var e,n;t.callback(r.initialContextMenuEvent),null!==(n=null!==(e=t.preventCloseOnClick)&&void 0!==e?e:r.options.preventCloseOnClick)&&void 0!==n&&n||R(r,C,"f").call(r)})}))})),z.set(r,(function(e){e.preventDefault(),e.stopPropagation(),r.initialContextMenuEvent=e,R(r,C,"f").call(r);var t=r.buildContextMenu();document.querySelector("body").append(t);var n=e.clientX,i=e.clientY,o=_({x:n,y:i},t,r.options.scope),a=o.normalizedX,s=o.normalizedY;t.style.top="".concat(s,"px"),t.style.left="".concat(a,"px"),r.applyStyleOnContextMenu(t,n!==a,i!==s),t.oncontextmenu=function(e){return e.preventDefault()},R(r,N,"f").call(r,t),setTimeout((function(){t.classList.add(m.visible)}))})),L.set(r,(function(e){e.target.closest(".".concat(m["context-menu"]))||R(r,C,"f").call(r)})),r.updateOptions(t),r.options.scope.oncontextmenu=R(r,z,"f"),document.addEventListener("click",R(r,L,"f"));return r}t.prototype.off=function(){document.removeEventListener("click",R(this,L,"f")),this.options.scope.oncontextmenu=null};return t}(F);C=new WeakMap,S=new WeakMap,N=new WeakMap,z=new WeakMap,L=new WeakMap}(),n.default}()}))}));var f=s(c);var p=null;var h=null;var d=(new Date).getTime();var v=(new Date).getTime();var g=300;function m(e,t,r){if(r===void 0){r=true}if(!r)return;p=e;e.classList.add("dragging");t.stopPropagation()}function y(e,t,r){if(r===void 0){r=true}if(!r)return;e.classList.remove("dragging");t.stopPropagation();x(e.parentElement)}function b(e,t,r){if(r===void 0){r=true}if(!r)return;var n=(new Date).getTime();if(n-d<50&&e.dataset.nodeId!==h){return}d=n;if(e.dataset.nodeId===h){if(n-v<g){return}v=n}else{h=e.dataset.nodeId}x(e);if(e===p){e.classList.remove("dragover");return}var i=k(e,t);e.classList.add("dragover-".concat(i));e.classList.add("dragover");t.stopPropagation();t.preventDefault()}function _(e,t,r){if(r===void 0){r=true}if(!r)return;x(e);e.classList.remove("dragover");t.stopPropagation()}function w(e,t,r,n){if(r===void 0){r=true}if(!r)return;x(e);e.classList.remove("dragover");t.stopPropagation();if(p){var i=k(e,t);n(p,e,i)}}function k(e,t){var r=e.offsetHeight;var n=r/4;var i=r-n;var o=t.offsetY;return o<=n?"before":o>=i?"after":"over"}function x(e){if(!e)return;var t=Array.from(e.classList).filter((function(e){return e.startsWith("dragover-")}));t.forEach((function(t){return e.classList.remove(t)}))}function O(e){return JSON.parse(JSON.stringify(e))}function T(e){var t={};return e.reduce((function(e,r){if(!t[r]){t[r]=true;e.push(r)}return e}),[])}function D(e){if(e&&e.firstChild){while(e.firstChild){e.removeChild(e.firstChild)}}}function j(e,t){requestAnimationFrame((function(){t.enter();requestAnimationFrame((function(){t.active();setTimeout((function(){t.leave()}),e)}))}))}function I(e,t){var r={selectMode:"checkbox",values:[],disables:[],beforeLoad:null,loaded:null,url:null,method:"GET",closeDepth:null};this.treeNodes=[];this.nodesById={};this.leafNodesById={};this.liElementsById={};this.willUpdateNodesById={};this.container=e;this.options=Object.assign(r,t);Object.defineProperties(this,{values:{get:function(){return this.getValues()},set:function(e){return this.setValues(T(e))}},disables:{get:function(){return this.getDisables()},set:function(e){return this.setDisables(T(e))}},selectedNodes:{get:function(){var e=[];var t=this.nodesById;for(var r in t){if(t.hasOwnProperty(r)&&(t[r].status===1||t[r].status===2)){var n=Object.assign({},t[r]);delete n.parent;delete n.children;e.push(n)}}return e}},disabledNodes:{get:function(){var e=[];var t=this.nodesById;for(var r in t){if(t.hasOwnProperty(r)&&t[r].disabled){var n=Object.assign({},t[r]);delete n.parent;e.push(n)}}return e}}});this.init(this.options.data)}I.prototype.init=function(e){var t=I.parseTreeData(e),r=t.treeNodes,n=t.nodesById,i=t.leafNodesById,o=t.defaultValues,a=t.defaultDisables;this.treeNodes=r;this.nodesById=n;this.leafNodesById=i;this.render(this.treeNodes);var s=this.options,u=s.values,l=s.disables,c=s.loaded;if(u&&u.length)o=u;o.length&&this.setValues(o);if(l&&l.length)a=l;a.length&&this.setDisables(a);c&&c.call(this)};I.prototype.render=function(e){var t=I.createRootEle();t.appendChild(this.buildTree(e,0));this.bindEvent(t);var r=null;try{r=document.querySelector(this.container)}catch(e){r=this.container}if(r){D(r);r.appendChild(t)}};I.prototype.buildTree=function(e,t){var r=this;var n=this.createUlEle();if(e&&e.length){e.forEach((function(e){var i=r.createLiEle(e,t===r.options.closeDepth-1);r.liElementsById[e.id]=i;var o=null;if(e.children&&e.children.length){o=r.buildTree(e.children,t+1)}o&&i.appendChild(o);n.appendChild(i)}))}return n};I.prototype.bindEvent=function(e){var t=this;var r;if(!this.options.parentApi.isDisabled){var n=this.options.parentApi.theOptions.contextMenu;if((r=n===null||n===void 0?void 0:n.items)===null||r===void 0?void 0:r.length){new f(Object.assign(Object.assign({},n),{scope:e,menuItems:n.items.map((function(e){return typeof e==="string"?e:Object.assign(Object.assign({},e),{callback:function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,i;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.options.parentApi.getValue()];case 1:t=o.sent();n=Object.assign({},this.options.parentApi.loadedTreeJs.nodesById[t.nodeid]);i=Object.assign(Object.assign({},n),{hasChildren:n.children.length>0});delete i.children;this.options.parentApi.onItemContextMenuItemClick(Object.assign(Object.assign({},r),{target:i,contextMenuItem:e}));return[2]}}))}))}})}))}))}}e.addEventListener("mousedown",(function(e){if(e.button!=0&&e.button!=2)return;var r=e.target;if(r.nodeName==="SPAN"&&(r.classList.contains("treejs-checkbox")||r.classList.contains("treejs-label"))){t.onItemClick(r.parentNode.nodeId)}else if(r.nodeName==="LI"&&r.classList.contains("treejs-node")){t.onItemClick(r.nodeId)}else if(r.nodeName==="SPAN"&&r.classList.contains("treejs-switcher")){t.onSwitcherClick(r)}var n=e.target.parentNode.querySelectorAll(".treejs-switcher").length>0&&e.target.parentNode.querySelectorAll("ul").length==0;var i=Array.prototype.slice.call(e.target.parentNode.querySelectorAll("ul > li > span.treejs-label")).filter((function(t){return t.parentNode.parentNode.parentNode===e.target.parentNode}));var o=[];o=i.filter((function(e){return e.textContent==="undefined"}));if(r.nodeName==="SPAN"&&r.classList.contains("treejs-switcher")&&(o.length>0||n)){if(o.length>0){e.target.parentNode.querySelector("ul").innerHTML=""}if(t.options.parentApi.theOptions.source=="webservice"){if(t.options.parentApi.theOptions.origin=="classification"){var a=t.options.parentApi.getContextualApiParams(Object.assign(Object.assign({},t.options.parentApi.theOptions.options),{startNode:r.parentNode.nodeId}));var s=t.options.parentApi.getContextualApiURL();t.options.rawDataManager.getFromClassification(s,a,document.querySelector("#hierarchized-picker-"+t.options.parentApi.componentID+" .loader")).then((function(e){t.options.completeCurrentTreeWithTree(t,e,t.options.parentApi.theOptions)}))}else{t.options.rawDataManager.getFromSource(t.options.parentApi.theOptions.url,{StartNodeID:r.parentNode.nodeId,lng:t.options.parentApi.theOptions.options.lng,IsDeprecated:t.options.parentApi.theOptions.options.IsDeprecated},document.querySelector("#hierarchized-picker-"+t.options.parentApi.componentID+" .loader")).then((function(e){t.options.completeCurrentTreeWithTree(t,e,t.options.parentApi.theOptions)}))}}t.onSwitcherClick(r)}}),false)};I.prototype.onItemClick=function(e){if(this.options.parentApi.isDisabled&&this.options.parentApi.optionsManager.getOptions().mode!="tree")return;if(!this.options.parentApi.theOptions.multiple)this.emptyNodesCheckStatus();this.options.parentApi.setNodeAsSelected(e,this,true)};I.prototype.unCheckElement=function(e){this.setValue(e);this.updateLiElements()};I.prototype.setValue=function(e){var t=this.nodesById[e];if(!t)return;var r=M(t);var n=t.status;var i=null;if(r){i=n===1?2:1}else{i=n===1||n===2?0:2}t.status=i;this.markWillUpdateNode(t);this.walkUp(t,"status");this.walkDown(t,"status")};function M(e){if(e.children&&e.children.length){var t=e.children.reduce((function(e,t){if(!isNaN(t.status))return e+t.status;return e}),0);return t}}I.prototype.getValues=function(){var e=[];for(var t in this.leafNodesById){if(this.leafNodesById.hasOwnProperty(t)){if(this.leafNodesById[t].status===1||this.leafNodesById[t].status===2){e.push(t)}}}return e};I.prototype.setValues=function(e){var t=this;this.emptyNodesCheckStatus();e.forEach((function(e){t.setValue(e)}));this.updateLiElements();var r=this.options.onChange;r&&r.call(this)};I.prototype.setDisable=function(e){var t=this.nodesById[e];if(!t)return;var r=t.disabled;if(!r){t.disabled=true;this.markWillUpdateNode(t);this.walkUp(t,"disabled");this.walkDown(t,"disabled")}};I.prototype.getDisables=function(){var e=[];for(var t in this.leafNodesById){if(this.leafNodesById.hasOwnProperty(t)){if(this.leafNodesById[t].disabled){e.push(t)}}}return e};I.prototype.setDisables=function(e){var t=this;this.emptyNodesDisable();e.forEach((function(e){t.setDisable(e)}));this.updateLiElements()};I.prototype.emptyNodesCheckStatus=function(){this.willUpdateNodesById=this.getSelectedNodesById();Object.values(this.willUpdateNodesById).forEach((function(e){if(!e.disabled)e.status=0}))};I.prototype.emptyNodesDisable=function(){this.willUpdateNodesById=this.getDisabledNodesById();Object.values(this.willUpdateNodesById).forEach((function(e){e.disabled=false}))};I.prototype.getSelectedNodesById=function(){return Object.entries(this.nodesById).reduce((function(e,t){var r=t[0],n=t[1];if(n.status===1||n.status===2){e[r]=n}return e}),{})};I.prototype.getDisabledNodesById=function(){return Object.entries(this.nodesById).reduce((function(e,t){var r=t[0],n=t[1];if(n.disabled){e[r]=n}return e}),{})};I.prototype.updateLiElements=function(){var e=this;Object.values(this.willUpdateNodesById).forEach((function(t){e.updateLiElement(t)}));this.willUpdateNodesById={}};I.prototype.markWillUpdateNode=function(e){this.willUpdateNodesById[e.id]=e};I.prototype.onSwitcherClick=function(e){var t=e.parentNode;var r=t.lastChild;var n=r.scrollHeight;if(t.classList.contains("treejs-node__close")){j(150,{enter:function(){r.style.height=0;r.style.opacity=0},active:function(){r.style.height="".concat(n,"px");r.style.opacity=1},leave:function(){r.style.height="";r.style.opacity="";t.classList.remove("treejs-node__close")}})}else{j(150,{enter:function(){r.style.height="".concat(n,"px");r.style.opacity=1},active:function(){r.style.height=0;r.style.opacity=0},leave:function(){r.style.height="";r.style.opacity="";t.classList.add("treejs-node__close")}})}};I.prototype.walkUp=function(e,t){var r=e.parent;if(r){if(t==="status"){var n=null;var i=r.children.reduce((function(e,t){if(!isNaN(t.status))return e+t.status;return e}),0);if(i){n=i>=2&&r.status===2?2:1}else{n=0}if(r.status===n||r.status===2)return;r.status=n;if(r.parent){var o=r.parent.children.find((function(e){return e.id===r.id}));if(o){o.status=n}}}else{var a=r.children.reduce((function(e,t){return e&&t.disabled}),true);if(r.disabled===a)return;r.disabled=a}this.markWillUpdateNode(r);this.walkUp(r,t)}};I.prototype.walkDown=function(e,t){};I.prototype.updateLiElement=function(e){var t=this.liElementsById[e.id].classList;switch(e.status){case 0:t.remove("treejs-node__halfchecked","treejs-node__checked");break;case 1:t.remove("treejs-node__checked");t.add("treejs-node__halfchecked");break;case 2:t.remove("treejs-node__halfchecked");t.add("treejs-node__checked");break}switch(e.disabled){case true:if(!t.contains("treejs-node__disabled"))t.add("treejs-node__disabled");break;case false:if(t.contains("treejs-node__disabled"))t.remove("treejs-node__disabled");break}};I.parseTreeData=function(e){var t=O(e);var r={};var n={};var i=[];var o=[];var a=function(e,t){e.forEach((function(e){r[e.id]=e;if(e.checked)i.push(e.id);if(e.disabled)o.push(e.id);if(t)e.parent=t;if(e.children&&e.children.length){a(e.children,e)}else{n[e.id]=e}}))};a(Array.isArray(t)?t:[t],null);return{treeNodes:t,nodesById:r,leafNodesById:n,defaultValues:i,defaultDisables:o}};I.createRootEle=function(){var e=document.createElement("div");e.classList.add("treejs");return e};I.prototype.createUlEle=function(){var e=document.createElement("ul");e.classList.add("treejs-nodes");return e};I.prototype.createLiEle=function(e,t){var r=this;var n=document.createElement("li");n.classList.add("treejs-node");if(e.deprecated||e.Is_Deprecated){n.classList.add("treejs-node__deprecated")}if(e.isDesaturated){n.classList.add("treejs-node__desaturated")}if(e.searchMatch){n.classList.add("treejs-node__searchmatch")}if(t)n.classList.add("treejs-node__close");if(e.children&&e.children.length){var i=document.createElement("span");i.classList.add("treejs-switcher");n.appendChild(i)}else{n.classList.add("treejs-placeholder")}if(!this.options.parentApi||this.options.parentApi&&this.options.parentApi.theOptions.multiple){var o=document.createElement("span");o.classList.add("treejs-checkbox");n.appendChild(o)}var a=document.createElement("span");a.classList.add("treejs-label");var s=document.createTextNode(e.text);a.appendChild(s);n.appendChild(a);n.nodeId=e.id;if(this.options.parentApi.theOptions.dragAndDropEnabled){n.setAttribute("draggable","true");n.addEventListener("dragstart",(function(e){m(n,e,r.options.parentApi.activatedDragAndDrop)}));n.addEventListener("dragend",(function(e){y(n,e,r.options.parentApi.activatedDragAndDrop)}));n.addEventListener("dragover",(function(e){b(n,e,r.options.parentApi.activatedDragAndDrop)}));n.addEventListener("dragleave",(function(e){_(n,e,r.options.parentApi.activatedDragAndDrop)}));n.addEventListener("drop",(function(e){w(n,e,r.options.parentApi.activatedDragAndDrop,(function(e,t,n){r.options.parentApi.itemDropped.emit({dragEl:e,dropEl:t,position:n})}))}))}return n};var A=u((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`";var l="__lodash_hash_undefined__";var c=500;var f="__lodash_placeholder__";var p=1,h=2,d=4;var v=1,g=2;var m=1,y=2,b=4,_=8,w=16,k=32,x=64,O=128,T=256,D=512;var j=30,I="...";var M=800,A=16;var E=1,C=2,S=3;var N=1/0,z=9007199254740991,L=17976931348623157e292,R=0/0;var F=4294967295,P=F-1,V=F>>>1;var B=[["ary",O],["bind",m],["bindKey",y],["curry",_],["curryRight",w],["flip",D],["partial",k],["partialRight",x],["rearg",T]];var U="[object Arguments]",q="[object Array]",W="[object AsyncFunction]",H="[object Boolean]",J="[object Date]",G="[object DOMException]",$="[object Error]",K="[object Function]",Y="[object GeneratorFunction]",X="[object Map]",Z="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Promise]",re="[object Proxy]",ne="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]";var ce="[object ArrayBuffer]",fe="[object DataView]",pe="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",_e="[object Uint32Array]";var we=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Oe=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,De=RegExp(Oe.source),je=RegExp(Te.source);var Ie=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g;var Ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var Ne=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ne.source);var Le=/^\s+/;var Re=/\s/;var Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /;var Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ue=/[()=,{}\[\]\/\s]/;var qe=/\\(\\)?/g;var We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var He=/\w*$/;var Je=/^[-+]0x[0-9a-f]+$/i;var Ge=/^0b[01]+$/i;var $e=/^\[object .+?Constructor\]$/;var Ke=/^0o[0-7]+$/i;var Ye=/^(?:0|[1-9]\d*)$/;var Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Ze=/($^)/;var Qe=/['\n\r\u2028\u2029\\]/g;var et="\\ud800-\\udfff",tt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",it=tt+rt+nt,ot="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",ct=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ht=st+ut+lt+ct;var dt="['’]",vt="["+et+"]",gt="["+ht+"]",mt="["+it+"]",yt="\\d+",bt="["+ot+"]",_t="["+at+"]",wt="[^"+et+ht+yt+ot+at+ft+"]",kt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+mt+"|"+kt+")",Ot="[^"+et+"]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+ft+"]",It="\\u200d";var Mt="(?:"+_t+"|"+wt+")",At="(?:"+jt+"|"+wt+")",Et="(?:"+dt+"(?:d|ll|m|re|s|t|ve))?",Ct="(?:"+dt+"(?:D|LL|M|RE|S|T|VE))?",St=xt+"?",Nt="["+pt+"]?",zt="(?:"+It+"(?:"+[Ot,Tt,Dt].join("|")+")"+Nt+St+")*",Lt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ft=Nt+St+zt,Pt="(?:"+[bt,Tt,Dt].join("|")+")"+Ft,Vt="(?:"+[Ot+mt+"?",mt,Tt,Dt,vt].join("|")+")";var Bt=RegExp(dt,"g");var Ut=RegExp(mt,"g");var qt=RegExp(kt+"(?="+kt+")|"+Vt+Ft,"g");var Wt=RegExp([jt+"?"+_t+"+"+Et+"(?="+[gt,jt,"$"].join("|")+")",At+"+"+Ct+"(?="+[gt,jt+Mt,"$"].join("|")+")",jt+"?"+Mt+"+"+Et,jt+"+"+Ct,Rt,Lt,yt,Pt].join("|"),"g");var Ht=RegExp("["+It+et+it+pt+"]");var Jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var $t=-1;var Kt={};Kt[pe]=Kt[he]=Kt[de]=Kt[ve]=Kt[ge]=Kt[me]=Kt[ye]=Kt[be]=Kt[_e]=true;Kt[U]=Kt[q]=Kt[ce]=Kt[H]=Kt[fe]=Kt[J]=Kt[$]=Kt[K]=Kt[X]=Kt[Z]=Kt[ee]=Kt[ne]=Kt[ie]=Kt[oe]=Kt[ue]=false;var Yt={};Yt[U]=Yt[q]=Yt[ce]=Yt[fe]=Yt[H]=Yt[J]=Yt[pe]=Yt[he]=Yt[de]=Yt[ve]=Yt[ge]=Yt[X]=Yt[Z]=Yt[ee]=Yt[ne]=Yt[ie]=Yt[oe]=Yt[ae]=Yt[me]=Yt[ye]=Yt[be]=Yt[_e]=true;Yt[$]=Yt[K]=Yt[ue]=false;var Xt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var Zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var Qt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};var er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var tr=parseFloat,rr=parseInt;var nr=typeof a=="object"&&a&&a.Object===Object&&a;var ir=typeof self=="object"&&self&&self.Object===Object&&self;var or=nr||ir||Function("return this")();var ar=t&&!t.nodeType&&t;var sr=ar&&"object"=="object"&&e&&!e.nodeType&&e;var ur=sr&&sr.exports===ar;var lr=ur&&nr.process;var cr=function(){try{var e=sr&&sr.require&&sr.require("util").types;if(e){return e}return lr&&lr.binding&&lr.binding("util")}catch(e){}}();var fr=cr&&cr.isArrayBuffer,pr=cr&&cr.isDate,hr=cr&&cr.isMap,dr=cr&&cr.isRegExp,vr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function mr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function yr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function br(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function _r(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function wr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function kr(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function xr(e,t){var r=e==null?0:e.length;return!!r&&zr(e,t,0)>-1}function Or(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Tr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function Dr(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function jr(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function Ir(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Mr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Ar=Pr("length");function Er(e){return e.split("")}function Cr(e){return e.match(Be)||[]}function Sr(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function Nr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function zr(e,t,r){return t===t?pn(e,t,r):Nr(e,Rr,r)}function Lr(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Rr(e){return e!==e}function Fr(e,t){var r=e==null?0:e.length;return r?qr(e,t)/r:R}function Pr(e){return function(t){return t==null?r:t[e]}}function Vr(e){return function(t){return e==null?r:e[t]}}function Br(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Ur(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function qr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Wr(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function Hr(e,t){return Tr(t,(function(t){return[t,e[t]]}))}function Jr(e){return e?e.slice(0,gn(e)+1).replace(Le,""):e}function Gr(e){return function(t){return e(t)}}function $r(e,t){return Tr(t,(function(t){return e[t]}))}function Kr(e,t){return e.has(t)}function Yr(e,t){var r=-1,n=e.length;while(++r<n&&zr(t,e[r],0)>-1){}return r}function Xr(e,t){var r=e.length;while(r--&&zr(t,e[r],0)>-1){}return r}function Zr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Qr=Vr(Xt);var en=Vr(Zt);function tn(e){return"\\"+er[e]}function rn(e,t){return e==null?r:e[t]}function nn(e){return Ht.test(e)}function on(e){return Jt.test(e)}function an(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function sn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function un(e,t){return function(r){return e(t(r))}}function ln(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===f){e[r]=f;o[i++]=r}}return o}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function fn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function pn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function hn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function dn(e){return nn(e)?yn(e):Ar(e)}function vn(e){return nn(e)?bn(e):Er(e)}function gn(e){var t=e.length;while(t--&&Re.test(e.charAt(t))){}return t}var mn=Vr(Qt);function yn(e){var t=qt.lastIndex=0;while(qt.test(e)){++t}return t}function bn(e){return e.match(qt)||[]}function _n(e){return e.match(Wt)||[]}var wn=function e(t){t=t==null?or:kn.defaults(or.Object(),t,kn.pick(or,Gt));var a=t.Array,Re=t.Date,Be=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=a.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var pt=0;var ht=function(){var e=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var dt=ut.toString;var vt=ct.call(rt);var gt=or._;var mt=nt("^"+ct.call(ft).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var yt=ur?t.Buffer:r,bt=t.Symbol,_t=t.Uint8Array,wt=yt?yt.allocUnsafe:r,kt=un(rt.getPrototypeOf,rt),xt=rt.create,Ot=ut.propertyIsEnumerable,Tt=at.splice,Dt=bt?bt.isConcatSpreadable:r,jt=bt?bt.iterator:r,It=bt?bt.toStringTag:r;var Mt=function(){try{var e=Ga(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var At=t.clearTimeout!==or.clearTimeout&&t.clearTimeout,Et=Re&&Re.now!==or.Date.now&&Re.now,Ct=t.setTimeout!==or.setTimeout&&t.setTimeout;var St=tt.ceil,Nt=tt.floor,zt=rt.getOwnPropertySymbols,Lt=yt?yt.isBuffer:r,Rt=t.isFinite,Ft=at.join,Pt=un(rt.keys,rt),Vt=tt.max,qt=tt.min,Wt=Re.now,Ht=t.parseInt,Jt=tt.random,Xt=at.reverse;var Zt=Ga(t,"DataView"),Qt=Ga(t,"Map"),er=Ga(t,"Promise"),nr=Ga(t,"Set"),ir=Ga(t,"WeakMap"),ar=Ga(rt,"create");var sr=ir&&new ir;var lr={};var cr=Cs(Zt),Ar=Cs(Qt),Er=Cs(er),Vr=Cs(nr),pn=Cs(ir);var yn=bt?bt.prototype:r,bn=yn?yn.valueOf:r,wn=yn?yn.toString:r;function xn(e){if(Tc(e)&&!uc(e)&&!(e instanceof jn)){if(e instanceof Dn){return e}if(ft.call(e,"__wrapped__")){return Ns(e)}}return new Dn(e)}var On=function(){function e(){}return function(t){if(!Oc(t)){return{}}if(xt){return xt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function Tn(){}function Dn(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}xn.templateSettings={escape:Ie,evaluate:Me,interpolate:Ae,variable:"",imports:{_:xn}};xn.prototype=Tn.prototype;xn.prototype.constructor=xn;Dn.prototype=On(Tn.prototype);Dn.prototype.constructor=Dn;function jn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=F;this.__views__=[]}function In(){var e=new jn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Mn(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function An(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Za(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,p=0,h=qt(u,this.__takeCount__);if(!r||!n&&i==u&&h==u){return Po(e,this.__actions__)}var d=[];e:while(u--&&p<h){l+=t;var v=-1,g=e[l];while(++v<f){var m=c[v],y=m.iteratee,b=m.type,_=y(g);if(b==C){g=_}else if(!_){if(b==E){continue e}else{break e}}}d[p++]=g}return d}jn.prototype=On(Tn.prototype);jn.prototype.constructor=jn;function En(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Cn(){this.__data__=ar?ar(null):{};this.size=0}function Sn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Nn(e){var t=this.__data__;if(ar){var n=t[e];return n===l?r:n}return ft.call(t,e)?t[e]:r}function zn(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function Ln(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?l:t;return this}En.prototype.clear=Cn;En.prototype["delete"]=Sn;En.prototype.get=Nn;En.prototype.has=zn;En.prototype.set=Ln;function Rn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Fn(){this.__data__=[];this.size=0}function Pn(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{Tt.call(t,r,1)}--this.size;return true}function Vn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Bn(e){return ci(this.__data__,e)>-1}function Un(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Rn.prototype.clear=Fn;Rn.prototype["delete"]=Pn;Rn.prototype.get=Vn;Rn.prototype.has=Bn;Rn.prototype.set=Un;function qn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Wn(){this.size=0;this.__data__={hash:new En,map:new(Qt||Rn),string:new En}}function Hn(e){var t=Ha(this,e)["delete"](e);this.size-=t?1:0;return t}function Jn(e){return Ha(this,e).get(e)}function Gn(e){return Ha(this,e).has(e)}function $n(e,t){var r=Ha(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}qn.prototype.clear=Wn;qn.prototype["delete"]=Hn;qn.prototype.get=Jn;qn.prototype.has=Gn;qn.prototype.set=$n;function Kn(e){var t=-1,r=e==null?0:e.length;this.__data__=new qn;while(++t<r){this.add(e[t])}}function Yn(e){this.__data__.set(e,l);return this}function Xn(e){return this.__data__.has(e)}Kn.prototype.add=Kn.prototype.push=Yn;Kn.prototype.has=Xn;function Zn(e){var t=this.__data__=new Rn(e);this.size=t.size}function Qn(){this.__data__=new Rn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Rn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new qn(n)}r.set(e,t);this.size=r.size;return this}Zn.prototype.clear=Qn;Zn.prototype["delete"]=ei;Zn.prototype.get=ti;Zn.prototype.has=ri;Zn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&hc(e),o=!r&&!n&&!i&&Vc(e),a=r||n||i||o,s=a?Wr(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:r}function ai(e,t){return Ms(ia(e),gi(t,0,e.length))}function si(e){return Ms(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){di(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){di(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){ki(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function pi(e,t){return e&&oa(t,xf(t),e)}function hi(e,t){return e&&oa(t,Of(t),e)}function di(e,t,r){if(t=="__proto__"&&Mt){Mt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function vi(e,t){var n=-1,i=t.length,o=a(i),s=e==null;while(++n<i){o[n]=s?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&p,l=t&h,c=t&d;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!Oc(e)){return e}var f=uc(e);if(f){s=ts(e);if(!u){return ia(e,s)}}else{var v=Xa(e),g=v==K||v==Y;if(hc(e)){return $o(e,u)}if(v==ee||v==U||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,hi(s,e)):aa(e,pi(s,e))}}else{if(!Yt[v]){return o?e:{}}s=ns(e,v,u)}}a||(a=new Zn);var m=a.get(e);if(m){return m}a.set(e,s);if(Rc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Dc(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var y=c?l?Va:Pa:l?Of:xf;var b=f?r:y(e);br(b||e,(function(r,i){if(b){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function yi(e){var t=xf(e);return function(r){return bi(r,e,t)}}function bi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function _i(e,t,n){if(typeof e!="function"){throw new ot(s)}return Ts((function(){e.apply(r,n)}),t)}function wi(e,t,r,n){var o=-1,a=xr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Tr(t,Gr(r))}if(n){a=Or;s=false}else if(t.length>=i){a=Kr;s=false;t=new Kn(t)}e:while(++o<u){var f=e[o],p=r==null?f:r(f);f=n||f!==0?f:0;if(s&&p===p){var h=c;while(h--){if(t[h]===p){continue e}}l.push(f)}else if(!a(t,p,n)){l.push(f)}}return l}var ki=ca(Ei);var xi=ca(Ci,true);function Oi(e,t){var r=true;ki(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function Ti(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Pc(s):n(s,u))){var u=s,l=a}}return l}function Di(e,t,n,i){var o=e.length;n=$c(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:$c(i);if(i<0){i+=o}i=n>i?0:Kc(i);while(n<i){e[n++]=t}return e}function ji(e,t){var r=[];ki(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function Ii(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){Ii(s,t-1,r,n,i)}else{Dr(i,s)}}else if(!n){i[i.length]=s}}return i}var Mi=fa();var Ai=fa(true);function Ei(e,t){return e&&Mi(e,t,xf)}function Ci(e,t){return e&&Ai(e,t,xf)}function Si(e,t){return kr(t,(function(t){return wc(e[t])}))}function Ni(e,t){t=Wo(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[Es(t[n++])]}return n&&n==i?e:r}function zi(e,t,r){var n=t(e);return uc(e)?n:Dr(n,r(e))}function Li(e){if(e==null){return e===r?se:Q}return It&&It in rt(e)?$a(e):bs(e)}function Ri(e,t){return e>t}function Fi(e,t){return e!=null&&ft.call(e,t)}function Pi(e,t){return e!=null&&t in rt(e)}function Vi(e,t,r){return e>=qt(t,r)&&e<Vt(t,r)}function Bi(e,t,n){var i=n?Or:xr,o=e[0].length,s=e.length,u=s,l=a(s),c=Infinity,f=[];while(u--){var p=e[u];if(u&&t){p=Tr(p,Gr(t))}c=qt(p.length,c);l[u]=!n&&(t||o>=120&&p.length>=120)?new Kn(u&&p):r}p=e[0];var h=-1,d=l[0];e:while(++h<o&&f.length<c){var v=p[h],g=t?t(v):v;v=n||v!==0?v:0;if(!(d?Kr(d,g):i(f,g,n))){u=s;while(--u){var m=l[u];if(!(m?Kr(m,g):i(e[u],g,n))){continue e}}if(d){d.push(g)}f.push(v)}}return f}function Ui(e,t,r,n){Ei(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function qi(e,t,n){t=Wo(t,e);e=ws(e,t);var i=e==null?e:e[Es(ou(t))];return i==null?r:mr(i,e,n)}function Wi(e){return Tc(e)&&Li(e)==U}function Hi(e){return Tc(e)&&Li(e)==ce}function Ji(e){return Tc(e)&&Li(e)==J}function Gi(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!Tc(e)&&!Tc(t)){return e!==e&&t!==t}return $i(e,t,r,n,Gi,i)}function $i(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?q:Xa(e),l=s?q:Xa(t);u=u==U?ee:u;l=l==U?ee:l;var c=u==ee,f=l==ee,p=u==l;if(p&&hc(e)){if(!hc(t)){return false}a=true;c=false}if(p&&!c){o||(o=new Zn);return a||Vc(e)?za(e,t,r,n,i,o):La(e,t,u,r,n,i,o)}if(!(r&v)){var h=c&&ft.call(e,"__wrapped__"),d=f&&ft.call(t,"__wrapped__");if(h||d){var g=h?e.value():e,m=d?t.value():t;o||(o=new Zn);return i(g,m,r,n,o)}}if(!p){return false}o||(o=new Zn);return Ra(e,t,r,n,i,o)}function Ki(e){return Tc(e)&&Xa(e)==X}function Yi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var p=new Zn;if(i){var h=i(c,f,l,e,t,p)}if(!(h===r?Gi(f,c,v|g,i,p):h)){return false}}}return true}function Xi(e){if(!Oc(e)||fs(e)){return false}var t=wc(e)?mt:$e;return t.test(Cs(e))}function Zi(e){return Tc(e)&&Li(e)==ne}function Qi(e){return Tc(e)&&Xa(e)==ie}function eo(e){return Tc(e)&&xc(e.length)&&!!Kt[Li(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return Ep}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return Wp(e)}function ro(e){if(!hs(e)){return Pt(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!Oc(e)){return ys(e)}var t=hs(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?a(e.length):[];ki(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Ja(e);if(t.length==1&&t[0][2]){return vs(t[0][0],t[0][1])}return function(r){return r===e||Yi(r,e,t)}}function so(e,t){if(us(e)&&ds(t)){return vs(Es(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?bf(n,e):Gi(t,i,v|g)}}function uo(e,t,n,i,o){if(e===t){return}Mi(t,(function(a,s){o||(o=new Zn);if(Oc(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(xs(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),Of)}function lo(e,t,n,i,o,a,s){var u=xs(e,n),l=xs(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var p=f===r;if(p){var h=uc(l),d=!h&&hc(l),v=!h&&!d&&Vc(l);f=l;if(h||d||v){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(d){p=false;f=$o(l,true)}else if(v){p=false;f=Qo(l,true)}else{f=[]}}else if(Nc(l)||sc(l)){f=u;if(sc(u)){f=Xc(u)}else if(!Oc(u)||wc(u)){f=rs(l)}}else{p=false}}if(p){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Tr(t,(function(e){if(uc(e)){return function(t){return Ni(t,e.length===1?e[0]:e)}}return e}))}else{t=[Ep]}var n=-1;t=Tr(t,Gr(Wa()));var i=oo(e,(function(e,r,i){var o=Tr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Ur(i,(function(e,t){return ta(e,t,r)}))}function po(e,t){return ho(e,t,(function(t,r){return bf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Ni(e,a);if(r(s,a)){Oo(o,Wo(a,e),s)}}return o}function vo(e){return function(t){return Ni(t,e)}}function go(e,t,r,n){var i=n?Lr:zr,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Tr(e,Gr(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){Tt.call(s,u,1)}Tt.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){Tt.call(e,i,1)}else{Lo(e,i)}}}return e}function yo(e,t){return e+Nt(Jt()*(t-e+1))}function bo(e,t,r,n){var i=-1,o=Vt(St((t-e)/(r||1)),0),s=a(o);while(o--){s[n?o:++i]=e;e+=r}return s}function _o(e,t){var r="";if(!e||t<1||t>z){return r}do{if(t%2){r+=e}t=Nt(t/2);if(t){e+=e}}while(t);return r}function wo(e,t){return Ds(_s(e,t,Ep),e+"")}function ko(e){return oi(Uf(e))}function xo(e,t){var r=Uf(e);return Ms(r,gi(t,0,r.length))}function Oo(e,t,n,i){if(!Oc(e)){return e}t=Wo(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=Es(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=Oc(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var To=!sr?Ep:function(e,t){sr.set(e,t);return e};var Do=!Mt?Ep:function(e,t){return Mt(e,"toString",{configurable:true,enumerable:false,value:jp(t),writable:true})};function jo(e){return Ms(Uf(e))}function Io(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=a(i);while(++n<i){o[n]=e[n+t]}return o}function Mo(e,t){var r;ki(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Ao(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=V){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Pc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return Eo(e,t,Ep,r)}function Eo(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Pc(t),c=t===r;while(o<a){var f=Nt((o+a)/2),p=n(e[f]),h=p!==r,d=p===null,v=p===p,g=Pc(p);if(s){var m=i||v}else if(c){m=v&&(i||h)}else if(u){m=v&&h&&(i||!d)}else if(l){m=v&&h&&!d&&(i||!g)}else if(d||g){m=false}else{m=i?p<=t:p<t}if(m){o=f+1}else{a=f}}return qt(a,P)}function Co(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function So(e){if(typeof e=="number"){return e}if(Pc(e)){return R}return+e}function No(e){if(typeof e=="string"){return e}if(uc(e)){return Tr(e,No)+""}if(Pc(e)){return wn?wn.call(e):""}var t=e+"";return t=="0"&&1/e==-N?"-0":t}function zo(e,t,r){var n=-1,o=xr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=Or}else if(a>=i){var c=t?null:Ma(e);if(c){return cn(c)}s=false;o=Kr;l=new Kn}else{l=t?[]:u}e:while(++n<a){var f=e[n],p=t?t(f):f;f=r||f!==0?f:0;if(s&&p===p){var h=l.length;while(h--){if(l[h]===p){continue e}}if(t){l.push(p)}u.push(f)}else if(!o(l,p,r)){if(l!==u){l.push(p)}u.push(f)}}return u}function Lo(e,t){t=Wo(t,e);e=ws(e,t);return e==null||delete e[Es(ou(t))]}function Ro(e,t,r,n){return Oo(e,t,r(Ni(e,t)),n)}function Fo(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?Io(e,n?0:o,n?o+1:i):Io(e,n?o+1:0,n?i:o)}function Po(e,t){var r=e;if(r instanceof jn){r=r.value()}return jr(t,(function(e,t){return t.func.apply(t.thisArg,Dr([e],t.args))}),r)}function Vo(e,t,r){var n=e.length;if(n<2){return n?zo(e[0]):[]}var i=-1,o=a(n);while(++i<n){var s=e[i],u=-1;while(++u<n){if(u!=i){o[i]=wi(o[i]||s,e[u],t,r)}}}return zo(Ii(o,1),t,r)}function Bo(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Uo(e){return fc(e)?e:[]}function qo(e){return typeof e=="function"?e:Ep}function Wo(e,t){if(uc(e)){return e}return us(e,t)?[e]:As(Qc(e))}var Ho=wo;function Jo(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:Io(e,t,n)}var Go=At||function(e){return or.clearTimeout(e)};function $o(e,t){if(t){return e.slice()}var r=e.length,n=wt?wt(r):new e.constructor(r);e.copy(n);return n}function Ko(e){var t=new e.constructor(e.byteLength);new _t(t).set(new _t(e));return t}function Yo(e,t){var r=t?Ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Xo(e){var t=new e.constructor(e.source,He.exec(e));t.lastIndex=e.lastIndex;return t}function Zo(e){return bn?rt(bn.call(e)):{}}function Qo(e,t){var r=t?Ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Pc(e);var s=t!==r,u=t===null,l=t===t,c=Pc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,s=r.length,u=-1,l=t.length,c=Vt(o-s,0),f=a(l+c),p=!n;while(++u<l){f[u]=t[u]}while(++i<s){if(p||i<o){f[r[i]]=e[i]}}while(c--){f[u++]=e[i++]}return f}function na(e,t,r,n){var i=-1,o=e.length,s=-1,u=r.length,l=-1,c=t.length,f=Vt(o-u,0),p=a(f+c),h=!n;while(++i<f){p[i]=e[i]}var d=i;while(++l<c){p[d+l]=t[l]}while(++s<u){if(h||i<o){p[d+r[s]]=e[i++]}}return p}function ia(e,t){var r=-1,n=e.length;t||(t=a(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){di(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,Ka(e),t)}function sa(e,t){return oa(e,Ya(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?yr:fi,o=t?t():{};return i(r,e,Wa(n,2),o)}}function la(e){return wo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function pa(e,t,r){var n=t&m,i=va(e);function o(){var t=this&&this!==or&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function ha(e){return function(t){t=Qc(t);var n=nn(t)?vn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Jo(n,1).join(""):t.slice(1);return i[e]()+o}}function da(e){return function(t){return jr(kp(Kf(t).replace(Bt,"")),e,"")}}function va(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=On(e.prototype),n=e.apply(r,t);return Oc(n)?n:r}}function ga(e,t,n){var i=va(e);function o(){var s=arguments.length,u=a(s),l=s,c=qa(o);while(l--){u[l]=arguments[l]}var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:ln(u,c);s-=f.length;if(s<n){return ja(e,t,ba,o.placeholder,r,u,f,r,r,n-s)}var p=this&&this!==or&&this instanceof o?i:e;return mr(p,this,u)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=Wa(n,3);t=xf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function ya(e){return Fa((function(t){var n=t.length,i=n,o=Dn.prototype.thru;if(e){t.reverse()}while(i--){var a=t[i];if(typeof a!="function"){throw new ot(s)}if(o&&!u&&Ua(a)=="wrapper"){var u=new Dn([],true)}}i=u?i:n;while(++i<n){a=t[i];var l=Ua(a),c=l=="wrapper"?Ba(a):r;if(c&&cs(c[0])&&c[1]==(O|_|k|T)&&!c[4].length&&c[9]==1){u=u[Ua(c[0])].apply(u,c[3])}else{u=a.length==1&&cs(a)?u[l]():u.thru(a)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function ba(e,t,n,i,o,s,u,l,c,f){var p=t&O,h=t&m,d=t&y,v=t&(_|w),g=t&D,b=d?r:va(e);function k(){var r=arguments.length,m=a(r),y=r;while(y--){m[y]=arguments[y]}if(v){var _=qa(k),w=Zr(m,_)}if(i){m=ra(m,i,o,v)}if(s){m=na(m,s,u,v)}r-=w;if(v&&r<f){var x=ln(m,_);return ja(e,t,ba,k.placeholder,n,m,x,l,c,f-r)}var O=h?n:this,T=d?O[e]:e;r=m.length;if(l){m=ks(m,l)}else if(g&&r>1){m.reverse()}if(p&&c<r){m.length=c}if(this&&this!==or&&this instanceof k){T=b||va(T)}return T.apply(O,m)}return k}function _a(e,t){return function(r,n){return Ui(r,e,t(n),{})}}function wa(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=No(n);i=No(i)}else{n=So(n);i=So(i)}o=e(n,i)}return o}}function ka(e){return Fa((function(t){t=Tr(t,Gr(Wa()));return wo((function(r){var n=this;return e(t,(function(e){return mr(e,n,r)}))}))}))}function xa(e,t){t=t===r?" ":No(t);var n=t.length;if(n<2){return n?_o(t,e):t}var i=_o(t,St(e/dn(t)));return nn(t)?Jo(vn(i),0,e).join(""):i.slice(0,e)}function Oa(e,t,r,n){var i=t&m,o=va(e);function s(){var t=-1,u=arguments.length,l=-1,c=n.length,f=a(c+u),p=this&&this!==or&&this instanceof s?o:e;while(++l<c){f[l]=n[l]}while(u--){f[l++]=arguments[++t]}return mr(p,i?r:this,f)}return s}function Ta(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=Gc(t);if(n===r){n=t;t=0}else{n=Gc(n)}i=i===r?t<n?1:-1:Gc(i);return bo(t,n,i,e)}}function Da(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=Yc(t);r=Yc(r)}return e(t,r)}}function ja(e,t,n,i,o,a,s,u,l,c){var f=t&_,p=f?s:r,h=f?r:s,d=f?a:r,v=f?r:a;t|=f?k:x;t&=~(f?x:k);if(!(t&b)){t&=~(m|y)}var g=[e,t,o,d,p,v,h,u,l,c];var w=n.apply(r,g);if(cs(e)){Os(w,g)}w.placeholder=i;return js(w,e,t)}function Ia(e){var t=tt[e];return function(e,r){e=Yc(e);r=r==null?0:qt($c(r),292);if(r&&Rt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ma=!(nr&&1/cn(new nr([,-0]))[1]==N)?Pp:function(e){return new nr(e)};function Aa(e){return function(t){var r=Xa(t);if(r==X){return sn(t)}if(r==ie){return fn(t)}return Hr(t,e(t))}}function Ea(e,t,n,i,o,a,u,l){var c=t&y;if(!c&&typeof e!="function"){throw new ot(s)}var f=i?i.length:0;if(!f){t&=~(k|x);i=o=r}u=u===r?u:Vt($c(u),0);l=l===r?l:$c(l);f-=o?o.length:0;if(t&x){var p=i,h=o;i=o=r}var d=c?r:Ba(e);var v=[e,t,n,i,o,p,h,a,u,l];if(d){ms(v,d)}e=v[0];t=v[1];n=v[2];i=v[3];o=v[4];l=v[9]=v[9]===r?c?0:e.length:Vt(v[9]-f,0);if(!l&&t&(_|w)){t&=~(_|w)}if(!t||t==m){var g=pa(e,t,n)}else if(t==_||t==w){g=ga(e,t,l)}else if((t==k||t==(m|k))&&!o.length){g=Oa(e,t,n,i)}else{g=ba.apply(r,v)}var b=d?To:Os;return js(b(g,v),e,t)}function Ca(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function Sa(e,t,n,i,o,a){if(Oc(e)&&Oc(t)){a.set(t,e);uo(e,t,r,Sa,a);a["delete"](t)}return e}function Na(e){return Nc(e)?r:e}function za(e,t,n,i,o,a){var s=n&v,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var p=-1,h=true,d=n&g?new Kn:r;a.set(e,t);a.set(t,e);while(++p<u){var m=e[p],y=t[p];if(i){var b=s?i(y,m,p,t,e,a):i(m,y,p,e,t,a)}if(b!==r){if(b){continue}h=false;break}if(d){if(!Mr(t,(function(e,t){if(!Kr(d,t)&&(m===e||o(m,e,n,i,a))){return d.push(t)}}))){h=false;break}}else if(!(m===y||o(m,y,n,i,a))){h=false;break}}a["delete"](e);a["delete"](t);return h}function La(e,t,r,n,i,o,a){switch(r){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case ce:if(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t))){return false}return true;case H:case J:case Z:return ic(+e,+t);case $:return e.name==t.name&&e.message==t.message;case ne:case oe:return e==t+"";case X:var s=sn;case ie:var u=n&v;s||(s=cn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=g;a.set(e,t);var c=za(s(e),s(t),n,i,o,a);a["delete"](e);return c;case ae:if(bn){return bn.call(e)==bn.call(t)}}return false}function Ra(e,t,n,i,o,a){var s=n&v,u=Pa(e),l=u.length,c=Pa(t),f=c.length;if(l!=f&&!s){return false}var p=l;while(p--){var h=u[p];if(!(s?h in t:ft.call(t,h))){return false}}var d=a.get(e);var g=a.get(t);if(d&&g){return d==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var y=s;while(++p<l){h=u[p];var b=e[h],_=t[h];if(i){var w=s?i(_,b,h,t,e,a):i(b,_,h,e,t,a)}if(!(w===r?b===_||o(b,_,n,i,a):w)){m=false;break}y||(y=h=="constructor")}if(m&&!y){var k=e.constructor,x=t.constructor;if(k!=x&&("constructor"in e&&"constructor"in t)&&!(typeof k=="function"&&k instanceof k&&typeof x=="function"&&x instanceof x)){m=false}}a["delete"](e);a["delete"](t);return m}function Fa(e){return Ds(_s(e,r,$s),e+"")}function Pa(e){return zi(e,xf,Ka)}function Va(e){return zi(e,Of,Ya)}var Ba=!sr?Pp:function(e){return sr.get(e)};function Ua(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function qa(e){var t=ft.call(xn,"placeholder")?xn:e;return t.placeholder}function Wa(){var e=xn.iteratee||Cp;e=e===Cp?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Ha(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ja(e){var t=xf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,ds(i)]}return t}function Ga(e,t){var n=rn(e,t);return Xi(n)?n:r}function $a(e){var t=ft.call(e,It),n=e[It];try{e[It]=r;var i=true}catch(e){}var o=dt.call(e);if(i){if(t){e[It]=n}else{delete e[It]}}return o}var Ka=!zt?$p:function(e){if(e==null){return[]}e=rt(e);return kr(zt(e),(function(t){return Ot.call(e,t)}))};var Ya=!zt?$p:function(e){var t=[];while(e){Dr(t,Ka(e));e=kt(e)}return t};var Xa=Li;if(Zt&&Xa(new Zt(new ArrayBuffer(1)))!=fe||Qt&&Xa(new Qt)!=X||er&&Xa(er.resolve())!=te||nr&&Xa(new nr)!=ie||ir&&Xa(new ir)!=ue){Xa=function(e){var t=Li(e),n=t==ee?e.constructor:r,i=n?Cs(n):"";if(i){switch(i){case cr:return fe;case Ar:return X;case Er:return te;case Vr:return ie;case pn:return ue}}return t}}function Za(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=qt(t,e+a);break;case"takeRight":e=Vt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(Pe);return t?t[1].split(Ve):[]}function es(e,t,r){t=Wo(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Es(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&xc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!hs(e)?On(kt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case ce:return Ko(e);case H:case J:return new n(+e);case fe:return Yo(e,r);case pe:case he:case de:case ve:case ge:case me:case ye:case be:case _e:return Qo(e,r);case X:return new n;case Z:case oe:return new n(e);case ne:return Xo(e);case ie:return new n;case ae:return Zo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Dt&&e&&e[Dt])}function as(e,t){var r=typeof e;t=t==null?z:t;return!!t&&(r=="number"||r!="symbol"&&Ye.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!Oc(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Pc(e)){return true}return Ce.test(e)||!Ee.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Ua(e),r=xn[t];if(typeof r!="function"||!(t in jn.prototype)){return false}if(e===r){return true}var n=Ba(r);return!!n&&e===n[0]}function fs(e){return!!ht&&ht in e}var ps=lt?wc:Kp;function hs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function ds(e){return e===e&&!Oc(e)}function vs(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Vl(e,(function(e){if(r.size===c){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(m|y|O);var a=n==O&&r==_||n==O&&r==T&&e[7].length<=t[8]||n==(O|T)&&t[7].length<=t[8]&&r==_;if(!(o||a)){return e}if(n&m){e[2]=t[2];i|=r&m?0:b}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?ln(e[3],f):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?ln(e[5],f):t[6]}s=t[7];if(s){e[7]=s}if(n&O){e[8]=e[8]==null?t[8]:qt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function ys(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function bs(e){return dt.call(e)}function _s(e,t,n){t=Vt(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Vt(r.length-t,0),s=a(o);while(++i<o){s[i]=r[t+i]}i=-1;var u=a(t+1);while(++i<t){u[i]=r[i]}u[t]=n(s);return mr(e,this,u)}}function ws(e,t){return t.length<2?e:Ni(e,Io(t,0,-1))}function ks(e,t){var n=e.length,i=qt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function xs(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var Os=Is(To);var Ts=Ct||function(e,t){return or.setTimeout(e,t)};var Ds=Is(Do);function js(e,t,r){var n=t+"";return Ds(e,is(n,Ss(Qa(n),r)))}function Is(e){var t=0,n=0;return function(){var i=Wt(),o=A-(i-n);n=i;if(o>0){if(++t>=M){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Ms(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=yo(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var As=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Se,(function(e,r,n,i){t.push(n?i.replace(qe,"$1"):r||e)}));return t}));function Es(e){if(typeof e=="string"||Pc(e)){return e}var t=e+"";return t=="0"&&1/e==-N?"-0":t}function Cs(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ss(e,t){br(B,(function(r){var n="_."+r[0];if(t&r[1]&&!xr(e,n)){e.push(n)}}));return e.sort()}function Ns(e){if(e instanceof jn){return e.clone()}var t=new Dn(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function zs(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Vt($c(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,s=0,u=a(St(i/t));while(o<i){u[s++]=Io(e,o,o+=t)}return u}function Ls(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Rs(){var e=arguments.length;if(!e){return[]}var t=a(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return Dr(uc(r)?ia(r):[r],Ii(t,1))}var Fs=wo((function(e,t){return fc(e)?wi(e,Ii(t,1,fc,true)):[]}));var Ps=wo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?wi(e,Ii(t,1,fc,true),Wa(n,2)):[]}));var Vs=wo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?wi(e,Ii(t,1,fc,true),r,n):[]}));function Bs(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:$c(t);return Io(e,t<0?0:t,i)}function Us(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:$c(t);t=i-t;return Io(e,0,t<0?0:t)}function qs(e,t){return e&&e.length?Fo(e,Wa(t,3),true,true):[]}function Ws(e,t){return e&&e.length?Fo(e,Wa(t,3),true):[]}function Hs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Di(e,t,r,n)}function Js(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:$c(r);if(i<0){i=Vt(n+i,0)}return Nr(e,Wa(t,3),i)}function Gs(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=$c(n);o=n<0?Vt(i+o,0):qt(o,i-1)}return Nr(e,Wa(t,3),o,true)}function $s(e){var t=e==null?0:e.length;return t?Ii(e,1):[]}function Ks(e){var t=e==null?0:e.length;return t?Ii(e,N):[]}function Ys(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:$c(t);return Ii(e,t)}function Xs(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Zs(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:$c(r);if(i<0){i=Vt(n+i,0)}return zr(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?Io(e,0,-1):[]}var tu=wo((function(e){var t=Tr(e,Uo);return t.length&&t[0]===e[0]?Bi(t):[]}));var ru=wo((function(e){var t=ou(e),n=Tr(e,Uo);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Bi(n,Wa(t,2)):[]}));var nu=wo((function(e){var t=ou(e),n=Tr(e,Uo);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Bi(n,r,t):[]}));function iu(e,t){return e==null?"":Ft.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=$c(n);o=o<0?Vt(i+o,0):qt(o,i-1)}return t===t?hn(e,t,o):Nr(e,Rr,o,true)}function su(e,t){return e&&e.length?co(e,$c(t)):r}var uu=wo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,Wa(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var pu=Fa((function(e,t){var r=e==null?0:e.length,n=vi(e,t);mo(e,Tr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function hu(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=Wa(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function du(e){return e==null?e:Xt.call(e)}function vu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:$c(t);n=n===r?i:$c(n)}return Io(e,t,n)}function gu(e,t){return Ao(e,t)}function mu(e,t,r){return Eo(e,t,Wa(r,2))}function yu(e,t){var r=e==null?0:e.length;if(r){var n=Ao(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function bu(e,t){return Ao(e,t,true)}function _u(e,t,r){return Eo(e,t,Wa(r,2),true)}function wu(e,t){var r=e==null?0:e.length;if(r){var n=Ao(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function ku(e){return e&&e.length?Co(e):[]}function xu(e,t){return e&&e.length?Co(e,Wa(t,2)):[]}function Ou(e){var t=e==null?0:e.length;return t?Io(e,1,t):[]}function Tu(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:$c(t);return Io(e,0,t<0?0:t)}function Du(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:$c(t);t=i-t;return Io(e,t<0?0:t,i)}function ju(e,t){return e&&e.length?Fo(e,Wa(t,3),false,true):[]}function Iu(e,t){return e&&e.length?Fo(e,Wa(t,3)):[]}var Mu=wo((function(e){return zo(Ii(e,1,fc,true))}));var Au=wo((function(e){var t=ou(e);if(fc(t)){t=r}return zo(Ii(e,1,fc,true),Wa(t,2))}));var Eu=wo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return zo(Ii(e,1,fc,true),r,t)}));function Cu(e){return e&&e.length?zo(e):[]}function Su(e,t){return e&&e.length?zo(e,Wa(t,2)):[]}function Nu(e,t){t=typeof t=="function"?t:r;return e&&e.length?zo(e,r,t):[]}function zu(e){if(!(e&&e.length)){return[]}var t=0;e=kr(e,(function(e){if(fc(e)){t=Vt(e.length,t);return true}}));return Wr(t,(function(t){return Tr(e,Pr(t))}))}function Lu(e,t){if(!(e&&e.length)){return[]}var n=zu(e);if(t==null){return n}return Tr(n,(function(e){return mr(t,r,e)}))}var Ru=wo((function(e,t){return fc(e)?wi(e,t):[]}));var Fu=wo((function(e){return Vo(kr(e,fc))}));var Pu=wo((function(e){var t=ou(e);if(fc(t)){t=r}return Vo(kr(e,fc),Wa(t,2))}));var Vu=wo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Vo(kr(e,fc),r,t)}));var Bu=wo(zu);function Uu(e,t){return Bo(e||[],t||[],li)}function qu(e,t){return Bo(e||[],t||[],Oo)}var Wu=wo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Lu(e,n)}));function Hu(e){var t=xn(e);t.__chain__=true;return t}function Ju(e,t){t(e);return e}function Gu(e,t){return t(e)}var $u=Fa((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return vi(t,e)};if(t>1||this.__actions__.length||!(i instanceof jn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:Gu,args:[o],thisArg:r});return new Dn(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function Ku(){return Hu(this)}function Yu(){return new Dn(this.value(),this.__chain__)}function Xu(){if(this.__values__===r){this.__values__=Jc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Zu(){return this}function Qu(e){var t,n=this;while(n instanceof Tn){var i=Ns(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof jn){var t=e;if(this.__actions__.length){t=new jn(this)}t=t.reverse();t.__actions__.push({func:Gu,args:[du],thisArg:r});return new Dn(t,this.__chain__)}return this.thru(du)}function tl(){return Po(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{di(e,r,1)}}));function nl(e,t,n){var i=uc(e)?wr:Oi;if(n&&ss(e,t,n)){t=r}return i(e,Wa(t,3))}function il(e,t){var r=uc(e)?kr:ji;return r(e,Wa(t,3))}var ol=ma(Js);var al=ma(Gs);function sl(e,t){return Ii(gl(e,t),1)}function ul(e,t){return Ii(gl(e,t),N)}function ll(e,t,n){n=n===r?1:$c(n);return Ii(gl(e,t),n)}function cl(e,t){var r=uc(e)?br:ki;return r(e,Wa(t,3))}function fl(e,t){var r=uc(e)?_r:xi;return r(e,Wa(t,3))}var pl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{di(e,r,[t])}}));function hl(e,t,r,n){e=cc(e)?e:Uf(e);r=r&&!n?$c(r):0;var i=e.length;if(r<0){r=Vt(i+r,0)}return Fc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&zr(e,t,r)>-1}var dl=wo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?a(e.length):[];ki(e,(function(e){o[++n]=i?mr(t,e,r):qi(e,t,r)}));return o}));var vl=ua((function(e,t,r){di(e,r,t)}));function gl(e,t){var r=uc(e)?Tr:oo;return r(e,Wa(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var yl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function bl(e,t,r){var n=uc(e)?jr:Br,i=arguments.length<3;return n(e,Wa(t,4),r,i,ki)}function _l(e,t,r){var n=uc(e)?Ir:Br,i=arguments.length<3;return n(e,Wa(t,4),r,i,xi)}function wl(e,t){var r=uc(e)?kr:ji;return r(e,Bl(Wa(t,3)))}function kl(e){var t=uc(e)?oi:ko;return t(e)}function xl(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=$c(t)}var i=uc(e)?ai:xo;return i(e,t)}function Ol(e){var t=uc(e)?si:jo;return t(e)}function Tl(e){if(e==null){return 0}if(cc(e)){return Fc(e)?dn(e):e.length}var t=Xa(e);if(t==X||t==ie){return e.size}return ro(e).length}function Dl(e,t,n){var i=uc(e)?Mr:Mo;if(n&&ss(e,t,n)){t=r}return i(e,Wa(t,3))}var jl=wo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,Ii(t,1),[])}));var Il=Et||function(){return or.Date.now()};function Ml(e,t){if(typeof t!="function"){throw new ot(s)}e=$c(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Al(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return Ea(e,O,r,r,r,r,t)}function El(e,t){var n;if(typeof t!="function"){throw new ot(s)}e=$c(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var Cl=wo((function(e,t,r){var n=m;if(r.length){var i=ln(r,qa(Cl));n|=k}return Ea(e,n,t,r,i)}));var Sl=wo((function(e,t,r){var n=m|y;if(r.length){var i=ln(r,qa(Sl));n|=k}return Ea(t,n,e,r,i)}));function Nl(e,t,n){t=n?r:t;var i=Ea(e,_,r,r,r,r,r,t);i.placeholder=Nl.placeholder;return i}function zl(e,t,n){t=n?r:t;var i=Ea(e,w,r,r,r,r,r,t);i.placeholder=zl.placeholder;return i}function Ll(e,t,n){var i,o,a,u,l,c,f=0,p=false,h=false,d=true;if(typeof e!="function"){throw new ot(s)}t=Yc(t)||0;if(Oc(n)){p=!!n.leading;h="maxWait"in n;a=h?Vt(Yc(n.maxWait)||0,t):a;d="trailing"in n?!!n.trailing:d}function v(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=Ts(b,t);return p?v(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return h?qt(i,a-n):i}function y(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||h&&i>=a}function b(){var e=Il();if(y(e)){return _(e)}l=Ts(b,m(e))}function _(e){l=r;if(d&&i){return v(e)}i=o=r;return u}function w(){if(l!==r){Go(l)}f=0;i=c=o=l=r}function k(){return l===r?u:_(Il())}function x(){var e=Il(),n=y(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(h){Go(l);l=Ts(b,t);return v(c)}}if(l===r){l=Ts(b,t)}return u}x.cancel=w;x.flush=k;return x}var Rl=wo((function(e,t){return _i(e,1,t)}));var Fl=wo((function(e,t,r){return _i(e,Yc(t)||0,r)}));function Pl(e){return Ea(e,D)}function Vl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(s)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Vl.Cache||qn);return r}Vl.Cache=qn;function Bl(e){if(typeof e!="function"){throw new ot(s)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ul(e){return El(2,e)}var ql=Ho((function(e,t){t=t.length==1&&uc(t[0])?Tr(t[0],Gr(Wa())):Tr(Ii(t,1),Gr(Wa()));var r=t.length;return wo((function(n){var i=-1,o=qt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return mr(e,this,n)}))}));var Wl=wo((function(e,t){var n=ln(t,qa(Wl));return Ea(e,k,r,t,n)}));var Hl=wo((function(e,t){var n=ln(t,qa(Hl));return Ea(e,x,r,t,n)}));var Jl=Fa((function(e,t){return Ea(e,T,r,r,r,t)}));function Gl(e,t){if(typeof e!="function"){throw new ot(s)}t=t===r?t:$c(t);return wo(e,t)}function $l(e,t){if(typeof e!="function"){throw new ot(s)}t=t==null?0:Vt($c(t),0);return wo((function(r){var n=r[t],i=Jo(r,0,t);if(n){Dr(i,n)}return mr(e,this,i)}))}function Kl(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(s)}if(Oc(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Ll(e,t,{leading:n,maxWait:t,trailing:i})}function Yl(e){return Al(e,1)}function Xl(e,t){return Wl(qo(t),e)}function Zl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,d)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,d,t)}function tc(e){return mi(e,p|d)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,p|d,t)}function nc(e,t){return t==null||bi(e,t,xf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Da(Ri);var ac=Da((function(e,t){return e>=t}));var sc=Wi(function(){return arguments}())?Wi:function(e){return Tc(e)&&ft.call(e,"callee")&&!Ot.call(e,"callee")};var uc=a.isArray;var lc=fr?Gr(fr):Hi;function cc(e){return e!=null&&xc(e.length)&&!wc(e)}function fc(e){return Tc(e)&&cc(e)}function pc(e){return e===true||e===false||Tc(e)&&Li(e)==H}var hc=Lt||Kp;var dc=pr?Gr(pr):Ji;function vc(e){return Tc(e)&&e.nodeType===1&&!Nc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||hc(e)||Vc(e)||sc(e))){return!e.length}var t=Xa(e);if(t==X||t==ie){return!e.size}if(hs(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return Gi(e,t)}function yc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?Gi(e,t,r,n):!!i}function bc(e){if(!Tc(e)){return false}var t=Li(e);return t==$||t==G||typeof e.message=="string"&&typeof e.name=="string"&&!Nc(e)}function _c(e){return typeof e=="number"&&Rt(e)}function wc(e){if(!Oc(e)){return false}var t=Li(e);return t==K||t==Y||t==W||t==re}function kc(e){return typeof e=="number"&&e==$c(e)}function xc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z}function Oc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Tc(e){return e!=null&&typeof e=="object"}var Dc=hr?Gr(hr):Ki;function jc(e,t){return e===t||Yi(e,t,Ja(t))}function Ic(e,t,n){n=typeof n=="function"?n:r;return Yi(e,t,Ja(t),n)}function Mc(e){return Sc(e)&&e!=+e}function Ac(e){if(ps(e)){throw new Be(o)}return Xi(e)}function Ec(e){return e===null}function Cc(e){return e==null}function Sc(e){return typeof e=="number"||Tc(e)&&Li(e)==Z}function Nc(e){if(!Tc(e)||Li(e)!=ee){return false}var t=kt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==vt}var zc=dr?Gr(dr):Zi;function Lc(e){return kc(e)&&e>=-z&&e<=z}var Rc=vr?Gr(vr):Qi;function Fc(e){return typeof e=="string"||!uc(e)&&Tc(e)&&Li(e)==oe}function Pc(e){return typeof e=="symbol"||Tc(e)&&Li(e)==ae}var Vc=gr?Gr(gr):eo;function Bc(e){return e===r}function Uc(e){return Tc(e)&&Xa(e)==ue}function qc(e){return Tc(e)&&Li(e)==le}var Wc=Da(io);var Hc=Da((function(e,t){return e<=t}));function Jc(e){if(!e){return[]}if(cc(e)){return Fc(e)?vn(e):ia(e)}if(jt&&e[jt]){return an(e[jt]())}var t=Xa(e),r=t==X?sn:t==ie?cn:Uf;return r(e)}function Gc(e){if(!e){return e===0?e:0}e=Yc(e);if(e===N||e===-N){var t=e<0?-1:1;return t*L}return e===e?e:0}function $c(e){var t=Gc(e),r=t%1;return t===t?r?t-r:t:0}function Kc(e){return e?gi($c(e),0,F):0}function Yc(e){if(typeof e=="number"){return e}if(Pc(e)){return R}if(Oc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Oc(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Jr(e);var r=Ge.test(e);return r||Ke.test(e)?rr(e.slice(2),r?2:8):Je.test(e)?R:+e}function Xc(e){return oa(e,Of(e))}function Zc(e){return e?gi($c(e),-z,z):e===0?e:0}function Qc(e){return e==null?"":No(e)}var ef=la((function(e,t){if(hs(t)||cc(t)){oa(t,xf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,Of(t),e)}));var rf=la((function(e,t,r,n){oa(t,Of(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,xf(t),e,n)}));var of=Fa(vi);function af(e,t){var r=On(e);return t==null?r:pi(r,t)}var sf=wo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=Of(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=wo((function(e){e.push(r,Sa);return mr(If,r,e)}));function lf(e,t){return Sr(e,Wa(t,3),Ei)}function cf(e,t){return Sr(e,Wa(t,3),Ci)}function ff(e,t){return e==null?e:Mi(e,Wa(t,3),Of)}function pf(e,t){return e==null?e:Ai(e,Wa(t,3),Of)}function hf(e,t){return e&&Ei(e,Wa(t,3))}function df(e,t){return e&&Ci(e,Wa(t,3))}function vf(e){return e==null?[]:Si(e,xf(e))}function gf(e){return e==null?[]:Si(e,Of(e))}function mf(e,t,n){var i=e==null?r:Ni(e,t);return i===r?n:i}function yf(e,t){return e!=null&&es(e,t,Fi)}function bf(e,t){return e!=null&&es(e,t,Pi)}var _f=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=dt.call(t)}e[t]=r}),jp(Ep));var wf=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=dt.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),Wa);var kf=wo(qi);function xf(e){return cc(e)?ii(e):ro(e)}function Of(e){return cc(e)?ii(e,true):no(e)}function Tf(e,t){var r={};t=Wa(t,3);Ei(e,(function(e,n,i){di(r,t(e,n,i),e)}));return r}function Df(e,t){var r={};t=Wa(t,3);Ei(e,(function(e,n,i){di(r,n,t(e,n,i))}));return r}var jf=la((function(e,t,r){uo(e,t,r)}));var If=la((function(e,t,r,n){uo(e,t,r,n)}));var Mf=Fa((function(e,t){var r={};if(e==null){return r}var n=false;t=Tr(t,(function(t){t=Wo(t,e);n||(n=t.length>1);return t}));oa(e,Va(e),r);if(n){r=mi(r,p|h|d,Na)}var i=t.length;while(i--){Lo(r,t[i])}return r}));function Af(e,t){return Cf(e,Bl(Wa(t)))}var Ef=Fa((function(e,t){return e==null?{}:po(e,t)}));function Cf(e,t){if(e==null){return{}}var r=Tr(Va(e),(function(e){return[e]}));t=Wa(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function Sf(e,t,n){t=Wo(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[Es(t[i])];if(a===r){i=o;a=n}e=wc(a)?a.call(e):a}return e}function Nf(e,t,r){return e==null?e:Oo(e,t,r)}function zf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:Oo(e,t,n,i)}var Lf=Aa(xf);var Rf=Aa(Of);function Ff(e,t,r){var n=uc(e),i=n||hc(e)||Vc(e);t=Wa(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(Oc(e)){r=wc(o)?On(kt(e)):{}}else{r={}}}(i?br:Ei)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Pf(e,t){return e==null?true:Lo(e,t)}function Vf(e,t,r){return e==null?e:Ro(e,t,qo(r))}function Bf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:Ro(e,t,qo(n),i)}function Uf(e){return e==null?[]:$r(e,xf(e))}function qf(e){return e==null?[]:$r(e,Of(e))}function Wf(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=Yc(n);n=n===n?n:0}if(t!==r){t=Yc(t);t=t===t?t:0}return gi(Yc(e),t,n)}function Hf(e,t,n){t=Gc(t);if(n===r){n=t;t=0}else{n=Gc(n)}e=Yc(e);return Vi(e,t,n)}function Jf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=Gc(e);if(t===r){t=e;e=0}else{t=Gc(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Jt();return qt(e+o*(t-e+tr("1e-"+((o+"").length-1))),t)}return yo(e,t)}var Gf=da((function(e,t,r){t=t.toLowerCase();return e+(r?$f(t):t)}));function $f(e){return wp(Qc(e).toLowerCase())}function Kf(e){e=Qc(e);return e&&e.replace(Xe,Qr).replace(Ut,"")}function Yf(e,t,n){e=Qc(e);t=No(t);var i=e.length;n=n===r?i:gi($c(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Xf(e){e=Qc(e);return e&&je.test(e)?e.replace(Te,en):e}function Zf(e){e=Qc(e);return e&&ze.test(e)?e.replace(Ne,"\\$&"):e}var Qf=da((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ep=da((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var tp=ha("toLowerCase");function rp(e,t,r){e=Qc(e);t=$c(t);var n=t?dn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return xa(Nt(i),r)+e+xa(St(i),r)}function np(e,t,r){e=Qc(e);t=$c(t);var n=t?dn(e):0;return t&&n<t?e+xa(t-n,r):e}function ip(e,t,r){e=Qc(e);t=$c(t);var n=t?dn(e):0;return t&&n<t?xa(t-n,r)+e:e}function op(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Ht(Qc(e).replace(Le,""),t||0)}function ap(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=$c(t)}return _o(Qc(e),t)}function sp(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var up=da((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function lp(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?F:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!zc(t))){t=No(t);if(!t&&nn(e)){return Jo(vn(e),0,n)}}return e.split(t,n)}var cp=da((function(e,t,r){return e+(r?" ":"")+wp(t)}));function fp(e,t,r){e=Qc(e);r=r==null?0:gi($c(r),0,e.length);t=No(t);return e.slice(r,r+t.length)==t}function pp(e,t,n){var i=xn.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,Ca);var o=rf({},t.imports,i.imports,Ca),a=xf(o),s=$r(o,a);var l,c,f=0,p=t.interpolate||Ze,h="__p += '";var d=nt((t.escape||Ze).source+"|"+p.source+"|"+(p===Ae?We:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g");var v="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$t+"]")+"\n";e.replace(d,(function(t,r,n,i,o,a){n||(n=i);h+=e.slice(f,a).replace(Qe,tn);if(r){l=true;h+="' +\n__e("+r+") +\n'"}if(o){c=true;h+="';\n"+o+";\n__p += '"}if(n){h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));h+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){h="with (obj) {\n"+h+"\n}\n"}else if(Ue.test(g)){throw new Be(u)}h=(c?h.replace(we,""):h).replace(ke,"$1").replace(xe,"$1;");h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=xp((function(){return et(a,v+"return "+h).apply(r,s)}));m.source=h;if(bc(m)){throw m}return m}function hp(e){return Qc(e).toLowerCase()}function dp(e){return Qc(e).toUpperCase()}function vp(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Jr(e)}if(!e||!(t=No(t))){return e}var i=vn(e),o=vn(t),a=Yr(i,o),s=Xr(i,o)+1;return Jo(i,a,s).join("")}function gp(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,gn(e)+1)}if(!e||!(t=No(t))){return e}var i=vn(e),o=Xr(i,vn(t))+1;return Jo(i,0,o).join("")}function mp(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(Le,"")}if(!e||!(t=No(t))){return e}var i=vn(e),o=Yr(i,vn(t));return Jo(i,o).join("")}function yp(e,t){var n=j,i=I;if(Oc(t)){var o="separator"in t?t.separator:o;n="length"in t?$c(t.length):n;i="omission"in t?No(t.omission):i}e=Qc(e);var a=e.length;if(nn(e)){var s=vn(e);a=s.length}if(n>=a){return e}var u=n-dn(i);if(u<1){return i}var l=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(zc(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc(He.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var p=c.index}l=l.slice(0,p===r?u:p)}}else if(e.indexOf(No(o),u)!=u){var h=l.lastIndexOf(o);if(h>-1){l=l.slice(0,h)}}return l+i}function bp(e){e=Qc(e);return e&&De.test(e)?e.replace(Oe,mn):e}var _p=da((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var wp=ha("toUpperCase");function kp(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return on(e)?_n(e):Cr(e)}return e.match(t)||[]}var xp=wo((function(e,t){try{return mr(e,r,t)}catch(e){return bc(e)?e:new Be(e)}}));var Op=Fa((function(e,t){br(t,(function(t){t=Es(t);di(e,t,Cl(e[t],e))}));return e}));function Tp(e){var t=e==null?0:e.length,r=Wa();e=!t?[]:Tr(e,(function(e){if(typeof e[1]!="function"){throw new ot(s)}return[r(e[0]),e[1]]}));return wo((function(r){var n=-1;while(++n<t){var i=e[n];if(mr(i[0],this,r)){return mr(i[1],this,r)}}}))}function Dp(e){return yi(mi(e,p))}function jp(e){return function(){return e}}function Ip(e,t){return e==null||e!==e?t:e}var Mp=ya();var Ap=ya(true);function Ep(e){return e}function Cp(e){return to(typeof e=="function"?e:mi(e,p))}function Sp(e){return ao(mi(e,p))}function Np(e,t){return so(e,mi(t,p))}var zp=wo((function(e,t){return function(r){return qi(r,e,t)}}));var Lp=wo((function(e,t){return function(r){return qi(e,r,t)}}));function Rp(e,t,r){var n=xf(t),i=Si(t,n);if(r==null&&!(Oc(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=Si(t,xf(t))}var o=!(Oc(r)&&"chain"in r)||!!r.chain,a=wc(e);br(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,Dr([this.value()],arguments))}}}));return e}function Fp(){if(or._===this){or._=gt}return this}function Pp(){}function Vp(e){e=$c(e);return wo((function(t){return co(t,e)}))}var Bp=ka(Tr);var Up=ka(wr);var qp=ka(Mr);function Wp(e){return us(e)?Pr(Es(e)):vo(e)}function Hp(e){return function(t){return e==null?r:Ni(e,t)}}var Jp=Ta();var Gp=Ta(true);function $p(){return[]}function Kp(){return false}function Yp(){return{}}function Xp(){return""}function Zp(){return true}function Qp(e,t){e=$c(e);if(e<1||e>z){return[]}var r=F,n=qt(e,F);t=Wa(t);e-=F;var i=Wr(n,t);while(++r<e){t(r)}return i}function eh(e){if(uc(e)){return Tr(e,Es)}return Pc(e)?[e]:ia(As(Qc(e)))}function th(e){var t=++pt;return Qc(e)+t}var rh=wa((function(e,t){return e+t}),0);var nh=Ia("ceil");var ih=wa((function(e,t){return e/t}),1);var oh=Ia("floor");function ah(e){return e&&e.length?Ti(e,Ep,Ri):r}function sh(e,t){return e&&e.length?Ti(e,Wa(t,2),Ri):r}function uh(e){return Fr(e,Ep)}function lh(e,t){return Fr(e,Wa(t,2))}function ch(e){return e&&e.length?Ti(e,Ep,io):r}function fh(e,t){return e&&e.length?Ti(e,Wa(t,2),io):r}var ph=wa((function(e,t){return e*t}),1);var hh=Ia("round");var dh=wa((function(e,t){return e-t}),0);function vh(e){return e&&e.length?qr(e,Ep):0}function gh(e,t){return e&&e.length?qr(e,Wa(t,2)):0}xn.after=Ml;xn.ary=Al;xn.assign=ef;xn.assignIn=tf;xn.assignInWith=rf;xn.assignWith=nf;xn.at=of;xn.before=El;xn.bind=Cl;xn.bindAll=Op;xn.bindKey=Sl;xn.castArray=Zl;xn.chain=Hu;xn.chunk=zs;xn.compact=Ls;xn.concat=Rs;xn.cond=Tp;xn.conforms=Dp;xn.constant=jp;xn.countBy=rl;xn.create=af;xn.curry=Nl;xn.curryRight=zl;xn.debounce=Ll;xn.defaults=sf;xn.defaultsDeep=uf;xn.defer=Rl;xn.delay=Fl;xn.difference=Fs;xn.differenceBy=Ps;xn.differenceWith=Vs;xn.drop=Bs;xn.dropRight=Us;xn.dropRightWhile=qs;xn.dropWhile=Ws;xn.fill=Hs;xn.filter=il;xn.flatMap=sl;xn.flatMapDeep=ul;xn.flatMapDepth=ll;xn.flatten=$s;xn.flattenDeep=Ks;xn.flattenDepth=Ys;xn.flip=Pl;xn.flow=Mp;xn.flowRight=Ap;xn.fromPairs=Xs;xn.functions=vf;xn.functionsIn=gf;xn.groupBy=pl;xn.initial=eu;xn.intersection=tu;xn.intersectionBy=ru;xn.intersectionWith=nu;xn.invert=_f;xn.invertBy=wf;xn.invokeMap=dl;xn.iteratee=Cp;xn.keyBy=vl;xn.keys=xf;xn.keysIn=Of;xn.map=gl;xn.mapKeys=Tf;xn.mapValues=Df;xn.matches=Sp;xn.matchesProperty=Np;xn.memoize=Vl;xn.merge=jf;xn.mergeWith=If;xn.method=zp;xn.methodOf=Lp;xn.mixin=Rp;xn.negate=Bl;xn.nthArg=Vp;xn.omit=Mf;xn.omitBy=Af;xn.once=Ul;xn.orderBy=ml;xn.over=Bp;xn.overArgs=ql;xn.overEvery=Up;xn.overSome=qp;xn.partial=Wl;xn.partialRight=Hl;xn.partition=yl;xn.pick=Ef;xn.pickBy=Cf;xn.property=Wp;xn.propertyOf=Hp;xn.pull=uu;xn.pullAll=lu;xn.pullAllBy=cu;xn.pullAllWith=fu;xn.pullAt=pu;xn.range=Jp;xn.rangeRight=Gp;xn.rearg=Jl;xn.reject=wl;xn.remove=hu;xn.rest=Gl;xn.reverse=du;xn.sampleSize=xl;xn.set=Nf;xn.setWith=zf;xn.shuffle=Ol;xn.slice=vu;xn.sortBy=jl;xn.sortedUniq=ku;xn.sortedUniqBy=xu;xn.split=lp;xn.spread=$l;xn.tail=Ou;xn.take=Tu;xn.takeRight=Du;xn.takeRightWhile=ju;xn.takeWhile=Iu;xn.tap=Ju;xn.throttle=Kl;xn.thru=Gu;xn.toArray=Jc;xn.toPairs=Lf;xn.toPairsIn=Rf;xn.toPath=eh;xn.toPlainObject=Xc;xn.transform=Ff;xn.unary=Yl;xn.union=Mu;xn.unionBy=Au;xn.unionWith=Eu;xn.uniq=Cu;xn.uniqBy=Su;xn.uniqWith=Nu;xn.unset=Pf;xn.unzip=zu;xn.unzipWith=Lu;xn.update=Vf;xn.updateWith=Bf;xn.values=Uf;xn.valuesIn=qf;xn.without=Ru;xn.words=kp;xn.wrap=Xl;xn.xor=Fu;xn.xorBy=Pu;xn.xorWith=Vu;xn.zip=Bu;xn.zipObject=Uu;xn.zipObjectDeep=qu;xn.zipWith=Wu;xn.entries=Lf;xn.entriesIn=Rf;xn.extend=tf;xn.extendWith=rf;Rp(xn,xn);xn.add=rh;xn.attempt=xp;xn.camelCase=Gf;xn.capitalize=$f;xn.ceil=nh;xn.clamp=Wf;xn.clone=Ql;xn.cloneDeep=tc;xn.cloneDeepWith=rc;xn.cloneWith=ec;xn.conformsTo=nc;xn.deburr=Kf;xn.defaultTo=Ip;xn.divide=ih;xn.endsWith=Yf;xn.eq=ic;xn.escape=Xf;xn.escapeRegExp=Zf;xn.every=nl;xn.find=ol;xn.findIndex=Js;xn.findKey=lf;xn.findLast=al;xn.findLastIndex=Gs;xn.findLastKey=cf;xn.floor=oh;xn.forEach=cl;xn.forEachRight=fl;xn.forIn=ff;xn.forInRight=pf;xn.forOwn=hf;xn.forOwnRight=df;xn.get=mf;xn.gt=oc;xn.gte=ac;xn.has=yf;xn.hasIn=bf;xn.head=Zs;xn.identity=Ep;xn.includes=hl;xn.indexOf=Qs;xn.inRange=Hf;xn.invoke=kf;xn.isArguments=sc;xn.isArray=uc;xn.isArrayBuffer=lc;xn.isArrayLike=cc;xn.isArrayLikeObject=fc;xn.isBoolean=pc;xn.isBuffer=hc;xn.isDate=dc;xn.isElement=vc;xn.isEmpty=gc;xn.isEqual=mc;xn.isEqualWith=yc;xn.isError=bc;xn.isFinite=_c;xn.isFunction=wc;xn.isInteger=kc;xn.isLength=xc;xn.isMap=Dc;xn.isMatch=jc;xn.isMatchWith=Ic;xn.isNaN=Mc;xn.isNative=Ac;xn.isNil=Cc;xn.isNull=Ec;xn.isNumber=Sc;xn.isObject=Oc;xn.isObjectLike=Tc;xn.isPlainObject=Nc;xn.isRegExp=zc;xn.isSafeInteger=Lc;xn.isSet=Rc;xn.isString=Fc;xn.isSymbol=Pc;xn.isTypedArray=Vc;xn.isUndefined=Bc;xn.isWeakMap=Uc;xn.isWeakSet=qc;xn.join=iu;xn.kebabCase=Qf;xn.last=ou;xn.lastIndexOf=au;xn.lowerCase=ep;xn.lowerFirst=tp;xn.lt=Wc;xn.lte=Hc;xn.max=ah;xn.maxBy=sh;xn.mean=uh;xn.meanBy=lh;xn.min=ch;xn.minBy=fh;xn.stubArray=$p;xn.stubFalse=Kp;xn.stubObject=Yp;xn.stubString=Xp;xn.stubTrue=Zp;xn.multiply=ph;xn.nth=su;xn.noConflict=Fp;xn.noop=Pp;xn.now=Il;xn.pad=rp;xn.padEnd=np;xn.padStart=ip;xn.parseInt=op;xn.random=Jf;xn.reduce=bl;xn.reduceRight=_l;xn.repeat=ap;xn.replace=sp;xn.result=Sf;xn.round=hh;xn.runInContext=e;xn.sample=kl;xn.size=Tl;xn.snakeCase=up;xn.some=Dl;xn.sortedIndex=gu;xn.sortedIndexBy=mu;xn.sortedIndexOf=yu;xn.sortedLastIndex=bu;xn.sortedLastIndexBy=_u;xn.sortedLastIndexOf=wu;xn.startCase=cp;xn.startsWith=fp;xn.subtract=dh;xn.sum=vh;xn.sumBy=gh;xn.template=pp;xn.times=Qp;xn.toFinite=Gc;xn.toInteger=$c;xn.toLength=Kc;xn.toLower=hp;xn.toNumber=Yc;xn.toSafeInteger=Zc;xn.toString=Qc;xn.toUpper=dp;xn.trim=vp;xn.trimEnd=gp;xn.trimStart=mp;xn.truncate=yp;xn.unescape=bp;xn.uniqueId=th;xn.upperCase=_p;xn.upperFirst=wp;xn.each=cl;xn.eachRight=fl;xn.first=Zs;Rp(xn,function(){var e={};Ei(xn,(function(t,r){if(!ft.call(xn.prototype,r)){e[r]=t}}));return e}(),{chain:false});xn.VERSION=n;br(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xn[e].placeholder=xn}));br(["drop","take"],(function(e,t){jn.prototype[e]=function(n){n=n===r?1:Vt($c(n),0);var i=this.__filtered__&&!t?new jn(this):this.clone();if(i.__filtered__){i.__takeCount__=qt(n,i.__takeCount__)}else{i.__views__.push({size:qt(n,F),type:e+(i.__dir__<0?"Right":"")})}return i};jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));br(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==E||r==S;jn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:Wa(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));br(["head","last"],(function(e,t){var r="take"+(t?"Right":"");jn.prototype[e]=function(){return this[r](1).value()[0]}}));br(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[r](1)}}));jn.prototype.compact=function(){return this.filter(Ep)};jn.prototype.find=function(e){return this.filter(e).head()};jn.prototype.findLast=function(e){return this.reverse().find(e)};jn.prototype.invokeMap=wo((function(e,t){if(typeof e=="function"){return new jn(this)}return this.map((function(r){return qi(r,e,t)}))}));jn.prototype.reject=function(e){return this.filter(Bl(Wa(e)))};jn.prototype.slice=function(e,t){e=$c(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new jn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=$c(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};jn.prototype.toArray=function(){return this.take(F)};Ei(jn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=xn[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}xn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof jn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(xn,Dr([e],s));return i&&p?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,v=u&&!h;if(!a&&c){t=v?t:new jn(this);var g=e.apply(t,s);g.__actions__.push({func:Gu,args:[f],thisArg:r});return new Dn(g,p)}if(d&&v){return e.apply(this,s)}g=this.thru(f);return d?i?g.value()[0]:g.value():g}}));br(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));Ei(jn.prototype,(function(e,t){var r=xn[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[ba(r,y).name]=[{name:"wrapper",func:r}];jn.prototype.clone=In;jn.prototype.reverse=Mn;jn.prototype.value=An;xn.prototype.at=$u;xn.prototype.chain=Ku;xn.prototype.commit=Yu;xn.prototype.next=Xu;xn.prototype.plant=Qu;xn.prototype.reverse=el;xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=tl;xn.prototype.first=xn.prototype.head;if(jt){xn.prototype[jt]=Zu}return xn};var kn=wn();if(sr){(sr.exports=kn)._=kn;ar._=kn}else{or._=kn}}).call(a)}));function E(e){var t="";var r=true;if(!(typeof e.source=="string"&&["data","webservice","file"].indexOf(e.source)>-1)){r=false;t="options.source value '"+e.source+"' doesn't meet interface IConf requirements"}else{if(!(e.source!="webservice"||e.source=="webservice"&&e.url&&typeof e.url=="string")){r=false;t="options.url value '"+e.url+"' doesn't meet interface IConf requirements, is wrongly formated or doesn't match option.source value"}if(!(e.source!="webservice"&&!e.token||e.source=="webservice"&&e.token&&(typeof e.token=="string"||typeof e.token=="function"))){r=false;t="options.token value doesn't meet interface IConf requirements or doesn't match option.source value :: typeof object.token == "+typeof e.token}if(!(e.source!="webservice"&&!e.options||e.source=="webservice"&&e.options&&typeof e.options=="object")){r=false;t="options.options value doesn't meet interface IConf requirements or doesn't match option.source value"}if(!(e.source!="data"&&!e.data||e.source=="data"&&e.data&&(typeof e.data=="object"||typeof e.data=="string"))){r=false;t="options.data value doesn't meet interface IConf requirements or doesn't match option.source value"}if(!(e.source!="file"||e.source=="file"&&e.url&&typeof e.url=="string")){r=false;t="options.url value '"+e.url+"' doesn't meet interface IConf requirements or doesn't match option.source value"}}if(!(typeof e.origin=="string"&&["thesaurus","position","classification"].indexOf(e.origin)>-1)){r=false;t="options.origin value '"+e.origin+"' doesn't meet interface IConf requirements"}if(!(!e.output&&typeof e.output!="boolean"||typeof e.output=="string"&&["fullpath","nodeid"].indexOf(e.output)>-1)){r=false;t="options.output value '"+e.output+"' doesn't meet interface IConf requirements"}if(!(!e.multiple&&typeof e.multiple!="boolean"||typeof e.multiple=="boolean")){r=false;t="options.multiple value '"+e.multiple+"' doesn't meet interface IConf requirements"}if(!(!e.mode&&typeof e.mode!="boolean"||typeof e.mode=="string"&&["tree","input"].indexOf(e.mode)>-1)){t="options.mode value '"+e.mode+"' doesn't meet interface IConf requirements"}if(!(!e.label&&typeof e.label!="boolean"||typeof e.label=="string"||typeof e.label=="object")){r=false;t="options.label value '"+e.label+"' doesn't meet interface IConf requirements"}if(!(!e.searchPlaceholder&&typeof e.searchPlaceholder!="boolean"||typeof e.searchPlaceholder=="string"||typeof e.searchPlaceholder=="object")){r=false;t="options.searchPlaceholder value '"+e.searchPlaceholder+"' doesn't meet interface IConf requirements"}if(!(!e.defaultValue&&typeof e.defaultValue!="boolean"||typeof e.defaultValue=="object"&&(e.multiple==true||e.defaultValue.length<=1)||typeof e.defaultValue=="string"||typeof e.defaultValue=="number")){r=false;t="options.defaultValue value '"+e.defaultValue+"' doesn't meet interface IConf requirements or doesn't match option.multiple value"}if(!(!e.readonly&&typeof e.readonly!="boolean"||typeof e.readonly=="boolean")){r=false;t="readonly value '"+e.readonly+"' doesn't meet interface IConf requirements"}if(!(!e.loading&&typeof e.loading!="boolean"||typeof e.loading=="string"&&["display","click"].indexOf(e.loading)>-1)){r=false;t="options.loading value '"+e.loading+"' doesn't meet interface IConf requirements"}if(!(!e.displayTree&&typeof e.displayTree!="boolean"||typeof e.displayTree=="boolean")){r=false;t="options.displayTree value '"+e.displayTree+"' doesn't meet interface IConf requirements"}if(!(!e.minDepth&&typeof e.minDepth!="number"||typeof e.minDepth=="number")||e.maxDepth&&e.maxDepth<e.minDepth){r=false;t="options.minDepth value '"+e.minDepth+"' doesn't meet interface IConf requirements or mismatches with maxDepth value"}if(!(!e.maxDepth&&typeof e.maxDepth!="number"||typeof e.maxDepth=="number")||e.minDepth&&e.minDepth>e.maxDepth){r=false;t="options.maxDepth value '"+e.maxDepth+"' doesn't meet interface IConf requirements or mismatches with minDepth value"}if(!(!e.isFullpath&&typeof e.isFullpath!="boolean"||typeof e.isFullpath=="boolean")){r=false;t="options.isFullpath value '"+e.isFullpath+"' doesn't meet interface IConf requirements"}if(!(!e.defaultValueIsFullpath&&typeof e.defaultValueIsFullpath!="boolean"||typeof e.defaultValueIsFullpath=="boolean")){r=false;t="options.defaultValueIsFullpath value '"+e.defaultValueIsFullpath+"' doesn't meet interface IConf requirements"}if(!(!e.showAutocomplete&&typeof e.showAutocomplete!="boolean"||typeof e.showAutocomplete=="boolean")){r=false;t="options.showAutocomplete value '"+e.showAutocomplete+"' doesn't meet interface IConf requirements"}if(!(!e.openTreeWhenLoaded&&typeof e.openTreeWhenLoaded!="boolean"||typeof e.openTreeWhenLoaded=="boolean")){r=false;t="options.openTreeWhenLoaded value '"+e.openTreeWhenLoaded+"' doesn't meet interface IConf requirements"}if(!(!e.displayRootNode&&typeof e.displayRootNode!="boolean"||typeof e.displayRootNode=="boolean")){r=false;t="options.displayRootNode value '"+e.displayRootNode+"' doesn't meet interface IConf requirements"}if(!(!e.dragAndDropEnabled&&typeof e.dragAndDropEnabled!="boolean"||typeof e.dragAndDropEnabled=="boolean")){r=false;t="options.dragAndDropEnabled value '"+e.dragAndDropEnabled+"' doesn't meet interface IConf requirements"}if(!(!e.contextMenu&&typeof e.contextMenu!="object"||typeof e.contextMenu=="object")){r=false;t="options.contextMenu value doesn't meet interface IConf requirements"}if(!(!e.searchResultPresentsUnMatched&&typeof e.searchResultPresentsUnMatched!="boolean"||typeof e.searchResultPresentsUnMatched=="boolean")){r=false;t="options.searchResultPresentsUnMatched value '"+e.searchResultPresentsUnMatched+"' doesn't meet interface IConf requirements"}if(!(!e.theme&&typeof e.theme!="object"||typeof e.theme=="object")){r=false;t="options.theme value doesn't meet interface IConf requirements"}var n=function(e){return e==="fr"||e==="en"};if(!(!e.language&&typeof e.language!="string"||typeof e.language=="string"&&n(e.language))){r=false;t="options.language value '"+e.language+"' doesn't meet interface IConf requirements ('fr' or 'en')"}return{toret:r,errorToLog:t}}function C(e){return!isNaN(parseFloat(e))&&isFinite(e)}function S(e){if(typeof e!="string")return false;return C(e)}function N(e,t){if(typeof t==="object"&&t!==null){if(t instanceof XMLHttpRequest){return"[XMLHttpRequest object]"}}return t}function z(e,t,r){var n=false;if(e.text.toLowerCase().indexOf(r.toLowerCase())>-1){n=true}else if(!t&&e.children.length>0&&Object.keys(e.children[0]).length!=0){e.children.forEach((function(e){if(z(e,t,r)){n=true}}))}return n}function L(e,t,r){if(e){switch(typeof e){case"string":return e;case"object":if(t){return e.filter((function(e){return e.language==t}))[0].value}else{var n=e.filter((function(e){return e.language==r}));if(n[0]){return n[0].value}else{console.error("Missing language value in component configuration! It happened when requesting item text.")}}break}}return""}function R(e,t){var r=false;e.composedPath().forEach((function(e,n){if(e.id=="hierarchized-picker-"+t){r=true}}));return r}var F=1e3;var P="en";var V={palette:{primary:{main:"#888",light:"#888",contrastText:"#000"},background:{default:"#ccc",light:"#eee",main:"#000",dark:"#fff"},text:{primary:"#000"}},typography:{body:{fontSize:"14px",fontWeight:"400"}}};var B=function(){function e(e,t){this.rawData=null;this.token=e;this.optionsManager=t;this.baseUrl=t.getOptions().url}e.prototype.getToken=function(){var e;if(typeof this.token==="string"){return this.token.length>200?this.token:(e=window.localStorage.getItem(this.token))!==null&&e!==void 0?e:null}if(typeof this.token==="function"){var t=this.token();return typeof t==="string"?t:null}return null};e.prototype.makeRequest=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){if(n)n.classList.add("loading");i=this.getToken();if(!i){throw new Error("No token available.")}return[2,new Promise((function(o,a){var s=new XMLHttpRequest;s.open(e,"".concat(t),true);s.setRequestHeader("Authorization","Bearer ".concat(i));if(e==="POST"){s.setRequestHeader("Content-Type","application/json;charset=UTF-8")}s.onload=function(){if(n)n.classList.remove("loading");if(s.status>=200&&s.status<300){o(JSON.parse(s.responseText))}else{a(new Error("HTTP ".concat(s.status,": ").concat(s.statusText)))}};s.onerror=function(){if(n)n.classList.remove("loading");a(new Error("Network error"))};s.send(r?JSON.stringify(r):null)}))]}))}))};e.prototype.getFromClassification=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:n="";i=[];for(o in t){if(!t.hasOwnProperty(o))continue;a=t[o];s=o.toLowerCase();if(s==="startnode"&&!n){n=encodeURIComponent(a);continue}i.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a)))}u=i.length>0?"?".concat(i.join("&")):"";l=n?"".concat(e,"/").concat(n,"/").concat(u):"".concat(e,"/").concat(u);return[4,this.makeRequest("GET",l,null,r)];case 1:return[2,c.sent()]}}))}))};e.prototype.getFromSource=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.makeRequest("POST",e,t,r)]}))}))};e.prototype.loadDataFromFile=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.makeRequest("GET",e,null)]}))}))};e.prototype.fetchNodeIdFromFullpath=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:switch(t.origin){case"thesaurus":r={iStartNode:this.optionsManager.getOptions().options.StartNodeID,sValue:e,sTypeField:"fullpath"};break;case"position":r={value:e,startNodeId:this.optionsManager.getOptions().options.StartNodeID};break;default:throw new Error("Invalid origin: ".concat(t.origin,", only 'thesaurus' and 'position' implemented for now..."))}n=this.getApiNodeFromFullpathURL(t);i=0;return[4,this.makeRequest("POST",n,r).then((function(e){if(e.exist){if(t.origin==="thesaurus")i=e.topic.TTop_PK_ID;if(t.origin==="position")i=e.position.ID;if(t.origin==="classification")i=e.node.ID}}))];case 1:o.sent();return[2,i]}}))}))};e.prototype.getApiNodeFromFullpathURL=function(e){var t=this.baseUrl.substring(0,this.baseUrl.lastIndexOf("/"));switch(e.origin){case"thesaurus":return"".concat(t,"/existBy");case"position":return"".concat(t,"/PositionExistByFp");case"classification":return"".concat(t,"/exists");default:throw new Error("Invalid origin: ".concat(e.origin))}};e.prototype.loadData=function(e){this.rawData=e};e.prototype.getData=function(){return this.rawData};e.prototype.mergeData=function(e,t){if(!this.rawData)this.rawData=e;else{this.rawData=this.genericMerge(this.rawData,e,t,"children")}};e.prototype.reorderItems=function(e,t,r){var n=new Map(t.map((function(e){return[e[r],e]})));return e.map((function(e){return n.get(e[r])})).filter(Boolean)};e.prototype.genericMerge=function(e,t,r,n){var i=this;var o,a;if(!e){return t}if(!t||!((o=t[n])===null||o===void 0?void 0:o.length))return e;if(e[n]&&e[n].length>0&&t[n]&&t[n].length>0)t[n]=this.reorderItems(e[n],t[n],r);e[n]=((a=e[n])===null||a===void 0?void 0:a.length)?e[n].map((function(e,o){return i.genericMerge(e,t[n].filter((function(t){return t.key==e.key}))[o],r,n)})):t[n];return e};e.prototype.searchAndMergeData=function(e,t){return this.genericMerge(e,t,"key","children")};e.prototype.searchAndMergeDataClassification=function(e,t){return this.genericMerge(e,t,"ID","children")};return e}();var U=function(){function e(e){this.options=this.initializeOptions(e)}e.prototype.initializeOptions=function(e){var t={multiple:false,mode:"input",loading:"display",showAutocomplete:false,openTreeWhenLoaded:false,displayRootNode:false,dragAndDropEnabled:false,errorsInInput:true,isFullpath:true,defaultValue:[]};var r=Object.assign(Object.assign({},t),e);if(typeof r.defaultValue!=="object"){r.defaultValue=[r.defaultValue]}return r};Object.defineProperty(e.prototype,"data",{get:function(){if(typeof this.getOptions().data==="object")return this.options.data;return JSON.parse(this.options.data)},enumerable:false,configurable:true});e.prototype.getOptions=function(){return this.options};e.prototype.updateOptions=function(e){this.options=Object.assign(Object.assign({},this.options),e)};e.prototype.validateNewOptions=function(e){return this.initializeOptions(Object.assign(Object.assign({},this.options),e))};e.prototype.updateDefaultValue=function(){if(this.options.defaultValue!=undefined&&this.options.defaultValue.length===0){delete this.options.defaultValue}};e.prototype.dropReach=function(){if(this.options.options&&this.options.options.Reach){delete this.options.options.Reach}};return e}();function q(e,t,r){if(r===void 0){r=true}t=t.trim();if(!e||!t){return""}if(e[t]||e[t]===0){return e[t]}if(e.data&&(e.data[t]||e.data[t]===0)){return e.data[t]}if(r)console.error("Property '".concat(t,"' not found in node:"),e);return null}function W(e,t){return e.nodesById[t]||null}function H(e,t,r,n,i){if(i===void 0){i=0}var o=n.searchResultPresentsUnMatched;if(t&&t.length){t.forEach((function(t){var a,s,u,l;var c=null;var f=null;var p=null;var h=null;if(n.origin=="classification"){c=q(t,"ID");f=(a=q(t,"Translations")[n.language])===null||a===void 0?void 0:a.translated_name;p=(s=q(t,"Properties"))===null||s===void 0?void 0:s.System_Fullpath;h=(u=q(t,"Translations")[n.language])===null||u===void 0?void 0:u.translated_fullpath;if(!p)p=(l=q(t,"Properties"))===null||l===void 0?void 0:l.System_FullPath;if(!h)h=q(t,"fullpathTranslated")}else{c=q(t,"key");f=q(t,"valueTranslated");p=q(t,"fullpath");h=q(t,"fullpathTranslated")}var d=q(t,"children",false);var v=q(t,"deprecated",null);if(v===null)v=q(t,"Is_Deprecated",false);var g={id:c,nodeId:c,depth:i,text:f,fullpath:p,fullpathTranslated:h,children:q(t,"hasChildren",false)&&d&&d.length===0?[{}]:[],deprecated:v,isDesaturated:false,searchMatch:false};var m=H(g.children,d,r,n,i+1);var y=false;if(r){var b=z(g,false,r);g.isDesaturated=!b;g.searchMatch=z(g,true,r);y=b||o}else{y=true}if(y){g.children=m;e.push(g)}}))}return e}function J(e,t,r){var n;var i=t.key||t.id||t.ID;var o=W(e,i);if(o){o.children=[];var a=(n=e.liElementsById[i])===null||n===void 0?void 0:n.querySelector("ul");if(!a){a=e.createUlEle();e.liElementsById[i].appendChild(a)}var s=H([],t.children,null,r);a.innerHTML="";s.forEach((function(t){var r=e.createLiEle(t,true);a.appendChild(r);o.children.push(t);e.nodesById[t.id]=t;e.liElementsById[t.id]=r}))}}function G(e,t,r,n,i){var o;if(e&&r.getOptions().showAutocomplete){var a=((o=e.children)===null||o===void 0?void 0:o.filter((function(e){var r;return(r=e.text)===null||r===void 0?void 0:r.toLowerCase().includes(t.toLowerCase())})))||[];a=a.sort((function(e,t){return e.text.localeCompare(t.text)}));var s=document.getElementById("autocomplete-results-area");s.innerHTML="";if(t.length>0){a.forEach((function(e){var t=document.createElement("li");t.title=e.text;t.textContent=e.text;t.setAttribute("nodeid",e.id);t.addEventListener("click",(function(){n(e.id);i("hide")}));s.appendChild(t)}));$()}}}function $(){var e=document.getElementById("autocomplete-results-area");if(e)e.style.display="block"}function K(e){if(e===void 0){e=false}var t=document.getElementById("autocomplete-results-area");if(t){t.style.display="none";if(e)t.innerHTML=""}}function Y(e,t){return t!==null&&e.el.contains(t)}function X(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=e.el.querySelector("search-input input");if(!(t&&document.activeElement!==t))return[3,2];return[4,t.focus()];case 1:r.sent();r.label=2;case 2:return[2]}}))}))}function Z(e){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){t=Array.from(document.querySelectorAll("input, button, textarea, select, [tabindex]")).filter((function(e){return e.tabIndex>=0}));r=t.indexOf(document.activeElement);n=(e=t[r+1])!==null&&e!==void 0?e:t[0];if(n){n.focus()}return[2]}))}))}function Q(e,t){if(t==="search"){X(e);e.showTree("search")}else if(t==="modale"){e.showTree("modale")}else if(t==="hide"){e.showTree("hide")}}function ee(e,t){var r=t.relatedTarget;if(!Y(e,r)){setTimeout((function(){if(!Y(e,document.activeElement)){Q(e,"hide")}}),100)}else{Q(e,"search")}}function te(e,t){if(e.pickerClass==="fieldError"){e.showTree("hide")}else if(e.shownTree){e.showTree("modale")}else{e.mylog("Ignored modal click")}}function re(e){Q(e,"search")}function ne(e,t){ee(e,t)}function ie(e){var t=e.el.querySelector(".hierarchized-picker-tree-area");if(!t)return;var r=0;var n=Array.from(t.querySelectorAll(".treejs-node"));function i(e){n.forEach((function(e){return e.classList.remove("treejs-node__checked")}));var t=n[e];if(t){t.classList.add("treejs-node__checked");t.scrollIntoView({block:"nearest"})}}e.el.addEventListener("keydown",(function(t){var o,a,s;t.stopPropagation();var u=e.loadedTreeJs;if(!u||!n.length)return;switch(t.key){case"Tab":t.preventDefault();e.showTree("hide");setTimeout((function(){return Z()}),10);break;case"ArrowUp":t.preventDefault();r=Math.max(r-1,0);i(r);break;case"ArrowDown":t.preventDefault();r=Math.min(r+1,n.length-1);i(r);break;case"ArrowLeft":t.preventDefault();var l=(o=n[r])===null||o===void 0?void 0:o.querySelector(".treejs-switcher");if(l){(a=e.loadedTreeJs)===null||a===void 0?void 0:a.onSwitcherClick(l);e.showTree("hide")}break;case"ArrowRight":t.preventDefault();var c=n[r];var f=c===null||c===void 0?void 0:c.querySelector(".treejs-switcher");if(f){(s=e.loadedTreeJs)===null||s===void 0?void 0:s.onSwitcherClick(f)}break;case"0":t.preventDefault();var p=n[r];if(p===null||p===void 0?void 0:p.nodeId){e.setNodeAsSelected(p.nodeId,e.loadedTreeJs,true);e.showTree("hide");setTimeout((function(){return Z()}),10)}break}}));i(r)}var oe='reneco-hierarchized-picker .hierarchized-picker-raw-tree-area{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}reneco-hierarchized-picker .loader{position:absolute;z-index:1;min-width:100%;min-height:100%;background:#FFFFFF99;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:10px;-webkit-box-sizing:border-box;box-sizing:border-box}reneco-hierarchized-picker .loader .loader-inner{background:#FFF;padding:20px;-webkit-box-shadow:0 0 5px #000;box-shadow:0 0 5px #000;-webkit-box-sizing:border-box;box-sizing:border-box}reneco-hierarchized-picker .loader:not(.loading){display:none}reneco-hierarchized-picker .scrollable{overflow-y:auto;position:relative}reneco-hierarchized-picker .treejs{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:var(--hpicker-theme-typography-tree-font-size, 14px) !important;font-weight:var(--hpicker-theme-typography-tree-font-weight, 400) !important}reneco-hierarchized-picker .treejs *:after,reneco-hierarchized-picker .treejs *:before{-webkit-box-sizing:border-box;box-sizing:border-box}reneco-hierarchized-picker .treejs>.treejs-node{padding-left:0}reneco-hierarchized-picker .treejs .treejs-nodes{list-style:none;padding-left:20px;overflow:hidden;-webkit-transition:height 150ms ease-out, opacity 150ms ease-out;-o-transition:height 150ms ease-out, opacity 150ms ease-out;transition:height 150ms ease-out, opacity 150ms ease-out}reneco-hierarchized-picker .treejs .treejs-node{cursor:pointer;overflow:hidden;position:relative}reneco-hierarchized-picker .treejs .treejs-node.treejs-placeholder{padding-left:20px}reneco-hierarchized-picker .treejs .treejs-switcher{display:inline-block;vertical-align:middle;width:20px;height:20px;cursor:pointer;position:relative;-webkit-transition:-webkit-transform 150ms ease-out;transition:-webkit-transform 150ms ease-out;-o-transition:transform 150ms ease-out;transition:transform 150ms ease-out;transition:transform 150ms ease-out, -webkit-transform 150ms ease-out}reneco-hierarchized-picker .treejs .treejs-switcher:before{position:absolute;top:8px;left:6px;display:block;content:\' \';border:4px solid transparent;border-top:4px solid rgba(0, 0, 0, 0.4);-webkit-transition:border-color 150ms;-o-transition:border-color 150ms;transition:border-color 150ms}reneco-hierarchized-picker .treejs .treejs-switcher:hover:before{border-top:4px solid var(--hpicker-theme-palette-font-color)}reneco-hierarchized-picker .treejs-node__checked>.treejs-switcher:before{border-top:4px solid var(--hpicker-theme-palette-primary-contrastText) !important}reneco-hierarchized-picker .treejs .treejs-node__close>.treejs-switcher{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}reneco-hierarchized-picker .treejs .treejs-node__close>.treejs-nodes{height:0}reneco-hierarchized-picker .treejs .treejs-checkbox{display:inline-block;vertical-align:middle;width:20px;height:20px;cursor:pointer;position:relative}reneco-hierarchized-picker .treejs .treejs-checkbox:before{-webkit-transition:all 0.3s;-o-transition:all 0.3s;transition:all 0.3s;cursor:pointer;position:absolute;top:2px;content:\' \';display:block;width:16px;height:16px;border:1px solid #d9d9d9;border-radius:2px}reneco-hierarchized-picker .treejs .treejs-checkbox:hover:before{-webkit-box-shadow:0 0 2px 1px #1890ff;box-shadow:0 0 2px 1px #1890ff}reneco-hierarchized-picker .treejs .treejs-node__checked>.treejs-checkbox:before{background-color:#1890ff;border-color:#1890ff}reneco-hierarchized-picker .treejs .treejs-node__checked>.treejs-checkbox:after{position:absolute;content:\' \';display:block;top:4px;left:5px;width:5px;height:9px;border:2px solid #fff;border-top:none;border-left:none;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}reneco-hierarchized-picker .treejs .treejs-node__halfchecked{background-color:var(--hpicker-theme-palette-background-default, var(--mui-palette-background-default, #e8a86c))}reneco-hierarchized-picker .treejs .treejs-node__halfchecked>.treejs-checkbox:before{background-color:#1890ff;border-color:#1890ff}reneco-hierarchized-picker .treejs .treejs-node__halfchecked>.treejs-checkbox:after{position:absolute;content:\' \';display:block;top:9px;left:3px;width:10px;height:2px;background-color:#fff}reneco-hierarchized-picker .treejs .treejs-node__disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.25)}reneco-hierarchized-picker .treejs .treejs-node__disabled .treejs-checkbox{cursor:not-allowed}reneco-hierarchized-picker .treejs .treejs-node__disabled .treejs-checkbox:before{cursor:not-allowed;border-color:#d9d9d9 !important;background-color:#f5f5f5 !important}reneco-hierarchized-picker .treejs .treejs-node__disabled .treejs-checkbox:hover:before{-webkit-box-shadow:none !important;box-shadow:none !important}reneco-hierarchized-picker .treejs .treejs-node__disabled .treejs-node__checked>.treejs-checkbox:after{border-color:#d9d9d9}reneco-hierarchized-picker .treejs .treejs-node__disabled .treejs-node__halfchecked>.treejs-checkbox:after{background-color:#d9d9d9}reneco-hierarchized-picker .treejs .treejs-node__disabled.treejs-node__checked>.treejs-checkbox:after{border-color:#d9d9d9}reneco-hierarchized-picker .treejs .treejs-node__disabled.treejs-node__halfchecked>.treejs-checkbox:after{background-color:#d9d9d9}reneco-hierarchized-picker .treejs .treejs-label{vertical-align:middle}reneco-hierarchized-picker .treejs .treejs-node__deprecated>.treejs-label{text-decoration:line-through}reneco-hierarchized-picker .treejs .treejs-node__desaturated>.treejs-label{opacity:.5}reneco-hierarchized-picker .treejs .treejs-node__searchmatch>.treejs-label{font-weight:bolder}reneco-hierarchized-picker .treejs .dragging{background:var(--hpicker-theme-palette-background-light, var(--mui-palette-background-light, #e8a86c));display:inline;opacity:.9;padding:11px 0px;display:block}reneco-hierarchized-picker .treejs .dragover{background:var(--hpicker-theme-palette-background-light, var(--mui-palette-background-light, #e8a86c))}reneco-hierarchized-picker .treejs .dragover-over::after{content:"";display:block;width:2px;height:100%;position:absolute;top:0;left:0;background:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, #d58433))}reneco-hierarchized-picker .treejs .dragover-before::after{content:"";display:block;height:2px;width:100%;position:absolute;top:0;left:0;background:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, #d58433))}reneco-hierarchized-picker .treejs .dragover-after::after{content:"";display:block;height:2px;width:100%;position:absolute;bottom:0;left:0;background:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, #d58433))}reneco-hierarchized-picker .fieldError{color:red !important}reneco-hierarchized-picker .hidden{display:none;opacity:0}reneco-hierarchized-picker ul.treejs-nodes:first-child{padding-left:0px !important;margin-top:0px !important;margin-left:0px !important;background-color:var(--hpicker-theme-palette-background-dark)}reneco-hierarchized-picker ul.treejs-nodes:not(:first-child){margin:0 !important;padding-left:15px !important;background-color:var(--hpicker-theme-palette-background-dark, var(--mui-palette-background-dark, var(--ion-color-light-tint, #FFF)))}reneco-hierarchized-picker ul.treejs-nodes{margin-left:15px !important;padding-left:0px !important}reneco-hierarchized-picker .hierarchized-picker-raw-tree li.treejs-node ul.treejs-nodes{margin:11px 0 0 0 !important}reneco-hierarchized-picker .hierarchized-picker-raw-tree li.treejs-node__close ul.treejs-nodes{margin:0 !important}reneco-hierarchized-picker li.treejs-node__close{background-color:var(--hpicker-theme-palette-background-light, var(--mui-palette-background-light, var(--ion-color-light, #FAFAFA)))}reneco-hierarchized-picker li:not(.treejs-node__close){background-color:var(--hpicker-theme-palette-background-default, var(--mui-palette-background-default, #e8a86c));padding-bottom:0px !important}reneco-hierarchized-picker li:not(.treejs-node__close) ul.treejs-nodes li{margin-top:2px !important}reneco-hierarchized-picker ul li:last-child{margin-bottom:0px !important}reneco-hierarchized-picker li.treejs-node__checked{background-color:var(--hpicker-theme-palette-primary-light) !important;color:var(--hpicker-theme-palette-primary-ContrastText, var(--mui-palette-primary-ContrastText, var(--ion-color-primary-contrast, #000)))!important}reneco-hierarchized-picker li.treejs-node{padding:2px 0px;margin-bottom:2px}reneco-hierarchized-picker .treejs-node.readonly_node{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:darkgrey}reneco-hierarchized-picker .treejs-node:not(.readonly_node){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--hpicker-theme-palette-font-color, var(--mui-palette-font-color, black))}reneco-hierarchized-picker .hierarchized-picker-container{position:relative;width:100%}reneco-hierarchized-picker .hierarchized-picker-input-area{background-color:transparent !important;display:inline;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}reneco-hierarchized-picker .hierarchized-picker-input-area .input-wrapper{padding-left:10px !important}reneco-hierarchized-picker .hierarchized-picker-input{-ms-flex:2;flex:2}reneco-hierarchized-picker .hierarchized-picker-input.readonly{pointer-events:none;cursor:initial}reneco-hierarchized-picker .hierarchized-picker-input.hierarchized-picker-icon{margin-left:8px}reneco-hierarchized-picker .hierarchized-picker-label{position:stacked;margin-left:5px}reneco-hierarchized-picker .hierarchized-picker-tree-area{width:333px !important;padding-top:48px}reneco-hierarchized-picker .hierarchized-picker-modal-area{background-color:var(--hpicker-theme-palette-background-dark, var(--mui-palette-background-dark, var(--ion-color-light-tint, #FFF))) !important;position:absolute;z-index:10;padding-left:15px;overflow:scroll;top:20px;min-height:100px;max-height:200px;-webkit-box-shadow:0 0px 15px 0 rgba(0, 0, 0, 0.2);box-shadow:0 0px 15px 0 rgba(0, 0, 0, 0.2);border-radius:4px;margin-right:0px !important}reneco-hierarchized-picker .hierarchized-picker-modal{display:inline-block;width:357px}reneco-hierarchized-picker .hierarchized-picker{display:-ms-flexbox;display:flex;width:100%;font-family:\'Roboto\', sans-serif}reneco-hierarchized-picker .hierarchized-picker-spinner{margin:35px 0px 0px 145px}reneco-hierarchized-picker .reneco:before{position:relative;top:1px}reneco-hierarchized-picker .hierarchized-picker-input-area span.reneco{padding:10px 15px}reneco-hierarchized-picker .hierarchized-picker-input-area span.reneco:hover{cursor:pointer}reneco-hierarchized-picker .hierarchized-picker-input-area span.reneco-close{-webkit-transform:translate(5px, -8px);transform:translate(5px, -8px);color:var(--ion-color-danger, red) !important}reneco-hierarchized-picker .treejs .treejs-switcher:before{border-top:4px solid var(--hpicker-theme-palette-font-color, var(--mui-palette-font-color, var(--ion-color-dark-shade, #121212)))}reneco-hierarchized-picker .treejs .treejs-checkbox:before{-webkit-box-shadow:none !important;box-shadow:none !important}reneco-hierarchized-picker .treejs .treejs-node__checked>.treejs-checkbox:before,reneco-hierarchized-picker .treejs .treejs-node__halfchecked>.treejs-checkbox:before{background-color:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, var(--ion-color-primary, #d58433))) !important;border-color:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, var(--ion-color-primary, #d58433))) !important;-webkit-box-shadow:none !important;box-shadow:none !important}reneco-hierarchized-picker #autocomplete-results-area{position:absolute;margin-top:48px;background-color:white;left:15px;z-index:10;padding:0px 5px;max-width:340px;max-height:110px;overflow:auto}reneco-hierarchized-picker #autocomplete-results-area li{list-style-type:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;margin:1px}reneco-hierarchized-picker .hierarchized-picker-raw-tree-area li.treejs-node{padding:11px 0px;display:block}reneco-hierarchized-picker input[title]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.hierarchized-picker-raw-tree-area.readonly li.treejs-node .treejs-switcher{pointer-events:all}::-webkit-scrollbar-thumb{background:var(--hpicker-theme-palette-primary-main, var(--mui-palette-primary-main, var(--ion-color-primary, #d58433)));width:8px;margin:5px;border-radius:5px}::-webkit-scrollbar{background:var(--ion-color-medium-tint, #E0E0E0);width:8px;height:8px;margin:5px;cursor:pointer;border-radius:5px}::-webkit-scrollbar-corner{background-color:var(--ion-color-light-tint, #FFF)}[class$="-dark"] reneco-hierarchized-picker li.treejs-node__close{background-color:var(--ion-color-dark-tint, #424242);color:var(--ion-color-dark-contrast, #fff)}[class$="-dark"] reneco-hierarchized-picker li:not(.treejs-node__close){background-color:var(--ion-color-dark, #212121);color:var(--ion-color-dark-contrast, #fff)}[class$="-dark"] reneco-hierarchized-picker li.treejs-node__checked{background-color:var(--ion-color-background, var(--hpicker-theme-palette-background-default, rgba(221, 169, 37, 0.18)));color:var(--ion-color-primary-contrast, #fff) !important}[class$="-dark"] reneco-hierarchized-picker .treejs-switcher:before{border-top-color:var(--ion-color-dark-contrast, #fff) !important}[class$="-dark"] reneco-hierarchized-picker li.treejs-node__checked .treejs-switcher:before{color:var(--ion-color-light-contrast, #111111) !important}[class$="-dark"] reneco-hierarchized-picker ul.treejs-nodes:not(:first-child){background-color:var(--ion-color-light-contrast, #111111) !important}';var ae=e("reneco_hierarchized_picker",function(){function e(e){t(this,e);this.valueChange=r(this,"valueChange",7);this.itemDropped=r(this,"itemDropped",7);this.itemContextMenuItemClick=r(this,"itemContextMenuItemClick",7);this.searchResult=r(this,"searchResult",7);this.canload=true;this.ready=false;this.searchToDisplay=0;this.ignoreOptionsChanges=true;this.lastSearchMatchCounter=0;this.setValueOnClick=true;this.mylog=console.log;this.options=undefined;this.valueChangeCallback=undefined;this.disabled=undefined;this.isDisabled=undefined;this.newoptions=undefined;this.newfilter=undefined;this.componentID=undefined;this.rawData=undefined;this.pickerClass="";this.displayedValue=undefined;this.value=[];this.shownTree=false;this.searchResultData=[];this.activatedDragAndDrop=true;this.hasFocus=undefined;this.errorToLog="";this.checkFields=this.checkFields.bind(this);this.setNodeAsSelected=this.setNodeAsSelected.bind(this);this.displayTree=this.displayTree.bind(this)}e.prototype.getValue=function(){var e=this;var t,r,n,i;if(!this.optionsManager.getOptions().output){if(this.optionsManager.getOptions().multiple){return Promise.resolve(this.value)}else{return Promise.resolve((t=this.value)===null||t===void 0?void 0:t[0])}}else{if(this.optionsManager.getOptions().multiple){return Promise.resolve((r=this.value)===null||r===void 0?void 0:r.map((function(t){return t[e.optionsManager.getOptions().output]})))}else{return Promise.resolve((i=(n=this.value)===null||n===void 0?void 0:n[0])===null||i===void 0?void 0:i[this.optionsManager.getOptions().output])}}};e.prototype.refreshPicker=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e){this.optionsManager.updateOptions({defaultValue:[]})}this.setNewOption(this.optionsManager.getOptions());return[2]}))}))};e.prototype.setOptions=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.setNewOption(e);return[2]}))}))};e.prototype.getOptionsAsIConf=function(e){if(typeof e=="string")return JSON.parse(e);return e};e.prototype.setSearchResults=function(e){var t=0;var r=__spreadArray([],e,true);while(r.length>0){var n=r.shift();t+=n.searchMatch?1:0;if(n.children){r.push.apply(r,n.children)}}this.lastSearchMatchCounter=t;this.searchResultData=e};e.prototype.getSearchResultWithCounter=function(e){return{data:e,matches:this.lastSearchMatchCounter}};e.prototype.searchResultDataChange=function(e,t){if(e&&e!=t&&e.length>0){this.searchResult.emit(this.getSearchResultWithCounter(e))}};e.prototype.getSearchResult=function(){return Promise.resolve(this.getSearchResultWithCounter(this.searchResultData))};e.prototype.logError=function(e){try{console.error("--- Hierarchized picker "+this.componentID+" ERROR ---",e)}catch(e){console.error("--- Hierarchized picker generic ERROR ---")}};Object.defineProperty(e.prototype,"theOptions",{get:function(){return this.optionsManager.getOptions()},enumerable:false,configurable:true});e.prototype.setNewOption=function(e,t){if(t===void 0){t=null}return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){switch(i.label){case 0:this.ready=false;if(typeof e=="string")e=JSON.parse(e);if(typeof t=="string")t=JSON.parse(t);this.optionsManager.updateOptions(e);this.setDisplayedValue(this.value);r=!t||(e.origin!=t.origin||e.options.StartNodeID!=t.options.StartNodeID);if(this.optionsManager.getOptions().source!="file"&&(!t||t&&r)){this.rawData=null}this.ready=false;n=E(this.optionsManager.getOptions());this.canload=n.toret;this.errorToLog=n.errorToLog;if(!this.canload){this.displayPickerError("Error(s) in the picker configuration!");return[2]}if(t&&JSON.stringify(e.options)!=JSON.stringify(t.options)){this.value=[]}if(!((e===null||e===void 0?void 0:e.loading)=="display"))return[3,3];if(!(t&&this.isChangeInOptions(e,t)||!t))return[3,2];this.rawDataManager=new B(this.getOptionsAsIConf(this.optionsManager.getOptions()).token,this.optionsManager);return[4,this.loadHierarchizedPicker(true)];case 1:i.sent();this.displayWhenLoaded();return[3,3];case 2:this.ready=true;i.label=3;case 3:return[2]}}))}))};e.prototype.setNewOptions=function(e){if(typeof e=="string")e=JSON.parse(e);this.setOptions(e)};e.prototype.setNewFilter=function(e){this.filterTree(e)};e.prototype.optionsChange=function(e,t){if(!this.optionsManager||!this.optionsManager.getOptions()||!this.ready||this.ignoreOptionsChanges){return}if(typeof e=="string")e=JSON.parse(e);this.setNewOption(e,t)};e.prototype.isChangeInOptions=function(e,t){var r=A.isEqual(e,t);if(!e.defaultValue&&!t.defaultValue)return;var n=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue];var i=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue];var o=n.length!==i.length||!n.every((function(e){return i.includes(e)}));if(!r&&o){return o}else{return!r}};e.prototype.rawDataWatcher=function(e){var t=this;if(!this.ready){this.rawDataManager.loadData(e);this.translateDataForTree(e);if(this.optionsManager.getOptions().openTreeWhenLoaded){this.showTree("modale");setTimeout((function(){return X(t)}),100)}}};e.prototype.filterTree=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.search(e);return[2]}))}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.isDisabled=this.disabled;this.options=this.getOptionsAsIConf(this.options);this.optionsManager=new U(this.getOptionsAsIConf(this.options));this.rawDataManager=new B(this.getOptionsAsIConf(this.options).token,this.optionsManager);return[4,this.loadHierarchizedPicker()];case 1:t.sent();this.setDisplayedValueFromDefault();setTimeout((function(){e.displayWhenLoaded()}),0);return[2]}}))}))};e.prototype.setDisplayedValueFromDefault=function(){var e;var t=(e=this.optionsManager.getOptions().defaultValue)!==null&&e!==void 0?e:[];this.value=t.map((function(e){return{nodeid:e,shortpathTranslated:"Node ".concat(e)}}));this.setDisplayedValue(this.value)};e.prototype.componentWillRender=function(){this.mylog("----- componentWillRender beginning -----")};e.prototype.componentDidRender=function(){this.mylog("----- componentDidRender beginning -----")};e.prototype.componentDidLoad=function(){this.mylog("----- componentDidLoad beginning -----");ie(this);Z()};e.prototype.displayWhenLoaded=function(){var e;if(!this.canload){this.displayPickerError("Error(s) in the picker configuration!");return}if(((e=this.optionsManager.getOptions())===null||e===void 0?void 0:e.loading)=="display"){this.loadDataForTree(true,document.querySelector("#hierarchized-picker-"+this.componentID+" .loader"))}};e.prototype.initComponent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:if(!this.optionsManager.getOptions().multiple)this.optionsManager.updateOptions({multiple:false});if(!this.optionsManager.getOptions().mode)this.optionsManager.getOptions().mode="input";if(!this.optionsManager.getOptions().defaultValue){this.optionsManager.updateOptions({defaultValue:[]})}else if(typeof this.optionsManager.getOptions().defaultValue!="object"){this.optionsManager.updateOptions({defaultValue:[this.optionsManager.getOptions().defaultValue]})}e=true;t=undefined;if(!this.isDisabled)this.isDisabled=false;if(this.optionsManager.getOptions().readonly!==undefined)this.isDisabled=this.optionsManager.getOptions().readonly;if(!this.optionsManager.getOptions().loading)this.optionsManager.updateOptions({loading:"display"});if(!this.optionsManager.getOptions().displayTree&&this.optionsManager.getOptions().displayTree!=false)this.optionsManager.updateOptions({displayTree:true});if(!this.optionsManager.getOptions().isFullpath&&this.optionsManager.getOptions().isFullpath!=false)this.optionsManager.updateOptions({isFullpath:true});if(!this.optionsManager.getOptions().showAutocomplete)this.optionsManager.getOptions().showAutocomplete=false;if(!this.optionsManager.getOptions().openTreeWhenLoaded)this.optionsManager.getOptions().openTreeWhenLoaded=false;if(!this.optionsManager.getOptions().displayRootNode)this.optionsManager.getOptions().displayRootNode=false;if(!this.optionsManager.getOptions().dragAndDropEnabled)this.optionsManager.getOptions().dragAndDropEnabled=false;if(!this.optionsManager.getOptions().defaultValueIsFullpath)this.optionsManager.getOptions().defaultValueIsFullpath=false;if(!this.optionsManager.getOptions()&&this.optionsManager.getOptions().errorsInInput!==false)this.optionsManager.updateOptions({errorsInInput:true});if(!this.hasFocus)this.hasFocus=[];try{this.optionsManager.getOptions().defaultValue.map((function(){}))}catch(e){this.errorToLog="There's an issue with your defaultValue format: "+this.optionsManager.getOptions().defaultValue.toString();return[2]}return[4,Promise.all(this.optionsManager.getOptions().defaultValue.map((function(n){return __awaiter(r,void 0,void 0,(function(){var r,i;var o=this;return __generator(this,(function(a){switch(a.label){case 0:if(!(this.optionsManager.getOptions().defaultValueIsFullpath||!(typeof n=="number")&&!S(n)))return[3,3];if(!(this.optionsManager.getOptions().source!=="webservice"))return[3,1];r="The loading of nodes based on fullpath is only available on webservice mode for now!";this.displayPickerError(r);this.errorToLog=r;e=false;return[2];case 1:if(!t){t=[]}return[4,this.rawDataManager.fetchNodeIdFromFullpath(n,this.optionsManager.getOptions()).catch((function(e){o.displayPickerError(e)}))];case 2:i=a.sent();if(i){t.push(i)}a.label=3;case 3:return[2]}}))}))})))];case 1:n.sent();if(t){this.optionsManager.getOptions().defaultValue=t}if(this.optionsManager.getOptions().options){if(!this.optionsManager.getOptions().options.Reach&&this.optionsManager.getOptions().defaultValue.length>0){if(e){this.optionsManager.getOptions().options.Reach=this.optionsManager.getOptions().defaultValue.map((function(e){return Number(e)}))}else{this.errorToLog="theOptions.options.Reach is undefined and can't be auto-assigned: either specify a 'Reach' option "+" in your webservice call options or make sure the defaultValue property contains node IDs and not fullpath values."}}}return[2]}}))}))};e.prototype.loadHierarchizedPicker=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:if(!e){if(this.el.getAttribute("options")&&typeof this.el.getAttribute("options")=="string"){this.optionsManager.updateOptions(JSON.parse(this.el.getAttribute("options")))}}{this.mylog=function(){};console.time=function(){};console.timeEnd=function(){}}if(this.optionsManager.getOptions().id)this.componentID=this.optionsManager.getOptions().id;else if(!this.componentID)this.componentID=(Array.from(document.querySelectorAll("reneco-hierarchized-picker")).indexOf(this.el)+1).toString();if(!this.optionsManager.getOptions())return[2];this.optionsManager.updateDefaultValue();t=E(this.optionsManager.getOptions());this.canload=t.toret;this.errorToLog=t.errorToLog;return[4,this.initComponent()];case 1:n.sent();o(this.optionsManager.getOptions().theme,V);this.mylog(this.optionsManager.getOptions());window.addEventListener("click",(function(e){var t=R(e,r.componentID);if(!t&&r.optionsManager.getOptions().mode!="tree"){r.showTree("hide")}}));this.el.addEventListener("dragover",(function(e){e.preventDefault()}));this.el.addEventListener("dragenter",(function(e){e.preventDefault()}));this.translateDataForTree(this.rawDataManager.getData());return[2]}}))}))};e.prototype.clearPicker=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.getValue()];case 1:e=o.sent();for(t=0,r=this.value;t<r.length;t++){n=r[t];this.loadedTreeJs.setValue(n.nodeid);this.loadedTreeJs.updateLiElements()}this.value=[];this.setDisplayedValue([]);this.loadedTreeJs.options.onChange();return[4,this.getValue()];case 2:i=o.sent();this.valueChange.emit({oldValue:e,newValue:i,value:i});return[2]}}))}))};e.prototype.errorLoadingXHR=function(){var e;this.displayPickerError("Error loading webservice data!");try{document.querySelector("#tree-area-"+this.componentID).innerHTML="Error loading webservice data!";(e=document.querySelector("#hierarchized-picker-"+this.componentID+" .hierarchized-picker-search input"))===null||e===void 0?void 0:e.remove();this.canload=false;this.showTree("hide");this.ready=true;this.ignoreOptionsChanges=false}catch(e){console.error("Error loading webservice data!")}};e.prototype.displayPickerError=function(e){if(e===void 0){e=""}try{document.querySelector("#hierarchized-picker-"+this.componentID).classList.add("fieldError");if(this.optionsManager.getOptions().errorsInInput){if(e==""){e="There has been an error ... > [Generic error]"}this.displayedValue=e;this.isDisabled=true;e=this.errorToLog}}catch(t){console.error(e)}};e.prototype.getApiSearchURL=function(){if(this.optionsManager.getOptions().origin=="classification"){var e=this.optionsManager.getOptions().url;if(e.indexOf("getTree")>-1){return e.replace("/getTree/","/search/")}else{var t=this.optionsManager.getOptions().url.substring(0,this.optionsManager.getOptions().url.lastIndexOf("/"));var r=t.substring(t.lastIndexOf("/"),t.length);return t.substring(0,t.lastIndexOf("/"))+"/search"+r}}else{return this.optionsManager.getOptions().url.substring(0,this.optionsManager.getOptions().url.lastIndexOf("/"))+"/GetTreeFromSearch"}};e.prototype.getContextualApiURL=function(){var e=this.optionsManager.getOptions(),t=e.options,r=e.url;if(t.Reach){var n=window.location.origin;var i=new URL(r,n);var o=i.pathname.split("/");var a=o[o.length-2];if(["thesaurus","position"].indexOf(a)==-1)a=o[o.length-1];var s="/api/v1/classification/reach/".concat(a,"/").concat(t.Reach);this.optionsManager.dropReach();return"".concat(i.origin).concat(s)}return r};e.prototype.getContextualApiParams=function(e,t){if(e===void 0){e=null}if(t===void 0){t=null}if(!e)e=this.optionsManager.getOptions().options;var r=Object.assign({},e);if(e.Reach){delete r.Reach;if("startNode"in r){r.startingnode=r.startNode;delete r.startNode}else if("StartNodeID"in r){r.startingnode=r.StartNodeID;delete r.StartNodeID}}else if(t){r.searchedValue=t;if("startNode"in r){r.StartNodeID=r.startNode;delete r.startNode}}return r};e.prototype.translateDataForTree=function(e,t,r){if(t===void 0){t=null}if(r===void 0){r=null}if(r&&r!=""){this.loadSearchDataInCurrentTree(t,r)}else{this.triggerTreeDisplay(e,r)}};e.prototype.loadSearchDataInCurrentTree=function(e,t){var r=this;var n=function(e){if(r.searchToDisplay>-1){r.rawDataManager.mergeData(e,r.theOptions.origin=="classification"?"ID":"key");e.children.forEach((function(e,t){J(r.loadedTreeJs,e,r.optionsManager.getOptions())}));r.triggerTreeDisplay(r.rawDataManager.getData(),t);G(r.rawDataManager.getData(),t,r.optionsManager,r.editValue.bind(r),r.showTree.bind(r));document.querySelectorAll("#tree-area-"+r.componentID+" .treejs-node").forEach((function(e){var t;var n=Array.prototype.slice.call(e.querySelectorAll("ul > li > span"));var i=n.filter((function(e){return e.textContent==="undefined"}));if(i.length==0&&!((t=r.loadedTreeJs.nodesById[e.nodeId])===null||t===void 0?void 0:t.isDesaturated)&&r.loadedTreeJs.nodesById[e.nodeId].children.length>0){e.classList.remove("treejs-node__close")}}))}};if(this.theOptions.source=="webservice"){if(this.theOptions.origin=="classification"){this.rawDataManager.getFromClassification(this.getApiSearchURL(),Object.assign({},this.getContextualApiParams(null,t)),document.querySelector("#hierarchized-picker-"+this.componentID+" .loader")).then((function(e){n(e);if(!t){r.setSearchResults([])}})).catch((function(e){console.error("err",e)}))}else{this.rawDataManager.getFromSource(this.getApiSearchURL(),{StartNodeID:this.theOptions.options.StartNodeID,lng:this.theOptions.options.lng,searchedValue:t,searchNameOnly:true,deprecated:false},document.querySelector("#hierarchized-picker-"+this.componentID+" .loader")).then((function(e){n(e);if(!t){r.setSearchResults([])}})).catch((function(e){console.error("---- MY ERROR ---- ",e);try{r.errorToLog="getDataFromSource 1 rejected:"+JSON.stringify(e,N,2)}catch(t){console.error("getDataFromSource 2 rejected:",JSON.stringify(e,N,2))}}))}}else{if(this.searchToDisplay>-1&&e==this.searchToDisplay){this.rawDataManager.getData().children.forEach((function(e,t){J(r.loadedTreeJs,e,r.optionsManager.getOptions())}));G(this.rawDataManager.getData(),t,this.optionsManager,this.editValue.bind(this),this.showTree.bind(this))}var i=!this.optionsManager.getOptions().displayRootNode?this.rawDataManager.getData().children:[this.rawDataManager.getData()];var o=H([],i,t,this.optionsManager.getOptions());if(t){this.setSearchResults(o)}this.displayTree(o)}};e.prototype.triggerTreeDisplay=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){if(!e)return[2];this.mylog("Translate from ".concat(this.optionsManager.getOptions().origin," ! (").concat(this.optionsManager.getOptions().source,")"),e);r=!this.optionsManager.getOptions().displayRootNode?e.children:[e];n=H([],r,t,this.optionsManager.getOptions());if(t){this.setSearchResults(n)}this.displayTree(n,t!=null);return[2]}))}))};e.prototype.deactivateNodesOutOfDepthSettings=function(){if(this.optionsManager.getOptions().maxDepth!=undefined||this.optionsManager.getOptions().minDepth!=undefined){for(var e in this.loadedTreeJs.nodesById){var t=this.loadedTreeJs.nodesById[e];if(t.depth<this.optionsManager.getOptions().minDepth||t.depth>this.optionsManager.getOptions().maxDepth){this.loadedTreeJs.liElementsById[t.id].classList.add("readonly_node")}}}};e.prototype.displayTree=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var r;var n=this;return __generator(this,(function(i){if(!this.optionsManager.getOptions().displayTree&&this.ready)return[2];if(e.length==0){this.el.querySelector(".hierarchized-picker-tree").innerHTML="No search results ...";return[2]}r=new I("#tree-area-"+this.componentID,{parentApi:this,rawDataManager:this.rawDataManager,completeCurrentTreeWithTree:J,data:!this.loadedTreeJs||t?e:H([],this.rawDataManager.getData().children,null,this.optionsManager.getOptions()),onChange:function(){return __awaiter(n,void 0,void 0,(function(){var e,t,r;var n=this;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,this.getValue()];case 1:e=i.sent();return[3,3];case 2:t=i.sent();e=null;return[3,3];case 3:r=function(){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getValue()];case 1:t=r.sent();if(this.valueChangeCallback&&this.ready&&!this.shownTree){this.valueChangeCallback(t)}this.valueChange.emit({oldValue:e,newValue:t,value:t});return[2]}}))}))};r();return[2]}}))}))},loaded:function(){n.mylog("loaded");n.ready=true;n.ignoreOptionsChanges=false}});Object.values(r.liElementsById).forEach((function(e){e.classList.remove("treejs-node__searchmatch")}));this.loadedTreeJs=r;this.collapseAllNodes();if(this.hasFocus.indexOf("hide")==-1)this.checkFields(this.value,false);this.setDisplayedValue(this.value);this.showSelectedNodes();this.deactivateNodesOutOfDepthSettings();if(!this.optionsManager.getOptions().multiple){document.querySelectorAll("#tree-area-"+this.componentID+" .treejs-checkbox").forEach((function(e){return e.style.display="none"}))}return[2]}))}))};e.prototype.onItemContextMenuItemClick=function(e){this.itemContextMenuItemClick.emit(e)};e.prototype.setNodeAsSelected=function(e,t,r){if(this.isDisabled&&this.optionsManager.getOptions().mode!="tree"&&this.shownTree&&this.setValueOnClick||this.loadedTreeJs.liElementsById[e]&&this.loadedTreeJs.liElementsById[e].classList.value&&this.loadedTreeJs.liElementsById[e].classList.value.indexOf("readonly_node")!=-1){return}if(t.getValues().indexOf(e.toString())!=-1)return;this.ignoreOptionsChanges=true;var n=t.nodesById[e];var i=t.options.onChange;if(!n){this.logError("The current selected value is not part of the loaded tree!")}else{if(!n.disabled){t.setValue(e);t.updateLiElements()}r&&i&&i.call(t);if(this.setValueOnClick){this.editValue(n,r);if(this.shownTree&&r){if(!this.optionsManager.getOptions().multiple){this.showTree("hide")}}}}this.ignoreOptionsChanges=false};e.prototype.collapseAllNodes=function(){document.querySelectorAll("#tree-area-"+this.componentID+" .treejs-node").forEach((function(e){return e.classList.add("treejs-node__close")}))};e.prototype.showSelectedNodes=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(n){if(this.optionsManager.getOptions().multiple){console.warn("You are not allowed to scroll to selected nodes in multiple mode");return[2]}t=function(){var e=0;var t=function(n){var i,o,a,s;var u=n===null||n===void 0?void 0:n.nodeId;if(!n||!u){return}var l=r.loadedTreeJs.nodesById[u];if((o=(i=l===null||l===void 0?void 0:l.children)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.id){(a=n.classList)===null||a===void 0?void 0:a.remove("treejs-node__close")}e+=n.offsetTop;var c=(s=n.parentNode)===null||s===void 0?void 0:s.closest(".treejs-node");if(c){t(c)}};try{var n=document.querySelectorAll("#tree-area-"+r.componentID+" .treejs-node__checked");n.forEach((function(e){return t(e)}))}catch(e){}if(e&&r.scrollable){r.scrollable.scrollTop=e}};if(e){setTimeout((function(){t()}),200)}else{t()}return[2]}))}))};e.prototype.showTree=function(e){if(!this.hasFocus)this.hasFocus=[];K();if(!this.canload||!this.optionsManager.getOptions().displayTree)return;var t=Y(this,document.activeElement);if((e==="hide"||this.isDisabled)&&!t){this.hasFocus=["hide"];var r=document.querySelector("#hierarchized-picker-"+this.componentID+" .hierarchized-picker-search input");if(r){r.value=""}this.search("")}else{if(this.hasFocus.indexOf(e)===-1&&this.hasFocus.indexOf("hide")===-1){this.hasFocus.push(e)}}if(this.hasFocus.indexOf("hide")>-1&&!t){this.hasFocus=[]}else{if(!this.shownTree&&this.theOptions.loading=="click"&&!this.ready){this.loadDataForTree(true,document.querySelector("#hierarchized-picker-"+this.componentID+" .loader"))}}var n=this.shownTree;this.shownTree=this.hasFocus.length>0;if(this.shownTree&&!n){X(this)}};e.prototype.editValue=function(e,t){if(t===void 0){t=false}if(!this.value){this.value=[]}var r=this.value.findIndex((function(t){return t.nodeid==e.id}));if(t&&r>-1){this.value.splice(r,1)}else{if(this.optionsManager.getOptions().multiple){this.value=__spreadArray(__spreadArray([],this.value,true),[{nodeid:e.id,fullpath:e.fullpath,fullpathTranslated:e.fullpathTranslated,shortpathTranslated:e.text,hasChildren:e.children&&e.children.length>0}],false)}else{this.value[0]={nodeid:e.id,fullpath:e.fullpath,fullpathTranslated:e.fullpathTranslated,shortpathTranslated:e.text,hasChildren:e.children&&e.children.length>0}}}this.setDisplayedValue(this.value)};e.prototype.setDisplayedValue=function(e){var t=this;if(e===void 0){e=null}if(!e)e=this.value;this.displayedValue=e.map((function(e){var r;return(r=t.optionsManager.getOptions().isFullpath?e.fullpathTranslated:e.shortpathTranslated)!==null&&r!==void 0?r:"Node ".concat(e.nodeid)})).join(";")};e.prototype.search=function(e){var t=this;this.loader.classList.add("loading");var r=document.querySelector("#hierarchized-picker-"+this.componentID+" .hierarchized-picker-search input");if(this.optionsManager.getOptions().mode=="input"&&r){r.classList.remove("fieldError")}if(e.length>2){this.searchToDisplay+=1;var n=this.searchToDisplay;setTimeout((function(){if(t.searchToDisplay==n){t.triggerSearch(e);t.checkFields(t.value,false)}}),F)}else{this.searchToDisplay=-1;if(this.optionsManager.getOptions().source=="webservice"){if(this.optionsManager.getOptions().origin=="classification"){this.optionsManager.getOptions().options.startNode}else{this.optionsManager.getOptions().options.StartNodeID}this.translateDataForTree(this.rawDataManager.getData(),null)}else{this.translateDataForTree(this.rawData,null)}G(null,"",this.optionsManager,this.editValue.bind(this),this.showTree.bind(this));this.setSearchResults([])}this.loader.classList.remove("loading")};e.prototype.triggerSearch=function(e){this.translateDataForTree(this.rawDataManager.getData(),null,e)};e.prototype.setRawDataFromFile=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,this.rawDataManager.loadDataFromFile(e)];case 1:r.sent();this.formatDefaultValue();this.showSelectedNodes();return[3,3];case 2:t=r.sent();this.displayPickerError('Error loading data from path "'.concat(e,'": ').concat(t.message));return[3,3];case 3:return[2]}}))}))};e.prototype.loadDataForTree=function(e,t){var r=this;if(this.optionsManager.getOptions().source=="webservice"){if(this.optionsManager.getOptions().origin=="classification"){var n=this.getContextualApiParams();var i=this.getContextualApiURL();this.rawDataManager.getFromClassification(i,n,t).then((function(t){r.rawData=t;if(e){r.formatDefaultValue();r.showSelectedNodes()}})).catch((function(e){console.error("getDataFromSource 3 classification rejected:",e)}))}else{this.rawDataManager.getFromSource(this.optionsManager.getOptions().url,this.optionsManager.getOptions().options,t).then((function(t){r.rawData=t;if(e){r.formatDefaultValue();r.showSelectedNodes()}})).catch((function(e){console.error("getDataFromSource 3 legacy rejected:",e)}))}}if(this.optionsManager.getOptions().source=="data"){var o=this.optionsManager.data;this.rawData=o;this.formatDefaultValue()}if(this.optionsManager.getOptions().source=="file"){this.setRawDataFromFile(this.optionsManager.getOptions().url)}this.translateDataForTree(this.rawDataManager.getData())};e.prototype.checkFields=function(e,t){var r=this;if(t===void 0){t=true}if(!this.loadedTreeJs)return;this.setValueOnClick=t;var n=[];if(e){e.forEach((function(e){var t,i;var o=e.nodeid||e.ID||e.key||undefined;if(typeof o==="string"&&C(o)){o=parseInt(o)}var a=r.loadedTreeJs.nodesById[o];if(a){n.push({nodeid:o,shortpathTranslated:(t=a.text)!==null&&t!==void 0?t:"Node ".concat(o),fullpathTranslated:(i=a.fullpath)!==null&&i!==void 0?i:null,hasChildren:a.children&&a.children.length>0});r.setNodeAsSelected(o,r.loadedTreeJs,false)}else{r.setNodeAsSelected(o,r.loadedTreeJs,false);console.warn("Node not found in Tree for:",o)}}))}this.setDisplayedValue(n);this.value=n;this.setValueOnClick=true};e.prototype.formatDefaultValue=function(){var e=0;var t=this;var r=function(n){n.forEach((function(n){t.theOptions.defaultValue.forEach((function(r){if(typeof r=="string"&&C(r)){r=parseInt(r)}if(t.theOptions.origin=="classification"){if(typeof r=="string"&&q(n,"Properties").FullPath==r||typeof r=="number"&&q(n,"ID")==r){n.nodeid=n.id;t.checkFields([n]);e++}}else{if(typeof r=="string"&&q(n,"fullpathTranslated")==r||typeof r=="number"&&q(n,"key")==r){n.nodeid=n.key;t.checkFields([n]);e++}}}));if(n.children)r(n.children)}))};if(this.rawDataManager.getData()){r([this.rawDataManager.getData()])}if(this.theOptions.defaultValue.length!=e){if(e==0){try{this.errorToLog="The loaded tree doesn't contain the nodes passed to options.defaultValue : "+this.theOptions.defaultValue.map((function(e){return e})).join(",")}catch(e){this.errorToLog="The loaded tree doesn't contain the nodes passed to options.defaultValue : there's an issue with your defaultValue > "+this.theOptions.defaultValue.toString()}}else{this.errorToLog="The loaded tree contains multiple nodes of what has been passed to options.defaultValue : "+this.theOptions.defaultValue.map((function(e){return e})).join(",")}this.displayPickerError("Error(s) when loading tree default value(s)!")}};e.prototype.getFullpathTooltip=function(){if(!this.value||this.value.length===0){return"No selection"}return this.value.map((function(e){var t,r,n;return(n=(r=(t=e.fullpath)!==null&&t!==void 0?t:e.fullpathTranslated)!==null&&r!==void 0?r:e.shortpathTranslated)!==null&&n!==void 0?n:"Node ".concat(e.nodeid)})).join("; ")};e.prototype.render=function(){var e=this;return this.optionsManager.getOptions()?n("div",{id:"hierarchized-picker-"+this.componentID,class:"hierarchized-picker "+(this.isDisabled?"readonly-mode":"")},this.optionsManager.getOptions().mode=="input"?n("div",{class:"hierarchized-picker-container"},n("div",{style:{display:"none"},ref:function(t){e.loader=t}}),n("div",{class:"hierarchized-picker-input-area"},this.optionsManager.getOptions().label?n("label",{class:"hierarchized-picker-label"},L(this.optionsManager.getOptions().label,this.optionsManager.getOptions().language,P)):"",n("span",{class:"hierarchized-picker-input "+(this.optionsManager.getOptions().icon&&this.optionsManager.getOptions().icon.length>0?"hierarchized-picker-icon":"")+" reneco "+(this.optionsManager.getOptions().icon?this.optionsManager.getOptions().icon:"")+(this.isDisabled?" readonly ":"")+" sc-ion-input-md-h sc-ion-input-md-s md ",id:"hierarchized-picker-input-"+this.componentID,onClick:function(t){e.showTree("picker")},onFocusin:function(t){e.showTree("modale")}},n("input",{class:"native-input sc-ion-input-md","aria-labelledby":"ion-input-13-lbl",autocapitalize:"off",autocomplete:"off",autocorrect:"off",name:"ion-input-13",placeholder:"",readonly:"",spellcheck:"false",type:"text",value:this.displayedValue,title:this.getFullpathTooltip()})),this.displayedValue&&!this.isDisabled&&this.canload?n("span",{class:"reneco reneco-close",onClick:function(){return e.clearPicker()}}):""),n("div",{ref:function(t){e.scrollable=t},class:"hierarchized-picker-modal-area "+(!this.shownTree?" hidden ":""),onClick:function(t){te(e)}},n("div",{class:"loader",ref:function(t){e.loader=t}},n("div",{class:"loader-inner"},"Loading...")),n("div",{class:"hierarchized-picker-modal "+(!this.ready?"hidden":"")},n("search-input",{placeholder:L(this.optionsManager.getOptions().searchPlaceholder,this.optionsManager.getOptions().language,P),onInputFocus:function(){return re(e)},onInputBlur:function(){return ne(e,event)},onSearch:function(t){return e.search(t.detail)}}),n("ul",{id:"autocomplete-results-area"}),n("div",{id:"tree-area-"+this.componentID,class:"hierarchized-picker-tree hierarchized-picker-tree-area "+this.pickerClass})))):n("div",{class:"hierarchized-picker-raw-tree-area"+(this.isDisabled?" readonly":""),onClick:function(t){te(e)}},n("div",{class:"loader",ref:function(t){e.loader=t}},n("div",{class:"loader-inner"},"Loading...")),n("div",{ref:function(t){e.scrollable=t},id:"tree-area-"+this.componentID,class:"hierarchized-picker-tree scrollable hierarchized-picker-raw-tree "+this.pickerClass}))):n("div",{class:"fieldError"},"Generic loading issue...")};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{searchResultData:["searchResultDataChange"],errorToLog:["logError"],newoptions:["setNewOptions"],newfilter:["setNewFilter"],options:["optionsChange"],rawData:["rawDataWatcher"]}},enumerable:false,configurable:true});return e}());ae.style=oe;var se=".search-input-container{width:100%;margin:0}.search-input{width:100%;border:none}.search-input:focus{border:none !important;outline:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}reneco-hierarchized-picker .hierarchized-picker-input-area .input-wrapper{padding-left:10px !important}reneco-hierarchized-picker .hierarchized-picker-input input,reneco-hierarchized-picker .hierarchized-picker-search input{padding-left:5px !important;text-overflow:ellipsis !important;border:0;background:transparent;outline:none;font-size:var(--hpicker-theme-typography-body-font-size, var(--mui-typography-body-font-size, 14px)) !important;font-weight:var(--hpicker-theme-typography-body-font-weight, var(--mui-typography-body-font-weight, 400)) !important}reneco-hierarchized-picker .hierarchized-picker-search input{width:90%;color:var(--hpicker-theme-palette-font-color, var(--mui-palette-font-color, var(--ion-color-light-tint, #fff))) !important}reneco-hierarchized-picker .hierarchized-picker-search{background-color:var(--hpicker-theme-palette-background-light, var(--mui-palette-background-light, var(--ion-color-medium-tint, #E0E0E0)));position:absolute !important;width:333px !important;margin-top:10px;border-radius:4px;padding:8.5px}reneco-hierarchized-picker #searchInTree{padding:8.5px 8px;background:var(--hpicker-theme-palette-background-default, var(--mui-palette-background-default, var(--ion-color-background, rgba(221, 169, 37, 0.18))));border:none !important;border-radius:4px}reneco-hierarchized-picker #searchInTree:focus{border:none !important;outline:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}";var ue=e("search_input",function(){function e(e){t(this,e);this.inputFocus=r(this,"inputFocus",7);this.inputBlur=r(this,"inputBlur",7);this.search=r(this,"search",7);this.placeholder=undefined}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){(e=this.inputElement)===null||e===void 0?void 0:e.focus();return[2]}))}))};e.prototype.handleFocus=function(){this.inputFocus.emit()};e.prototype.handleBlur=function(e){var t=this;var r=e.relatedTarget;setTimeout((function(){var e=document.activeElement===t.inputElement||r&&t.rootElement.contains(r);if(!e){t.inputBlur.emit()}}),100)};e.prototype.handleInput=function(e){var t=e.target;var r=t.value;if(r!==this.previousValue){this.previousValue=r;this.search.emit(r)}};e.prototype.render=function(){var e=this;return n("div",{id:"hierarchized-picker-input-search-",class:"search-input-container reneco reneco-search",ref:function(t){return e.rootElement=t}},n("input",{ref:function(t){return e.inputElement=t},type:"text",class:"native-input search-input hierarchized-picker-search reneco reneco-search sc-ion-input-md-h sc-ion-input-md-s md",placeholder:this.placeholder,onFocus:function(){return e.handleFocus()},onBlur:function(t){return e.handleBlur(t)},onInput:function(t){return e.handleInput(t)}}))};return e}());ue.style=se}}}));