jmapcloud-ng 2.0.5-qa.4 → 2.0.5-qa.6

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/public/{ng/build/index.html → index.html} +12 -7
  3. package/public/index.js +190 -0
  4. package/public/ng-core/{build/index.html → index.html} +11 -9
  5. package/public/ng-core/index.js +159 -0
  6. package/public/ng/data-grid.Dnwo5PC_.js +0 -1
  7. package/public/ng/html2canvas.esm.BcSe2Xmo.js +0 -1
  8. package/public/ng/index.Cbxg_BVX.js +0 -2
  9. package/public/ng/index.es.DITumWjq.js +0 -1
  10. package/public/ng/jspdf.es.min.DHuu4hbj.js +0 -2
  11. package/public/ng/purify.es.IvdpZz4l.js +0 -1
  12. package/public/ng/shared-helpers.D1OtmvKm.js +0 -1
  13. package/public/ng/start.core.B_jaR5Mw.js +0 -1
  14. package/public/ng/start.core.CCnPgFVN.js +0 -1
  15. package/public/ng/start.ewrrhV85.css +0 -1
  16. package/public/ng/ui-full.B0sEpQTp.js +0 -190
  17. package/public/ng/ui-full.CP0fGfFR.css +0 -1
  18. package/public/ng/vite-preload-helper.CmrNfjeq.js +0 -1
  19. package/public/ng/xlsx.Bf_Vk0xj.js +0 -1
  20. package/public/ng-core/html2canvas.esm.BcSe2Xmo.js +0 -1
  21. package/public/ng-core/index.DAGAIr0b.css +0 -1
  22. package/public/ng-core/index.b9695d9d-9b3b-4026-bc64-87bc9d87236e.js +0 -158
  23. package/public/ng-core/shared-helpers.DZ3ws_zM.js +0 -1
  24. package/public/ng-core/start.core.Bc6LsoEP.js +0 -1
  25. package/public/ng-core/vite-preload-helper.CqTjqO7g.js +0 -1
  26. /package/public/{ng/ARROW.9V9mH5sV.png → ARROW.9V9mH5sV.png} +0 -0
  27. /package/public/{ng/MaterialIcons-Regular.BjVsc-s9.woff2 → MaterialIcons-Regular.BjVsc-s9.woff2} +0 -0
  28. /package/public/{ng/MaterialIcons-Regular.Bnsxcfr1.woff → MaterialIcons-Regular.Bnsxcfr1.woff} +0 -0
  29. /package/public/{ng/MaterialIcons-Regular.N21pKt8_.ttf → MaterialIcons-Regular.N21pKt8_.ttf} +0 -0
  30. /package/public/{ng/MaterialIcons-Regular.rDPjWPoz.eot → MaterialIcons-Regular.rDPjWPoz.eot} +0 -0
  31. /package/public/{ng/barlow-v5-latin-ext_latin-300.BOtJevCE.woff → barlow-v5-latin-ext_latin-300.BOtJevCE.woff} +0 -0
  32. /package/public/{ng/barlow-v5-latin-ext_latin-300.CU1HK-bZ.ttf → barlow-v5-latin-ext_latin-300.CU1HK-bZ.ttf} +0 -0
  33. /package/public/{ng/barlow-v5-latin-ext_latin-300.DLZg2Aqw.woff2 → barlow-v5-latin-ext_latin-300.DLZg2Aqw.woff2} +0 -0
  34. /package/public/{ng/barlow-v5-latin-ext_latin-300.f3X_qAHv.eot → barlow-v5-latin-ext_latin-300.f3X_qAHv.eot} +0 -0
  35. /package/public/{ng/barlow-v5-latin-ext_latin-300italic.Cq3R63xm.eot → barlow-v5-latin-ext_latin-300italic.Cq3R63xm.eot} +0 -0
  36. /package/public/{ng/barlow-v5-latin-ext_latin-300italic.D7H-NYlV.woff → barlow-v5-latin-ext_latin-300italic.D7H-NYlV.woff} +0 -0
  37. /package/public/{ng/barlow-v5-latin-ext_latin-300italic.IFGWg-1n.ttf → barlow-v5-latin-ext_latin-300italic.IFGWg-1n.ttf} +0 -0
  38. /package/public/{ng/barlow-v5-latin-ext_latin-300italic.egA3zdlg.woff2 → barlow-v5-latin-ext_latin-300italic.egA3zdlg.woff2} +0 -0
  39. /package/public/{ng/barlow-v5-latin-ext_latin-500.C4YXkooW.ttf → barlow-v5-latin-ext_latin-500.C4YXkooW.ttf} +0 -0
  40. /package/public/{ng/barlow-v5-latin-ext_latin-500.CD6t94O0.woff2 → barlow-v5-latin-ext_latin-500.CD6t94O0.woff2} +0 -0
  41. /package/public/{ng/barlow-v5-latin-ext_latin-500.CxOfqZC2.eot → barlow-v5-latin-ext_latin-500.CxOfqZC2.eot} +0 -0
  42. /package/public/{ng/barlow-v5-latin-ext_latin-500.CzPrU5vz.woff → barlow-v5-latin-ext_latin-500.CzPrU5vz.woff} +0 -0
  43. /package/public/{ng/barlow-v5-latin-ext_latin-500italic.57LLgqjl.woff → barlow-v5-latin-ext_latin-500italic.57LLgqjl.woff} +0 -0
  44. /package/public/{ng/barlow-v5-latin-ext_latin-500italic.B6ytA4Ll.ttf → barlow-v5-latin-ext_latin-500italic.B6ytA4Ll.ttf} +0 -0
  45. /package/public/{ng/barlow-v5-latin-ext_latin-500italic.BlgFPUrR.woff2 → barlow-v5-latin-ext_latin-500italic.BlgFPUrR.woff2} +0 -0
  46. /package/public/{ng/barlow-v5-latin-ext_latin-500italic.Ckyh_717.eot → barlow-v5-latin-ext_latin-500italic.Ckyh_717.eot} +0 -0
  47. /package/public/{ng/barlow-v5-latin-ext_latin-700.BRgY-mcC.eot → barlow-v5-latin-ext_latin-700.BRgY-mcC.eot} +0 -0
  48. /package/public/{ng/barlow-v5-latin-ext_latin-700.Bit82amp.ttf → barlow-v5-latin-ext_latin-700.Bit82amp.ttf} +0 -0
  49. /package/public/{ng/barlow-v5-latin-ext_latin-700.BpBhuUVz.woff → barlow-v5-latin-ext_latin-700.BpBhuUVz.woff} +0 -0
  50. /package/public/{ng/barlow-v5-latin-ext_latin-700.DC603mJ6.woff2 → barlow-v5-latin-ext_latin-700.DC603mJ6.woff2} +0 -0
  51. /package/public/{ng/barlow-v5-latin-ext_latin-700italic.Ca79JvF0.woff → barlow-v5-latin-ext_latin-700italic.Ca79JvF0.woff} +0 -0
  52. /package/public/{ng/barlow-v5-latin-ext_latin-700italic.ClCyBg9U.woff2 → barlow-v5-latin-ext_latin-700italic.ClCyBg9U.woff2} +0 -0
  53. /package/public/{ng/barlow-v5-latin-ext_latin-700italic.D8ZJZUNK.eot → barlow-v5-latin-ext_latin-700italic.D8ZJZUNK.eot} +0 -0
  54. /package/public/{ng/barlow-v5-latin-ext_latin-700italic.DqT2IX-q.ttf → barlow-v5-latin-ext_latin-700italic.DqT2IX-q.ttf} +0 -0
  55. /package/public/{ng/barlow-v5-latin-ext_latin-italic.1jYUkYRv.woff2 → barlow-v5-latin-ext_latin-italic.1jYUkYRv.woff2} +0 -0
  56. /package/public/{ng/barlow-v5-latin-ext_latin-italic.BEAJKPKF.ttf → barlow-v5-latin-ext_latin-italic.BEAJKPKF.ttf} +0 -0
  57. /package/public/{ng/barlow-v5-latin-ext_latin-italic.BWD2mhUL.woff → barlow-v5-latin-ext_latin-italic.BWD2mhUL.woff} +0 -0
  58. /package/public/{ng/barlow-v5-latin-ext_latin-italic.DjOUzQd-.eot → barlow-v5-latin-ext_latin-italic.DjOUzQd-.eot} +0 -0
  59. /package/public/{ng/barlow-v5-latin-ext_latin-regular.B3onXd7t.ttf → barlow-v5-latin-ext_latin-regular.B3onXd7t.ttf} +0 -0
  60. /package/public/{ng/barlow-v5-latin-ext_latin-regular.Ca4dJCbb.woff2 → barlow-v5-latin-ext_latin-regular.Ca4dJCbb.woff2} +0 -0
  61. /package/public/{ng/barlow-v5-latin-ext_latin-regular.D-IiuhnY.eot → barlow-v5-latin-ext_latin-regular.D-IiuhnY.eot} +0 -0
  62. /package/public/{ng/barlow-v5-latin-ext_latin-regular.DLT4q60S.woff → barlow-v5-latin-ext_latin-regular.DLT4q60S.woff} +0 -0
  63. /package/public/{ng/default.Ce_Z_JPs.jpeg → default.Ce_Z_JPs.jpeg} +0 -0
  64. /package/public/{ng/favicon_dark.BF6q4K7_.ico → favicon_dark.BF6q4K7_.ico} +0 -0
  65. /package/public/{ng/favicon_light.P7XKPcl8.ico → favicon_light.P7XKPcl8.ico} +0 -0
  66. /package/public/{ng/loading.BSbPtkHb.gif → loading.BSbPtkHb.gif} +0 -0
  67. /package/public/{ng/logo.hwi8NCH2.png → logo.hwi8NCH2.png} +0 -0
