jsf.js_next_gen 4.0.2-beta.1 → 4.0.2-beta.10

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 (106) hide show
  1. package/dist/docs/assets/main.js +3 -3
  2. package/dist/docs/assets/search.js +1 -1
  3. package/dist/docs/assets/style.css +450 -362
  4. package/dist/docs/functions/faces.ajax.addOnError.html +41 -32
  5. package/dist/docs/functions/faces.ajax.addOnEvent.html +41 -32
  6. package/dist/docs/functions/faces.ajax.request.html +41 -32
  7. package/dist/docs/functions/faces.ajax.response.html +42 -32
  8. package/dist/docs/functions/faces.getClientWindow.html +32 -34
  9. package/dist/docs/functions/faces.getProjectStage.html +31 -34
  10. package/dist/docs/functions/faces.getViewState.html +33 -35
  11. package/dist/docs/functions/faces.push.close.html +40 -31
  12. package/dist/docs/functions/faces.push.init.html +62 -45
  13. package/dist/docs/functions/faces.push.open.html +40 -31
  14. package/dist/docs/functions/faces.util.chain.html +39 -31
  15. package/dist/docs/functions/myfaces.ab.html +40 -39
  16. package/dist/docs/functions/myfaces.onDomReady.html +25 -29
  17. package/dist/docs/index.html +45 -72
  18. package/dist/docs/modules/faces.ajax.html +36 -29
  19. package/dist/docs/modules/faces.html +35 -38
  20. package/dist/docs/modules/faces.push.html +34 -27
  21. package/dist/docs/modules/faces.util.html +30 -23
  22. package/dist/docs/modules/myfaces.html +21 -27
  23. package/dist/docs/modules.html +15 -23
  24. package/dist/docs/variables/faces.contextpath.html +28 -30
  25. package/dist/docs/variables/faces.implversion.html +29 -31
  26. package/dist/docs/variables/faces.separatorchar.html +28 -30
  27. package/dist/docs/variables/faces.specversion.html +29 -31
  28. package/dist/docs/variables/myfaces.oam.html +21 -26
  29. package/dist/window/faces-development.js +166 -68
  30. package/dist/window/faces-development.js.map +1 -1
  31. package/dist/window/faces.js +1 -1
  32. package/dist/window/faces.js.map +1 -1
  33. package/dist/window/jsf-development.js +166 -68
  34. package/dist/window/jsf-development.js.map +1 -1
  35. package/dist/window/jsf.js +1 -1
  36. package/dist/window/jsf.js.map +1 -1
  37. package/faulty_response.html +167 -0
  38. package/package.json +17 -18
  39. package/src/main/typescript/impl/AjaxImpl.ts +22 -19
  40. package/src/main/typescript/impl/PushImpl.ts +1 -1
  41. package/src/main/typescript/impl/util/FileUtils.ts +3 -2
  42. package/src/main/typescript/impl/util/HiddenInputBuilder.ts +2 -2
  43. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +28 -8
  44. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +50 -0
  45. package/src/main/typescript/test/impl/ImplTest.spec.ts +85 -0
  46. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +299 -1
  47. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +245 -1
  48. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +3 -3
  49. package/target/api/_api.js +2 -2
  50. package/target/api/_api.js.map +1 -1
  51. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  52. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  53. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  54. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  55. package/target/impl/AjaxImpl.js +22 -20
  56. package/target/impl/AjaxImpl.js.map +1 -1
  57. package/target/impl/PushImpl.js +4 -4
  58. package/target/impl/PushImpl.js.map +1 -1
  59. package/target/impl/util/Assertions.js +1 -1
  60. package/target/impl/util/Assertions.js.map +1 -1
  61. package/target/impl/util/FileUtils.js +3 -2
  62. package/target/impl/util/FileUtils.js.map +1 -1
  63. package/target/impl/util/HiddenInputBuilder.js +2 -2
  64. package/target/impl/util/HiddenInputBuilder.js.map +1 -1
  65. package/target/impl/util/Lang.js +1 -1
  66. package/target/impl/util/Lang.js.map +1 -1
  67. package/target/impl/xhrCore/ErrorData.js +1 -1
  68. package/target/impl/xhrCore/ErrorData.js.map +1 -1
  69. package/target/impl/xhrCore/Response.js +1 -1
  70. package/target/impl/xhrCore/Response.js.map +1 -1
  71. package/target/impl/xhrCore/XhrRequest.js +25 -7
  72. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  73. package/target/myfaces/OamSubmit.js +1 -1
  74. package/target/myfaces/OamSubmit.js.map +1 -1
  75. package/target/test/frameworkBase/_ext/shared/StandardInits.js +47 -1
  76. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  77. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +1 -1
  78. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  79. package/target/test/impl/ImplTest.spec.js +64 -0
  80. package/target/test/impl/ImplTest.spec.js.map +1 -1
  81. package/target/test/xhrCore/RequestParamsTest.spec.js +283 -0
  82. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  83. package/target/test/xhrCore/RequestTest.spec.js +212 -0
  84. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  85. package/target/test/xhrCore/ResponseTest.spec.js +3 -3
  86. package/target/test-classes/.gz +0 -0
  87. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  88. package/target/test-classes/fileuploadtest.html +24 -0
  89. package/target/test-classes/jsf-development.js +3559 -0
  90. package/target/test-classes/jsf-development.js.br +0 -0
  91. package/target/test-classes/jsf-development.js.gz +0 -0
  92. package/target/test-classes/jsf-development.js.map +1 -0
  93. package/target/test-classes/jsf.js +3 -0
  94. package/target/test-classes/jsf.js.br +0 -0
  95. package/target/test-classes/jsf.js.gz +0 -0
  96. package/webpack.config.ts +1 -23
  97. package/dist/window/faces-development.js.br +0 -0
  98. package/dist/window/faces-development.js.gz +0 -0
  99. package/dist/window/faces.js.br +0 -0
  100. package/dist/window/faces.js.gz +0 -0
  101. package/dist/window/jsf-development.js.br +0 -0
  102. package/dist/window/jsf-development.js.gz +0 -0
  103. package/dist/window/jsf.js.br +0 -0
  104. package/dist/window/jsf.js.gz +0 -0
  105. package/webpack.config.js +0 -71
  106. package/webpack.config.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ (()=>{var e={105:(e,t)=>{!function(){"use strict";var e={585:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},c=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DQ=t.DomQueryCollector=t.DomQuery=t.ElementAttribute=void 0;var f,p=n(152),h=n(551),v=n(255),d=n(805),E=d.Lang.trim,y=d.Lang.objToArray,_=d.Lang.isString,m=d.Lang.equalsIgnoreCase;function g(e,t,n){return void 0===n&&(n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}),new Promise((function(r,o){var a=new Error("Mutation observer timeout");if(void 0!==window.MutationObserver){var u=setTimeout((function(){return o(a)}),n.timeout),l=new window.MutationObserver((function(e,n){var o=new A(e.map((function(e){return e.target}))).first(t);o.isPresent()&&(clearTimeout(u),r(o))})),s=i({},n);delete s.timeout,e.eachElem((function(e){l.observe(e,s)}))}else var c=setInterval((function(){var o=null;(o=n.childList?t(e)?e:e.childNodes.first(t):n.subtree?t(e)?e:e.querySelectorAll(" * ").first(t):t(e)?e:A.absent).isPresent()&&f&&(clearTimeout(f),clearInterval(c),c=null,r(o))}),n.interval),f=setTimeout((function(){c&&(clearInterval(c),o(a))}),n.timeout)}))}!function(e){e.SELECT="select",e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e.IMAGE="image",e.RADIO="radio",e.CHECKBOX="checkbox"}(f||(f={}));var T=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,t,n)||this;return o.element=t,o.name=n,o.defaultVal=r,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){var e,t=(e=this.element.get(0)).orElse.apply(e,[]).values;return t.length?t[0].getAttribute(this.name):this.defaultVal},set:function(e){for(var t,n=(t=this.element.get(0)).orElse.apply(t,[]).values,r=0;r<n.length;r++)n[r].setAttribute(this.name,e);n[0].setAttribute(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.getClass=function(){return t},t.fromNullable=function(e,n){return void 0===n&&(n="value"),new t(e,n)},t}(p.ValueEmbedder);t.ElementAttribute=T;var S=function(e){return-1==e.indexOf("ln=scripts")&&-1==e.indexOf("ln=javax.faces")||-1==e.indexOf("/jsf.js")&&-1==e.indexOf("/jsf-uncompressed.js")},A=function(){function e(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(this.rootNode=[],this.pos=-1,this._limits=-1,!p.Optional.fromNullable(n).isAbsent()&&n.length)for(var o=0;o<n.length;o++)if(_(n[o])){var i=e.querySelectorAll(n[o]);i.isAbsent()||n.push.apply(n,s([],l(i.values),!1))}else n[o]instanceof e?(t=this.rootNode).push.apply(t,s([],l(n[o].values),!1)):this.rootNode.push(n[o])}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getAsElem(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this.allElems()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return new T(this.get(0),"id")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.rootNode.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.getAsElem(0).getIf("tagName")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.getAsElem(0).getIf("nodeName")},enumerable:!1,configurable:!0}),e.prototype.isTag=function(e){return!this.isAbsent()&&(this.nodeName.orElse("__none___").value.toLowerCase()==e.toLowerCase()||this.tagName.orElse("__none___").value.toLowerCase()==e.toLowerCase())},Object.defineProperty(e.prototype,"type",{get:function(){return this.getAsElem(0).getIf("type")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return new p.ValueEmbedder(this.getAsElem(0).value,"name")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return this.getAsElem(0).getIf("value").isPresent()?new p.ValueEmbedder(this.getAsElem(0).value):p.ValueEmbedder.absent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return h.Stream.of.apply(h.Stream,s([],l(this.values),!1)).allMatch((function(e){return!!e.checked}))},set:function(e){this.eachElem((function(t){return t.checked=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this.querySelectorAll("input, checkbox, select, textarea, fieldset")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deepElements",{get:function(){return this.querySelectorAllDeep("input, select, textarea, checkbox, fieldset")},enumerable:!1,configurable:!0}),e.prototype.querySelectorAllDeep=function(t){var n=[],r=this.querySelectorAll(t);r.length&&n.push(r);var o=this.querySelectorAll("*").shadowRoot;if(o.length){var i=o.querySelectorAllDeep(t);i.length&&n.push(i)}return new(e.bind.apply(e,s([void 0],l(n),!1)))},Object.defineProperty(e.prototype,"disabled",{get:function(){return this.attr("disabled").isPresent()},set:function(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")},enumerable:!1,configurable:!0}),e.prototype.removeAttribute=function(e){this.eachElem((function(t){return t.removeAttribute(e)}))},Object.defineProperty(e.prototype,"childNodes",{get:function(){var t=[];return this.eachElem((function(e){t=t.concat(y(e.childNodes))})),new(e.bind.apply(e,s([void 0],l(t),!1)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stream",{get:function(){return new(h.Stream.bind.apply(h.Stream,s([void 0],l(this.asArray),!1)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lazyStream",{get:function(){return h.LazyStream.of.apply(h.LazyStream,s([],l(this.asArray),!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"asArray",{get:function(){return[].concat(h.LazyStream.of.apply(h.LazyStream,s([],l(this.rootNode),!1)).filter((function(e){return null!=e})).map((function(t){return e.byId(t)})).collect(new v.ArrayCollector))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"asNodeArray",{get:function(){return[].concat(h.Stream.of(this.rootNode).filter((function(e){return null!=e})).collect(new v.ArrayCollector))},enumerable:!1,configurable:!0}),e.querySelectorAllDeep=function(t){return new e(document).querySelectorAllDeep(t)},e.querySelectorAll=function(t){return-1!=t.indexOf("/shadow/")?new e(document)._querySelectorAllDeep(t):new e(document)._querySelectorAll(t)},e.byId=function(t,n){return void 0===n&&(n=!1),_(t)?n?new e(document).byIdDeep(t):new e(document).byId(t):new e(t)},e.byTagName=function(t){return _(t)?new e(document).byTagName(t):new e(t)},e.globalEval=function(t,n){return new e(document).globalEval(t,n)},e.fromMarkup=function(t){var n=document.implementation.createHTMLDocument(""),r=(t=E(t)).toLowerCase();if(-1!=r.indexOf("<!doctype")||-1!=r.indexOf("<html")||-1!=r.indexOf("<head")||-1!=r.indexOf("<body"))return n.documentElement.innerHTML=t,new e(n.documentElement);var o=function(e,t){var n=["<",t,">"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},i=new e(document.createElement("div"));return o(r,"thead")||o(r,"tbody")?(i.html("<table>".concat(t,"</table>")),i.querySelectorAll("table").get(0).childNodes.detach()):o(r,"tfoot")?(i.html("<table><thead></thead><tbody><tbody".concat(t,"</table>")),i.querySelectorAll("table").get(2).childNodes.detach()):o(r,"tr")?(i.html("<table><tbody>".concat(t,"</tbody></table>")),i.querySelectorAll("tbody").get(0).childNodes.detach()):o(r,"td")?(i.html("<table><tbody><tr>".concat(t,"</tr></tbody></table>")),i.querySelectorAll("tr").get(0).childNodes.detach()):(i.html(t),i.childNodes.detach())},e.prototype.get=function(t){return t<this.rootNode.length?new e(this.rootNode[t]):e.absent},e.prototype.getAsElem=function(e,t){return void 0===t&&(t=p.Optional.absent),e<this.rootNode.length?p.Optional.fromNullable(this.rootNode[e]):t},e.prototype.filesFromElem=function(e){var t;return e<this.rootNode.length&&(null===(t=this.rootNode[e])||void 0===t?void 0:t.files)?this.rootNode[e].files:[]},e.prototype.allElems=function(){return this.rootNode},e.prototype.isAbsent=function(){return 0==this.length},e.prototype.isPresent=function(e){var t=this.isAbsent();return!t&&e&&e.call(this,this),!t},e.prototype.ifPresentLazy=function(e){return void 0===e&&(e=function(){}),this.isPresent.call(this,e),this},e.prototype.delete=function(){this.eachElem((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},e.prototype.querySelectorAll=function(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)},e.prototype._querySelectorAll=function(t){var n,r;if(!(null===(n=null==this?void 0:this.rootNode)||void 0===n?void 0:n.length))return this;for(var o=[],i=0;i<this.rootNode.length;i++)if(null===(r=this.rootNode[i])||void 0===r?void 0:r.querySelectorAll){var a=this.rootNode[i].querySelectorAll(t);o=o.concat(y(a))}return new(e.bind.apply(e,s([void 0],l(o),!1)))},e.prototype._querySelectorAllDeep=function(t){var n;if(!(null===(n=null==this?void 0:this.rootNode)||void 0===n?void 0:n.length))return this;for(var r=new(e.bind.apply(e,s([void 0],l(this.rootNode),!1))),o=t.split(/\/shadow\//),i=0;i<o.length;i++)if(""!=o[i]){var a=o[i];r=r.querySelectorAll(a),i<o.length-1&&(r=r.shadowRoot)}return r},e.prototype.byId=function(t,n){var r=[];return n&&(r=r.concat(h.LazyStream.of.apply(h.LazyStream,s([],l((null==this?void 0:this.rootNode)||[]),!1)).filter((function(e){return t==e.id})).map((function(t){return new e(t)})).collect(new v.ArrayCollector))),r=r.concat(this.querySelectorAll('[id="'.concat(t,'"]'))),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.byIdDeep=function(t,n){var r=[];n&&(r=r.concat(h.LazyStream.of.apply(h.LazyStream,s([],l((null==this?void 0:this.rootNode)||[]),!1)).filter((function(e){return t==e.id})).map((function(t){return new e(t)})).collect(new v.ArrayCollector)));var o=this.querySelectorAllDeep('[id="'.concat(t,'"]'));return o.length&&r.push(o),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.byTagName=function(t,n,r){var o,i=[];return n&&(i=h.LazyStream.of.apply(h.LazyStream,s([],l(null!==(o=null==this?void 0:this.rootNode)&&void 0!==o?o:[]),!1)).filter((function(e){return(null==e?void 0:e.tagName)==t})).reduce((function(e,t){return e.concat([t])}),i).orElse(i).value),r?i.push(this.querySelectorAllDeep(t)):i.push(this.querySelectorAll(t)),new(e.bind.apply(e,s([void 0],l(i),!1)))},e.prototype.attr=function(e,t){return void 0===t&&(t=null),new T(this,e,t)},e.prototype.hasClass=function(e){var t=!1;return this.eachElem((function(n){if(t=n.classList.contains(e))return!1})),t},e.prototype.addClass=function(e){return this.eachElem((function(t){return t.classList.add(e)})),this},e.prototype.removeClass=function(e){return this.eachElem((function(t){return t.classList.remove(e)})),this},e.prototype.isMultipartCandidate=function(e){var t=this;return void 0===e&&(e=!1),this.stream.filter((function(n){return function(n){var r;return 0!=n.length&&(1==n.length?"input"==n.tagName.get("booga").value.toLowerCase()&&"file"==((null===(r=n.attr("type"))||void 0===r?void 0:r.value)||"").toLowerCase()||(e?t.querySelectorAllDeep("input[type='file']").firstElem().isPresent():t.querySelectorAll("input[type='file']").firstElem().isPresent()):n.isMultipartCandidate(e))}(n)})).first().isPresent()},e.prototype.html=function(e){return p.Optional.fromNullable(e).isAbsent()?this.isPresent()?p.Optional.fromNullable(this.innerHtml):p.Optional.absent:(this.innerHtml=e,this)},e.prototype.dispatchEvent=function(e){return this.eachElem((function(t){return t.dispatchEvent(e)})),this},Object.defineProperty(e.prototype,"innerHtml",{get:function(){var e=[];return this.eachElem((function(t){return e.push(t.innerHTML)})),e.join("")},set:function(e){this.eachElem((function(t){return t.innerHTML=e}))},enumerable:!1,configurable:!0}),e.prototype._mozMatchesSelector=function(e,t){var n=e,r=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(t){for(var n=(document||window.ownerDocument).querySelectorAll(t),r=n.length;--r>=0&&n.item(r)!==e;);return r>-1};return r.call(e,t)},e.prototype.filterSelector=function(t){var n=this,r=[];return this.eachElem((function(e){n._mozMatchesSelector(e,t)&&r.push(e)})),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.matchesSelector=function(e){var t=this;return this.eachElem((function(n){if(!t._mozMatchesSelector(n,e))return!1})),!0},e.prototype.getIf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this.childNodes,r=0;r<e.length;r++)if((n=n.filterSelector(e[r])).isAbsent())return n;return n},e.prototype.eachElem=function(e){for(var t=0,n=this.rootNode.length;t<n&&!1!==e(this.rootNode[t],t);t++);return this},e.prototype.firstElem=function(e){return void 0===e&&(e=function(e){return e}),this.rootNode.length>1&&e(this.rootNode[0],0),this},e.prototype.each=function(t){return h.Stream.of.apply(h.Stream,s([],l(this.rootNode),!1)).each((function(n,r){if(null!=n)return t(e.byId(n),r)})),this},e.prototype.first=function(e){return void 0===e&&(e=function(e){return e}),this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this},e.prototype.filter=function(t){var n=[];return this.each((function(e){t(e)&&n.push(e)})),new(e.bind.apply(e,s([void 0],l(n),!1)))},e.prototype.globalEval=function(e,t){var n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");t&&r.setAttribute("nonce",t),r.type="text/javascript",r.innerHTML=e;var o=n.appendChild(r);return n.removeChild(o),this},e.prototype.detach=function(){return this.eachElem((function(e){e.parentNode.removeChild(e)})),this},e.prototype.appendTo=function(e){this.eachElem((function(t){e.getAsElem(0).orElseLazy((function(){return{appendChild:function(e){}}})).value.appendChild(t)}))},e.prototype.loadScriptEval=function(e,t,n){var r=this;void 0===t&&(t=0),void 0===n&&(n="utf-8");var o=new XMLHttpRequest;return o.open("GET",e,!1),n&&o.setRequestHeader("Content-Type","application/x-javascript; charset:"+n),o.send(null),o.onload=function(n){t?setTimeout((function(){r.globalEval(o.responseText+"\r\n//@ sourceURL="+e)}),t):r.globalEval(o.responseText.replace(/\n/g,"\r\n")+"\r\n//@ sourceURL="+e)},o.onerror=function(e){throw Error(e)},this},e.prototype.insertAfter=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.each((function(e){for(var n=e.getAsElem(0).value,r=n.parentNode,o=function(e){var o=n.nextSibling;t[e].eachElem((function(e){o?(r.insertBefore(e,o),n=o):r.appendChild(e)}))},i=0;i<t.length;i++)o(i)}));var r=[];return r.push(this),r=r.concat(t),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.insertBefore=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.each((function(e){for(var n=e.getAsElem(0).value,r=n.parentNode,o=0;o<t.length;o++)t[o].eachElem((function(e){r.insertBefore(e,n)}))}));var r=[];return r.push(this),r=r.concat(t),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.orElse=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isPresent()?this:new(e.bind.apply(e,s([void 0],l(t),!1)))},e.prototype.orElseLazy=function(t){return this.isPresent()?this:new e(t())},e.prototype.parents=function(t){var n=new Set,r=[],o=t.toLowerCase(),i=function(e){(e.tagName||"").toLowerCase()!=o||n.has(e)||(n.add(e),r.push(e))};return this.eachElem((function(e){for(var n;e.parentNode||e.host;)if(e=null!==(n=null==e?void 0:e.parentNode)&&void 0!==n?n:null==e?void 0:e.host,i(e),"form"==t&&r.length)return!1})),new(e.bind.apply(e,s([void 0],l(r),!1)))},e.prototype.copyAttrs=function(e){var t=this;return e.eachElem((function(e){var n,r,o=y(e.attributes);try{for(var i=c(o),a=i.next();!a.done;a=i.next()){var u=a.value,l=u.value,s=u.name;switch(s){case"id":t.id.value=l;break;case"disabled":t.resolveAttributeHolder("disabled").disabled=l;break;case"checked":t.resolveAttributeHolder("checked").checked=l;break;default:t.attr(s).value=l}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}})),this},e.prototype.resolveAttributeHolder=function(e){void 0===e&&(e="value");var t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t},e.prototype.outerHTML=function(t,n,r,o){var i;if(void 0===o&&(o=!1),!this.isAbsent()){var a=null===(i=null===document||void 0===document?void 0:document.activeElement)||void 0===i?void 0:i.id,u=a?e.getCaretPosition(document.activeElement):null,c=e.fromMarkup(t),f=[],p=this.getAsElem(0).value,h=c.get(0),v=p.parentNode,d=h.getAsElem(0).value;if(v.replaceChild(d,p),f.push(new e(d)),this.isAbsent())return this;var E=[];c.length>1&&(E=E.concat.apply(E,s([],l(c.values.slice(1)),!1)),f.push(e.byId(d).insertAfter(new(e.bind.apply(e,s([void 0],l(E),!1)))))),n&&this.runScripts(),r&&this.runCss();var y=e.byId(a);return a&&y.isPresent()&&null!=u&&void 0!==u&&y.eachElem((function(t){return e.setCaretPosition(t,u)})),c}},e.prototype.runScripts=function(t){var n=this;void 0===t&&(t=S);var r=[],o=m,i=function(e){var i=e.tagName,a=e.type||"";if(i&&o(i,"script")&&(""===a||o(a,"text/javascript")||o(a,"javascript")||o(a,"text/ecmascript")||o(a,"ecmascript"))){var u=e.getAttribute("src");if(void 0!==u&&null!=u&&u.length>0)t(u)&&(r.length&&(n.globalEval(r.join("\n")),r=[]),n.loadScriptEval(u,0,"UTF-8"));else{for(var l=E(e.text||e.innerText||e.innerHTML),s=!0;s;)s=!1,"\x3c!--"==l.substring(0,4)&&(l=l.substring(4),s=!0),"//\x3c!--"==l.substring(0,4)&&(l=l.substring(6),s=!0),"//<![CDATA["==l.substring(0,11)&&(l=l.substring(11),s=!0);r.push(l)}}};try{new e(this.filterSelector("script"),this.querySelectorAll("script")).stream.flatMap((function(e){return h.Stream.of(e.values)})).sort((function(e,t){return e.compareDocumentPosition(t)-3})).each((function(e){return i(e)})),r.length&&this.globalEval(r.join("\n"))}catch(e){window.console&&window.console.error&&console.error(e.message||e.description)}finally{i=null}return this},e.prototype.runCss=function(){var t=function(e,t){var n,r,o,i,a=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(a);var u=null!==(n=a.sheet)&&void 0!==n?n:a.styleSheet;a.setAttribute("rel",null!==(r=e.getAttribute("rel"))&&void 0!==r?r:"stylesheet"),a.setAttribute("type",null!==(o=e.getAttribute("type"))&&void 0!==o?o:"text/css"),null!==(i=null==u?void 0:u.cssText)&&void 0!==i&&i?u.cssText=t:a.appendChild(document.createTextNode(t))};return new e(this.filterSelector("link, style"),this.querySelectorAll("link, style")).stream.flatMap((function(e){return h.Stream.of(e.values)})).sort((function(e,t){return e.compareDocumentPosition(t)-3})).each((function(e){return function(e){var n=e.tagName;if(n&&m(n,"link")&&m(e.getAttribute("type"),"text/css"))t(e,"@import url('"+e.getAttribute("href")+"');");else if(n&&m(n,"style")&&m(e.getAttribute("type"),"text/css")){var r=[],o=Array.prototype.slice.call(e.childNodes);o?o.forEach((function(e){return r.push(e.innerHTML||e.data)})):e.innerHTML&&r.push(e.innerHTML),t(e,r.join(""))}}(e)})),this},e.prototype.click=function(){return this.fireEvent("click"),this},e.prototype.addEventListener=function(e,t,n){return this.eachElem((function(r){return r.addEventListener(e,t,n)})),this},e.prototype.removeEventListener=function(e,t,n){return this.eachElem((function(r){return r.removeEventListener(e,t,n)})),this},e.prototype.fireEvent=function(e){this.eachElem((function(t){var n;if(t.ownerDocument)n=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);n=t}if(t.dispatchEvent){var r="";switch(e){case"click":case"mousedown":case"mouseup":r="MouseEvents";break;case"focus":case"change":case"blur":case"select":r="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}var o=n.createEvent(r);o.initEvent(e,!0,!0),o.synthetic=!0,t.dispatchEvent(o)}else if(t.fireEvent){var i=n.createEventObject();i.synthetic=!0,t.fireEvent("on"+e,i)}}))},e.prototype.textContent=function(e){return void 0===e&&(e=""),this.stream.map((function(e){return e.getAsElem(0).orElseLazy((function(){return{textContent:""}})).value.textContent||""})).reduce((function(t,n){return t+e+n}),"").value},e.prototype.innerText=function(e){return void 0===e&&(e=""),this.stream.map((function(e){return e.getAsElem(0).orElseLazy((function(){return{innerText:""}})).value.innerText||""})).reduce((function(t,n){return[t,n].join(e)}),"").value},e.prototype.encodeFormElement=function(e){if(void 0===e&&(e=new p.Config({})),!this.name.isAbsent()){var t=e.shallowCopy;return this.each((function(e){var n,r;if(!e.name.isAbsent()){var o=e.name.value,i=e.tagName.orElse("__none__").value.toLowerCase(),a=e.type.orElse("__none__").value.toLowerCase();if(a=a.toLowerCase(),("input"==i||"textarea"==i||"select"==i)&&null!=o&&""!=o&&!e.disabled){if("select"==i){var u=e.getAsElem(0).value;if(u.selectedIndex>=0)for(var l=u.options.length,s=0;s<l;s++)if(u.options[s].selected){var c=u.options[s];t.append(o).value=null!=c.getAttribute("value")?c.value:c.text}}if(i!=f.SELECT&&a!=f.BUTTON&&a!=f.RESET&&a!=f.SUBMIT&&a!=f.IMAGE&&(a!=f.CHECKBOX&&a!=f.RADIO||e.checked)){var p=null!==(r=null===(n=e.value.value)||void 0===n?void 0:n.files)&&void 0!==r?r:[];(null==p?void 0:p.length)?t.append(o).value=p[0]:t.append(o).value=e.inputValue.value}}}})),t}},Object.defineProperty(e.prototype,"cDATAAsString",{get:function(){return this.lazyStream.flatMap((function(e){return e.childNodes.stream})).filter((function(e){var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce((function(e,t){var n,r,o;return e.push(null!==(o=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==o?o:""),e}),[]).value.join("")},enumerable:!1,configurable:!0}),e.prototype.subNodes=function(t,n){return p.Optional.fromNullable(n).isAbsent()&&(n=this.length),new(e.bind.apply(e,s([void 0],l(this.rootNode.slice(t,Math.min(n,this.length))),!1)))},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.hasNext=function(){var e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)},e.prototype.next=function(){return this.hasNext()?(this.pos++,new e(this.values[this.pos])):null},e.prototype.reset=function(){this.pos=-1},e.prototype.attachShadow=function(t){void 0===t&&(t={mode:"open"});var n=[];return this.eachElem((function(r){var o;if(!(null==r?void 0:r.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");o=e.byId(r.attachShadow(t)),n.push(o)})),new(e.bind.apply(e,s([void 0],l(n),!1)))},e.prototype.waitUntilDom=function(e,t){return void 0===t&&(t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}),a(this,void 0,void 0,(function(){return u(this,(function(n){return[2,g(this,e,t)]}))}))},Object.defineProperty(e.prototype,"shadowElements",{get:function(){var t=(this.querySelectorAll("*").filter((function(e){return e.hasShadow})).allElems()||[]).map((function(e){return e.shadowRoot}));return new(e.bind.apply(e,s([void 0],l(t),!1)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadowRoot",{get:function(){for(var t=[],n=0;n<this.rootNode.length;n++)this.rootNode[n].shadowRoot&&t.push(this.rootNode[n].shadowRoot);return new(e.bind.apply(e,s([void 0],l(t),!1)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasShadow",{get:function(){for(var e=0;e<this.rootNode.length;e++)if(this.rootNode[e].shadowRoot)return!0;return!1},enumerable:!1,configurable:!0}),e.getCaretPosition=function(e){var t=0;try{if(null===document||void 0===document?void 0:document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}}catch(e){}return t},e.setCaretPosition=function(e,t){(null==e?void 0:e.focus)&&(null==e||e.focus()),(null==e?void 0:e.setSelectiongRange)&&(null==e||e.setSelectiongRange(t,t))},e.prototype[Symbol.iterator]=function(){var e=this;return{next:function(){return{done:!e.hasNext(),value:e.next()}}}},e.absent=new e,e}();t.DomQuery=A;var R=function(){function e(){this.data=[]}return e.prototype.collect=function(e){this.data.push(e)},Object.defineProperty(e.prototype,"finalValue",{get:function(){return new(A.bind.apply(A,s([void 0],l(this.data),!1)))},enumerable:!1,configurable:!0}),e}();t.DomQueryCollector=R,t.DQ=A},805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;var r=n(152);!function(e){function t(e){for(var t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t){void 0===t&&(t=null);try{var n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t){void 0===t&&(t=null);try{var n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n){void 0===n&&(n=/\./gi);var r=[];return e.split(n).forEach((function(e){r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=[]),"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:n.concat(Array.prototype.slice.call(e,t))},e.equalsIgnoreCase=function(e,t){var n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");var r=Object(e);return Object.assign?(t.forEach((function(e){return Object.assign(r,e)})),r):(t.filter((function(e){return null!=e})).forEach((function(e){var t=e;Object.keys(t).filter((function(e){return Object.prototype.hasOwnProperty.call(t,e)})).forEach((function(e){return r[e]=t[e]}))})),r)}}(t.Lang||(t.Lang={}))},152:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.ValueEmbedder=t.Optional=t.Monad=void 0;var u=n(805),l=n(255),s=n(551),c=u.Lang.objAssign,f=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.map=function(t){return t||(t=function(e){return e}),new e(t(this.value))},e.prototype.flatMap=function(t){for(var n=this.map(t);(null==n?void 0:n.value)instanceof e;)n=n.value;return n},e}();t.Monad=f;var p=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value instanceof f?this._value.flatMap().value:this._value},enumerable:!1,configurable:!0}),t.fromNullable=function(e){return new t(e)},t.prototype.isAbsent=function(){return void 0===this.value||null==this.value},t.prototype.isPresent=function(e){var t=this.isAbsent();return!t&&e&&e.call(this,this),!t},t.prototype.ifPresentLazy=function(e){return void 0===e&&(e=function(){}),this.isPresent.call(this,e),this},t.prototype.orElse=function(e){return this.isPresent()?this:null==e?t.absent:this.flatMap((function(){return e}))},t.prototype.orElseLazy=function(e){return this.isPresent()?this:this.flatMap(e)},t.prototype.flatMap=function(n){var r=e.prototype.flatMap.call(this,n);return r instanceof t?r.flatMap():t.fromNullable(r.value)},t.prototype.getIf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++){var o=this.keyVal(e[r]),i=this.arrayIndex(e[r]);if(""===o&&i>=0){if((n=this.getClass().fromNullable(n.value instanceof Array?n.value.length<i?null:n.value[i]:null)).isAbsent())return n}else if(o&&i>=0){if(n.getIfPresent(o).isAbsent())return n;if((n=n.getIfPresent(o).value instanceof Array?this.getClass().fromNullable(n.getIfPresent(o).value[i]):this.getClass().absent).isAbsent())return n}else{if((n=n.getIfPresent(o)).isAbsent())return n;i>-1&&(n=this.getClass().fromNullable(n.value[i]))}}return n},t.prototype.match=function(e){return!this.isAbsent()&&e(this.value)},t.prototype.get=function(e){return void 0===e&&(e=t.absent),this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()},t.prototype.toJson=function(){return JSON.stringify(this.value)},t.prototype.getClass=function(){return t},t.prototype.arrayIndex=function(e){var t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1},t.prototype.keyVal=function(e){var t=e.indexOf("[");return t>=0?e.substring(0,t):e},t.prototype.getIfPresent=function(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()},t.prototype.resolve=function(e){if(this.isAbsent())return t.absent;try{return t.fromNullable(e(this.value))}catch(e){return t.absent}},t.absent=t.fromNullable(null),t}(f);t.Optional=p;var h=function(e){function t(t,n){void 0===n&&(n="value");var r=e.call(this,t)||this;return r.key=n,r}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value?this._value[this.key]:null},set:function(e){this._value&&(this._value[this.key]=e)},enumerable:!1,configurable:!0}),t.prototype.orElse=function(e){var n={};return n[this.key]=e,this.isPresent()?this:new t(n,this.key)},t.prototype.orElseLazy=function(e){if(this.isPresent())return this;var n={};return n[this.key]=e(),new t(n,this.key)},t.prototype.getClass=function(){return t},t.fromNullable=function(e,n){return void 0===n&&(n="value"),new t(e,n)},t.absent=t.fromNullable(null),t}(p);t.ValueEmbedder=h;var v=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.arrPos=null!=r?r:-1,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]},set:function(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e},enumerable:!1,configurable:!0}),t.absent=t.fromNullable(null),t}(h),d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"shallowCopy",{get:function(){return new t(s.Stream.ofAssoc(this.value).collect(new l.AssocArrayCollector))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deepCopy",{get:function(){return new t(c({},this.value))},enumerable:!1,configurable:!0}),t.fromNullable=function(e){return new t(e)},t.prototype.shallowMerge=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=!1);var o=function(o){!t&&o in u.value||(n?Array.isArray(e.getIf(o).value)?s.Stream.of.apply(s.Stream,a([],i(e.getIf(o).value),!1)).each((function(e){return r.append(o).value=e})):u.append(o).value=e.getIf(o).value:u.assign(o).value=e.getIf(o).value)},u=this;for(var l in e.value)o(l)},t.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length<1;if(!n){var r=e[e.length-1],o=(this.keyVal(r),this.getIf.apply(this,a([],i(e),!1)).isPresent());this.buildPath(e);var u=this.arrayIndex(r);if(u>-1)throw Error("Append only possible on non array properties, use assign on indexed data");var l=this.getIf.apply(this,a([],i(e),!1)).value;Array.isArray(l)||(l=this.assign.apply(this,a([],i(e),!1)).value=[l]),o&&l.push({}),u=l.length-1;var s=new v(1==e.length?this.value:this.getIf.apply(this,e.slice(0,e.length-1)).value,r,u);return s}},t.prototype.appendIf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e?this.append.apply(this,a([],i(t),!1)):{value:null}},t.prototype.assign=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!(e.length<1)){this.buildPath(e);var n=this.keyVal(e[e.length-1]),r=this.arrayIndex(e[e.length-1]),o=new v(1==e.length?this.value:this.getIf.apply(this,e.slice(0,e.length-1)).value,n,r);return o}},t.prototype.assignIf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e?this.assign.apply(this,a([],i(t),!1)):{value:null}},t.prototype.getIf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.getClass().fromNullable(e.prototype.getIf.apply(this,t).value)},t.prototype.get=function(t){return this.getClass().fromNullable(e.prototype.get.call(this,t).value)},t.prototype.delete=function(e){return e in this.value&&delete this.value[e],this},t.prototype.toJson=function(){return JSON.stringify(this.value)},t.prototype.getClass=function(){return t},t.prototype.setVal=function(e){this._value=e},t.prototype.buildPath=function(e){for(var t=this,n=this.getClass().fromNullable(null),r=-1,o=function(e,t){for(var n=e.length,r=n+t,o=n;o<r;o++)e.push({})},i=0;i<e.length;i++){var a=this.keyVal(e[i]),u=this.arrayIndex(e[i]);if(""===a&&u>=0)t.setVal(t.value instanceof Array?t.value:[]),o(t.value,u+1),r>=0&&(n.value[r]=t.value),n=t,r=u,t=this.getClass().fromNullable(t.value[u]);else{var l=t.getIf(a);if(-1==u)l.isAbsent()?l=this.getClass().fromNullable(t.value[a]={}):t=l;else{var s=l.value instanceof Array?l.value:[];o(s,u+1),t.value[a]=s,l=this.getClass().fromNullable(s[u])}n=t,r=u,t=l}}return this},t}(p);t.Config=d},255:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryFormStringCollector=t.QueryFormDataCollector=t.FormDataCollector=t.AssocArrayCollector=t.Run=t.ArrayAssocArrayCollector=t.ArrayCollector=t.FlatMapStreamDataSource=t.MappedStreamDataSource=t.FilteredStreamDatasource=t.ArrayStreamDataSource=t.SequenceDataSource=void 0;var i=n(551),a=function(){function e(e,t){this.total=t,this.start=e,this.value=e}return e.prototype.hasNext=function(){return this.value<this.total},e.prototype.next=function(){return Math.min(this.value++,this.total-1)},e.prototype.reset=function(){this.value=0},e}();t.SequenceDataSource=a;var u=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.dataPos=-1,this.value=e}return e.prototype.hasNext=function(){return this.value.length-1>this.dataPos},e.prototype.next=function(){return this.dataPos++,this.value[this.dataPos]},e.prototype.reset=function(){this.dataPos=-1},e}();t.ArrayStreamDataSource=u;var l=function(){function e(e,t){this.filteredNext=null,this.filterFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){for(;null==this.filteredNext&&this.inputDataSource.hasNext();){var e=this.inputDataSource.next();if(this.filterFunc(e))return this.filteredNext=e,!0;this.filteredNext=null}return null!=this.filteredNext},e.prototype.next=function(){var e=this.filteredNext;return this.filteredNext=null,this.hasNext(),e},e.prototype.reset=function(){this.filteredNext=null,this.inputDataSource.reset()},e}();t.FilteredStreamDatasource=l;var s=function(){function e(e,t){this.mapFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){return this.inputDataSource.hasNext()},e.prototype.next=function(){return this.mapFunc(this.inputDataSource.next())},e.prototype.reset=function(){this.inputDataSource.reset()},e}();t.MappedStreamDataSource=s;var c=function(){function e(e,t){this.mapFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){return this.resolveCurrentNext()||this.resolveNextNext()},e.prototype.resolveCurrentNext=function(){var e=!1;return this.activeDataSource&&(e=this.activeDataSource.hasNext()),e},e.prototype.resolveNextNext=function(){for(var e=!1;!e&&this.inputDataSource.hasNext();){var t=this.mapFunc(this.inputDataSource.next());Array.isArray(t)?this.activeDataSource=new(u.bind.apply(u,o([void 0],r(t),!1))):this.activeDataSource=t,e=this.activeDataSource.hasNext()}return e},e.prototype.next=function(){return this.activeDataSource.next()},e.prototype.reset=function(){this.inputDataSource.reset()},e}();t.FlatMapStreamDataSource=c;var f=function(){function e(){this.data=[]}return e.prototype.collect=function(e){this.data.push(e)},Object.defineProperty(e.prototype,"finalValue",{get:function(){return this.data},enumerable:!1,configurable:!0}),e}();t.ArrayCollector=f;var p=function(){function e(){this.finalValue={}}return e.prototype.collect=function(e){var t,n,r,o,i=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:e;this.finalValue[i]=null!==(r=null===(n=this.finalValue)||void 0===n?void 0:n[i])&&void 0!==r?r:[],this.finalValue[i].push(null===(o=null==e?void 0:e[1])||void 0===o||o)},e}();t.ArrayAssocArrayCollector=p;var h=function(){function e(){}return e.prototype.collect=function(e){},Object.defineProperty(e.prototype,"finalValue",{get:function(){return null},enumerable:!1,configurable:!0}),e}();t.Run=h;var v=function(){function e(){this.finalValue={}}return e.prototype.collect=function(e){var t,n;this.finalValue[null!==(t=e[0])&&void 0!==t?t:e]=null===(n=e[1])||void 0===n||n},e}();t.AssocArrayCollector=v;var d=function(){function e(){this.finalValue=new FormData}return e.prototype.collect=function(e){this.finalValue.append(e.key,e.value)},e}();t.FormDataCollector=d;var E=function(){function e(){this.finalValue=new FormData}return e.prototype.collect=function(e){var t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)},e}();t.QueryFormDataCollector=E;var y=function(){function e(){this.formData=[]}return e.prototype.collect=function(e){var t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])},Object.defineProperty(e.prototype,"finalValue",{get:function(){return i.Stream.of.apply(i.Stream,o([],r(this.formData),!1)).map((function(e){return e.join("=")})).reduce((function(e,t){return[e,t].join("&")})).orElse("").value},enumerable:!1,configurable:!0}),e}();t.QueryFormStringCollector=y},551:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.LazyStream=t.Stream=void 0;var i=n(152),a=n(255),u=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._limits=-1,this.pos=-1,this.value=e}return e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,o([void 0],r(t),!1)))},e.ofAssoc=function(e){return this.of.apply(this,o([],r(Object.keys(e)),!1)).map((function(t){return[t,e[t]]}))},e.ofDataSource=function(t){for(var n=[];t.hasNext();)n.push(t.next());return new(e.bind.apply(e,o([void 0],r(n),!1)))},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.of.apply(e,o([this],r(t),!1)).flatMap((function(e){return e}))},e.prototype.onElem=function(e){for(var t=0;t<this.value.length&&(-1==this._limits||t<this._limits)&&!1!==e(this.value[t],t);t++);return this},e.prototype.each=function(e){this.onElem(e)},e.prototype.map=function(t){t||(t=function(e){return e});var n=[];return this.each((function(e,r){n.push(t(e))})),new(e.bind.apply(e,o([void 0],r(n),!1)))},e.prototype.flatMap=function(t){var n=[];return this.each((function(e){var i=t(e);n=Array.isArray(i)?n.concat(i):n.concat.apply(n,o([],r(i.value),!1))})),e.of.apply(e,o([],r(n),!1))},e.prototype.filter=function(t){var n=[];return this.each((function(e){t(e)&&n.push(e)})),new(e.bind.apply(e,o([void 0],r(n),!1)))},e.prototype.reduce=function(e,t){void 0===t&&(t=null);for(var n=null!=t?0:1,r=null!=t?t:this.value.length?this.value[0]:null,o=n;o<this.value.length&&(-1==this._limits||o<this._limits);o++)r=e(r,this.value[o]);return i.Optional.fromNullable(r)},e.prototype.first=function(){return this.value&&this.value.length?i.Optional.fromNullable(this.value[0]):i.Optional.absent},e.prototype.last=function(){var e=this._limits>0?Math.min(this._limits,this.value.length):this.value.length;return i.Optional.fromNullable(e?this.value[e-1]:null)},e.prototype.anyMatch=function(e){for(var t=0;t<this.value.length&&(-1==this._limits||t<this._limits);t++)if(e(this.value[t]))return!0;return!1},e.prototype.allMatch=function(e){if(!this.value.length)return!1;for(var t=0,n=0;n<this.value.length;n++)e(this.value[n])&&t++;return t==this.value.length},e.prototype.noneMatch=function(e){for(var t=0,n=0;n<this.value.length;n++)e(this.value[n])||t++;return t==this.value.length},e.prototype.sort=function(t){var n=this.value.slice().sort(t);return e.of.apply(e,o([],r(n),!1))},e.prototype.collect=function(e){return this.each((function(t){return e.collect(t)})),e.finalValue},e.prototype.hasNext=function(){var e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.value.length-1;return!(e||t)},e.prototype.next=function(){return this.hasNext()?(this.pos++,this.value[this.pos]):null},e.prototype[Symbol.iterator]=function(){var e=this;return{next:function(){return{done:!e.hasNext(),value:e.next()}}}},e.prototype.reset=function(){this.pos=-1},e}();t.Stream=u;var l=function(){function e(e){this._limits=-1,this.pos=-1,this.dataSource=e}return e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(new(a.ArrayStreamDataSource.bind.apply(a.ArrayStreamDataSource,o([void 0],r(t),!1))))},e.ofAssoc=function(e){return this.of.apply(this,o([],r(Object.keys(e)),!1)).map((function(t){return[t,e[t]]}))},e.ofStreamDataSource=function(t){return new e(t)},e.prototype.hasNext=function(){return!this.isOverLimits()&&this.dataSource.hasNext()},e.prototype.next=function(){var e=this.dataSource.next();return this.pos++,e},e.prototype.reset=function(){this.dataSource.reset(),this.pos=0,this._limits=-1},e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.of.apply(e,o([this],r(t),!1)).flatMap((function(e){return e}))},e.prototype.nextFilter=function(e){if(this.hasNext()){var t=this.next();return e(t)?t:this.nextFilter(e)}return null},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.collect=function(e){for(;this.hasNext();){var t=this.next();e.collect(t)}return e.finalValue},e.prototype.onElem=function(t){var n=this;return new e(new a.MappedStreamDataSource((function(e){return!1===t(e,n.pos)&&n.stop(),e}),this))},e.prototype.filter=function(t){return new e(new a.FilteredStreamDatasource(t,this))},e.prototype.map=function(t){return new e(new a.MappedStreamDataSource(t,this))},e.prototype.flatMap=function(t){return new e(new a.FlatMapStreamDataSource(t,this))},e.prototype.each=function(e){for(;this.hasNext();)!1===e(this.next())&&this.stop()},e.prototype.reduce=function(e,t){if(void 0===t&&(t=null),!this.hasNext())return i.Optional.absent;var n=null,r=null;if(null!=t)n=t,r=this.next();else{if(n=this.next(),!this.hasNext())return i.Optional.fromNullable(n);r=this.next()}for(n=e(n,r);this.hasNext();)n=e(n,r=this.next());return i.Optional.fromNullable(n)},e.prototype.last=function(){return this.hasNext()?this.reduce((function(e,t){return t})):i.Optional.absent},e.prototype.first=function(){return this.reset(),this.hasNext()?i.Optional.fromNullable(this.next()):i.Optional.absent},e.prototype.anyMatch=function(e){for(;this.hasNext();)if(e(this.next()))return!0;return!1},e.prototype.allMatch=function(e){for(;this.hasNext();)if(!e(this.next()))return!1;return!0},e.prototype.noneMatch=function(e){for(;this.hasNext();)if(e(this.next()))return!1;return!0},e.prototype.sort=function(t){var n=this.collect(new a.ArrayCollector);return n=n.sort(t),e.of.apply(e,o([],r(n),!1))},Object.defineProperty(e.prototype,"value",{get:function(){return this.collect(new a.ArrayCollector)},enumerable:!1,configurable:!0}),e.prototype[Symbol.iterator]=function(){var e=this;return{next:function(){return{done:!e.hasNext(),value:e.next()}}}},e.prototype.stop=function(){this.pos=this._limits+1e9},e.prototype.isOverLimits=function(){return-1!=this._limits&&this.pos>=this._limits-1},e}();t.LazyStream=l},121:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.XQ=t.XMLQuery=void 0;var i=n(805),a=n(585),u=i.Lang.isString,l=function(e){function t(t,n){var r;return void 0===n&&(n="text/xml"),u(t)?e.call(this,null==(r=t)?null:i.Lang.saveResolveLazy((function(){return new window.DOMParser}),(function(){return(e=new ActiveXObject("Microsoft.XMLDOM")).async=!1,{parseFromString:function(t,n){return e.loadXML(t)}};var e})).value.parseFromString(r,n))||this:e.call(this,t)||this}return o(t,e),t.prototype.isXMLParserError=function(){return this.querySelectorAll("parsererror").isPresent()},t.prototype.toString=function(){var e=[];return this.eachElem((function(t){var n,r,o,i=null!==(o=null===(r=null===(n=null===window||void 0===window?void 0:window.XMLSerializer)||void 0===n?void 0:n.constructor())||void 0===r?void 0:r.serializeToString(t))&&void 0!==o?o:null==t?void 0:t.xml;i&&e.push(i)})),e.join("")},t.prototype.parserErrorText=function(e){return this.querySelectorAll("parsererror").textContent(e)},t.parseXML=function(e){return new t(e)},t.parseHTML=function(e){return new t(e,"text/html")},t.fromString=function(e,n){return void 0===n&&(n="text/xml"),new t(e,n)},t}(a.DomQuery);t.XMLQuery=l,t.XQ=l}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}var o={};!function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.QueryFormDataCollector=e.FormDataCollector=e.AssocArrayCollector=e.ArrayCollector=e.QueryFormStringCollector=e.SequenceDataSource=e.FlatMapStreamDataSource=e.FilteredStreamDatasource=e.MappedStreamDataSource=e.ArrayStreamDataSource=e.LazyStream=e.Stream=e.XQ=e.XMLQuery=e.ValueEmbedder=e.Optional=e.Monad=e.Config=e.Lang=e.DQ=e.DomQueryCollector=e.ElementAttribute=e.DomQuery=void 0;var t=r(585);Object.defineProperty(e,"DomQuery",{enumerable:!0,get:function(){return t.DomQuery}}),Object.defineProperty(e,"ElementAttribute",{enumerable:!0,get:function(){return t.ElementAttribute}}),Object.defineProperty(e,"DomQueryCollector",{enumerable:!0,get:function(){return t.DomQueryCollector}}),Object.defineProperty(e,"DQ",{enumerable:!0,get:function(){return t.DQ}});var n=r(805);Object.defineProperty(e,"Lang",{enumerable:!0,get:function(){return n.Lang}});var i=r(152);Object.defineProperty(e,"Config",{enumerable:!0,get:function(){return i.Config}}),Object.defineProperty(e,"Monad",{enumerable:!0,get:function(){return i.Monad}}),Object.defineProperty(e,"Optional",{enumerable:!0,get:function(){return i.Optional}}),Object.defineProperty(e,"ValueEmbedder",{enumerable:!0,get:function(){return i.ValueEmbedder}});var a=r(121);Object.defineProperty(e,"XMLQuery",{enumerable:!0,get:function(){return a.XMLQuery}}),Object.defineProperty(e,"XQ",{enumerable:!0,get:function(){return a.XQ}});var u=r(551);Object.defineProperty(e,"Stream",{enumerable:!0,get:function(){return u.Stream}}),Object.defineProperty(e,"LazyStream",{enumerable:!0,get:function(){return u.LazyStream}});var l=r(255);Object.defineProperty(e,"ArrayStreamDataSource",{enumerable:!0,get:function(){return l.ArrayStreamDataSource}}),Object.defineProperty(e,"MappedStreamDataSource",{enumerable:!0,get:function(){return l.MappedStreamDataSource}}),Object.defineProperty(e,"FilteredStreamDatasource",{enumerable:!0,get:function(){return l.FilteredStreamDatasource}}),Object.defineProperty(e,"FlatMapStreamDataSource",{enumerable:!0,get:function(){return l.FlatMapStreamDataSource}}),Object.defineProperty(e,"SequenceDataSource",{enumerable:!0,get:function(){return l.SequenceDataSource}}),Object.defineProperty(e,"QueryFormStringCollector",{enumerable:!0,get:function(){return l.QueryFormStringCollector}}),Object.defineProperty(e,"ArrayCollector",{enumerable:!0,get:function(){return l.ArrayCollector}}),Object.defineProperty(e,"AssocArrayCollector",{enumerable:!0,get:function(){return l.AssocArrayCollector}}),Object.defineProperty(e,"FormDataCollector",{enumerable:!0,get:function(){return l.FormDataCollector}}),Object.defineProperty(e,"QueryFormDataCollector",{enumerable:!0,get:function(){return l.QueryFormDataCollector}})}();var i=t;for(var a in o)i[a]=o[a];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}()},957:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.myfaces=t.jsf=void 0;var o,i=n(90),a=n(423);!function(e){var t,n;e.specversion=22e4,e.implversion=0,e.separatorchar=i.Implementation.getSeparatorChar(),e.getProjectStage=function(){return i.Implementation.getProjectStage()},e.getViewState=function(e){return i.Implementation.getViewState(e)},e.getClientWindow=function(e){return i.Implementation.getClientWindow(e)},(n=e.ajax||(e.ajax={})).request=function(e,t,n){i.Implementation.request(e,t,n)},n.response=function(e,t){i.Implementation.response(e,t)},n.addOnError=function(e){i.Implementation.addOnError(e)},n.addOnEvent=function(e){i.Implementation.addOnEvent(e)},(e.util||(e.util={})).chain=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return i.Implementation.chain.apply(i.Implementation,r([e,t],n,!1))},(t=e.push||(e.push={})).init=function(e,t,n,r,o,i,u,l){a.PushImpl.init(e,t,n,r,o,i,u,l)},t.open=function(e){a.PushImpl.open(e)},t.close=function(e){a.PushImpl.close(e)}}(o=t.jsf||(t.jsf={})),(t.myfaces||(t.myfaces={})).ab=function(e,t,n,r,i,a){void 0===a&&(a={}),n&&(a["javax.faces.behavior.event"]=n),r&&(a.execute=r),i&&(a.render=i),o.ajax.request(e,t,a)}},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Implementation=void 0;var r,o,i=n(859),a=n(525),u=n(315),l=n(105),s=n(83),c=n(913),f=n(44),p=n(961),h=n(756),v=n(29),d=n(511);!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(r||(r={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.windowId="windowId"}(o||(o={})),function(e){var t=l.Lang.trim,n=h.ExtLang.getMessage,E=h.ExtLang.getGlobalConfig,y=s.Assertions.assert,_=[],m=[];function g(){var e=f.ExtDomquery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in r?e:null}function T(e,t){void 0===t&&(t=function(e){}),t(e),m.forEach((function(t){t(e)})),E("defaultErrorOutput",console?console.error:alert)(e)}function S(e,n,r,o,i){for(var a=r?t(r).split(/\s+/gi):[],u=[],l={},s=0;s<a.length;s++)if(!(a[s]in l))switch(a[s]){case v.IDENT_NONE:return e.delete(n);case v.IDENT_ALL:return e.assign(n).value=v.IDENT_ALL,e;case v.IDENT_FORM:u.push(o.id.value),l[o.id.value]=!0;break;case v.IDENT_THIS:i in l||(u.push(i),l[i]=!0);break;default:u.push(a[s]),l[a[s]]=!0}return e.assign(n).value=u.join(" "),e}function A(){var e,t;return null!==(t=null===(e=null===window||void 0===window?void 0:window[v.MYFACES])||void 0===e?void 0:e.config)&&void 0!==t?t:{}}e.requestQueue=null,e.getSeparatorChar=function(){var e,t,n;return null!==(n=null!==(t=null===(e=A())||void 0===e?void 0:e.separator)&&void 0!==t?t:null==this?void 0:this.separator)&&void 0!==n?n:f.ExtDomquery.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value},e.reset=function(){_=[],m=[],e.requestQueue=null},e.getProjectStage=function(){var e,t,n;return null!==(n=null!==(t=null===(e=A())||void 0===e?void 0:e.projectStage)&&void 0!==t?t:null==this?void 0:this.projectStage)&&void 0!==n?n:g()},e.resolveProjectStateFromURL=g,e.chain=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=!0,a=function(r){if("string"!=typeof r)return i=i&&!1!==r.call(e,n);var o=t(r);return 0==o.indexOf("function ")&&(o="return ".concat(o," (event)")),i=i&&!1!==new Function("event",o).call(e,n)};return l.Stream.of.apply(l.Stream,r).each((function(e){return a(e)})),i},e.request=function(t,n,r){var i,a,u,c,f=(0,d.resolveDefaults)(n,r,t),p=f.resolvedEvent,h=f.options,E=f.elem,y=f.elementId,_=f.requestCtx,m=f.internalCtx,g=f.windowId,T=f.isResetValues;s.Assertions.assertRequestIntegrity(h,E),_.assignIf(!!g,v.P_WINDOW_ID).value=g,_.assign(v.CTX_PARAM_PASS_THR).value=(c=h.value,l.Stream.ofAssoc(c).filter((function(e){return!(e[0]in o)})).collect(new l.AssocArrayCollector)),_.assignIf(!!p,v.CTX_PARAM_PASS_THR,v.P_EVT).value=null==p?void 0:p.type,_.assign(v.SOURCE).value=y.value,_.assign(v.ON_EVENT).value=null===(i=h.value)||void 0===i?void 0:i.onevent,_.assign(v.ON_ERROR).value=null===(a=h.value)||void 0===a?void 0:a.onerror,_.assign(v.MYFACES).value=null===(u=h.value)||void 0===u?void 0:u.myfaces;var A,R,b,P,O=(0,d.resolveForm)(_,E,p);_.assign(v.CTX_PARAM_PASS_THR,v.P_PARTIAL_SOURCE).value=y.value,_.assign(v.CTX_PARAM_PASS_THR,v.P_AJAX).value=!0,_.assign(v.CTX_PARAM_PASS_THR,v.P_PARTIAL_SOURCE).value=y.value,_.assignIf(T,v.CTX_PARAM_PASS_THR,v.P_RESET_VALUES).value=!0,m.assign(v.CTX_PARAM_SRC_FRM_ID).value=O.id.value,m.assign(v.CTX_PARAM_SRC_CTL_ID).value=y.value,m.assign(v.CTX_PARAM_TR_TYPE).value=v.REQ_TYPE_POST,_.assign(v.CTX_PARAM_PASS_THR,O.id.value).value=O.id.value,function(e,t){var n=jsf.getClientWindow(e.getAsElem(0).value);n&&(t.assign(v.CTX_PARAM_PASS_THR,v.P_CLIENT_WINDOW).value=n)}(O,_),A=h,R=_,b=O,P=y.value,A.getIf(v.CTX_PARAM_EXECUTE).isPresent()?(A.assign(v.CTX_PARAM_EXECUTE).value=[A.getIf(v.CTX_PARAM_EXECUTE).value,v.IDENT_THIS].join(" "),S(R.getIf(v.CTX_PARAM_PASS_THR).get({}),v.P_EXECUTE,A.getIf(v.CTX_PARAM_EXECUTE).value,b,P)):R.assign(v.CTX_PARAM_PASS_THR,v.P_EXECUTE).value=P,function(e,t,n,r){e.getIf(v.RENDER).isPresent()&&S(t.getIf(v.CTX_PARAM_PASS_THR).get({}),v.P_RENDER,e.getIf(v.RENDER).value,n,r)}(h,_,O,y.value);var C=(0,d.resolveDelay)(h),N=(0,d.resolveTimeout)(h);e.queueHandler.addRequestToQueue(E,O,_,m,C,N)},e.response=function(e,t){i.Response.processResponse(e,t)},e.addOnError=function(e){m.push(e)},e.addOnEvent=function(e){_.push(e)},e.sendEvent=function(e,t){void 0===t&&(t=function(e){}),t(e),_.forEach((function(t){return t(e)}))},e.stdErrorHandler=function(t,n,r,o){void 0===o&&(o=!1);try{T(p.ErrorData.fromClient(r))}finally{o&&e.requestQueue.cleanup()}},e.sendError=T,e.getClientWindow=function(e){var t="___mf_id_altered__",n="___init____",r=new l.DQ(e||document.body).querySelectorAll("form input [name='".concat(v.P_CLIENT_WINDOW,"']")).stream.map((function(e){return e.attr("value").value})).reduce((function(e,r){return e==n?r:e==t||e!=r?t:r}),n);return y(t!=r.value,"Multiple different windowIds found in document"),r.value!=n?r.value:f.ExtDomquery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null).value},e.getViewState=function(e){var t=l.DQ.byId(e,!0);if(!t.isTag(v.TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));return new c.XhrFormData(t).toString()},e.queueHandler={addRequestToQueue:function(t,n,r,o,i,l){void 0===i&&(i=0),void 0===l&&(l=0),e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new u.AsynchronouseQueue,e.requestQueue.enqueue(new a.XhrRequest(t,n,r,o,[],l),i)}}}(t.Implementation||(t.Implementation={}))},423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushImpl=void 0;var r=n(957),o=n(29);!function(e){var t=window.location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(o,i,u,l,s,c,f,p){if(c=a(c),window.WebSocket){var h=i.substr(i.indexOf("?")+1);e.components[o]||(e.components[o]={channelToken:h,onopen:a(l),onmessage:a(s),onclose:c,behaviors:f,autoconnect:p},e.clientIdsByTokens[h]||(e.clientIdsByTokens[h]=[]),e.clientIdsByTokens[h].push(o),e.sockets[h]||(e.sockets[h]=new n(h,function(e){if(e.indexOf("://")<0){var n=window.location.hostname+":"+window.location.port;return t+n+e}return e}(i),u))),p&&r.jsf.push.open(o)}else c(-1,u)},e.open=function(t){var n;i(null===(n=null===e.components||void 0===e.components?void 0:e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){i(null===e.components||void 0===e.components?void 0:e.components[t].channelToken).close()};var n=function(){function t(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}return t.prototype.open=function(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())},t.prototype.onopen=function(t){if(!this.reconnectAttempts)for(var n=e.clientIdsByTokens[this.channelToken],r=n.length-1;r>=0;r--){var o=n[r];e.components[o].onopen(this.channel)}this.reconnectAttempts=0},t.prototype.onmmessage=function(t){for(var n=JSON.parse(t.data),r=e.clientIdsByTokens[this.channelToken].length-1;r>=0;r--){var o=e.clientIdsByTokens[this.channelToken][r];if(document.getElementById(o)){try{e.components[o].onmessage(n,this.channel,t)}catch(e){}var i=e.components[o].behaviors[n];if(i&&i.length)for(var a=0;a<i.length;a++)try{i[a](null)}catch(e){}}else e.clientIdsByTokens[this.channelToken].splice(r,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()},t.prototype.onclose=function(t){if(!this.socket||1e3==t.code&&t.reason==o.REASON_EXPIRED||1008==t.code||!this.reconnectAttempts||this.reconnectAttempts>=o.MAX_RECONNECT_ATTEMPTS)for(var n=e.clientIdsByTokens[this.channelToken],r=n.length-1;r>=0;r--){var i=n[r];e.components[i].onclose(null==t?void 0:t.code,null==this?void 0:this.channel,t)}else setTimeout(this.open,o.RECONNECT_INTERVAL*this.reconnectAttempts++)},t.prototype.close=function(){if(this.socket){var e=this.socket;this.socket=null,e.close()}},t.prototype.bindCallbacks=function(){var e=this;this.socket.onopen=function(t){return e.onopen(t)},this.socket.onmessage=function(t){return e.onmmessage(t)},this.socket.onclose=function(t){return e.onclose(t)}},t}();function i(t){var n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function a(e){return void 0===e&&(e=function(){}),"function"!=typeof e&&(e=window[e]),e}}(t.PushImpl||(t.PushImpl={}))},29:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CTX_PARAM_RST=t.CTX_PARAM_TIMEOUT=t.CTX_PARAM_DELAY=t.CTX_PARAM_PASS_THR=t.CTX_PARAM_TR_TYPE=t.CTX_PARAM_SRC_CTL_ID=t.CTX_PARAM_SRC_FRM_ID=t.CTX_PARAM_MF_INTERNAL=t.TIMEOUT_EVENT=t.CLIENT_ERROR=t.SERVER_ERROR=t.MALFORMEDXML=t.EMPTY_RESPONSE=t.HTTPERROR=t.RESPONSE_XML=t.RESPONSE_TEXT=t.ERROR_MESSAGE=t.ERROR_NAME=t.STATUS=t.SOURCE=t.SUCCESS=t.COMPLETE=t.BEGIN=t.ON_EVENT=t.ON_ERROR=t.EVENT=t.ERROR=t.WINDOW_ID=t.RENDER=t.P_WINDOW_ID=t.P_RESET_VALUES=t.P_CLIENT_WINDOW=t.P_EVT=t.P_RENDER=t.P_EXECUTE=t.P_AJAX=t.IDENT_FORM=t.IDENT_THIS=t.IDENT_NONE=t.IDENT_ALL=t.HTML_VIEWSTATE=t.EMPTY_MAP=t.EMPTY_STR=t.EMPTY_FUNC=t.P_VIEWBODY=t.P_VIEWHEAD=t.P_VIEWROOT=t.P_VIEWSTATE=t.PARTIAL_ID=t.P_PARTIAL_SOURCE=void 0,t.RECONNECT_INTERVAL=t.APPLIED_CLIENT_WINDOW=t.APPLIED_VST=t.REASON_EXPIRED=t.MF_NONE=t.SEL_SCRIPTS_STYLES=t.MYFACES=t.UPDATE_ELEMS=t.UPDATE_FORMS=t.CMD_REDIRECT=t.CMD_EXTENSION=t.CMD_ATTRIBUTES=t.CMD_ERROR=t.CMD_EVAL=t.CMD_INSERT=t.CMD_DELETE=t.CMD_UPDATE=t.CMD_CHANGES=t.RESP_PARTIAL=t.ATTR_ID=t.ATTR_VALUE=t.ATTR_NAME=t.ATTR_URL=t.ERR_NO_PARTIAL_RESPONSE=t.PHASE_PROCESS_RESPONSE=t.SEL_RESPONSE_XML=t.SEL_CLIENT_WINDOW_ELEM=t.SEL_VIEWSTATE_ELEM=t.TAG_ATTR=t.TAG_AFTER=t.TAG_BEFORE=t.TAG_BODY=t.TAG_FORM=t.TAG_HEAD=t.STD_ACCEPT=t.NO_TIMEOUT=t.MULTIPART=t.URL_ENCODED=t.STATE_EVT_COMPLETE=t.STATE_EVT_TIMEOUT=t.STATE_EVT_BEGIN=t.REQ_TYPE_POST=t.REQ_TYPE_GET=t.ENCODED_URL=t.VAL_AJAX=t.REQ_ACCEPT=t.HEAD_FACES_REQ=t.CONTENT_TYPE=t.STAGE_DEVELOPMENT=t.CTX_PARAM_EXECUTE=void 0,t.UNKNOWN=t.MAX_RECONNECT_ATTEMPTS=void 0,t.P_PARTIAL_SOURCE="javax.faces.source",t.PARTIAL_ID="partialId",t.P_VIEWSTATE="javax.faces.ViewState",t.P_VIEWROOT="javax.faces.ViewRoot",t.P_VIEWHEAD="javax.faces.ViewHead",t.P_VIEWBODY="javax.faces.ViewBody",t.EMPTY_FUNC=Object.freeze((function(){})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=["<input type='hidden'","id='",t.P_VIEWSTATE,"' name='",t.P_VIEWSTATE,"' value='' />"].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="javax.faces.partial.ajax",t.P_EXECUTE="javax.faces.partial.execute",t.P_RENDER="javax.faces.partial.render",t.P_EVT="javax.faces.partial.event",t.P_CLIENT_WINDOW="javax.faces.ClientWindow",t.P_RESET_VALUES="javax.faces.partial.resetValues",t.P_WINDOW_ID="javax.faces.windowId",t.RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTPERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_PARAM_MF_INTERNAL="_mfInternal",t.CTX_PARAM_SRC_FRM_ID="_mfSourceFormId",t.CTX_PARAM_SRC_CTL_ID="_mfSourceControlId",t.CTX_PARAM_TR_TYPE="_mfTransportType",t.CTX_PARAM_PASS_THR="passThrgh",t.CTX_PARAM_DELAY="delay",t.CTX_PARAM_TIMEOUT="timeout",t.CTX_PARAM_RST="resetValues",t.CTX_PARAM_EXECUTE="execute",t.STAGE_DEVELOPMENT="Development",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="javax.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.TAG_HEAD="head",t.TAG_FORM="form",t.TAG_BODY="body",t.TAG_BEFORE="before",t.TAG_AFTER="after",t.TAG_ATTR="attribute",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_CLIENT_WINDOW_ELEM="[name='"+t.P_CLIENT_WINDOW+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.RESP_PARTIAL="partial-response",t.CMD_CHANGES="changes",t.CMD_UPDATE="update",t.CMD_DELETE="delete",t.CMD_INSERT="insert",t.CMD_EVAL="eval",t.CMD_ERROR="error",t.CMD_ATTRIBUTES="attributes",t.CMD_EXTENSION="extension",t.CMD_REDIRECT="redirect",t.UPDATE_FORMS="_updateForms",t.UPDATE_ELEMS="_updateElems",t.MYFACES="myfaces",t.SEL_SCRIPTS_STYLES="script, style, link",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="appliedViewState",t.APPLIED_CLIENT_WINDOW="appliedClientWindow",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25,t.UNKNOWN="UNKNOWN"},779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StateHolder=void 0;var r=n(29),o=function(){function e(e,t){this.id=e,this.value=t;var n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}return Object.defineProperty(e.prototype,"hasNameSpace",{get:function(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:r.EMPTY_STR).length},enumerable:!1,configurable:!0}),e}();t.StateHolder=o},558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0;t.Messages=function(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="jsf.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}},83:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;var r=n(105),o=n(756),i=o.ExtLang.getMessage,a=o.ExtLang.makeException,u=n(29);!function(e){function t(t,n,r,o){if(void 0===n&&(n=u.EMPTY_STR),void 0===r&&(r=u.EMPTY_STR),void 0===o&&(o="Assertion Error"),!t)throw e.raiseError(new Error,n,r,o)}function n(t,n,o,i,a){if(void 0===o&&(o=u.EMPTY_STR),void 0===i&&(i=u.EMPTY_STR),void 0===a&&(a="Type Assertion Error"),t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,o,i,a)}function o(e,t,r,o){void 0===t&&(t=u.EMPTY_STR),void 0===r&&(r=u.EMPTY_STR),void 0===o&&(o="Assertion Error"),n(e,"function",t,r,o)}e.assertRequestIntegrity=function(e,n){o(e.getIf(u.ON_ERROR).value),o(e.getIf(u.ON_EVENT).value),t(n.isPresent(),i("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"jsf.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(u.ATTR_URL).isAbsent())throw e.raiseError(new Error,i("ERR_RED_URL",null,"_Ajaxthis.processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),u.EMPTY_RESPONSE,u.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(u.EMPTY_STR),u.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(u.RESP_PARTIAL).isPresent(),u.ERR_NO_PARTIAL_RESPONSE,u.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){var i=null!=r?r:u.MALFORMEDXML,l=null!=o?o:u.MALFORMEDXML,s=null!=t?t:u.EMPTY_STR;return a(e,i,l,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),s)},e.assert=t,e.assertType=n,e.assertFunction=o}(t.Assertions||(t.Assertions={}))},315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsynchronouseQueue=void 0;var n=function(){function e(){this.runnableQueue=[]}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!this.runnableQueue.length},enumerable:!1,configurable:!0}),e.prototype.enqueue=function(e,t){var n=this;void 0===t&&(t=0),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),t?this.delayTimeout=setTimeout((function(){n.appendElement(e)})):this.appendElement(e)},e.prototype.dequeue=function(){return this.runnableQueue.shift()},e.prototype.cleanup=function(){this.currentlyRunning=null,this.runnableQueue.length=0},e.prototype.appendElement=function(e){this.runnableQueue.push(e),this.currentlyRunning||this.runEntry()},e.prototype.runEntry=function(){var e=this;this.isEmpty?this.currentlyRunning=null:(this.currentlyRunning=this.dequeue(),this.currentlyRunning.catch((function(t){throw e.cleanup(),t})).then((function(){return e.callForNextElementToProcess()})).start())},e.prototype.cancel=function(){try{this.currentlyRunning&&this.currentlyRunning.cancel()}finally{this.cleanup()}},e.prototype.callForNextElementToProcess=function(){this.runEntry()},e}();t.AsynchronouseQueue=n},44:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExtDQ=t.ExtDomquery=void 0;var i=n(105),a=n(29),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t,"windowId",{get:function(){return new t(document.body).windowId},enumerable:!1,configurable:!0}),Object.defineProperty(t,"nonce",{get:function(){return new t(document.body).nonce},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowId",{get:function(){var e=function(){var e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){var t=this.querySelectorAll("form input[name='"+a.P_WINDOW_ID+"']");if(t.length>0)throw Error("Multiple different windowIds found in document");return t.isPresent()?t.getAsElem(0).value.value:e()}return e()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonce",{get:function(){var e=new i.Config(window.myfaces).assign("config","cspMeta","nonce");if(e.value)return e.value;var t=new i.DQ(document.currentScript);if(null!=t.attr("nonce").value)return t.attr("nonce").value;var n=i.DQ.querySelectorAll("script[src], link[src]").lazyStream.filter((function(e){return null!=e.attr("nonce").value&&null!=e.attr("src")})).map((function(e){return!e.attr("src").value.match(/jsf\.js\?ln=javax\.faces/gi)})).first();return n.isPresent()&&(e.value=i.DomQuery.byId(n.value,!0).attr("nonce").value),e.value},enumerable:!1,configurable:!0}),t.searchJsfJsFor=function(e){return new t(document).searchJsfJsFor(e)},t.prototype.searchJsfJsFor=function(e){return i.DQ.querySelectorAll("script").lazyStream.filter((function(e){var t;return-1!=(null!==(t=e.attr("src").value)&&void 0!==t?t:a.EMPTY_STR).search(/\/javax\.faces\.resource.*\/jsf\.js.*separator/)})).map((function(t){var n=t.attr("src").value.match(e);return decodeURIComponent(n[1])})).first()},t.prototype.globalEval=function(t,n){return e.prototype.globalEval.call(this,t,null!=n?n:this.nonce)},t}(i.DQ);t.ExtDomquery=u,t.ExtDQ=i.DQ},756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtLang=void 0;var r=n(105),o=n(558),i=n(29),a=n(511);!function(e){var t,n="impl/util/Lang/";function u(e,n){for(var a,u,l=[],s=2;s<arguments.length;s++)l[s-2]=arguments[s];var c=null!==(u=null!==(a=(t=null!=t?t:new o.Messages)[e])&&void 0!==a?a:n)&&void 0!==u?u:e+" - undefined message";return r.Stream.of.apply(r.Stream,l).each((function(e,t){c=c.replace(new RegExp(["\\{",t,"\\}"].join(i.EMPTY_STR),"g"),e)})),c}function l(e,t,r,o,a,u){var l;return new Error(null!==(l=u+(null!=o?o:n)+a)&&void 0!==l?l:i.EMPTY_STR+arguments.caller.toString())}e.getLanguage=function(){var e,t,n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language;return n.split("-")[0]},e.failSaveResolve=function(e,t){return void 0===t&&(t=null),r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t){void 0===t&&(t=null),r.Lang.saveResolve(e,t)},e.getMessage=u,e.keyValToStr=function(e,t,n){return void 0===n&&(n="\n"),[e,t].join(n)},e.makeException=l,e.getGlobalConfig=function(e,t){var n,r,o;return null!==(o=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==o?o:t},e.getForm=function(e,t){var n=new r.DQ(e),o=new r.DQ((0,a.getEventTarget)(t));if(n.isTag(i.TAG_FORM))return n;if(n.attr(i.TAG_FORM).isPresent()){var s=n.attr(i.TAG_FORM).value,c=r.DQ.byId(s,!0);if(c.isPresent())return c}var f=n.parents(i.TAG_FORM).orElseLazy((function(){return n.byTagName(i.TAG_FORM,!0)})).orElseLazy((function(){return o.parents(i.TAG_FORM)})).orElseLazy((function(){return o.byTagName(i.TAG_FORM)})).first();return function(e){if(e.isAbsent())throw l(new Error,null,null,"Impl","getForm",u("ERR_FORM"))}(f),f},e.getLocalOrGlobalConfig=function(e,t,n){var r,o,i,a,u,l,s;return null!==(s=null!==(a=null===(i=null===(o=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===o?void 0:o.config)||void 0===i?void 0:i[t])&&void 0!==a?a:null===(l=null===(u=null===window||void 0===window?void 0:window.myfaces)||void 0===u?void 0:u.config)||void 0===l?void 0:l[t])&&void 0!==s?s:n}}(t.ExtLang||(t.ExtLang={}))},961:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=t.ErrorType=void 0;var i,a=n(29),u=n(740),l=n(756).ExtLang.getMessage;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientErrror",e.TIMEOUT="timeout"}(i=t.ErrorType||(t.ErrorType={}));var s=function(e){function t(t,n,r,o,a,u,l,s){void 0===o&&(o=null),void 0===a&&(a=null),void 0===u&&(u="200"),void 0===l&&(l="UNKNOWN"),void 0===s&&(s=i.CLIENT_ERROR);var c=e.call(this)||this;return c.type="error",c.source=t,c.type="error",c.errorName=n,c.message=c.errorMessage=r,c.responseCode=u,c.responseText=o,c.status=l,c.typeDetails=s,s==i.SERVER_ERROR&&(c.serverErrorName=c.errorName,c.serverErrorMessage=c.errorMessage),c}return o(t,e),t.fromClient=function(e){return new t("client",e.name,e.message,e.stack)},t.fromHttpConnection=function(e,n,r,o,a){return new t(e,n,r,o,a,null,"UNKNOWN",i.HTTP_ERROR)},t.fromGeneric=function(e,n,r){void 0===r&&(r=i.SERVER_ERROR);var o=this.getMsg,u=o(e,a.SOURCE),l=o(e,a.ERROR_NAME),s=o(e,a.ERROR_MESSAGE),c=o(e,a.STATUS);return new t(u,l,s,o(e,a.RESPONSE_TEXT),o(e,a.RESPONSE_XML),n+a.EMPTY_STR,c,r)},t.getMsg=function(e,t){return l(e.getIf(t).orElse(a.UNKNOWN).value)},t.fromServerError=function(e){return this.fromGeneric(e,-1)},t}(u.EventData);t.ErrorData=s},740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventData=void 0;var r=n(105),o=n(29),i=function(){function e(){}return e.createFromRequest=function(t,n,i){var a,u=new e;u.type=o.EVENT,u.status=i;var l=n.getIf(o.SOURCE).orElse(n.getIf(o.P_PARTIAL_SOURCE).value).orElse(n.getIf(o.CTX_PARAM_PASS_THR,o.P_PARTIAL_SOURCE).value).value;return l&&(u.source=r.DQ.byId(l,!0).first().value.value),i!==o.BEGIN&&(u.responseCode=null===(a=null==t?void 0:t.status)||void 0===a?void 0:a.toString(),u.responseText=null==t?void 0:t.responseText,u.responseXML=null==t?void 0:t.responseXML),u},e}();t.EventData=i},511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDefaults=t.getEventTarget=t.resolveWindowId=t.resolveDelay=t.resolveTimeout=t.resolveForm=t.resolveFinalUrl=t.resolveTargetUrl=t.resolveHandlerFunc=void 0;var r=n(105),o=n(29),i=n(756),a=n(44);function u(e){return void 0===e.elements[o.ENCODED_URL]?e.action:e.elements[o.ENCODED_URL].value}function l(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:a.ExtDomquery.windowId}t.resolveHandlerFunc=function(e,t,n){return t.getIf(n).orElse(e.getIf(n).value).orElse(o.EMPTY_FUNC).value},t.resolveTargetUrl=u,t.resolveFinalUrl=function(e,t,n){return void 0===n&&(n=o.REQ_TYPE_POST),u(e.getAsElem(0).value)+(n==o.REQ_TYPE_GET?"?"+t.toString():o.EMPTY_STR)},t.resolveForm=function(e,t,n){var a,u,l,s=null!==(l=null===(u=null===(a=e.value)||void 0===a?void 0:a.myfaces)||void 0===u?void 0:u.form)&&void 0!==l?l:o.MF_NONE;return r.DQ.byId(s,!0).orElseLazy((function(){return i.ExtLang.getForm(t.getAsElem(0).value,n)}))},t.resolveTimeout=function(e){var t,n=i.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(o.CTX_PARAM_TIMEOUT).value)&&void 0!==t?t:n(e.value,o.CTX_PARAM_TIMEOUT,0)},t.resolveDelay=function(e){var t,n=i.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(o.CTX_PARAM_DELAY).value)&&void 0!==t?t:n(e.value,o.CTX_PARAM_DELAY,0)},t.resolveWindowId=l,t.getEventTarget=function(e){for(var t,n,r=e,o=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;o&&1!=o.nodeType;)o=o.parentNode;return o},t.resolveDefaults=function(e,t,n){var o;void 0===t&&(t={}),void 0===n&&(n=null);var i=e,a=new r.Config(t).deepCopy,u=r.DQ.byId(n||i.target,!0);return{resolvedEvent:i,options:a,elem:u,elementId:u.id,requestCtx:new r.Config({}),internalCtx:new r.Config({}),windowId:l(a),isResetValues:!0===(null===(o=a.value)||void 0===o?void 0:o.resetValues)}}},117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSourceForm=t.resolveSourceElement=t.resolveContexts=t.resolveResponseXML=void 0;var r=n(105),o=n(83),i=n(105),a=n(29);t.resolveResponseXML=function(e){var t=new r.XMLQuery(e.getIf(a.SEL_RESPONSE_XML).value);return o.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){var t=r.Config.fromNullable(e),n=t.getIf(a.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=r.Config.fromNullable({})),n.assign(a.UPDATE_FORMS).value=[],n.assign(a.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){var n=function(e,t){return t.getIf(a.CTX_PARAM_SRC_CTL_ID).orElseLazy((function(){return e.getIf(a.SOURCE,"id").value}))}(e,t);return i.DQ.byId(n.value,!0)},t.resolveSourceForm=function(e,t){var n=e.getIf(a.CTX_PARAM_SRC_FRM_ID),r=new i.DQ(n.isPresent()?document.forms[n.value]:null);return r.orElse(t.parents(a.TAG_FORM)).orElse(t.querySelectorAll(a.TAG_FORM)).orElse(i.DQ.querySelectorAll(a.TAG_FORM))}},859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;var r=n(105),o=n(785),i=n(29),a=n(117);(t.Response||(t.Response={})).processResponse=function(e,t){var n=r.Config.fromNullable(e),u=(0,a.resolveContexts)(t),l=u.externalContext,s=u.internalContext,c=(0,a.resolveResponseXML)(n),f=new o.ResponseProcessor(n,l,s);s.assign(i.RESPONSE_XML).value=c,c.querySelectorAll(i.RESP_PARTIAL).each((function(e){return function(e,t,n){n.assign(i.PARTIAL_ID).value=e.id;var o=[i.CMD_ERROR,i.CMD_REDIRECT,i.CMD_CHANGES].join(",");e.getIf(o).each((function(e){switch(e.tagName.value){case i.CMD_ERROR:t.error(e);break;case i.CMD_REDIRECT:t.redirect(e);break;case i.CMD_CHANGES:!function(e,t){var n=[i.CMD_UPDATE,i.CMD_EVAL,i.CMD_INSERT,i.CMD_DELETE,i.CMD_ATTRIBUTES,i.CMD_EXTENSION].join(",");e.getIf(n).each((function(e){switch(e.tagName.value){case i.CMD_UPDATE:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){var n=e.cDATAAsString;switch(e.id.value){case i.P_VIEWROOT:t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("<html"))));break;case i.P_VIEWHEAD:t.replaceHead(r.DQ.fromMarkup(n));break;case i.P_VIEWBODY:t.replaceBody(r.DQ.fromMarkup(n));break;default:t.update(e,n)}}(e,t)}(e,t);break;case i.CMD_EVAL:t.eval(e);break;case i.CMD_INSERT:!function(e,t){t.querySelectorAll([i.TAG_BEFORE,i.TAG_AFTER].join(",")).length?e.insertWithSubtags(t):e.insert(t)}(t,e);break;case i.CMD_DELETE:t.delete(e);break;case i.CMD_ATTRIBUTES:t.attributes(e);case i.CMD_EXTENSION:}}))}(e,t)}}))}(e,f,s)})),f.fixViewStates(),f.fixClientWindow(),f.globalEval(),f.done()}},785:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseProcessor=void 0;var o=n(105),i=n(90),a=n(83),u=n(961),l=n(779),s=n(740),c=n(29),f=o.Lang.trim,p=function(){function e(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}return e.prototype.replaceHead=function(e){var t=e.querySelectorAll(c.TAG_HEAD);t.isPresent()&&(o.DQ.querySelectorAll(c.TAG_HEAD).querySelectorAll(c.SEL_SCRIPTS_STYLES).delete(),this.storeForEval(t))},e.prototype.replaceBody=function(e){var t=e.querySelectorAll(c.TAG_BODY);if(t.isPresent()){var n=t.html().value,r=o.DQ.querySelectorAll(c.TAG_BODY).html(n),i=r.querySelectorAll(c.TAG_FORM);r.copyAttrs(t),this.storeForPostProcessing(i,r)}},e.prototype.eval=function(e){o.DQ.globalEval(e.cDATAAsString)},e.prototype.error=function(e){var t=new o.Config({});t.assign(c.SOURCE).value=this.externalContext.getIf(c.P_PARTIAL_SOURCE).get(0).value,t.assign(c.ERROR_NAME).value=e.getIf(c.ERROR_NAME).textContent(c.EMPTY_STR),t.assign(c.ERROR_MESSAGE).value=e.getIf(c.ERROR_MESSAGE).cDATAAsString;var n=this.internalContext.get(c.RESPONSE_XML).isPresent();t.assignIf(n,c.RESPONSE_XML).value=this.internalContext.getIf(c.RESPONSE_XML).value.get(0).value;var r=u.ErrorData.fromServerError(t);this.externalContext.getIf(c.ON_ERROR).orElse(this.internalContext.getIf(c.ON_ERROR).value).orElse(c.EMPTY_FUNC).value(r),i.Implementation.sendError(r)},e.prototype.redirect=function(e){a.Assertions.assertUrlExists(e);var t=f(e.attr(c.ATTR_URL).value);t!=c.EMPTY_STR&&(window.location.href=t)},e.prototype.update=function(e,t){var n=o.DQ.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.parents(c.TAG_FORM).orElse(n.byTagName(c.TAG_FORM,!0));r&&this.storeForPostProcessing(r,n)},e.prototype.delete=function(e){o.DQ.byId(e.id.value,!0).delete()},e.prototype.attributes=function(e){var t=o.DQ.byId(e.id.value,!0);e.byTagName(c.TAG_ATTR).each((function(e){t.attr(e.attr(c.ATTR_NAME).value).value=e.attr(c.ATTR_VALUE).value}))},e.prototype.replaceViewRoot=function(e){this.replaceHead(e),this.replaceBody(e)},e.prototype.insert=function(e){var t=e.attr(c.TAG_BEFORE),n=e.attr(c.TAG_AFTER),r=o.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(o.DQ.byId(t.value,!0).insertBefore(r),this.internalContext.assign(c.UPDATE_ELEMS).value.push(r)),n.isPresent()&&(o.DQ.byId(n.value,!0).insertAfter(r),this.internalContext.assign(c.UPDATE_ELEMS).value.push(r))},e.prototype.insertWithSubtags=function(e){var t=this,n=e.querySelectorAll(c.TAG_BEFORE),r=e.querySelectorAll(c.TAG_AFTER);n.each((function(e){var n=e.attr(c.ATTR_ID),r=o.DQ.fromMarkup(e.cDATAAsString);n.isPresent()&&(o.DQ.byId(n.value,!0).insertBefore(r),t.internalContext.assign(c.UPDATE_ELEMS).value.push(r))})),r.each((function(e){var n=e.attr(c.ATTR_ID),r=o.DQ.fromMarkup(e.cDATAAsString);n.isPresent()&&(o.DQ.byId(n.value,!0).insertAfter(r),t.internalContext.assign(c.UPDATE_ELEMS).value.push(r))}))},e.prototype.processViewState=function(t){if(e.isViewStateNode(t)){var n=t.cDATAAsString;return this.internalContext.assign(c.APPLIED_VST,t.id.value).value=new l.StateHolder(t.id.value,n),!0}return!1},e.prototype.processClientWindow=function(t){if(e.isClientWindowNode(t)){var n=t.cDATAAsString;return this.internalContext.assign(c.APPLIED_CLIENT_WINDOW,t.id.value).value=new l.StateHolder(t.id.value,n),!0}},e.prototype.globalEval=function(){var e=new(o.DQ.bind.apply(o.DQ,r([void 0],this.internalContext.getIf(c.UPDATE_ELEMS).value,!1)));e.runCss(),e.runScripts()},e.prototype.fixViewStates=function(){var e=this;o.Stream.ofAssoc(this.internalContext.getIf(c.APPLIED_VST).orElse({}).value).each((function(t){var n=t[1],r=o.DQ.byId(n.nameSpace,!0).orElse(document.body),i=r.byTagName(c.TAG_FORM),a=r.filter((function(e){return e.tagName.orElse(c.EMPTY_STR).value.toLowerCase()==c.TAG_FORM}));e.appendViewStateToForms(new o.DomQuery(i,a),n.value)}))},e.prototype.fixClientWindow=function(){var e=this;o.Stream.ofAssoc(this.internalContext.getIf(c.APPLIED_CLIENT_WINDOW).orElse({}).value).each((function(t){var n=t[1],r=o.DQ.byId(n.nameSpace,!0).orElse(document.body),i=r.byTagName(c.TAG_FORM),a=r.filter((function(e){return e.tagName.orElse(c.EMPTY_STR).value.toLowerCase()==c.TAG_FORM}));e.appendClientWindowToForms(new o.DomQuery(i,a),n.value)}))},e.prototype.done=function(){var e=s.EventData.createFromRequest(this.request.value,this.externalContext,c.SUCCESS),t=this.externalContext.getIf(c.ON_EVENT).orElse(this.internalContext.getIf(c.ON_EVENT).value).orElse(c.EMPTY_FUNC).value;i.Implementation.sendEvent(e,t)},e.prototype.appendViewStateToForms=function(e,t){this.assignState(e,c.SEL_VIEWSTATE_ELEM,t)},e.prototype.appendClientWindowToForms=function(e,t){this.assignState(e,c.SEL_CLIENT_WINDOW_ELEM,t)},e.prototype.assignState=function(t,n,r){t.each((function(t){t.querySelectorAll(n).orElseLazy((function(){return e.newViewStateElement(t)})).attr("value").value=r}))},e.newViewStateElement=function(e){var t=o.DQ.fromMarkup(c.HTML_VIEWSTATE);return t.appendTo(e),t},e.prototype.storeForPostProcessing=function(e,t){this.storeForUpdate(e),this.storeForEval(t)},e.prototype.storeForUpdate=function(e){this.internalContext.assign(c.UPDATE_FORMS).value.push(e)},e.prototype.storeForEval=function(e){this.internalContext.assign(c.UPDATE_ELEMS).value.push(e)},e.isViewStateNode=function(e){var t,n,r,o,i,a,u=window.jsf.separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==c.P_VIEWSTATE||-1!=(null===(o=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===o?void 0:o.indexOf([u,c.P_VIEWSTATE].join(c.EMPTY_STR)))||-1!=(null===(a=null===(i=null==e?void 0:e.id)||void 0===i?void 0:i.value)||void 0===a?void 0:a.indexOf([c.P_VIEWSTATE,u].join(c.EMPTY_STR))))},e.isClientWindowNode=function(e){var t,n,r,o,i,a,u=window.jsf.separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==c.P_CLIENT_WINDOW||-1!=(null===(o=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===o?void 0:o.indexOf([u,c.P_CLIENT_WINDOW].join(c.EMPTY_STR)))||-1!=(null===(a=null===(i=null==e?void 0:e.id)||void 0===i?void 0:i.value)||void 0===a?void 0:a.indexOf([c.P_CLIENT_WINDOW,u].join(c.EMPTY_STR))))},e}();t.ResponseProcessor=p},913:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.XhrFormData=void 0;var a=n(105),u=n(105),l=a.Lang.isString,s=n(29),c=function(e){function t(t,n,r){void 0===r&&(r=!0);var o=e.call(this,{})||this;return o.dataSource=t,o.partialIdsArray=n,o.encode=r,o.fileInputs={},l(t)?o.assignEncodedString(o.dataSource):o.handleFormSource(),o}return o(t,e),t.prototype.applyFileInputs=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(t){if("@all"==t)return u.DQ.querySelectorAllDeep("input[type='file']");if("@form"==t)return e.dataSource.querySelectorAllDeep("input[type='file']");var n=u.DQ.byId(t,!0);return e.getFileInputs(n)},o=function(e){return!!e.length},i=function(t){e.fileInputs[e.resolveSubmitIdentifier(t.getAsElem(0).value)]=!0};a.LazyStream.of.apply(a.LazyStream,t).map(r).filter(o).each(i)},t.prototype.getFileInputs=function(e){var t=this;return e.lazyStream.map((function(n){var r;return 1==n.length?"input"==n.tagName.get("booga").value.toLowerCase()&&"file"==((null===(r=n.attr("type"))||void 0===r?void 0:r.value)||"").toLowerCase()?n:e.querySelectorAllDeep("input[type='file']"):t.getFileInputs(n)})).filter((function(e){return!!(null==e?void 0:e.length)})).collect(new a.DomQueryCollector)},t.prototype.handleFormSource=function(){this.encodeSubmittableFields(this,this.dataSource,this.partialIdsArray),this.getIf(s.P_VIEWSTATE).isPresent()||this.applyViewState(this.dataSource)},t.prototype.applyViewState=function(e){var t=e.byId(s.P_VIEWSTATE,!0).inputValue;this.appendIf(t.isPresent(),s.P_VIEWSTATE).value=t.value},t.prototype.assignEncodedString=function(e){var t=decodeURIComponent(e).split(/&/gi);this.assignString(t)},t.prototype.assignString=function(e){var t=new a.Config({});u.Stream.of.apply(u.Stream,e).map((function(e){return e.split(/=(.*)/gi)})).map((function(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e})).each((function(e){var n,r;t.append(e[0]).value=null!==(r=null===(n=null==e?void 0:e.splice(1))||void 0===n?void 0:n.join(""))&&void 0!==r?r:""})),this.shallowMerge(t)},t.prototype.toFormData=function(){var e=this,t=new FormData;return a.LazyStream.of.apply(a.LazyStream,Object.keys(this.value)).filter((function(t){return!(t in e.fileInputs)})).each((function(n){u.Stream.of.apply(u.Stream,e.value[n]).each((function(e){return t.append(n,e)}))})),u.Stream.of.apply(u.Stream,Object.keys(this.fileInputs)).each((function(n){u.DQ.querySelectorAllDeep("[name='".concat(n,"'], [id=\"").concat(n,'"]')).eachElem((function(n){var r,o=e.resolveSubmitIdentifier(n);(null===(r=null==n?void 0:n.files)||void 0===r?void 0:r.length)?t.append(o,n.files[0]):t.append(o,n.value)}))})),t},t.prototype.resolveSubmitIdentifier=function(e){var t,n=e.name;return""==(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"").replace(/s+/gi,"")?e.id:n},t.prototype.toString=function(e){var t=this;return void 0===e&&(e=s.EMPTY_STR),this.isAbsent()?e:a.LazyStream.of.apply(a.LazyStream,Object.keys(this.value)).filter((function(e){return t.value.hasOwnProperty(e)})).flatMap((function(e){return u.Stream.of.apply(u.Stream,t.value[e]).map((function(t){return[e,t]})).collect(new a.ArrayCollector)})).map((function(e){return"".concat(encodeURIComponent(e[0]),"=").concat(encodeURIComponent(e[1]))})).collect(new a.ArrayCollector).join("&")},t.prototype.encodeSubmittableFields=function(e,t,n){var r=null;if(this.partialIdsArray&&this.partialIdsArray.length)this._value={},r=new(u.DQ.bind.apply(u.DQ,i([void 0],this.partialIdsArray,!1)));else{if(t.isAbsent())throw"NO_PARITEM";r=t}this.shallowMerge(r.deepElements.encodeFormElement())},Object.defineProperty(t.prototype,"isMultipartRequest",{get:function(){return!!Object.keys(this.fileInputs).length},enumerable:!1,configurable:!0}),t}(a.Config);t.XhrFormData=c},525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequest=void 0;var r=n(105),o=n(90),i=n(913),a=n(961),u=n(740),l=n(756),s=n(29),c=n(511),f=l.ExtLang.failSaveExecute,p=function(){function e(e,t,n,r,o,i,a,u,l){void 0===o&&(o=[]),void 0===i&&(i=s.NO_TIMEOUT),void 0===a&&(a=s.REQ_TYPE_POST),void 0===u&&(u=s.URL_ENCODED),void 0===l&&(l=new XMLHttpRequest);var c=this;this.source=e,this.sourceForm=t,this.requestContext=n,this.internalContext=r,this.partialIdsArray=o,this.timeout=i,this.ajaxType=a,this.contentType=u,this.xhrObject=l,this.stopProgress=!1,this.catchFuncs=[],this.thenFunc=[],this.registerXhrCallbacks((function(e){c.resolve(e)}),(function(e){c.reject(e)}))}return e.prototype.start=function(){var e=this,t=f,n=this.xhrObject;try{var r=this.sourceForm.getAsElem(0).value,o=jsf.getViewState(r),a=new i.XhrFormData(this.sourceForm);a.assignEncodedString(o),a.applyFileInputs.apply(a,e.requestContext.getIf(s.CTX_PARAM_PASS_THR,s.P_EXECUTE).get("none").value.split(/\s+/gi)),this.contentType=a.isMultipartRequest?"undefined":this.contentType;var u=this.requestContext,l=u.getIf(s.CTX_PARAM_PASS_THR);a.shallowMerge(l,!0,!0),this.responseContext=l.deepCopy;var p=this.responseContext;p.assign(s.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,p.assign(s.ON_EVENT).value=u.getIf(s.ON_EVENT).value,p.assign(s.ON_ERROR).value=u.getIf(s.ON_ERROR).value,n.open(this.ajaxType,(0,c.resolveFinalUrl)(this.sourceForm,a,this.ajaxType),!0),this.timeout&&(n.timeout=this.timeout),"undefined"!=this.contentType&&t((function(){return n.setRequestHeader(s.CONTENT_TYPE,"".concat(e.contentType,"; charset=utf-8"))})),t((function(){return n.setRequestHeader(s.HEAD_FACES_REQ,s.VAL_AJAX)})),t((function(){return n.setRequestHeader(s.REQ_ACCEPT,s.STD_ACCEPT)})),this.sendEvent(s.BEGIN),this.sendRequest(a)}catch(e){this.handleError(e)}return this},e.prototype.cancel=function(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}},e.prototype.resolve=function(e){r.Stream.of.apply(r.Stream,this.thenFunc).reduce((function(e,t){return t(e)}),e)},e.prototype.reject=function(e){r.Stream.of.apply(r.Stream,this.catchFuncs).reduce((function(e,t){return t(e)}),e)},e.prototype.catch=function(e){return this.catchFuncs.push(e),this},e.prototype.finally=function(e){return this.catchFuncs.push(e),this.thenFunc.push(e),this},e.prototype.then=function(e){return this.thenFunc.push(e),this},e.prototype.registerXhrCallbacks=function(e,t){var n=this,r=this.xhrObject;r.onabort=function(){n.onAbort(e,t)},r.ontimeout=function(){n.onTimeout(e,t)},r.onload=function(){n.onSuccess(n.xhrObject,e,t)},r.onloadend=function(){n.onDone(n.xhrObject,e,t)},r.onerror=function(r){n.onError(r,e,t)}},e.prototype.onAbort=function(e,t){t()},e.prototype.onTimeout=function(e,t){this.sendEvent(s.STATE_EVT_TIMEOUT),t()},e.prototype.onSuccess=function(e,t,n){var r,o;this.sendEvent(s.COMPLETE),(null===(r=null==this?void 0:this.xhrObject)||void 0===r?void 0:r.responseXML)?jsf.ajax.response(this.xhrObject,null!==(o=this.responseContext.value)&&void 0!==o?o:{}):this.handleMalFormedXML(t)},e.prototype.handleMalFormedXML=function(e){var t;this.stopProgress=!0;var n={type:s.ERROR,status:s.MALFORMEDXML,responseCode:200,responseText:null===(t=this.xhrObject)||void 0===t?void 0:t.responseText,source:{id:this.source.id.value}};try{o.Implementation.sendError(n)}finally{e(n)}},e.prototype.onDone=function(e,t,n){this.stopProgress||t(e)},e.prototype.onError=function(e,t,n){this.handleError(e),n()},e.prototype.sendEvent=function(e){var t=u.EventData.createFromRequest(this.xhrObject,this.requestContext,e);try{var n=(0,c.resolveHandlerFunc)(this.requestContext,this.responseContext,s.ON_EVENT);o.Implementation.sendEvent(t,n)}catch(e){throw this.handleError(e),e}},e.prototype.handleError=function(e){var t=a.ErrorData.fromClient(e),n=(0,c.resolveHandlerFunc)(this.requestContext,this.responseContext,s.ON_ERROR);o.Implementation.sendError(t,n)},e.prototype.sendRequest=function(e){var t=this.ajaxType!=s.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)},e}();t.XhrRequest=p}},t={},n=function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(957),r=window;for(var o in n)r[o]=n[o];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
2
+ //# sourceMappingURL=jsf.js.map
3
+ //# sourceMappingURL=jsf.js.map.jsf?ln=scripts
Binary file
Binary file
package/webpack.config.ts CHANGED
@@ -17,8 +17,6 @@
17
17
  import * as webpack from 'webpack';
18
18
  import * as path from 'path'
19
19
 
20
- let CompressionPlugin = require('compression-webpack-plugin');
21
-
22
20
 
23
21
 
24
22
  /**
@@ -70,27 +68,7 @@ function build(env: {[key:string]: string}, argv: {[key:string]: string}) {
70
68
  }]
71
69
  }
72
70
  ]
73
- },
74
-
75
-
76
- plugins: [
77
-
78
- new CompressionPlugin({
79
- filename: '[name].js.gz[query]',
80
- algorithm: 'gzip',
81
- test: /\.js$|\.css$|\.html$|\.eot?.+$|\.ttf?.+$|\.woff?.+$|\.svg?.+$/,
82
- threshold: 10240,
83
- minRatio: 0.3
84
-
85
- }),
86
- new CompressionPlugin({
87
- filename: '[name].js.br[query]',
88
- algorithm: 'brotliCompress',
89
- test: /\.(js|css|html|svg)$/,
90
- threshold: 10240,
91
- minRatio: 0.8
92
- })
93
- ]
71
+ }
94
72
  }
95
73
  return config;
96
74
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/webpack.config.js DELETED
@@ -1,71 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- var path = require("path");
4
- var CompressionPlugin = require('compression-webpack-plugin');
5
- /**
6
- * we need to define the export in a function
7
- * because the mode parameter is passed down via the argv
8
- *
9
- * @param env the environment
10
- * @param argv the arguments list
11
- */
12
- function build(env, argv) {
13
- var _a;
14
- var libraryTarget = (_a = env.TARGET_TYPE) !== null && _a !== void 0 ? _a : "window";
15
- var config = {
16
- context: __dirname,
17
- entry: {
18
- jsf: "./src/main/typescript/api/jsf.ts",
19
- faces: "./src/main/typescript/api/faces.ts"
20
- },
21
- devtool: "source-map",
22
- output: {
23
- path: path.resolve(__dirname, './dist/' + libraryTarget),
24
- libraryTarget: libraryTarget,
25
- filename: (argv.mode == "production") ? "[name].js" : "[name]-development.js"
26
- },
27
- resolve: {
28
- extensions: [".tsx", ".ts", ".json"],
29
- alias: {
30
- /*we load the reduced core, because there are some parts we simply do not need*/
31
- //"mona-dish": path.resolve(__dirname, "node_modules/mona-dish/dist/js/commonjs/index_core.js")
32
- "mona-dish": path.resolve(__dirname, "node_modules/mona-dish/src/main/typescript/index_core.ts")
33
- }
34
- },
35
- externals: {
36
- "rxjs": "RxJS"
37
- },
38
- module: {
39
- rules: [
40
- // all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
41
- {
42
- test: /\.tsx?$/, use: [{
43
- loader: "ts-loader",
44
- options: {
45
- allowTsInNodeModules: true
46
- }
47
- }]
48
- }
49
- ]
50
- },
51
- plugins: [
52
- new CompressionPlugin({
53
- filename: '[name].js.gz[query]',
54
- algorithm: 'gzip',
55
- test: /\.js$|\.css$|\.html$|\.eot?.+$|\.ttf?.+$|\.woff?.+$|\.svg?.+$/,
56
- threshold: 10240,
57
- minRatio: 0.3
58
- }),
59
- new CompressionPlugin({
60
- filename: '[name].js.br[query]',
61
- algorithm: 'brotliCompress',
62
- test: /\.(js|css|html|svg)$/,
63
- threshold: 10240,
64
- minRatio: 0.8
65
- })
66
- ]
67
- };
68
- return config;
69
- }
70
- exports["default"] = build;
71
- //# sourceMappingURL=webpack.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["webpack.config.ts"],"names":[],"mappings":";;AAiBA,2BAA4B;AAE5B,IAAI,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAI9D;;;;;;GAMG;AACH,SAAS,KAAK,CAAC,GAA2B,EAAE,IAA4B;;IAEpE,IAAI,aAAa,GAAG,MAAA,GAAG,CAAC,WAAW,mCAAI,QAAQ,CAAC;IAEhD,IAAM,MAAM,GAA0B;QAClC,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE;YACH,GAAG,EAAE,kCAAkC;YACvC,KAAK,EAAE,oCAAoC;SAC9C;QACD,OAAO,EAAE,YAAY;QAErB,MAAM,EAAE;YACJ,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,CAAC;YACxD,aAAa,EAAE,aAAa;YAC5B,QAAQ,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,uBAAuB;SAChF;QAED,OAAO,EAAE;YACL,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC;YACpC,KAAK,EAAE;gBACH,gFAAgF;gBAChF,+FAA+F;gBAC/F,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,0DAA0D,CAAC;aACnG;SACJ;QACD,SAAS,EAAE;YACP,MAAM,EAAE,MAAM;SACjB;QAED,MAAM,EAAE;YACJ,KAAK,EAAE;gBACH,4EAA4E;gBAC5E;oBACI,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;4BACnB,MAAM,EAAE,WAAW;4BACnB,OAAO,EAAE;gCACL,oBAAoB,EAAE,IAAI;6BAC7B;yBACJ,CAAC;iBACL;aACJ;SACJ;QAGD,OAAO,EAAE;YAEJ,IAAI,iBAAiB,CAAC;gBACnB,QAAQ,EAAE,qBAAqB;gBAC/B,SAAS,EAAE,MAAM;gBACjB,IAAI,EAAE,+DAA+D;gBACrE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,GAAG;aAEhB,CAAC;YACF,IAAI,iBAAiB,CAAC;gBAClB,QAAQ,EAAE,qBAAqB;gBAC/B,SAAS,EAAE,gBAAgB;gBAC3B,IAAI,EAAE,sBAAsB;gBAC5B,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,GAAG;aAChB,CAAC;SACL;KACJ,CAAA;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,qBAAe,KAAK,CAAC"}