@@ -1 +0,0 @@
1
- function _typeof(e){return(_typeof="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)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf2(e,t){return e.__proto__=t,e})(e,t)}function _construct(e,t,n){return(_construct=function _isNativeReflectConstruct(){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}}()?Reflect.construct:function _construct2(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){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 _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,i=Object.seal,l=Object.create,c="undefined"!=typeof Reflect&&Reflect,u=c.apply,s=c.construct;u||(u=function apply2(e,t,n){return e.apply(t,n)}),a||(a=function freeze2(e){return e}),i||(i=function seal2(e){return e}),s||(s=function construct2(e,t){return _construct(e,_toConsumableArray(t))});var m=unapply(Array.prototype.forEach),d=unapply(Array.prototype.pop),p=unapply(Array.prototype.push),f=unapply(String.prototype.toLowerCase),y=unapply(String.prototype.toString),h=unapply(String.prototype.match),g=unapply(String.prototype.replace),T=unapply(String.prototype.indexOf),b=unapply(String.prototype.trim),_=unapply(RegExp.prototype.test),S=function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}(TypeError);function unapply(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function addToSet(e,r,o){var a;o=null!==(a=o)&&void 0!==a?a:f,t&&t(e,null);for(var i=r.length;i--;){var l=r[i];if("string"==typeof l){var c=o(l);c!==l&&(n(r)||(r[i]=c),l=c)}e[l]=!0}return e}function clone(t){var n,r=l(null);for(n in t)!0===u(e,t,[n])&&(r[n]=t[n]);return r}function lookupGetter(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=r(e)}return function fallbackValue(e){return console.warn("fallback value for",e),null}}var A=a(["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"]),v=a(["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=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E=a(["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"]),w=a(["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"]),C=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k=a(["#text"]),O=a(["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"]),x=a(["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"]),L=a(["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"]),D=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=i(/<%[\w\W]*|[\w\W]*%>/gm),I=i(/\${[\w\W]*}/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]+$/),H=i(/^aria-[\-\w]+$/),U=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=i(/^(?:\w+script|data):/i),P=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=i(/^html$/i),B=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var j=function createDOMPurify(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function getGlobal2(){return"undefined"==typeof window?null:window}(),t=function DOMPurify2(e){return createDOMPurify(e)};if(t.version="2.5.9",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,s=e.NamedNodeMap,j=void 0===s?e.NamedNodeMap||e.MozNamedAttrMap:s,W=e.HTMLFormElement,q=e.DOMParser,V=e.trustedTypes,$=c.prototype,Y=lookupGetter($,"cloneNode"),K=lookupGetter($,"nextSibling"),X=lookupGetter($,"childNodes"),Z=lookupGetter($,"parentNode");if("function"==typeof i){var J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}var Q=function _createTrustedTypesPolicy2(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function createHTML(e){return e},createScriptURL:function createScriptURL(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(V,n),ee=Q?Q.createHTML(""):"",te=r,ne=te.implementation,re=te.createNodeIterator,oe=te.createDocumentFragment,ae=te.getElementsByTagName,ie=n.importNode,le={};try{le=clone(r).documentMode?r.documentMode:{}}catch(Et){}var ce={};t.isSupported="function"==typeof Z&&ne&&void 0!==ne.createHTMLDocument&&9!==le;var ue,se,me=R,de=M,pe=I,fe=F,ye=H,he=z,ge=P,Te=B,be=U,_e=null,Se=addToSet({},[].concat(_toConsumableArray(A),_toConsumableArray(v),_toConsumableArray(N),_toConsumableArray(w),_toConsumableArray(k))),Ae=null,ve=addToSet({},[].concat(_toConsumableArray(O),_toConsumableArray(x),_toConsumableArray(L),_toConsumableArray(D))),Ne=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}})),Ee=null,we=null,Ce=!0,ke=!0,Oe=!1,xe=!0,Le=!1,De=!0,Re=!1,Me=!1,Ie=!1,Fe=!1,He=!1,Ue=!1,ze=!0,Pe=!1,Ge=!0,Be=!1,je={},We=null,qe=addToSet({},["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"]),Ve=null,$e=addToSet({},["audio","video","img","source","image","track"]),Ye=null,Ke=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=null,nt=addToSet({},[Xe,Ze,Je],y),rt=["application/xhtml+xml","text/html"],ot=null,at=r.createElement("form"),it=function isRegexOrFunction2(e){return e instanceof RegExp||e instanceof Function},lt=function _parseConfig2(e){ot&&ot===e||(e&&"object"===_typeof(e)||(e={}),e=clone(e),ue=ue=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,se="application/xhtml+xml"===ue?y:f,_e="ALLOWED_TAGS"in e?addToSet({},e.ALLOWED_TAGS,se):Se,Ae="ALLOWED_ATTR"in e?addToSet({},e.ALLOWED_ATTR,se):ve,tt="ALLOWED_NAMESPACES"in e?addToSet({},e.ALLOWED_NAMESPACES,y):nt,Ye="ADD_URI_SAFE_ATTR"in e?addToSet(clone(Ke),e.ADD_URI_SAFE_ATTR,se):Ke,Ve="ADD_DATA_URI_TAGS"in e?addToSet(clone($e),e.ADD_DATA_URI_TAGS,se):$e,We="FORBID_CONTENTS"in e?addToSet({},e.FORBID_CONTENTS,se):qe,Ee="FORBID_TAGS"in e?addToSet({},e.FORBID_TAGS,se):{},we="FORBID_ATTR"in e?addToSet({},e.FORBID_ATTR,se):{},je="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Re=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,Qe=e.NAMESPACE||Je,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(ke=!1),He&&(Fe=!0),je&&(_e=addToSet({},_toConsumableArray(k)),Ae=[],!0===je.html&&(addToSet(_e,A),addToSet(Ae,O)),!0===je.svg&&(addToSet(_e,v),addToSet(Ae,x),addToSet(Ae,D)),!0===je.svgFilters&&(addToSet(_e,N),addToSet(Ae,x),addToSet(Ae,D)),!0===je.mathMl&&(addToSet(_e,w),addToSet(Ae,L),addToSet(Ae,D))),e.ADD_TAGS&&(_e===Se&&(_e=clone(_e)),addToSet(_e,e.ADD_TAGS,se)),e.ADD_ATTR&&(Ae===ve&&(Ae=clone(Ae)),addToSet(Ae,e.ADD_ATTR,se)),e.ADD_URI_SAFE_ATTR&&addToSet(Ye,e.ADD_URI_SAFE_ATTR,se),e.FORBID_CONTENTS&&(We===qe&&(We=clone(We)),addToSet(We,e.FORBID_CONTENTS,se)),Ge&&(_e["#text"]=!0),Re&&addToSet(_e,["html","head","body"]),_e.table&&(addToSet(_e,["tbody"]),delete Ee.tbody),a&&a(e),ot=e)},ct=addToSet({},["mi","mo","mn","ms","mtext"]),ut=addToSet({},["annotation-xml"]),st=addToSet({},["title","style","font","a","script"]),mt=addToSet({},v);addToSet(mt,N),addToSet(mt,E);var dt=addToSet({},w);addToSet(dt,C);var pt=function _forceRemove2(e){p(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Et){try{e.outerHTML=ee}catch(n){e.remove()}}},ft=function _removeAttribute2(e,n){try{p(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Et){p(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Ae[e])if(Fe||He)try{pt(n)}catch(Et){}else try{n.setAttribute(e,"")}catch(Et){}},yt=function _initDocument2(e){var t,n;if(Ie)e="<remove></remove>"+e;else{var o=h(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===ue&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=Q?Q.createHTML(e):e;if(Qe===Je)try{t=(new q).parseFromString(a,ue)}catch(Et){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:a}catch(Et){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Qe===Je?ae.call(t,Re?"html":"body")[0]:Re?t.documentElement:i},ht=function _createIterator2(e){return re.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},gt=function _isClobbered2(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof j)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Tt=function _isNode2(e){return"object"===_typeof(l)?e instanceof l:e&&"object"===_typeof(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},bt=function _executeHook2(e,n,r){ce[e]&&m(ce[e],function(e){e.call(t,n,r,ot)})},_t=function _sanitizeElements2(e){var n;if(bt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var r=se(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:_e}),e.hasChildNodes()&&!Tt(e.firstElementChild)&&(!Tt(e.content)||!Tt(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&_(/<template/i,e.innerHTML))return pt(e),!0;if(7===e.nodeType)return pt(e),!0;if(De&&8===e.nodeType&&_(/<[/\w]/g,e.data))return pt(e),!0;if(!_e[r]||Ee[r]){if(!Ee[r]&&At(r)){if(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,r))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(r))return!1}if(Ge&&!We[r]){var o=Z(e)||e.parentNode,a=X(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i){var l=Y(a[i],!0);l.__removalCount=(e.__removalCount||0)+1,o.insertBefore(l,K(e))}}return pt(e),!0}return e instanceof c&&!function _checkValidNamespace2(e){var t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var n=f(e.tagName),r=f(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(mt[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ut[r]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!ut[r])&&!(t.namespaceURI===Xe&&!ct[r])&&!dt[n]&&(st[n]||!mt[n]):!("application/xhtml+xml"!==ue||!tt[e.namespaceURI]))}(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&3===e.nodeType&&(n=e.textContent,n=g(n,me," "),n=g(n,de," "),n=g(n,pe," "),e.textContent!==n&&(p(t.removed,{element:e.cloneNode()}),e.textContent=n)),bt("afterSanitizeElements",e,null),!1):(pt(e),!0)},St=function _isValidAttribute2(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in r||n in at))return!1;if(ke&&!we[t]&&_(fe,t));else if(Ce&&_(ye,t));else if(!Ae[t]||we[t]){if(!(At(e)&&(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&_(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,n)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))))return!1}else if(Ye[t]);else if(_(be,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ve[e]){if(Oe&&!_(he,g(n,ge,"")));else if(n)return!1}else;return!0},At=function _basicCustomElementTest2(e){return"annotation-xml"!==e&&h(e,Te)},vt=function _sanitizeAttributes2(e){var n,r,o,a;bt("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i&&!gt(e)){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(a=i.length;a--;){var c=n=i[a],u=c.name,s=c.namespaceURI;if(r="value"===u?n.value:b(n.value),o=se(u),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,bt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(ft(u,e),l.keepAttr))if(xe||!_(/\/>/i,r)){Le&&(r=g(r,me," "),r=g(r,de," "),r=g(r,pe," "));var m=se(e.nodeName);if(St(m,o,r))if(!Pe||"id"!==o&&"name"!==o||(ft(u,e),r="user-content-"+r),De&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,r))ft(u,e);else{if(Q&&"object"===_typeof(V)&&"function"==typeof V.getAttributeType)if(s);else switch(V.getAttributeType(m,o)){case"TrustedHTML":r=Q.createHTML(r);break;case"TrustedScriptURL":r=Q.createScriptURL(r)}try{s?e.setAttributeNS(s,u,r):e.setAttribute(u,r),gt(e)?pt(e):d(t.removed)}catch(Et){}}}else ft(u,e)}bt("afterSanitizeAttributes",e,null)}},Nt=function _sanitizeShadowDOM2(e){var t,n=ht(e);for(bt("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)bt("uponSanitizeShadowNode",t,null),_t(t),vt(t),t.content instanceof o&&_sanitizeShadowDOM2(t.content);bt("afterSanitizeShadowDOM",e,null)};return t.sanitize=function(r){var a,i,c,u,s,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((et=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!Tt(r)){if("function"!=typeof r.toString)throw S("toString is not a function");if("string"!=typeof(r=r.toString()))throw S("dirty is not a string, aborting")}if(!t.isSupported){if("object"===_typeof(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(Tt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||lt(m),t.removed=[],"string"==typeof r&&(Be=!1),Be){if(r.nodeName){var d=se(r.nodeName);if(!_e[d]||Ee[d])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof l)1===(i=(a=yt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?a=i:a.appendChild(i);else{if(!Fe&&!Le&&!Re&&-1===r.indexOf("<"))return Q&&Ue?Q.createHTML(r):r;if(!(a=yt(r)))return Fe?null:Ue?ee:""}a&&Ie&&pt(a.firstChild);for(var p=ht(Be?r:a);c=p.nextNode();)3===c.nodeType&&c===u||(_t(c),vt(c),c.content instanceof o&&Nt(c.content),u=c);if(u=null,Be)return r;if(Fe){if(He)for(s=oe.call(a.ownerDocument);a.firstChild;)s.appendChild(a.firstChild);else s=a;return(Ae.shadowroot||Ae.shadowrootmod)&&(s=ie.call(n,s,!0)),s}var f=Re?a.outerHTML:a.innerHTML;return Re&&_e["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&_(G,a.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+f),Le&&(f=g(f,me," "),f=g(f,de," "),f=g(f,pe," ")),Q&&Ue?Q.createHTML(f):f},t.setConfig=function(e){lt(e),Me=!0},t.clearConfig=function(){ot=null,Me=!1},t.isValidAttribute=function(e,t,n){ot||lt({});var r=se(e),o=se(t);return St(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},t.removeHook=function(e){if(ce[e])return d(ce[e])},t.removeHooks=function(e){ce[e]&&(ce[e]=[])},t.removeAllHooks=function(){ce={}},t}();export{j as default};
@@ -1 +0,0 @@
1
- const E=100,T="ngIsSelectionPage",_=[{name:"server-connect",from:"html-parsed",to:"server-info-resolved"},{name:"identity-provider",from:"server-info-resolved",to:"identity-provider-resolved"},{name:"auth",from:"identity-provider-resolved",to:"auth-completed"},{name:"project-open",from:"auth-completed",to:"project-selected"},{name:"basemap-parse",from:"project-selected",to:"basemap-style-loaded"},{name:"map-finalize",from:"basemap-style-loaded",to:"map-fully-loaded"},{name:"ui-full-fetch",from:"app.ts-evaluated",to:"ui-full-chunk-fetched"},{name:"ui-full-evaluate",from:"ui-full-chunk-fetched",to:"ui-full-evaluated"},{name:"first-app-paint",from:"ui-full-evaluated",to:"first-app-paint"},{name:"boot-to-basemap",from:"html-parsed",to:"basemap-style-loaded"},{name:"boot-to-side-panel",from:"html-parsed",to:"side-panel-visible"}];function createState(){return{marks:new Map,order:[]}}let e=createState();const A={mark(E){if(e.marks.has(E))return;const T=function now(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}();if(e.marks.set(E,T),e.order.push(E),"undefined"!=typeof performance&&"function"==typeof performance.mark)try{performance.mark(`jmap-boot:${E}`)}catch{}},flush(){const E={};e.marks.forEach((T,_)=>{E[_]=T});const T={};for(const A of _){const E=e.marks.get(A.from),_=e.marks.get(A.to);void 0!==E&&void 0!==_&&(T[A.name]=_-E)}return{marks:E,order:[...e.order],deltas:T}},reset(){e=createState()}};function publishBootTiming(){const E=A.flush();try{console.debug("[jmap-boot-timing]",E)}catch{}if("undefined"!=typeof window){try{window.__JMAP_BOOT_TIMING__=E}catch{}if("function"==typeof CustomEvent&&"function"==typeof window.dispatchEvent)try{window.dispatchEvent(new CustomEvent("jmap-boot-timing",{detail:E}))}catch{}}}var t=(E=>(E.NONE="",E.CENTER="center",E.SCALE="scale",E))(t||{}),R=(E=>(E.TOP_LEFT="top-left",E.TOP_RIGHT="top-right",E.BOTTOM_LEFT="bottom-left",E.BOTTOM_RIGHT="bottom-right",E))(R||{}),S=(E=>(E.MILLIMETERS="millimeters",E.CENTIMETERS="centimeters",E.METERS="meters",E.KILOMETERS="kilometers",E.INCHES="inches",E.FEETS="feet",E.YARDS="yards",E.MILES="miles",E.NAUTICAL_MILES="nauticalmiles",E))(S||{}),O=(E=>(E.TMS="tms",E.XYZ="xyz",E))(O||{}),o=(E=>(E.DEPRECATED="DEPRECATED_FORM",E.ATTRIBUTE="LAYER_ATTRIBUTES_FORM",E.ATTRIBUTE_SUB_FORM="LAYER_ATTRIBUTES_SUB_FORM",E.EXTERNAL="EXTERNAL_ATTRIBUTES_FORM",E.EXTERNAL_SUB_FORM="EXTERNAL_ATTRIBUTES_SUB_FORM",E))(o||{}),r=(E=>(E.LEFT="LEFT",E.CENTER="CENTER",E.RIGHT="RIGHT",E))(r||{}),N=(E=>(E.INPUT="input",E.RANGE="range",E.SWITCH="switch",E.SELECT="select",E.DATE="date",E.PHOTO="photo",E.TREE="tree",E.LABEL="label",E.SPAN="span",E.TABLE="table",E))(N||{}),P=(E=>(E.STRING="string",E.NUMBER="number",E.INTEGER="integer",E.BOOLEAN="boolean",E.ARRAY="array",E.OBJECT="object",E))(P||{}),n=(E=>(E.CREATION="creation",E.UPDATE="update",E.DELETE="delete",E))(n||{}),I=(E=>(E.EMPTY="TYPE_EMPTY",E.COLUMN_SPAN="TYPE_COLUMN_SPAN",E.LABEL="TYPE_LABEL",E.TEXT="TYPE_INPUT_TEXT",E.RANGE="TYPE_INPUT_RANGE",E.SELECT_ONE="TYPE_SELECT_ONE",E.SELECT_MANY="TYPE_SELECT_MANY",E.DATE="TYPE_INPUT_DATE",E.BOOLEAN="TYPE_SELECT_BOOLEAN",E.GROUP_PANEL="TYPE_GROUP_PANEL",E.DOCUMENT="TYPE_DOCUMENT",E.TREE="TYPE_TREE",E.TABLE="TYPE_TABLE",E))(I||{}),L=(E=>(E.STRING="string",E.NUMBER="number",E.DATE="date",E.DATETIME="datetime",E.BOOLEAN="boolean",E.BINARY="binary",E))(L||{}),a=(E=>(E.LOGGING_IN="LOGGING_IN",E.LOGGED_IN="LOGGED_IN",E.LOGGED_OUT="LOGGED_OUT",E.LOGIN_ERROR="LOGIN_ERROR",E.LOGIN_ERROR_INSUFFICIENT_ROLES="LOGIN_ERROR_INSUFFICIENT_ROLES",E.SWITCHING_ORG="SWITCHING_ORG",E))(a||{}),i=(E=>(E.SYS_ADMIN="SYS_ADMIN",E.ORG_ADMIN="ORG_ADMIN",E.ORG_EDITOR="ORG_EDITOR",E.ORG_VIEWER="ORG_VIEWER",E.ACCOUNT_MANAGER="ACCOUNT_MANAGER",E))(i||{}),s=(E=>(E.MAPBOX_ACCESS_TOKEN="MAPBOX_ACCESS_TOKEN",E))(s||{}),l=(E=>(E.NONE="none",E.EQUIRECTANGULAR="equirectangular",E))(l||{}),M=(E=>(E.KILOMETERS="kilometers",E.MILES="miles",E.DEGREES="degrees",E.RADIANS="radians",E))(M||{}),c=(E=>(E.SECONDS="seconds",E.MINUTES="minutes",E.HOURS="hours",E.DAYS="days",E.WEEKS="weeks",E.MONTHS="months",E.YEARS="years",E))(c||{}),u=(E=>(E.FR="fr",E.EN="en",E.ES="es",E))(u||{}),f=(E=>(E.UNKNOWN="",E.MAC="mac",E.WINDOWS="windows",E.IOS="ios",E.ANDROID="android",E.LINUX="linux",E))(f||{}),p=(E=>(E.FORM="FORM",E.LAYER="LAYER",E.MAP="MAP",E.PROJECT="PROJECT",E))(p||{}),Y=(E=>(E.VECTOR="VECTOR",E.RASTER="RASTER",E.OGC_API_FEATURES="OGC_API_FEATURES",E.WMS="WMS",E.WMTS="WMTS",E))(Y||{}),D=(E=>(E.BY_TILE="BY_TILE",E.BY_REGION="BY_REGION",E))(D||{}),G=(E=>(E.POINT="POINT",E.LINE="LINE",E.POLYGON="POLYGON",E.TEXT="TEXT",E.IMAGE="IMAGE",E.LABEL="LABEL",E.ELLIPSE="ELLIPSE",E.MIXED="MIXED",E))(G||{}),U=(E=>(E.ANNOTATION="ANNOTATION",E.CURVE="CURVE",E.COMPLEX="COMPLEX",E.POINT="POINT",E.RASTER="RASTER",E.SURFACE="SURFACE",E.ELLIPSE="ELLIPSE",E.NONE="NONE",E))(U||{}),C=(E=>(E.STRING="string",E.NUMBER="number",E.DATE="date",E.DATETIME="datetime",E.BOOLEAN="boolean",E.BINARY="binary",E))(C||{}),d=(E=>(E.INDIVIDUAL="INDIVIDUAL_VALUES",E.GRADUATED="GRADUATED_STYLE",E.STYLE_RULE="STYLE_RULE",E.OTHER="OTHER",E))(d||{}),y=(E=>(E.CLASSIFICATION="Classification",E.PROPORTIONAL_SYMBOL="ProportionalSymbol",E.STYLE_RULE="StyleRule",E.OTHER="Other",E))(y||{}),m=(E=>(E.POINT="POINT",E.LINE="LINE",E.POLYGON="POLYGON",E.TEXT="TEXT",E.IMAGE="IMAGE",E))(m||{}),J=(E=>(E.NONE="NONE",E.FORWARD="FORWARD",E.BACKWARD="BACKWARD",E))(J||{}),B=(E=>(E.JSP="JSP",E.BIRT="BIRT",E.BIRT_HTML="BIRT_HTML",E.BIRT_PDF="BIRT_PDF",E.WMS="WMS",E.CUSTOM="CUSTOM",E))(B||{}),F=(E=>(E.EMPTY="EMPTY",E.NOT_EMPTY="NOT_EMPTY",E.IS_NULL="IS_NULL",E.IS_NOT_NULL="IS_NOT_NULL",E.EQUALS="EQUALS",E.NOT_EQUALS="NOT_EQUALS",E.GREATER_THAN="GREATER_THAN",E.LOWER_THAN="LOWER_THAN",E.GREATER_OR_EQUALS_TO="GREATER_OR_EQUALS_TO",E.LOWER_OR_EQUALS_TO="LOWER_OR_EQUALS_TO",E.IN="IN",E.NOT_IN="NOT_IN",E))(F||{}),b=(E=>(E.EQUALS="EQUALS",E.NOT_EQUALS="NOT_EQUALS",E.GREATER_THAN="GREATER_THAN",E.GREATER_OR_EQUALS_TO="GREATER_OR_EQUALS_TO",E.LESS_THAN="LESS_THAN",E.LESS_OR_EQUALS_TO="LESS_OR_EQUALS_TO",E.CONTAINS="CONTAINS",E.NOT_CONTAINS="NOT_CONTAINS",E.IS_EMPTY="IS_EMPTY",E.IS_NOT_EMPTY="IS_NOT_EMPTY",E.IS_NULL="IS_NULL",E.IS_NOT_NULL="IS_NOT_NULL",E.IS_IN_RANGE="IS_IN_RANGE",E.IS_NOT_IN_RANGE="IS_NOT_IN_RANGE",E.LAST="LAST",E.INTERVAL="INTERVAL",E))(b||{}),W=(E=>(E.BUTT="BUTT",E.ROUND="ROUND",E.SQUARE="SQUARE",E))(W||{}),h=(E=>(E.MITER="MITER",E.ROUND="ROUND",E.BEVEL="BEVEL",E))(h||{}),H=(E=>(E.DATE="date",E.TEXT="text",E.NUMBER="number",E.TEXTAREA="textarea",E.URL="url",E))(H||{}),v=(E=>(E.TINYINT="TINYINT",E.SMALLINT="SMALLINT",E.INTEGER="INTEGER",E.BIGINT="BIGINT",E.FLOAT="FLOAT",E.REAL="REAL",E.DOUBLE="DOUBLE",E.NUMERIC="NUMERIC",E.DECIMAL="DECIMAL",E.CHAR="CHAR",E.VARCHAR="VARCHAR",E.LONGVARCHAR="LONGVARCHAR",E.DATE="DATE",E.TIME="TIME",E.TIMESTAMP="TIMESTAMP",E.ARRAY="ARRAY",E.BOOLEAN="BOOLEAN",E))(v||{}),g=(E=>(E.STRING="string",E.INTEGER="integer",E.NUMBER="number",E.BOOLEAN="boolean",E.ARRAY="array",E))(g||{}),w=(E=>(E.VIEWPORT="VIEWPORT",E.MAP="MAP",E))(w||{}),X=(E=>(E.STANDARD="standard",E.DEFAULT="default",E.SHARED="shared",E))(X||{}),x=(E=>(E.LIST="list",E.CREATE="create",E))(x||{}),j=(E=>(E.ALPHABETIC="alphabetic",E.LAST_UPDATE="lastUpdate",E))(j||{}),Q=(E=>(E.ASC="asc",E.DESC="desc",E))(Q||{}),V=(E=>(E.SUCCESS="success",E.INFO="info",E.WARNING="warning",E.ERROR="error",E))(V||{}),k=(E=>(E.ADD_MESSAGE="APP_MESSAGE_ADD_MESSAGE",E.SET_MESSAGE_EXPIRED="APP_MESSAGE_SET_MESSAGE_EXPIRED",E.SET_CONFIRM_MESSAGE="APP_MESSAGE_SET_CONFIRM_MESSAGE",E.ADD_OVERLAY_MESSAGE="APP_MESSAGE_ADD_OVERLAY_MESSAGE",E.DELETE_OVERLAY_MESSAGES="APP_MESSAGE_DELETE_OVERLAY_MESSAGES",E))(k||{}),K=(E=>(E.SET_ACTIONS="APP_USER_SET_ACTIONS",E))(K||{}),q=(E=>(E.STARTING="STARTING",E.UP="UP",E.DOWN="DOWN",E))(q||{}),Z=(E=>(E.ANONYMOUS="anonymous",E.JMAP_CLOUD="jmapcloud.io",E.AUTH0_SPA="auth0-spa",E))(Z||{});const z=Object.freeze(Object.defineProperty({__proto__:null,ATTRIBUTE_TYPES:v,FORMSCHEMA_TYPES:g,JAPP_MESSAGE_SEVERITIES:V,JFATAL_ERROR_CONTEXTS:p,JFORM_FIELD_TYPES:I,JFORM_OPERATION_TYPES:n,JFORM_TYPES:o,JFORM_UI_CONTROL_ALIGNMENTS:r,JFORM_WIDGET_TYPES:N,JGEOMETRY_UNITS:M,JJSON_SCHEMA_TYPES:P,JLAYER_ATTRIBUTE_TYPES:C,JLAYER_DYNAMIC_FILTER_OPERATORS:b,JLAYER_ELEMENT_TYPES:G,JLAYER_GEOMETRIES:U,JLAYER_INFORMATION_REPORT_TYPES:B,JLAYER_LAYER_REQUEST_MODES:D,JLAYER_LAYER_TYPES:Y,JLAYER_METADATA_TYPES:H,JLAYER_STYLE_ARROW_TYPES:J,JLAYER_STYLE_LINE_CAP:W,JLAYER_STYLE_LINE_JOIN:h,JLAYER_STYLE_RULE_CONDITION_EXPRESSION_OPERATORS:F,JLAYER_STYLE_TYPES:m,JLAYER_THEMATIC_FAMILY_TYPES:y,JLAYER_THEMATIC_TYPES:d,JLOCALES:u,JMAP_CONTEXT_APPLY_TYPES:X,JMAP_CONTEXT_SORT_BY_DIRECTIONS:Q,JMAP_CONTEXT_SORT_BY_OPTIONS:j,JMAP_CONTEXT_TABS:x,JMAP_DISTANCE_UNITS:S,JMAP_MODIFICATION_TYPES:t,JMAP_POSITIONS:R,JMAP_RASTER_SCHEME_TYPES:O,JOPERATING_SYSTEMS:f,JORGANIZATION_EXTERNAL_API_KEY_TYPES:s,JPHOTO_PROJECTION_TYPES:l,JSERVER_IDENTITY_PROVIDER_TYPES:Z,JSERVER_MICRO_SERVICE_STATUSES:q,JTABLE_ATTRIBUTE_TYPES:L,JTERRAIN_ILLUMINATION_ANCHOR_TYPES:w,JTIME_UNITS:c,LOGIN_STATUS:a,MESSAGE_ACTION_TYPES:k,ROLES:i,USER_ACTION_TYPES:K},Symbol.toStringTag,{value:"Module"}));for(const[mE,JE]of Object.entries(z))globalThis[mE]=JE;var $=(E=>(E.BEFORE="before",E.AFTER="after",E.BETWEEN="between",E.LAST_PERIOD="lastPeriod",E))($||{}),EE=(E=>(E.CONTAINS="contains",E.DOES_NOT_CONTAIN="doesNotContain",E.EQUALS="equals",E.DOES_NOT_EQUALS="doesNotEqual",E))(EE||{}),TE=(E=>(E.EQUALS="equals",E.DOES_NOT_EQUALS="doesNotEqual",E.SMALLER_THAN="smallerThan",E.GREATER_THAN="greaterThan",E))(TE||{}),_E=(E=>(E.DAY="day",E.WEEK="week",E.MONTH="month",E.YEAR="year",E))(_E||{}),eE=(E=>(E.THEMATICS="thematics",E.DYNAMIC_FILTER="dynamic-filter",E.GENERAL="general",E))(eE||{}),AE=(E=>(E.PNG="png",E.JPEG="jpeg",E.PDF="pdf",E))(AE||{}),tE=(E=>(E.LETTER="letter",E.LEGAL="legal",E.A3="a3",E.A4="a4",E.CUSTOM="custom",E))(tE||{}),RE=(E=>(E.TOP_RIGHT="top-right",E.TOP_LEFT="top-left",E))(RE||{}),SE=(E=>(E.PLANAR="planar",E.GEODETIC="geodetic",E))(SE||{}),OE=(E=>(E.POINT="point",E.POLYGON="polygon",E.LINE_STRING="line_string",E.RECTANGLE="rectangle",E.CIRCLE="circle",E.TEXT="text",E))(OE||{}),oE=(E=>(E.DRAW="draw",E.SELECT="select",E.DELETE="delete",E))(oE||{}),rE=(E=>(E.SELECT_LAYER="select-layer",E.DRAW="draw",E))(rE||{});const NE=Object.freeze(Object.defineProperty({__proto__:null,JAPP_DRAW_MODES:oE,JAPP_DRAW_TYPES:OE,JAPP_GEOMETRY_WIZARD_STEPS:rE,JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES:$,JAPP_LAYER_EDITION_TABS:eE,JAPP_LAYER_FILTER_DATE_PERIOD_TYPES:_E,JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES:TE,JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES:EE,JAPP_MEASUREMENT_SYSTEMS:SE,JAPP_PRINT_FILE_TYPES:AE,JAPP_PRINT_LEGEND_POSITION:RE,JAPP_PRINT_PAPER_SIZES:tE},Symbol.toStringTag,{value:"Module"}));for(const[mE,JE]of Object.entries(NE))globalThis[mE]=JE;var PE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(E){return E&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E}function _extends(){return _extends=Object.assign?Object.assign.bind():function(E){for(var T=1;T<arguments.length;T++){var _=arguments[T];for(var e in _)({}).hasOwnProperty.call(_,e)&&(E[e]=_[e])}return E},_extends.apply(null,arguments)}function _objectWithoutPropertiesLoose(E,T){if(null==E)return{};var _={};for(var e in E)if({}.hasOwnProperty.call(E,e)){if(-1!==T.indexOf(e))continue;_[e]=E[e]}return _}function _setPrototypeOf(E,T){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E})(E,T)}function _inheritsLoose(E,T){E.prototype=Object.create(T.prototype),E.prototype.constructor=E,_setPrototypeOf(E,T)}function _assertThisInitialized(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}const nE=[JAPP_DRAW_TYPES.POINT,JAPP_DRAW_TYPES.POLYGON,JAPP_DRAW_TYPES.LINE_STRING,JAPP_DRAW_TYPES.RECTANGLE,JAPP_DRAW_TYPES.CIRCLE,JAPP_DRAW_TYPES.TEXT],IE=[JAPP_MEASUREMENT_SYSTEMS.GEODETIC,JAPP_MEASUREMENT_SYSTEMS.PLANAR],LE=[JAPP_DRAW_MODES.DRAW,JAPP_DRAW_MODES.SELECT,JAPP_DRAW_MODES.DELETE];JAPP_GEOMETRY_WIZARD_STEPS.SELECT_LAYER,JAPP_GEOMETRY_WIZARD_STEPS.DRAW,JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BEFORE,JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.AFTER,JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BETWEEN,JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.LAST_PERIOD,JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.CONTAINS,JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_CONTAIN,JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.EQUALS,JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS,JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.EQUALS,JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS,JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.SMALLER_THAN,JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.GREATER_THAN,JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.DAY,JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.WEEK,JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.MONTH,JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.YEAR;const aE=[JAPP_LAYER_EDITION_TABS.THEMATICS,JAPP_LAYER_EDITION_TABS.DYNAMIC_FILTER,JAPP_LAYER_EDITION_TABS.GENERAL],iE=[JAPP_PRINT_FILE_TYPES.PNG,JAPP_PRINT_FILE_TYPES.JPEG,JAPP_PRINT_FILE_TYPES.PDF],sE=[JAPP_PRINT_PAPER_SIZES.LETTER,JAPP_PRINT_PAPER_SIZES.LEGAL,JAPP_PRINT_PAPER_SIZES.A3,JAPP_PRINT_PAPER_SIZES.A4];JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT,JAPP_PRINT_LEGEND_POSITION.TOP_LEFT;const lE=[JAPP_DRAW_TYPES.POINT,JAPP_DRAW_TYPES.LINE_STRING,JAPP_DRAW_TYPES.RECTANGLE,JAPP_DRAW_TYPES.CIRCLE,JAPP_DRAW_TYPES.POLYGON],ME=[JAPP_DRAW_TYPES.POLYGON,JAPP_DRAW_TYPES.LINE_STRING,JAPP_DRAW_TYPES.CIRCLE];var extendStatics=function(E,T){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&(E[_]=T[_])})(E,T)};function __extends(E,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function __(){this.constructor=E}extendStatics(E,T),E.prototype=null===T?Object.create(T):(__.prototype=T.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign2(E){for(var T,_=1,e=arguments.length;_<e;_++)for(var A in T=arguments[_])Object.prototype.hasOwnProperty.call(T,A)&&(E[A]=T[A]);return E},__assign.apply(this,arguments)};function __rest(E,T){var _={};for(var e in E)Object.prototype.hasOwnProperty.call(E,e)&&T.indexOf(e)<0&&(_[e]=E[e]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var A=0;for(e=Object.getOwnPropertySymbols(E);A<e.length;A++)T.indexOf(e[A])<0&&Object.prototype.propertyIsEnumerable.call(E,e[A])&&(_[e[A]]=E[e[A]])}return _}function __awaiter(E,T,_,e){return new(_||(_=Promise))(function(A,t){function fulfilled(E){try{step(e.next(E))}catch(T){t(T)}}function rejected(E){try{step(e.throw(E))}catch(T){t(T)}}function step(E){E.done?A(E.value):function adopt(E){return E instanceof _?E:new _(function(T){T(E)})}(E.value).then(fulfilled,rejected)}step((e=e.apply(E,T||[])).next())})}function __spreadArray(E,T,_){if(_||2===arguments.length)for(var e,A=0,t=T.length;A<t;A++)!e&&A in T||(e||(e=Array.prototype.slice.call(T,0,A)),e[A]=T[A]);return E.concat(e||Array.prototype.slice.call(T))}"function"==typeof SuppressedError&&SuppressedError,l.NONE,l.EQUIRECTANGULAR,o.DEPRECATED,o.ATTRIBUTE,o.ATTRIBUTE_SUB_FORM,o.EXTERNAL,o.EXTERNAL_SUB_FORM,r.LEFT,r.CENTER,r.RIGHT;const cE=[N.INPUT,N.RANGE,N.SWITCH,N.SELECT,N.DATE,N.PHOTO,N.TREE,N.LABEL,N.SPAN,N.TABLE];P.STRING,P.NUMBER,P.INTEGER,P.BOOLEAN,P.ARRAY,P.OBJECT,n.CREATION,n.UPDATE,n.DELETE,I.EMPTY,I.COLUMN_SPAN,I.LABEL,I.TEXT,I.RANGE,I.SELECT_ONE,I.SELECT_MANY,I.DATE,I.BOOLEAN,I.GROUP_PANEL,I.DOCUMENT,I.TREE,I.TABLE,c.SECONDS,c.MINUTES,c.HOURS,c.DAYS,c.WEEKS,c.MONTHS,c.YEARS,M.KILOMETERS,M.MILES,M.DEGREES,M.RADIANS,u.FR,u.EN,u.ES,Y.VECTOR,Y.RASTER,Y.OGC_API_FEATURES,D.BY_TILE,D.BY_REGION,G.POINT,G.LINE,G.POLYGON,G.TEXT,G.IMAGE,G.LABEL,G.ELLIPSE,G.MIXED,U.ANNOTATION,U.CURVE,U.COMPLEX,U.POINT,U.RASTER,U.SURFACE,U.ELLIPSE,U.NONE,C.STRING,C.NUMBER,C.DATE,C.DATETIME,C.BOOLEAN,C.BINARY,d.INDIVIDUAL,d.GRADUATED,d.OTHER,d.STYLE_RULE,y.CLASSIFICATION,y.PROPORTIONAL_SYMBOL,y.STYLE_RULE,y.OTHER,m.POINT,m.LINE,m.IMAGE,m.TEXT,m.IMAGE,J.NONE,J.FORWARD,J.BACKWARD,B.JSP,B.BIRT,B.BIRT_HTML,B.BIRT_PDF,B.WMS,B.CUSTOM,F.EMPTY,F.NOT_EMPTY,F.IS_NULL,F.IS_NOT_NULL,F.EQUALS,F.NOT_EQUALS,F.GREATER_THAN,F.LOWER_THAN,F.GREATER_OR_EQUALS_TO,F.LOWER_OR_EQUALS_TO,b.EQUALS,b.NOT_EQUALS,b.GREATER_THAN,b.GREATER_OR_EQUALS_TO,b.LESS_THAN,b.LESS_OR_EQUALS_TO,b.CONTAINS,b.NOT_CONTAINS,b.IS_EMPTY,b.IS_NOT_EMPTY,b.IS_NULL,b.IS_NOT_NULL,b.IS_IN_RANGE,b.IS_NOT_IN_RANGE,b.LAST,b.INTERVAL,W.BUTT,W.ROUND,W.SQUARE,h.MITER,h.ROUND,h.BEVEL,H.DATE,H.TEXT,H.NUMBER,H.TEXTAREA,H.URL,f.UNKNOWN,f.MAC,f.WINDOWS,f.IOS,f.ANDROID,f.LINUX,p.FORM,p.LAYER,p.MAP,p.PROJECT,X.STANDARD,X.DEFAULT,X.SHARED,x.LIST,x.CREATE;const uE=[j.ALPHABETIC,j.LAST_UPDATE],fE=[Q.ASC,Q.DESC];t.NONE,t.CENTER,t.SCALE;const pE=[R.TOP_LEFT,R.TOP_RIGHT,R.BOTTOM_LEFT,R.BOTTOM_RIGHT],YE=[S.MILLIMETERS,S.CENTIMETERS,S.METERS,S.KILOMETERS,S.INCHES,S.FEETS,S.YARDS,S.MILES,S.NAUTICAL_MILES],DE=[O.TMS,O.XYZ];Z.AUTH0_SPA,Z.JMAP_CLOUD,Z.ANONYMOUS,q.STARTING,q.UP,q.DOWN,s.MAPBOX_ACCESS_TOKEN,w.MAP,w.VIEWPORT,a.LOGGED_IN,a.LOGGED_OUT,a.LOGGING_IN,a.LOGIN_ERROR,a.LOGIN_ERROR_INSUFFICIENT_ROLES,a.SWITCHING_ORG,i.ORG_ADMIN,i.ORG_EDITOR,i.ORG_VIEWER,i.ACCOUNT_MANAGER,i.SYS_ADMIN;const GE=[i.ORG_ADMIN,i.ORG_EDITOR,i.ORG_VIEWER];function _typeof$1(E){return(_typeof$1="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)}V.SUCCESS,V.INFO,V.WARNING,V.ERROR,L.BINARY,L.BOOLEAN,L.DATE,L.DATETIME,L.NUMBER,L.STRING;var UE,CE,dE={exports:{}},yE={exports:{}};function requireInteropRequireWildcard(){return CE||(CE=1,function(E){var T=function require_typeof(){return UE||(UE=1,function(E){function _typeof2(T){return E.exports=_typeof2="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.exports.__esModule=!0,E.exports.default=E.exports,_typeof2(T)}E.exports=_typeof2,E.exports.__esModule=!0,E.exports.default=E.exports}(yE)),yE.exports}().default;function _interopRequireWildcard(_,e){if("function"==typeof WeakMap)var A=new WeakMap,t=new WeakMap;return(E.exports=_interopRequireWildcard=function _interopRequireWildcard2(E,_){if(!_&&E&&E.__esModule)return E;var e,R,S={__proto__:null,default:E};if(null===E||"object"!=T(E)&&"function"!=typeof E)return S;if(e=_?t:A){if(e.has(E))return e.get(E);e.set(E,S)}for(var O in E)"default"!==O&&{}.hasOwnProperty.call(E,O)&&((R=(e=Object.defineProperty)&&Object.getOwnPropertyDescriptor(E,O))&&(R.get||R.set)?e(S,O,R):S[O]=E[O]);return S},E.exports.__esModule=!0,E.exports.default=E.exports)(_,e)}E.exports=_interopRequireWildcard,E.exports.__esModule=!0,E.exports.default=E.exports}(dE)),dE.exports}function toPropertyKey(E){var T=function toPrimitive(E,T){if("object"!=_typeof$1(E)||!E)return E;var _=E[Symbol.toPrimitive];if(void 0!==_){var e=_.call(E,T);if("object"!=_typeof$1(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===T?String:Number)(E)}(E,"string");return"symbol"==_typeof$1(T)?T:T+""}function asyncGeneratorStep(E,T,_,e,A,t,R){try{var S=E[t](R),O=S.value}catch(o){return void _(o)}S.done?T(O):Promise.resolve(O).then(e,A)}function _asyncToGenerator(E){return function(){var T=this,_=arguments;return new Promise(function(e,A){var t=E.apply(T,_);function _next(E){asyncGeneratorStep(t,e,A,_next,_throw,"next",E)}function _throw(E){asyncGeneratorStep(t,e,A,_next,_throw,"throw",E)}_next(void 0)})}}function _defineProperty(E,T,_){return(T=toPropertyKey(T))in E?Object.defineProperty(E,T,{value:_,enumerable:!0,configurable:!0,writable:!0}):E[T]=_,E}export{nE as A,fE as B,uE as C,_typeof$1 as D,_asyncToGenerator as E,_defineProperty as F,T as P,E as S,_extends as _,_inheritsLoose as a,_objectWithoutPropertiesLoose as b,_assertThisInitialized as c,LE as d,iE as e,sE as f,getDefaultExportFromCjs as g,__assign as h,__extends as i,__rest as j,__spreadArray as k,PE as l,lE as m,IE as n,ME as o,__awaiter as p,aE as q,A as r,requireInteropRequireWildcard as s,toPropertyKey as t,cE as u,pE as v,YE as w,DE as x,GE as y,publishBootTiming as z};
@@ -1 +0,0 @@
1
- import{r as t,a as i,b as o,c as n,j as s,d as a}from"./ui-full.B0sEpQTp.js";import{g as l}from"./shared-helpers.D1OtmvKm.js";var h,p={exports:{}},d={},u={exports:{}};var f,c={},g={};function requireShims(){if(f)return g;return f=1,Object.defineProperty(g,"__esModule",{value:!0}),g.dontSetMe=function dontSetMe(t,i,o){if(t[i])return new Error(`Invalid prop ${i} passed to ${o} - do not set this, set it on the child.`)},g.findInArray=function findInArray(t,i){for(let o=0,n=t.length;o<n;o++)if(i.apply(i,[t[o],o,t]))return t[o]},g.int=function int(t){return parseInt(t,10)},g.isFunction=function isFunction(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},g.isNum=function isNum(t){return"number"==typeof t&&!isNaN(t)},g}var m,b,y={};function requireDomFns(){if(b)return c;b=1,Object.defineProperty(c,"__esModule",{value:!0}),c.addClassName=addClassName,c.addEvent=function addEvent(t,i,o,n){if(!t)return;const s={capture:!0,...n};t.addEventListener?t.addEventListener(i,o,s):t.attachEvent?t.attachEvent("on"+i,o):t["on"+i]=o},c.addUserSelectStyles=function addUserSelectStyles(t){if(!t)return;let i=t.getElementById("react-draggable-style-el");i||(i=t.createElement("style"),i.type="text/css",i.id="react-draggable-style-el",i.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",i.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(i));t.body&&addClassName(t.body,"react-draggable-transparent-selection")},c.createCSSTransform=function createCSSTransform(t,o){const n=getTranslation(t,o,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n}},c.createSVGTransform=function createSVGTransform(t,i){return getTranslation(t,i,"")},c.getTouch=function getTouch(i,o){return i.targetTouches&&(0,t.findInArray)(i.targetTouches,t=>o===t.identifier)||i.changedTouches&&(0,t.findInArray)(i.changedTouches,t=>o===t.identifier)},c.getTouchIdentifier=function getTouchIdentifier(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},c.getTranslation=getTranslation,c.innerHeight=function innerHeight(i){let o=i.clientHeight;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o-=(0,t.int)(n.paddingTop),o-=(0,t.int)(n.paddingBottom),o},c.innerWidth=function innerWidth(i){let o=i.clientWidth;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o-=(0,t.int)(n.paddingLeft),o-=(0,t.int)(n.paddingRight),o},c.matchesSelector=matchesSelector,c.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(t,i,o){let n=t;do{if(matchesSelector(n,i))return!0;if(n===o)return!1;n=n.parentNode}while(n);return!1},c.offsetXYFromParent=function offsetXYFromParent(t,i,o){const n=i===i.ownerDocument.body?{left:0,top:0}:i.getBoundingClientRect(),s=(t.clientX+i.scrollLeft-n.left)/o,a=(t.clientY+i.scrollTop-n.top)/o;return{x:s,y:a}},c.outerHeight=function outerHeight(i){let o=i.clientHeight;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o+=(0,t.int)(n.borderTopWidth),o+=(0,t.int)(n.borderBottomWidth),o},c.outerWidth=function outerWidth(i){let o=i.clientWidth;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o+=(0,t.int)(n.borderLeftWidth),o+=(0,t.int)(n.borderRightWidth),o},c.removeClassName=removeClassName,c.removeEvent=function removeEvent(t,i,o,n){if(!t)return;const s={capture:!0,...n};t.removeEventListener?t.removeEventListener(i,o,s):t.detachEvent?t.detachEvent("on"+i,o):t["on"+i]=null},c.scheduleRemoveUserSelectStyles=function scheduleRemoveUserSelectStyles(t){window.requestAnimationFrame?window.requestAnimationFrame(()=>{removeUserSelectStyles(t)}):removeUserSelectStyles(t)};var t=requireShims(),i=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(function requireGetPrefix(){if(m)return y;m=1,Object.defineProperty(y,"__esModule",{value:!0}),y.browserPrefixToKey=browserPrefixToKey,y.browserPrefixToStyle=function browserPrefixToStyle(t,i){return i?`-${i.toLowerCase()}-${t}`:t},y.default=void 0,y.getPrefix=getPrefix$1;const t=["Moz","Webkit","O","ms"];function getPrefix$1(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(i in o)return"";for(let n=0;n<t.length;n++)if(browserPrefixToKey(i,t[n])in o)return t[n];return""}function browserPrefixToKey(t,i){return i?`${i}${function kebabToTitleCase(t){let i="",o=!0;for(let n=0;n<t.length;n++)o?(i+=t[n].toUpperCase(),o=!1):"-"===t[n]?o=!0:i+=t[n];return i}(t)}`:t}return y.default=getPrefix$1(),y}());let o="";function matchesSelector(i,n){return o||(o=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(o){return(0,t.isFunction)(i[o])})),!!(0,t.isFunction)(i[o])&&i[o](n)}function getTranslation(t,i,o){let{x:n,y:s}=t,a=`translate(${n}${o},${s}${o})`;if(i){a=`translate(${`${"string"==typeof i.x?i.x:i.x+o}`}, ${`${"string"==typeof i.y?i.y:i.y+o}`})`+a}return a}function removeUserSelectStyles(t){if(t)try{if(t.body&&removeClassName(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const i=(t.defaultView||window).getSelection();i&&"Caret"!==i.type&&i.removeAllRanges()}}catch(i){}}function addClassName(t,i){t.classList?t.classList.add(i):t.className.match(new RegExp(`(?:^|\\s)${i}(?!\\S)`))||(t.className+=` ${i}`)}function removeClassName(t,i){t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp(`(?:^|\\s)${i}(?!\\S)`,"g"),"")}return c}var v,w={};function requirePositionFns(){if(v)return w;v=1,Object.defineProperty(w,"__esModule",{value:!0}),w.canDragX=function canDragX(t){return"both"===t.props.axis||"x"===t.props.axis},w.canDragY=function canDragY(t){return"both"===t.props.axis||"y"===t.props.axis},w.createCoreData=function createCoreData(i,o,n){const s=!(0,t.isNum)(i.lastX),a=findDOMNode(i);return s?{node:a,deltaX:0,deltaY:0,lastX:o,lastY:n,x:o,y:n}:{node:a,deltaX:o-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:o,y:n}},w.createDraggableData=function createDraggableData(t,i){const o=t.props.scale;return{node:i.node,x:t.state.x+i.deltaX/o,y:t.state.y+i.deltaY/o,deltaX:i.deltaX/o,deltaY:i.deltaY/o,lastX:t.state.x,lastY:t.state.y}},w.getBoundPosition=function getBoundPosition(o,n,s){if(!o.props.bounds)return[n,s];let{bounds:a}=o.props;a="string"==typeof a?a:function cloneBounds(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);const l=findDOMNode(o);if("string"==typeof a){const{ownerDocument:o}=l,n=o.defaultView;let s;if("parent"===a)s=l.parentNode;else{s=l.getRootNode().querySelector(a)}if(!(s instanceof n.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=s,p=n.getComputedStyle(l),d=n.getComputedStyle(h);a={left:-l.offsetLeft+(0,t.int)(d.paddingLeft)+(0,t.int)(p.marginLeft),top:-l.offsetTop+(0,t.int)(d.paddingTop)+(0,t.int)(p.marginTop),right:(0,i.innerWidth)(h)-(0,i.outerWidth)(l)-l.offsetLeft+(0,t.int)(d.paddingRight)-(0,t.int)(p.marginRight),bottom:(0,i.innerHeight)(h)-(0,i.outerHeight)(l)-l.offsetTop+(0,t.int)(d.paddingBottom)-(0,t.int)(p.marginBottom)}}(0,t.isNum)(a.right)&&(n=Math.min(n,a.right));(0,t.isNum)(a.bottom)&&(s=Math.min(s,a.bottom));(0,t.isNum)(a.left)&&(n=Math.max(n,a.left));(0,t.isNum)(a.top)&&(s=Math.max(s,a.top));return[n,s]},w.getControlPosition=function getControlPosition(t,o,n){const s="number"==typeof o?(0,i.getTouch)(t,o):null;if("number"==typeof o&&!s)return null;const a=findDOMNode(n),l=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(s||t,l,n.props.scale)},w.snapToGrid=function snapToGrid(t,i,o){const n=Math.round(i/t[0])*t[0],s=Math.round(o/t[1])*t[1];return[n,s]};var t=requireShims(),i=requireDomFns();function findDOMNode(t){const i=t.findDOMNode();if(!i)throw new Error("<DraggableCore>: Unmounted during event!");return i}return w}var S,x,z,D,R={},P={};function requireLog(){if(S)return P;return S=1,Object.defineProperty(P,"__esModule",{value:!0}),P.default=function log$1(){},P}function requireDraggableCore(){if(x)return R;x=1,Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var n=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(t()),s=_interopRequireDefault(o()),a=_interopRequireDefault(i()),l=requireDomFns(),h=requirePositionFns(),p=requireShims(),d=_interopRequireDefault(requireLog());function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperty(t,i,o){return(i=function _toPropertyKey(t){var i=function _toPrimitive(t,i){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,i);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}const u={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let c=f,g=class DraggableCore extends n.Component{constructor(){super(...arguments),_defineProperty(this,"dragging",!1),_defineProperty(this,"lastX",NaN),_defineProperty(this,"lastY",NaN),_defineProperty(this,"touchIdentifier",null),_defineProperty(this,"mounted",!1),_defineProperty(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;const i=this.findDOMNode();if(!i||!i.ownerDocument||!i.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:o}=i;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,l.matchesSelectorAndParentsTo)(t.target,this.props.handle,i)||this.props.cancel&&(0,l.matchesSelectorAndParentsTo)(t.target,this.props.cancel,i))return;"touchstart"!==t.type||this.props.allowMobileScroll||t.preventDefault();const n=(0,l.getTouchIdentifier)(t);this.touchIdentifier=n;const s=(0,h.getControlPosition)(t,n,this);if(null==s)return;const{x:a,y:p}=s,u=(0,h.createCoreData)(this,a,p);(0,d.default)("DraggableCore: handleDragStart: %j",u),(0,d.default)("calling",this.props.onStart);!1!==this.props.onStart(t,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(o),this.dragging=!0,this.lastX=a,this.lastY=p,(0,l.addEvent)(o,c.move,this.handleDrag),(0,l.addEvent)(o,c.stop,this.handleDragStop))}),_defineProperty(this,"handleDrag",t=>{const i=(0,h.getControlPosition)(t,this.touchIdentifier,this);if(null==i)return;let{x:o,y:n}=i;if(Array.isArray(this.props.grid)){let t=o-this.lastX,i=n-this.lastY;if([t,i]=(0,h.snapToGrid)(this.props.grid,t,i),!t&&!i)return;o=this.lastX+t,n=this.lastY+i}const s=(0,h.createCoreData)(this,o,n);(0,d.default)("DraggableCore: handleDrag: %j",s);if(!1!==this.props.onDrag(t,s)&&!1!==this.mounted)this.lastX=o,this.lastY=n;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(a){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),_defineProperty(this,"handleDragStop",t=>{if(!this.dragging)return;const i=(0,h.getControlPosition)(t,this.touchIdentifier,this);if(null==i)return;let{x:o,y:n}=i;if(Array.isArray(this.props.grid)){let t=o-this.lastX||0,i=n-this.lastY||0;[t,i]=(0,h.snapToGrid)(this.props.grid,t,i),o=this.lastX+t,n=this.lastY+i}const s=(0,h.createCoreData)(this,o,n);if(!1===this.props.onStop(t,s)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,d.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,d.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(a.ownerDocument,c.move,this.handleDrag),(0,l.removeEvent)(a.ownerDocument,c.stop,this.handleDragStop))}),_defineProperty(this,"onMouseDown",t=>(c=f,this.handleDragStart(t))),_defineProperty(this,"onMouseUp",t=>(c=f,this.handleDragStop(t))),_defineProperty(this,"onTouchStart",t=>(c=u,this.handleDragStart(t))),_defineProperty(this,"onTouchEnd",t=>(c=u,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,l.addEvent)(t,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:i}=t;(0,l.removeEvent)(i,f.move,this.handleDrag),(0,l.removeEvent)(i,u.move,this.handleDrag),(0,l.removeEvent)(i,f.stop,this.handleDragStop),(0,l.removeEvent)(i,u.stop,this.handleDragStop),(0,l.removeEvent)(t,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(i)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:a.default.findDOMNode(this)}render(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return R.default=g,_defineProperty(g,"displayName","DraggableCore"),_defineProperty(g,"propTypes",{allowAnyClick:s.default.bool,allowMobileScroll:s.default.bool,children:s.default.node.isRequired,disabled:s.default.bool,enableUserSelectHack:s.default.bool,offsetParent:function(t,i){if(t[i]&&1!==t[i].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:s.default.arrayOf(s.default.number),handle:s.default.string,cancel:s.default.string,nodeRef:s.default.object,onStart:s.default.func,onDrag:s.default.func,onStop:s.default.func,onMouseDown:s.default.func,scale:s.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),_defineProperty(g,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),R}function requireDraggable(){return z||(z=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),n.default=void 0;var s=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(t()),a=_interopRequireDefault(o()),l=_interopRequireDefault(i()),p=function requireClsx(){if(h)return u.exports;function r(t){var i,o,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(i=0;i<s;i++)t[i]&&(o=r(t[i]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}function e(){for(var t,i,o=0,n="",s=arguments.length;o<s;o++)(t=arguments[o])&&(i=r(t))&&(n&&(n+=" "),n+=i);return n}return h=1,u.exports=e,u.exports.clsx=e,u.exports}(),d=requireDomFns(),f=requirePositionFns(),c=requireShims(),g=_interopRequireDefault(requireDraggableCore()),m=_interopRequireDefault(requireLog());function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},_extends.apply(null,arguments)}function _defineProperty(t,i,o){return(i=function _toPropertyKey(t){var i=function _toPrimitive(t,i){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,i);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}class Draggable2 extends s.Component{static getDerivedStateFromProps(t,i){let{position:o}=t,{prevPropsPosition:n}=i;return!o||n&&o.x===n.x&&o.y===n.y?null:((0,m.default)("Draggable: getDerivedStateFromProps %j",{position:o,prevPropsPosition:n}),{x:o.x,y:o.y,prevPropsPosition:{...o}})}constructor(t){super(t),_defineProperty(this,"onDragStart",(t,i)=>{(0,m.default)("Draggable: onDragStart: %j",i);if(!1===this.props.onStart(t,(0,f.createDraggableData)(this,i)))return!1;this.setState({dragging:!0,dragged:!0})}),_defineProperty(this,"onDrag",(t,i)=>{if(!this.state.dragging)return!1;(0,m.default)("Draggable: onDrag: %j",i);const o=(0,f.createDraggableData)(this,i),n={x:o.x,y:o.y,slackX:0,slackY:0};if(this.props.bounds){const{x:t,y:i}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[s,a]=(0,f.getBoundPosition)(this,n.x,n.y);n.x=s,n.y=a,n.slackX=this.state.slackX+(t-n.x),n.slackY=this.state.slackY+(i-n.y),o.x=n.x,o.y=n.y,o.deltaX=n.x-this.state.x,o.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(t,o))return!1;this.setState(n)}),_defineProperty(this,"onDragStop",(t,i)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(t,(0,f.createDraggableData)(this,i)))return!1;(0,m.default)("Draggable: onDragStop: %j",i);const o={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:t,y:i}=this.props.position;o.x=t,o.y=i}this.setState(o)}),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??l.default.findDOMNode(this)}render(){const{axis:t,bounds:i,children:o,defaultPosition:n,defaultClassName:a,defaultClassNameDragging:l,defaultClassNameDragged:h,position:u,positionOffset:c,scale:m,...b}=this.props;let y={},v=null;const w=!Boolean(u)||this.state.dragging,S=u||n,x={x:(0,f.canDragX)(this)&&w?this.state.x:S.x,y:(0,f.canDragY)(this)&&w?this.state.y:S.y};this.state.isElementSVG?v=(0,d.createSVGTransform)(x,c):y=(0,d.createCSSTransform)(x,c);const z=(0,p.clsx)(o.props.className||"",a,{[l]:this.state.dragging,[h]:this.state.dragged});return s.createElement(g.default,_extends({},b,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),s.cloneElement(s.Children.only(o),{className:z,style:{...o.props.style,...y},transform:v}))}}n.default=Draggable2,_defineProperty(Draggable2,"displayName","Draggable"),_defineProperty(Draggable2,"propTypes",{...g.default.propTypes,axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),_defineProperty(Draggable2,"defaultProps",{...g.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(d)),d}const M=l(function requireCjs(){if(D)return p.exports;D=1;const{default:t,DraggableCore:i}=requireDraggable();return p.exports=t,p.exports.default=t,p.exports.DraggableCore=i,p.exports}());var __assign$2=function(){return __assign$2=Object.assign||function(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign$2.apply(this,arguments)},W={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},_={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},N={width:"20px",height:"20px",position:"absolute",zIndex:1},E={top:__assign$2(__assign$2({},W),{top:"-5px"}),right:__assign$2(__assign$2({},_),{left:void 0,right:"-5px"}),bottom:__assign$2(__assign$2({},W),{top:void 0,bottom:"-5px"}),left:__assign$2(__assign$2({},_),{left:"-5px"}),topRight:__assign$2(__assign$2({},N),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$2(__assign$2({},N),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$2(__assign$2({},N),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$2(__assign$2({},N),{left:"-10px",top:"-10px",cursor:"nw-resize"})},C=n.memo(function(t){var i=t.onResizeStart,o=t.direction,a=t.children,l=t.replaceStyles,h=t.className,p=n.useCallback(function(t){i(t,o)},[i,o]),d=n.useCallback(function(t){i(t,o)},[i,o]),u=n.useMemo(function(){return __assign$2(__assign$2({position:"absolute",userSelect:"none"},E[o]),null!=l?l:{})},[l,o]);return s.jsx("div",{className:h||void 0,style:u,onMouseDown:p,onTouchStart:d,children:a})}),T=function(){var extendStatics2=function(t,i){return(extendStatics2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function __(){this.constructor=t}extendStatics2(t,i),t.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}}(),__assign$1=function(){return __assign$1=Object.assign||function(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign$1.apply(this,arguments)},H={width:"auto",height:"auto"},clamp=function(t,i,o){return Math.max(Math.min(t,o),i)},snap=function(t,i,o){var n=Math.round(t/i);return n*i+o*(n-1)},hasDirection=function(t,i){return new RegExp(t,"i").test(i)},isTouchEvent=function(t){return Boolean(t.touches&&t.touches.length)},findClosestSnap=function(t,i,o){void 0===o&&(o=0);var n=i.reduce(function(o,n,s){return Math.abs(n-t)<Math.abs(i[o]-t)?s:o},0),s=Math.abs(i[n]-t);return 0===o||s<o?i[n]:t},getStringSize=function(t){return"auto"===(t=t.toString())||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},getPixelSize=function(t,i,o,n){if(t&&"string"==typeof t){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%"))return i*(Number(t.replace("%",""))/100);if(t.endsWith("vw"))return o*(Number(t.replace("vw",""))/100);if(t.endsWith("vh"))return n*(Number(t.replace("vh",""))/100)}return t},O=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],k="__resizable_base__",A=function(t){function Resizable2(i){var o,n,s,a,l=t.call(this,i)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var t=l.parentNode;if(!t)return null;var i=l.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(k):i.className+=k,t.appendChild(i),i},l.removeBase=function(t){var i=l.parentNode;i&&i.removeChild(t)},l.state={isResizing:!1,width:null!==(n=null===(o=l.propsSize)||void 0===o?void 0:o.width)&&void 0!==n?n:"auto",height:null!==(a=null===(s=l.propsSize)||void 0===s?void 0:s.height)&&void 0!==a?a:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return T(Resizable2,t),Object.defineProperty(Resizable2.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||H},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"size",{get:function(){var t=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,s=this.resizable.style.position;"relative"!==s&&(this.resizable.style.position="relative"),t="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,i="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=s}return{width:t,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"sizeStyle",{get:function(){var t=this,i=this.props.size,getSize=function(i){var o;if(void 0===t.state[i]||"auto"===t.state[i])return"auto";if(t.propsSize&&t.propsSize[i]&&(null===(o=t.propsSize[i])||void 0===o?void 0:o.toString().endsWith("%"))){if(t.state[i].toString().endsWith("%"))return t.state[i].toString();var n=t.getParentSize(),s=Number(t.state[i].toString().replace("px",""))/n[i]*100;return"".concat(s,"%")}return getStringSize(t.state[i])};return{width:i&&void 0!==i.width&&!this.state.isResizing?getStringSize(i.width):getSize("width"),height:i&&void 0!==i.height&&!this.state.isResizing?getStringSize(i.height):getSize("height")}},enumerable:!1,configurable:!0}),Resizable2.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(i=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var n={width:t.offsetWidth,height:t.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(t),n},Resizable2.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},Resizable2.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},Resizable2.prototype.componentDidMount=function(){if(this.resizable&&this.window){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==t.flexBasis?t.flexBasis:void 0})}},Resizable2.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},Resizable2.prototype.createSizeForCssProperty=function(t,i){var o=this.propsSize&&this.propsSize[i];return"auto"!==this.state[i]||this.state.original[i]!==t||void 0!==o&&"auto"!==o?t:"auto"},Resizable2.prototype.calculateNewMaxFromBoundary=function(t,i){var o,n,s=this.props.boundsByDirection,a=this.state.direction,l=s&&hasDirection("left",a),h=s&&hasDirection("top",a);if("parent"===this.props.bounds){var p=this.parentNode;p&&(o=l?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),n=h?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(t=t&&t<o?t:o),n&&Number.isFinite(n)&&(i=i&&i<n?i:n),{maxWidth:t,maxHeight:i}},Resizable2.prototype.calculateNewSizeFromDirection=function(t,i){var o,n=this.props.scale||1,s=(o=this.props.resizeRatio||1,Array.isArray(o)?o:[o,o]),a=s[0],l=s[1],h=this.state,p=h.direction,d=h.original,u=this.props,f=u.lockAspectRatio,c=u.lockAspectRatioExtraHeight,g=u.lockAspectRatioExtraWidth,m=d.width,b=d.height,y=c||0,v=g||0;return hasDirection("right",p)&&(m=d.width+(t-d.x)*a/n,f&&(b=(m-v)/this.ratio+y)),hasDirection("left",p)&&(m=d.width-(t-d.x)*a/n,f&&(b=(m-v)/this.ratio+y)),hasDirection("bottom",p)&&(b=d.height+(i-d.y)*l/n,f&&(m=(b-y)*this.ratio+v)),hasDirection("top",p)&&(b=d.height-(i-d.y)*l/n,f&&(m=(b-y)*this.ratio+v)),{newWidth:m,newHeight:b}},Resizable2.prototype.calculateNewSizeFromAspectRatio=function(t,i,o,n){var s=this.props,a=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,h=s.lockAspectRatioExtraWidth,p=void 0===n.width?10:n.width,d=void 0===o.width||o.width<0?t:o.width,u=void 0===n.height?10:n.height,f=void 0===o.height||o.height<0?i:o.height,c=l||0,g=h||0;if(a){var m=(u-c)*this.ratio+g,b=(f-c)*this.ratio+g,y=(p-g)/this.ratio+c,v=(d-g)/this.ratio+c,w=Math.max(p,m),S=Math.min(d,b),x=Math.max(u,y),z=Math.min(f,v);t=clamp(t,w,S),i=clamp(i,x,z)}else t=clamp(t,p,d),i=clamp(i,u,f);return{newWidth:t,newHeight:i}},Resizable2.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if("parent"===this.props.bounds){var i=this.parentNode;if(i){var o=i.getBoundingClientRect();this.parentLeft=o.left*t,this.parentTop=o.top*t}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*t,this.targetTop=n.top*t}if(this.resizable){var s=this.resizable.getBoundingClientRect(),a=s.left,l=s.top,h=s.right,p=s.bottom;this.resizableLeft=a*t,this.resizableRight=h*t,this.resizableTop=l*t,this.resizableBottom=p*t}},Resizable2.prototype.onResizeStart=function(t,i){if(this.resizable&&this.window){var o,n=0,s=0;if(t.nativeEvent&&function(t){return Boolean((t.clientX||0===t.clientX)&&(t.clientY||0===t.clientY))}(t.nativeEvent)?(n=t.nativeEvent.clientX,s=t.nativeEvent.clientY):t.nativeEvent&&isTouchEvent(t.nativeEvent)&&(n=t.nativeEvent.touches[0].clientX,s=t.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(t,i,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var l=this.parentNode;if(l){var h=this.window.getComputedStyle(l).flexDirection;this.flexDir=h.startsWith("row")?"row":"column",o=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:n,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:i,flexBasis:o};this.setState(p)}},Resizable2.prototype.onMouseMove=function(t){var i=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&isTouchEvent(t))try{t.preventDefault(),t.stopPropagation()}catch(k){}var o=this.props,n=o.maxWidth,s=o.maxHeight,l=o.minWidth,h=o.minHeight,p=isTouchEvent(t)?t.touches[0].clientX:t.clientX,d=isTouchEvent(t)?t.touches[0].clientY:t.clientY,u=this.state,f=u.direction,c=u.original,g=u.width,m=u.height,b=this.getParentSize(),y=function(t,i,o,n,s,a,l){return n=getPixelSize(n,t.width,i,o),s=getPixelSize(s,t.height,i,o),a=getPixelSize(a,t.width,i,o),l=getPixelSize(l,t.height,i,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===s?void 0:Number(s),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===l?void 0:Number(l)}}(b,this.window.innerWidth,this.window.innerHeight,n,s,l,h);n=y.maxWidth,s=y.maxHeight,l=y.minWidth,h=y.minHeight;var v=this.calculateNewSizeFromDirection(p,d),w=v.newHeight,S=v.newWidth,x=this.calculateNewMaxFromBoundary(n,s);this.props.snap&&this.props.snap.x&&(S=findClosestSnap(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=findClosestSnap(w,this.props.snap.y,this.props.snapGap));var z=this.calculateNewSizeFromAspectRatio(S,w,{width:x.maxWidth,height:x.maxHeight},{width:l,height:h});if(S=z.newWidth,w=z.newHeight,this.props.grid){var D=snap(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),R=snap(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0;S=0===P||Math.abs(D-S)<=P?D:S,w=0===P||Math.abs(R-w)<=P?R:w}var M={width:S-c.width,height:w-c.height};if(this.delta=M,g&&"string"==typeof g)if(g.endsWith("%")){var W=S/b.width*100;S="".concat(W,"%")}else if(g.endsWith("vw")){var _=S/this.window.innerWidth*100;S="".concat(_,"vw")}else if(g.endsWith("vh")){var N=S/this.window.innerHeight*100;S="".concat(N,"vh")}if(m&&"string"==typeof m)if(m.endsWith("%")){W=w/b.height*100;w="".concat(W,"%")}else if(m.endsWith("vw")){_=w/this.window.innerWidth*100;w="".concat(_,"vw")}else if(m.endsWith("vh")){N=w/this.window.innerHeight*100;w="".concat(N,"vh")}var E={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height);var C=this.state.width!==E.width,T=this.state.height!==E.height,H=this.state.flexBasis!==E.flexBasis,O=C||T||H;O&&a.flushSync(function(){i.setState(E)}),this.props.onResize&&O&&this.props.onResize(t,f,this.resizable,M)}},Resizable2.prototype.onMouseUp=function(t){var i,o,n=this.state,s=n.isResizing,a=n.direction;n.original,s&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(t,a,this.resizable,this.delta),this.props.size&&this.setState({width:null!==(i=this.props.size.width)&&void 0!==i?i:"auto",height:null!==(o=this.props.size.height)&&void 0!==o?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:"auto"})}))},Resizable2.prototype.updateSize=function(t){var i,o;this.setState({width:null!==(i=t.width)&&void 0!==i?i:"auto",height:null!==(o=t.height)&&void 0!==o?o:"auto"})},Resizable2.prototype.renderResizer=function(){var t=this,i=this.props,o=i.enable,n=i.handleStyles,a=i.handleClasses,l=i.handleWrapperStyle,h=i.handleWrapperClass,p=i.handleComponent;if(!o)return null;var d=Object.keys(o).map(function(i){return!1!==o[i]?s.jsx(C,{direction:i,onResizeStart:t.onResizeStart,replaceStyles:n&&n[i],className:a&&a[i],children:p&&p[i]?p[i]:null},i):null});return s.jsx("div",{className:h,style:l,children:d})},Resizable2.prototype.render=function(){var t=this,i=Object.keys(this.props).reduce(function(i,o){return-1!==O.indexOf(o)||(i[o]=t.props[o]),i},{}),o=__assign$1(__assign$1(__assign$1({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return s.jsxs(n,__assign$1({style:o,className:this.props.className},i,{ref:function(i){i&&(t.resizable=i)},children:[this.state.isResizing&&s.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},Resizable2.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},Resizable2}(n.PureComponent),extendStatics=function(t,i){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(t,i)};var __assign=function(){return __assign=Object.assign||function __assign2(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign.apply(this,arguments)};var j={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},L=function(t){function Rnd2(i){var o=t.call(this,i)||this;return o.resizingPosition={x:0,y:0},o.offsetFromParent={left:0,top:0},o.resizableElement={current:null},o.originalPosition={x:0,y:0},o.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:i.maxWidth,maxHeight:i.maxHeight},o.onResizeStart=o.onResizeStart.bind(o),o.onResize=o.onResize.bind(o),o.onResizeStop=o.onResizeStop.bind(o),o.onDragStart=o.onDragStart.bind(o),o.onDrag=o.onDrag.bind(o),o.onDragStop=o.onDragStop.bind(o),o.getMaxSizesFromProps=o.getMaxSizesFromProps.bind(o),o}return function __extends(t,i){function __(){this.constructor=t}extendStatics(t,i),t.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}(Rnd2,t),Rnd2.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,i=t.left,o=t.top,n=this.getDraggablePosition(),s=n.x,a=n.y;this.draggable.setState({x:s-i,y:a-o}),this.forceUpdate()},Rnd2.prototype.getDraggablePosition=function(){var t=this.draggable.state;return{x:t.x,y:t.y}},Rnd2.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},Rnd2.prototype.getParentSize=function(){return this.resizable.getParentSize()},Rnd2.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},Rnd2.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},Rnd2.prototype.getOffsetHeight=function(t){var i=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/i;case"body":return document.body.offsetHeight/i;default:return t.offsetHeight}},Rnd2.prototype.getOffsetWidth=function(t){var i=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/i;case"body":return document.body.offsetWidth/i;default:return t.offsetWidth}},Rnd2.prototype.onDragStart=function(t,i){if(this.props.onDragStart&&!1===this.props.onDragStart(t,i))return!1;var o=this.getDraggablePosition();if(this.originalPosition=o,this.props.bounds){var n,s=this.getParent(),a=this.props.scale;if("parent"===this.props.bounds)n=s;else{if("body"===this.props.bounds){var l=s.getBoundingClientRect(),h=l.left,p=l.top,d=document.body.getBoundingClientRect(),u=-(h-s.offsetLeft*a-d.left)/a,f=-(p-s.offsetTop*a-d.top)/a,c=(document.body.offsetWidth-this.resizable.size.width*a)/a+u,g=(document.body.offsetHeight-this.resizable.size.height*a)/a+f;return this.setState({bounds:{top:f,right:c,bottom:g,left:u}})}if("window"===this.props.bounds){if(!this.resizable)return;var m=s.getBoundingClientRect(),b=m.left,y=m.top,v=-(b-s.offsetLeft*a)/a,w=-(y-s.offsetTop*a)/a;c=(window.innerWidth-this.resizable.size.width*a)/a+v,g=(window.innerHeight-this.resizable.size.height*a)/a+w;return this.setState({bounds:{top:w,right:c,bottom:g,left:v}})}"string"==typeof this.props.bounds?n=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(n=this.props.bounds)}if(n instanceof HTMLElement&&s instanceof HTMLElement){var S=n.getBoundingClientRect(),x=S.left,z=S.top,D=s.getBoundingClientRect(),R=(x-D.left)/a,P=z-D.top;if(this.resizable){this.updateOffsetFromParent();var M=this.offsetFromParent;this.setState({bounds:{top:P-M.top,right:R+(n.offsetWidth-this.resizable.size.width)-M.left/a,bottom:P+(n.offsetHeight-this.resizable.size.height)-M.top,left:R-M.left/a}})}}}},Rnd2.prototype.onDrag=function(t,i){if(this.props.onDrag){var o=this.offsetFromParent,n=o.left,s=o.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(t,__assign(__assign({},i),{x:i.x+n,y:this.originalPosition.y+s,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(t,__assign(__assign({},i),{x:this.originalPosition.x+n,y:i.y+s,deltaX:0})):void 0:this.props.onDrag(t,__assign(__assign({},i),{x:i.x+n,y:i.y+s}))}},Rnd2.prototype.onDragStop=function(t,i){if(this.props.onDragStop){var o=this.offsetFromParent,n=o.left,s=o.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(t,__assign(__assign({},i),{x:i.x+n,y:this.originalPosition.y+s,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(t,__assign(__assign({},i),{x:this.originalPosition.x+n,y:i.y+s,deltaX:0})):void 0:this.props.onDragStop(t,__assign(__assign({},i),{x:i.x+n,y:i.y+s}))}},Rnd2.prototype.onResizeStart=function(t,i,o){if(this.props.onResizeStart&&!1===this.props.onResizeStart(t,i,o))return!1;t.stopPropagation(),this.setState({resizing:!0});var n=this.props.scale,s=this.offsetFromParent,a=this.getDraggablePosition();if(this.resizingPosition={x:a.x+s.left,y:a.y+s.top},this.originalPosition=a,this.props.bounds){var l=this.getParent(),h=void 0;"parent"===this.props.bounds?h=l:"body"===this.props.bounds?h=document.body:"window"===this.props.bounds?h=window:"string"==typeof this.props.bounds?h=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(h=this.props.bounds);var p=this.getSelfElement();if(p instanceof Element&&(h instanceof HTMLElement||h===window)&&l instanceof HTMLElement){var d=this.getMaxSizesFromProps(),u=d.maxWidth,f=d.maxHeight,c=this.getParentSize();if(u&&"string"==typeof u)if(u.endsWith("%")){var g=Number(u.replace("%",""))/100;u=c.width*g}else u.endsWith("px")&&(u=Number(u.replace("px","")));if(f&&"string"==typeof f)if(f.endsWith("%")){g=Number(f.replace("%",""))/100;f=c.height*g}else f.endsWith("px")&&(f=Number(f.replace("px","")));var m=p.getBoundingClientRect(),b=m.left,y=m.top,v="window"===this.props.bounds?{left:0,top:0}:h.getBoundingClientRect(),w=v.left,S=v.top,x=this.getOffsetWidth(h),z=this.getOffsetHeight(h),D=i.toLowerCase().endsWith("left"),R=i.toLowerCase().endsWith("right"),P=i.startsWith("top"),M=i.startsWith("bottom");if((D||P)&&this.resizable){var W=(b-w)/n+this.resizable.size.width;this.setState({maxWidth:W>Number(u)?u:W})}if(R||this.props.lockAspectRatio&&!D&&!P){W=x+(w-b)/n;this.setState({maxWidth:W>Number(u)?u:W})}if((P||D)&&this.resizable){W=(y-S)/n+this.resizable.size.height;this.setState({maxHeight:W>Number(f)?f:W})}if(M||this.props.lockAspectRatio&&!P&&!D){W=z+(S-y)/n;this.setState({maxHeight:W>Number(f)?f:W})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight})},Rnd2.prototype.onResize=function(t,i,o,n){var s=this,l={x:this.originalPosition.x,y:this.originalPosition.y},h=-n.width,p=-n.height;["top","left","topLeft","bottomLeft","topRight"].includes(i)&&("bottomLeft"===i?l.x+=h:("topRight"===i||(l.x+=h),l.y+=p));var d=this.draggable.state;l.x===d.x&&l.y===d.y||a.flushSync(function(){s.draggable.setState(l)}),this.updateOffsetFromParent();var u=this.offsetFromParent,f=this.getDraggablePosition().x+u.left,c=this.getDraggablePosition().y+u.top;this.resizingPosition={x:f,y:c},this.props.onResize&&this.props.onResize(t,i,o,n,{x:f,y:c})},Rnd2.prototype.onResizeStop=function(t,i,o,n){this.setState({resizing:!1});var s=this.getMaxSizesFromProps(),a=s.maxWidth,l=s.maxHeight;this.setState({maxWidth:a,maxHeight:l}),this.props.onResizeStop&&this.props.onResizeStop(t,i,o,n,this.resizingPosition)},Rnd2.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},Rnd2.prototype.updatePosition=function(t){this.draggable.setState(t)},Rnd2.prototype.updateOffsetFromParent=function(){var t=this.props.scale,i=this.getParent(),o=this.getSelfElement();if(!i||null===o)return{top:0,left:0};var n=i.getBoundingClientRect(),s=n.left,a=n.top,l=o.getBoundingClientRect(),h=this.getDraggablePosition(),p=i.scrollLeft,d=i.scrollTop;this.offsetFromParent={left:l.left-s+p-h.x*t,top:l.top-a+d-h.y*t}},Rnd2.prototype.render=function(){var t=this,i=this.props,o=i.disableDragging,s=i.style,a=i.dragHandleClassName,l=i.position,h=i.onMouseDown,p=i.onMouseUp,d=i.dragAxis,u=i.dragGrid,f=i.bounds,c=i.enableUserSelectHack,g=i.cancel,m=i.children;i.onResizeStart,i.onResize,i.onResizeStop,i.onDragStart,i.onDrag,i.onDragStop;var b=i.resizeHandleStyles,y=i.resizeHandleClasses,v=i.resizeHandleComponent,w=i.enableResizing,S=i.resizeGrid,x=i.resizeHandleWrapperClass,z=i.resizeHandleWrapperStyle,D=i.scale,R=i.allowAnyClick,P=i.dragPositionOffset,W=function __rest(t,i){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)i.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(o[n[s]]=t[n[s]])}return o}(i,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),_=this.props.default?__assign({},this.props.default):void 0;delete W.default;var N,E=o||a?{cursor:"auto"}:{cursor:"move"},C=__assign(__assign(__assign({},j),E),s),T=this.offsetFromParent,H=T.left,O=T.top;l&&(N={x:l.x-H,y:l.y-O});var k,L=this.state.resizing?void 0:N,B=this.state.resizing?"both":d;return n.createElement(M,{ref:function(i){i&&(t.draggable=i)},handle:a?".".concat(a):void 0,defaultPosition:_,onMouseDown:h,onMouseUp:p,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:B,disabled:o,grid:u,bounds:f?this.state.bounds:void 0,position:L,enableUserSelectHack:c,cancel:g,scale:D,allowAnyClick:R,nodeRef:this.resizableElement,positionOffset:P},n.createElement(A,__assign({},W,{ref:function(i){i&&(t.resizable=i,t.resizableElement.current=i.resizable)},defaultSize:_,size:this.props.size,enable:"boolean"==typeof w?(k=w,{bottom:k,bottomLeft:k,bottomRight:k,left:k,right:k,top:k,topLeft:k,topRight:k}):w,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:C,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:S,handleWrapperClass:x,handleWrapperStyle:z,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:y,handleComponent:v,scale:this.props.scale}),m))},Rnd2.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Rnd2}(n.PureComponent);export{L as R};