girder-slicer-cli-web 5.0.16.dev2__tar.gz → 5.0.17.dev2__tar.gz

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 (75) hide show
  1. {girder_slicer_cli_web-5.0.16.dev2/girder_slicer_cli_web.egg-info → girder_slicer_cli_web-5.0.17.dev2}/PKG-INFO +1 -1
  2. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2/girder_slicer_cli_web.egg-info}/PKG-INFO +1 -1
  3. girder_slicer_cli_web-5.0.17.dev2/girder_slicer_cli_web.egg-info/scm_version.json +8 -0
  4. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/web_client/dist/girder-plugin-slicer-cli-web.umd.cjs +2 -2
  5. girder_slicer_cli_web-5.0.16.dev2/girder_slicer_cli_web.egg-info/scm_version.json +0 -8
  6. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/MANIFEST.in +0 -0
  7. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/README.rst +0 -0
  8. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/docs/worker_management.rst +0 -0
  9. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/.dockerignore +0 -0
  10. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/Dockerfile +0 -0
  11. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/README.rst +0 -0
  12. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/average_color/average_color.py +0 -0
  13. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/average_color/average_color.xml +0 -0
  14. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/cli_list.json +0 -0
  15. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-average-color/cli_list.py +0 -0
  16. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/Dockerfile +0 -0
  17. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/README.rst +0 -0
  18. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/cli_list.json +0 -0
  19. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/cli_list.py +0 -0
  20. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/girder_requests/girder_requests.py +0 -0
  21. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/example-girder-requests/girder_requests/girder_requests.xml +0 -0
  22. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/SOURCES.txt +0 -0
  23. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/dependency_links.txt +0 -0
  24. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/entry_points.txt +0 -0
  25. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/not-zip-safe +0 -0
  26. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/requires.txt +0 -0
  27. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/scm_file_list.json +0 -0
  28. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/girder_slicer_cli_web.egg-info/top_level.txt +0 -0
  29. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/pyproject.toml +0 -0
  30. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/setup.cfg +0 -0
  31. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/setup.py +0 -0
  32. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/__init__.py +0 -0
  33. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/cli_list_entrypoint.py +0 -0
  34. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/cli_utils.py +0 -0
  35. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/config.py +0 -0
  36. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/ctk_cli_adjustment.py +0 -0
  37. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/docker_resource.py +0 -0
  38. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/girder_plugin.py +0 -0
  39. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/girder_worker_plugin/__init__.py +0 -0
  40. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/girder_worker_plugin/cli_progress.py +0 -0
  41. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/girder_worker_plugin/direct_docker_run.py +0 -0
  42. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/image_job.py +0 -0
  43. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/__init__.py +0 -0
  44. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/docker_image.py +0 -0
  45. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/exceptions.py +0 -0
  46. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/json_to_xml.py +0 -0
  47. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/parser.py +0 -0
  48. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/models/schema.json +0 -0
  49. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/prepare_task.py +0 -0
  50. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/rest_slicer_cli.py +0 -0
  51. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/upload_slicer_cli_task.py +0 -0
  52. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/web_client/dist/style.css +0 -0
  53. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/slicer_cli_web/worker_tools.py +0 -0
  54. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/.dockerignore +0 -0
  55. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Dockerfile +0 -0
  56. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example1/Example1.json +0 -0
  57. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example1/Example1.py +0 -0
  58. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example1/Example1.xml +0 -0
  59. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example1/Example1.yaml +0 -0
  60. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example2/Example2.json +0 -0
  61. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example2/Example2.py +0 -0
  62. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example2/Example2.xml +0 -0
  63. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example2/Example2.yaml +0 -0
  64. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example3/Example3.json +0 -0
  65. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example3/Example3.py +0 -0
  66. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example3/Example3.xml +0 -0
  67. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/Example3/Example3.yaml +0 -0
  68. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/ExampleProgress/ExampleProgress.json +0 -0
  69. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/ExampleProgress/ExampleProgress.py +0 -0
  70. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/ExampleProgress/progress_helper.py +0 -0
  71. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/ExampleSubJob/ExampleSubJob.json +0 -0
  72. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/ExampleSubJob/ExampleSubJob.py +0 -0
  73. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/cli_list.json +0 -0
  74. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/small-docker/cli_list.py +0 -0
  75. {girder_slicer_cli_web-5.0.16.dev2 → girder_slicer_cli_web-5.0.17.dev2}/utils/xmltojson.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: girder-slicer-cli-web
3
- Version: 5.0.16.dev2
3
+ Version: 5.0.17.dev2
4
4
  Summary: A girder plugin for exposing slicer CLIs over the web
5
5
  Home-page: https://github.com/girder/slicer_cli_web
6
6
  Author: Kitware, Inc.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: girder-slicer-cli-web
3
- Version: 5.0.16.dev2
3
+ Version: 5.0.17.dev2
4
4
  Summary: A girder plugin for exposing slicer CLIs over the web
5
5
  Home-page: https://github.com/girder/slicer_cli_web
6
6
  Author: Kitware, Inc.
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "5.0.16",
3
+ "distance": 2,
4
+ "node": "gbbde904298a2b316abf59c580e55366d06d5ea63",
5
+ "dirty": false,
6
+ "branch": "master",
7
+ "node_date": "2026-08-18"
8
+ }
@@ -5,10 +5,10 @@
5
5
  <strong>Job submitted</strong>. <br>
6
6
  Check the <a href="${_().replace(/\/$/,``).replace(/\/[^/]+$/,``).replace(/\/[^/]+$/,``)}/#job/${e._id}" class="alert-link">Job status</a>.
7
7
  </div>`);g(`#g-alerts-container`).append(t),t.fadeIn(500),window.setTimeout(()=>{t.fadeOut(750,()=>t.remove())},2e4)}var y=girder.$,b=girder.views.View,x=girder.events,S=girder.rest.restRequest,C=girder.views.widgets.BrowserWidget,w=girder.views.widgets.PluginConfigBreadcrumbWidget,T=b.extend({events:{"submit #g-slicer-cli-web-form"(e){e.preventDefault(),this.$(`#g-slicer-cli-web-error-message`).empty(),this._saveSettings([{key:`slicer_cli_web.task_folder`,value:this.$(`#g-slicer-cli-web-upload-folder`).val()},{key:`slicer_cli_web.worker_config_item`,value:this.$(`#g-slicer-cli-web-worker-config-item`).val()}])},"submit #g-slicer-cli-web-upload-form"(e){e.preventDefault(),this.$(`#g-slicer-cli-web-error-upload-message`).empty(),this._uploadImage(y(`#g-slicer-cli-web-image`).val(),y(`#g-slicer-cli-web-folder`).val())},"click .g-open-browser":`_openBrowser`,"click .g-open-local-browser":`_openLocalBrowser`,"click .g-open-item-browser":`_openItemBrowser`},initialize(){this._browserWidgetView=new C({parentView:this,titleText:`Task Upload Folder`,helpText:`Browse to a location to select it as the upload folder.`,submitText:`Select Folder`,validate(e){let t=y.Deferred();return e?e.get(`_modelType`)!==`folder`&&!this.showItems?t.reject(`Please select a folder.`):e.get(`_modelType`)!==`item`&&this.showItems?t.reject(`Please select an item.`):t.resolve():t.reject(`Please select a valid root.`),t.promise()},rootSelectorSettings:{pageLimit:1e3}}),this.listenTo(this._browserWidgetView,`g:saved`,e=>{this.$(this._destination).val(e.id),this._altdestination&&this.$(this._altdestination).val(e.id)}),T.getSettings().then(e=>(this.settings=e,this.render(),null))},render(){return this.$el.html(h({settings:this.settings})),this.breadcrumb||=new w({pluginName:`Slicer CLI Web`,el:this.$(`.g-config-breadcrumb-container`),parentView:this}).render(),this},_uploadImage(e,t){let n=e.split(`,`).map(e=>e.trim()).filter(e=>e.length>0);return S({method:`PUT`,url:`slicer_cli_web/docker_image`,data:{name:JSON.stringify(n),folder:t},error:null}).done(e=>{v(e)}).fail(e=>{this.$(`#g-slicer-cli-web-error-upload-message`).text(e.responseJSON.message)})},_openBrowser(){this._destination=`#g-slicer-cli-web-upload-folder`,this._altdestination=`#g-slicer-cli-web-folder`,this._browserWidgetView.titleText=`Task Upload Folder`,this._browserWidgetView.helpText=`Browse to a location to select it as the upload folder.`,this._browserWidgetView.submitText=`Select Folder`,this._browserWidgetView.showItems=!1,this._browserWidgetView.selectItem=!1,this._browserWidgetView.setElement(y(`#g-dialog-container`)).render()},_openLocalBrowser(){this._destination=`#g-slicer-cli-web-folder`,this._altdestination=null,this._browserWidgetView.titleText=`Task Upload Folder`,this._browserWidgetView.helpText=`Browse to a location to select it as the upload folder.`,this._browserWidgetView.submitText=`Select Folder`,this._browserWidgetView.showItems=!1,this._browserWidgetView.selectItem=!1,this._browserWidgetView.setElement(y(`#g-dialog-container`)).render()},_openItemBrowser(){this._destination=`#g-slicer-cli-web-worker-config-item`,this._altdestination=null,this._browserWidgetView.titleText=`Worker Configuration Item`,this._browserWidgetView.helpText=`Select an item with a specification for worker management.`,this._browserWidgetView.submitText=`Select Item`,this._browserWidgetView.showItems=!0,this._browserWidgetView.selectItem=!0,this._browserWidgetView.setElement(y(`#g-dialog-container`)).render()},_saveSettings(e){return S({method:`PUT`,url:`system/setting`,data:{list:JSON.stringify(e)},error:null}).done(()=>{T.clearSettingsCache(),x.trigger(`g:alert`,{icon:`ok`,text:`Settings saved.`,type:`success`,timeout:4e3})}).fail(e=>{this.$(`#g-slicer-cli-web-error-message`).text(e.responseJSON.message)})}},{clearSettingsCache(){delete T.settings},getSettings(){return T.settings||=S({method:`GET`,url:`system/setting`,data:{list:JSON.stringify([`slicer_cli_web.task_folder`,`slicer_cli_web.worker_config_item`])}}).then(e=>({task_folder:e[`slicer_cli_web.task_folder`],worker_config_item:e[`slicer_cli_web.worker_config_item`]})),T.settings}}),E=girder.events,ee=girder.router,{exposePluginConfig:te}=girder.utilities.PluginUtils;te(`slicer_cli_web`,`plugins/slicer_cli_web/config`),ee.route(`plugins/slicer_cli_web/config`,`slicerCLIWebConfig`,()=>{E.trigger(`g:navigateTo`,T)});var D=u(s(((e,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4);return .2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=ae(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(A(this._r,255)*100)+`%`,g:a(A(this._g,255)*100)+`%`,b:a(A(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(A(this._r,255)*100)+`%, `+a(A(this._g,255)*100)+`%, `+a(A(this._b,255)*100)+`%)`:`rgba(`+a(A(this._r,255)*100)+`%, `+a(A(this._g,255)*100)+`%, `+a(A(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:k[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(ne,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(ee,arguments)},tetrad:function(){return this._applyCombination(te,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r===`a`?e[r]:le(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=I(e)),typeof e==`object`&&(F(e.r)&&F(e.g)&&F(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):F(e.h)&&F(e.s)&&F(e.v)?(r=le(e.s),i=le(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):F(e.h)&&F(e.s)&&F(e.l)&&(r=le(e.s),a=le(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=ae(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:A(e,255)*255,g:A(t,255)*255,b:A(n,255)*255}}function f(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=A(e,360),t=A(t,100),n=A(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=A(t,360)*6,n=A(n,100),r=A(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[M(a(e).toString(16)),M(a(t).toString(16)),M(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[M(a(e).toString(16)),M(a(t).toString(16)),M(a(n).toString(16)),M(N(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){return[M(N(r)),M(a(e).toString(16)),M(a(t).toString(16)),M(a(n).toString(16))].join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=oe(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=oe(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=oe(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=oe(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function ee(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function te(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function O(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function ne(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100;return l({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a=!1;switch(i=de(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var re=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},k=l.hexNames=ie(re);function ie(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ae(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(t,n){se(t)&&(t=`100%`);var r=ce(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function oe(e){return o(1,s(0,e))}function j(e){return parseInt(e,16)}function se(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function ce(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function M(e){return e.length==1?`0`+e:``+e}function le(e){return e<=1&&(e=e*100+`%`),e}function N(t){return e.round(parseFloat(t)*255).toString(16)}function ue(e){return j(e)/255}var P=(function(){var e=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,t=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`,n=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(e),rgb:RegExp(`rgb`+t),rgba:RegExp(`rgba`+n),hsl:RegExp(`hsl`+t),hsla:RegExp(`hsla`+n),hsv:RegExp(`hsv`+t),hsva:RegExp(`hsva`+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function F(e){return!!P.CSS_UNIT.exec(e)}function I(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(re[e])e=re[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=P.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=P.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=P.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=P.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=P.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=P.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=P.hex8.exec(e))?{r:j(i[1]),g:j(i[2]),b:j(i[3]),a:ue(i[4]),format:t?`name`:`hex8`}:(i=P.hex6.exec(e))?{r:j(i[1]),g:j(i[2]),b:j(i[3]),format:t?`name`:`hex`}:(i=P.hex4.exec(e))?{r:j(i[1]+``+i[1]),g:j(i[2]+``+i[2]),b:j(i[3]+``+i[3]),a:ue(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=P.hex3.exec(e))?{r:j(i[1]+``+i[1]),g:j(i[2]+``+i[2]),b:j(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function de(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)}))(),1),O=girder._,ne=girder.Backbone,re=ne.Model.extend({defaults:{type:``,title:``,description:``,value:``,values:[]},initialize(e){this.set(O.defaults(e||{},this.defaults))},set(e,t){let n,r;if(O.isString(e)&&(n=e,r=t,t=arguments[2],e={},e[n]=r),O.has(e,`value`))try{e.value=this.normalize(e.value)}catch{console.warn(`Could not normalize value "`+e.value+`"`)}if(O.has(e,`values`))try{e.values=O.map(e.values,O.bind(this.normalize,this))}catch{console.warn(`Could not normalize value in "`+e.values+`"`)}return ne.Model.prototype.set.call(this,e,t)},normalize(e){return this.isVector()?this._normalizeVector(e):this._normalizeValue(e)},_normalizeVector(e){return e===``?e=[]:O.isString(e)&&(e=e.split(`,`)),e.map(e=>this._normalizeValue(e))},_normalizeValue(e){return this.isNumeric()?e=parseFloat(e):this.isInteger()?e=parseInt(e):this.isBoolean()?e=!!e:this.isColor()?(Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2]}),e=(0,D.default)(e).toHexString()):this.isGirderModel()||(e=e.toString()),e},validate(e){return O.contains(this.types,e.type)?this.isVector()?this._validateVector(e.value):this.isGirderModel()?this._validateGirderModel(e):this._validateValue(e.value):`Invalid type, "`+e.type+`"`},_validateValue(e){let t;return this.isNumeric()?t=this._validateNumeric(e):this.isInteger()&&(t=this._validateInteger(e)),this.isEnumeration()&&!O.contains(this.get(`values`),this.normalize(e))&&(t=`Invalid value choice`),t},_validateVector(e){e=this.normalize(e);let t=O.chain(e).map(O.bind(this._validateValue,this)).reject(O.isUndefined).value();return t=t.length===0?void 0:t.join(`
8
- `),t},_validateNumeric(e){let t=parseFloat(this.get(`min`)),n=parseFloat(this.get(`max`)),r=parseFloat(this.get(`step`));if(!isFinite(e))return`Invalid number "`+e+`"`;if(e<t||e>n)return`Value out of range [`+[t,n]+`]`;t||=0;let i=(e-t)/(r||1);if(r>0&&Math.abs(Math.round(i)-i)>1e-6)return`Value does not satisfy step "`+r+`"`},_validateInteger(e){let t=parseInt(this.get(`min`)),n=parseInt(this.get(`max`)),r=parseInt(this.get(`step`));if(!isFinite(e))return`Invalid integer "${e}"`;if(e<t||e>n)return`Value out of range [${t}, ${n}]]`;if(t||=0,r>0&&(e-t)%(r||1))return`Value does not satisfy step "${r}"`},_validateGirderModel(e){if(!e.value||e.value.get&&!e.value.get(`name`))return this.get(`required`)?`Empty value`:void 0;switch(this.get(`type`)){case`new-file`:if(!e.value.get)break;if(!e.parent||e.parent.resourceName!==`folder`)return`Invalid parent model`}},isNumeric(){return O.contains([`range`,`number`,`number-vector`,`number-enumeration`,`region`],this.get(`type`))},isInteger(){return this.get(`type`)===`integer`},isBoolean(){return this.get(`type`)===`boolean`},isVector(){return O.contains([`number-vector`,`string-vector`,`region`],this.get(`type`))},isColor(){return this.get(`type`)===`color`},isEnumeration(){return O.contains([`number-enumeration`,`string-enumeration`],this.get(`type`))},isGirderModel(){return O.contains([`directory`,`file`,`item`,`new-file`,`image`,`multi`],this.get(`type`))},isFile(){return this.get(`type`)===`file`},isItem(){return this.get(`type`)===`item`},value(){return this.get(`value`)},types:[`color`,`range`,`number`,`boolean`,`string`,`integer`,`number-vector`,`string-vector`,`number-enumeration`,`string-enumeration`,`file`,`item`,`directory`,`multi`,`new-file`,`image`,`region`]}),k=girder.Backbone.Collection.extend({model:re,values(){let e={};return this.each(t=>{switch(t.get(`type`)){case`file`:case`item`:case`image`:case`directory`:e[t.id]=t.value().id;break;case`multi`:case`new-file`:t&&t.value&&t.value()&&t.value().get&&(e[t.id+`_folder`]=t.value().get(`folderId`),e[t.id]=t.value().get(`name`));break;case`string`:case`boolean`:case`integer`:case`float`:case`double`:case`string-enumeration`:e[t.id]=t.value();break;default:e[t.id]=JSON.stringify(t.value())}}),e}});function ie(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=se(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function ae(e,t){var n=``;for(var r in e)if(ce.call(e,r)){var i=e[r];if(r===`class`){i=A(i),n=ie(r,i,!1,t)+n;continue}r===`style`&&(i=N(i)),n+=ie(r,i,!1,t)}return n}function A(e,t){return Array.isArray(e)?oe(e,t):e&&typeof e==`object`?j(e):e||``}function oe(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=A(e[o]))&&(a&&t[o]&&(n=se(n)),r=r+i+n,i=` `);return r}function j(e){var t=``,n=``;for(var r in e)r&&e[r]&&ce.call(e,r)&&(t=t+n+r,n=` `);return t}function se(e){var t=``+e,n=M.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var ce=Object.prototype.hasOwnProperty,M=/["&<>]/;function le(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=le(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=N(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=N(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function N(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)ce.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function ue(e){var t=``,n=e||{};return(function(e,n,r,i,a,o){t=t+`<div`+(` class="s-panel-title-container"`+ie(`title`,r||``,!0,!1))+`><span class="s-panel-title">`+se(o??``)+`</span><span class="s-panel-controls">`,t+=n?`<i class="icon-down-open"></i>`:`<i class="icon-up-open"></i>`,a&&(t=t+`<i`+(` class="icon-cancel s-remove-panel s-no-panel-toggle"`+ie(`data-target`,`#${i}`,!0,!1))+`></i>`),t+=`</span></div>`;var e={};n||(e.class=`in`),t=t+`<div`+ae(le([{class:`s-panel-content collapse`},e]),!1)+`></div>`}).call(this,`attrs`in n?n.attrs:typeof attrs<`u`?attrs:void 0,`collapsed`in n?n.collapsed:typeof collapsed<`u`?collapsed:void 0,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`removeButton`in n?n.removeButton:typeof removeButton<`u`?removeButton:void 0,`title`in n?n.title:typeof title<`u`?title:void 0),t}var P=girder.$,F=girder.views.View.extend({events:{"show.bs.collapse":`expand`,"hide.bs.collapse":`collapse`,"click .s-panel-title-container":`_handleTitleClick`},initialize(e){this.spec=e.spec},render(){return this.$el.html(ue(this.spec)),this.$(`.s-panel-content`).collapse({toggle:!1}),this},expand(e){P(e.target).hasClass(`s-panel-content`)&&this.$(`.s-panel-controls .icon-down-open`).attr(`class`,`icon-up-open`)},collapse(e){P(e.target).hasClass(`s-panel-content`)&&this.$(`.s-panel-controls .icon-up-open`).attr(`class`,`icon-down-open`)},_handleTitleClick(e){P(e.target).closest(`.s-no-panel-toggle`).length||(e.stopImmediatePropagation(),this.$(`.s-panel-content`).collapse(`toggle`))}}),I=girder.$,de=girder._,fe=girder.views.widgets.BrowserWidget,pe=girder.models.FileModel,L=girder.models.ItemModel,{restRequest:me}=girder.rest,{getCurrentUser:he}=girder.auth,ge=fe.extend({initialize(e){this.model||=new L;let t=this.model.get(`type`);switch(e.showItems=!0,e.submitText=`Confirm`,e.validate=e=>this._validateModel(e),!e.defaultSelectedResource&&!(e.rootSelectorSettings&&e.rootSelectorSettings.selectByResource)&&(e.root=e.rootPath||he()),e.root===!1&&!e.defaultSelectedResource&&(e.root=null),e.paginated=!0,t){case`directory`:e.titleText=`Select a directory`;break;case`file`:e.titleText=`Select a file`,e.selectItem=!0,e.showPreview=!1;break;case`image`:e.titleText=`Select an image`,e.selectItem=!0,e.showPreview=!1;break;case`item`:e.titleText=`Select an item`,e.selectItem=!0,e.showPreview=!1;break;case`multi`:e.titleText=`Select files`,e.selectItem=!1,e.highlightItem=!1,e.input={label:`Item Filter (Regular Expression)`,validate:e=>{try{if(RegExp(e))return I.Deferred().resolve().promise()}catch{return I.Deferred().reject(`Specify a valid Regular Expression`).promise()}}},e.showPreview=!1;break;case`new-file`:e.titleText=`Select a directory`,e.input={label:`Item name`,validate:e=>e&&e.trim()||!e&&!this.model.required?I.Deferred().resolve().promise():I.Deferred().reject(`Specify an item name`).promise()},e.showPreview=!1}return e.titleText+=` for "${this.model.get(`title`)}"`,this.on(`g:saved`,(e,t)=>this._saveModel(e,t)),fe.prototype.initialize.apply(this,arguments)},render(){fe.prototype.render.apply(this,arguments);let e=this.model.get(`type`);return[`file`,`image`,`item`].includes(e)&&this.$(`.modal-footer`).hide(),e===`multi`&&(this.$(`#g-input-element`).attr(`placeholder`,`(all)`),this.$(`.g-item-list-entry`).addClass(`g-selected`),this.$(`#g-input-element`).on(`input`,()=>this.processRegularExpression()),this.model.get(`value`)&&this.model.get(`value`).get(`name`)&&this.$(`#g-input-element`).val(this.model.get(`value`).get(`name`))),this},processRegularExpression(){let e=this.$(`#g-input-element`).val();this.$(`.g-item-list-entry`).removeClass(`g-selected`);try{let t=new RegExp(e,`g`);this.$(`.g-validation-failed-message`).addClass(`hidden`),this.$(`.g-input-element.form-group`).removeClass(`has-error`),this.$(`.g-item-list-entry`).each((n,r)=>{this.$(r)&&(r=this.$(r),(r.find(`.g-item-list-link[href]`).filter((e,t)=>I(t).find(`i.icon-doc-text-inv`).length).text().match(t)||e===``)&&this.$(r).addClass(`g-selected`))})}catch(e){e instanceof SyntaxError&&(this.$(`.g-validation-failed-message`).text(`Specify a valid Regular Expression`),this.$(`.g-validation-failed-message`).removeClass(`hidden`),this.$(`.g-input-element.form-group`).addClass(`has-error`))}},_path(){let e=this._hierarchyView.breadcrumbs.map(e=>e.get(`name`));return this.model.get(`type`)===`directory`&&(e=de.initial(e)),e},_selectModel(){fe.prototype._selectModel.apply(this,arguments),this.model.get(`type`)===`multi`&&this._hierarchyView&&(this._hierarchyView.itemListView?this._hierarchyView.itemListView.once(`g:changed`,e=>{this.processRegularExpression()}):this.checkItemsLoaded(100))},checkItemsLoaded(e){this.$(`.g-folder-list`).length||this.$(`.g-item-list`).length?(clearTimeout(this.checkItemsTimeout),this.processRegularExpression()):this.checkItemsTimeout=setTimeout(()=>this.checkItemsLoaded(e),e)},_validateModel(e){let t=this.model.get(`type`),n;switch(t){case`directory`:case`new-file`:(!e||e.get(`_modelType`)!==`folder`)&&(n=`Select a directory.`);break;case`file`:if(!e)n=`Select a file.`;else{let t=I.Deferred();return me({url:`/item/${e.id}/files`,data:{limit:1}}).done(e=>{e.length||t.reject(`Please select a item with at least one file.`),t.resolve(null)}).fail(()=>{t.reject(`There was an error listing files for the selected item.`)}),t.promise()}break;case`image`:e?e.get(`largeImage`)||(n=`Please select a "large_image" item.`):n=`Select an image.`;break;case`item`:e||(n=`Select an item.`)}return n?I.Deferred().reject(n).promise():I.Deferred().resolve().promise()},_saveModel(e,t){switch(this.model.get(`type`)){case`directory`:this.model.set({path:this._path(),value:e});break;case`file`:me({url:`/item/${e.id}/files`,data:{limit:1}}).done(e=>{if(!e.length)return;let t=new pe({_id:e[0]._id});t.once(`g:fetched`,()=>{this.model.set({path:this._path(),value:t})}).fetch()});break;case`image`:{let t=e.get(`largeImage`),n=new pe({_id:t.fileId||t.originalId});n.once(`g:fetched`,()=>{this.model.set({path:this._path(),value:n})}).fetch();break}case`item`:this.model.set({path:this._path(),value:e});break;case`new-file`:t?this.model.set({path:this._path(),parent:e,value:new L({name:t,folderId:e.id})}):this.model.set({path:this._path(),parent:e,value:null});break;case`multi`:t.trim()===``&&(t=`.*`),this.model.set({path:this._path(),parent:e,folderName:e.name(),value:new L({name:t,folderId:e.id})})}},_selectItem:function(e){fe.prototype._selectItem.apply(this,arguments),this.selectItem&&this.$(`.g-submit-button`).click()}});function _e(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=ve(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function ve(e){var t=``+e,n=ye.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var ye=/["&<>]/;function be(e){var t=``,n=e||{};return(function(e,n,r,i,a){t=t+`<div`+(` class="form-group s-control-item"`+_e(`data-type`,i,!0,!1)+_e(`data-control-id`,n,!0,!1))+`><div class="checkbox"><label`+(` class="control-label"`+_e(`for`,n,!0,!1))+`><input`+(_e(`name`,r,!0,!1)+` type="checkbox"`+_e(`id`,n,!0,!1)+_e(`checked`,!!a,!0,!1))+`/>`+ve(r??``)+`</label></div>`,e&&(t=t+`<div class="s-control-widget-description">`+ve(e??``)+`</div>`),t+=`</div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function xe(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=R(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function R(e){var t=``+e,n=Se.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Se=/["&<>]/;function Ce(e){var t=``,n=e||{};return(function(e,n,r,i,a){t=t+`<div`+(` class="form-group s-control-item"`+xe(`data-type`,i,!0,!1)+xe(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+xe(`for`,n,!0,!1))+`>`+R(r??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+R(e??``)+`</div>`),t=t+`<div class="input-group"><input`+(xe(`name`,r,!0,!1)+xe(`id`,n,!0,!1)+` type="color"`+xe(`value`,a||`#000000`,!0,!1))+`/><div class="input-group-addon"><i></i></div></div></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function z(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=we(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function we(e){var t=``+e,n=Te.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Te=/["&<>]/;function Ee(e){var t=``,n=e||{};return(function(e,n,r,i,a,o){t=t+`<div`+(` class="form-group s-control-item"`+z(`data-type`,i,!0,!1)+z(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+z(`for`,n,!0,!1))+`>`+we(r??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+we(e??``)+`</div>`),t=t+`<select`+(` class="form-control"`+z(`id`,n,!0,!1)+z(`name`,r,!0,!1))+`>`,(function(){var e=o;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var i=e[n];t=t+`<option`+z(`selected`,i===a,!0,!1)+`>`+we(i??``)+`</option>`}else{var r=0;for(var n in e){r++;var i=e[n];t=t+`<option`+z(`selected`,i===a,!0,!1)+`>`+we(i??``)+`</option>`}}}).call(this),t+=`</select></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0,`values`in n?n.values:typeof values<`u`?values:void 0),t}function De(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Me(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Oe(e,t){var n=``;for(var r in e)if(Ne.call(e,r)){var i=e[r];if(r===`class`){i=ke(i),n=De(r,i,!1,t)+n;continue}r===`style`&&(i=B(i)),n+=De(r,i,!1,t)}return n}function ke(e,t){return Array.isArray(e)?Ae(e,t):e&&typeof e==`object`?je(e):e||``}function Ae(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=ke(e[o]))&&(a&&t[o]&&(n=Me(n)),r=r+i+n,i=` `);return r}function je(e){var t=``,n=``;for(var r in e)r&&e[r]&&Ne.call(e,r)&&(t=t+n+r,n=` `);return t}function Me(e){var t=``+e,n=Pe.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Ne=Object.prototype.hasOwnProperty,Pe=/["&<>]/;function Fe(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Fe(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=B(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=B(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function B(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)Ne.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function V(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l,u,d){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Oe(Fe([{class:`form-control`,name:Me(e),type:Me(o),id:Me(r),value:Me(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+De(`data-type`,u,!0,!1)+De(`data-control-id`,a,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+De(`for`,a,!0,!1))+`>`+Me(l??``)+`</label>`,r&&(t=t+`<div class="s-control-widget-description">`+Me(r??``)+`</div>`),t+=`<div class="input-group">`,d&&d.name&&u===`multi`&&i!==void 0?d=`${i}/RegEx(${d.name()||`.*`})`:d&&d.name&&(d=d.name());var c=`Choose a file...`,s=`Choose multiple files...`;if([`file`,`item`,`image`,`multi`].includes(u)&&!o)var e=!0;u===`item`&&(c=`Choose an item...`,s=`Choose multiple items...`),u===`image`&&(c=`Choose an image...`,s=`Choose multiple images...`),u===`directory`&&(c=`Choose a folder...`,s=`Choose multiple folders...`),n.input.call({attributes:{placeholder:Me(c),readonly:!0}},l,u,a,d),t=t+`<span class="input-group-btn"><button`+(` class="btn btn-default s-select-file-button" type="button" data-toggle="tooltip" data-placement="right"`+De(`title`,c,!0,!1))+`><i class="icon-folder-open"></i></button>`,e&&(t=t+`<button`+(` class="btn btn-default s-select-multifile-button" type="button" data-toggle="tooltip" data-placement="right"`+De(`title`,s,!0,!1))+`><span class="fa-stack"><i class="icon-folder-open"></i><i class="icon-plus fa-cancel-cover"></i></span></button>`),t+=`</span></div></div>`}).call(this,`batchload`in r?r.batchload:typeof batchload<`u`?batchload:void 0,`description`in r?r.description:typeof description<`u`?description:void 0,`folderName`in r?r.folderName:typeof folderName<`u`?folderName:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`multiple`in r?r.multiple:typeof multiple<`u`?multiple:void 0,`multititle`in r?r.multititle:typeof multititle<`u`?multititle:void 0,`placeholder`in r?r.placeholder:typeof placeholder<`u`?placeholder:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}function Ie(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Le(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Le(e){var t=``+e,n=Re.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Re=/["&<>]/;function ze(e){var t=``,n=e||{};return(function(e,n,r,i,a,o,s,c){t=t+`<div`+(` class="form-group s-control-item"`+Ie(`data-type`,s,!0,!1)+Ie(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+Ie(`for`,n,!0,!1))+`>`+Le(o??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+Le(e??``)+`</div>`),t=t+`<input`+(Ie(`name`,o,!0,!1)+Ie(`id`,n,!0,!1)+` type="range"`+Ie(`min`,i||0,!0,!1)+Ie(`max`,r||1,!0,!1)+Ie(`step`,a||1,!0,!1)+Ie(`value`,c||i||0,!0,!1))+`/></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`max`in n?n.max:typeof max<`u`?max:void 0,`min`in n?n.min:typeof min<`u`?min:void 0,`step`in n?n.step:typeof step<`u`?step:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function H(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=U(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Be(e,t){var n=``;for(var r in e)if(We.call(e,r)){var i=e[r];if(r===`class`){i=Ve(i),n=H(r,i,!1,t)+n;continue}r===`style`&&(i=qe(i)),n+=H(r,i,!1,t)}return n}function Ve(e,t){return Array.isArray(e)?He(e,t):e&&typeof e==`object`?Ue(e):e||``}function He(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Ve(e[o]))&&(a&&t[o]&&(n=U(n)),r=r+i+n,i=` `);return r}function Ue(e){var t=``,n=``;for(var r in e)r&&e[r]&&We.call(e,r)&&(t=t+n+r,n=` `);return t}function U(e){var t=``+e,n=Ge.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var We=Object.prototype.hasOwnProperty,Ge=/["&<>]/;function Ke(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Ke(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=qe(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=qe(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function qe(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)We.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function Je(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l,u,d,f,p){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Be(Ke([{class:`form-control`,name:U(e),type:U(o),id:U(r),value:U(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+H(`data-type`,f,!0,!1)+H(`data-control-id`,s,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+H(`for`,s,!0,!1))+`>`+U(d??``)+`</label>`,a&&(t=t+`<div class="s-control-widget-description">`+U(a??``)+`</div>`),t+=`<div class="input-group">`,n.input(d,f,s,p.join(`,`));let m={rectangle:{icon:`icon-check-empty`,name:`Rectangle`,text:`rectangular region`},polygon:{icon:`icon-draw-polygon`,name:`Polygon`,text:`polygon region`},polyline:{icon:`icon-pencil`,name:`Line`,text:`continuous line`},line:{icon:`icon-pencil`,name:`Line Segment`,text:`line segment`},point:{icon:`icon-circle`,name:`Point`,text:`point`}},h=new r(l?l.split(`,`):[`rectangle`]);h.has(`multipolygon`)&&(h.add(`multi`),h.add(`polygon`),h.delete(`multipolygon`)),h.has(`polygon`)&&h.add(`rectangle`);var i=e.keys(m).filter(e=>h.has(e)),u=c?c.find(`.s-select-region-submit-button`).hasClass(`enabled`):void 0;i.length>0&&(t=t+`<span class="input-group-btn"><button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,i[0],!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[i[0]].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[i[0]].icon],[!0]),!1,!1)+`></i></button>`,i.length>0&&(t=t+`<div class="btn-group region-dropdown" role="group"><button`+(` class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"`+H(`disabled`,o,!0,!1))+`><i class="icon-down-dir"></i></button><div class="dropdown-menu">`,(function(){var e=i;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[a].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i>`+U(` ${m[a].name}`)+`</button>`}else{var r=0;for(var n in e){r++;var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[a].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i>`+U(` ${m[a].name}`)+`</button>`}}}).call(this),h.has(`multi`)&&(function(){var e=i;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="true"`+H(`parent-id`,s,!0,!1)+H(`title`,`Add a ${m[a].text} to the existing region`,!0,!1))+`><span class="fa-stack"><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i><i class="icon-plus fa-cancel-cover"></i></span>`+U(` Add ${m[a].name}`)+`</button>`}else{var r=0;for(var n in e){r++;var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="true"`+H(`parent-id`,s,!0,!1)+H(`title`,`Add a ${m[a].text} to the existing region`,!0,!1))+`><span class="fa-stack"><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i><i class="icon-plus fa-cancel-cover"></i></span>`+U(` Add ${m[a].name}`)+`</button>`}}}).call(this),t+=`<button class="btn btn-default s-select-region-clear-button" type="button" data-toggle="tooltip" data-placement="right" title="Clear the current region"><i class="icon-cancel"></i> Clear</button>`,(h.has(`submit`)||h.has(`submiton`)||h.has(`autosubmit`)||h.has(`submitoff`))&&(t=t+`<button`+(H(`class`,Ve([`btn`,`btn-default`,`s-select-region-submit-button`,h.has(`submiton`)&&u!==!1||h.has(`autosubmit`)||(h.has(`submit`)||h.has(`submitoff`))&&u===!0?`active enabled`:``],[!1,!1,!1,!0]),!1,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`can-toggle`,h.has(`autosubmit`)?`false`:`true`,!0,!1)+` title="Submit job when region is set"`)+`><i class="icon-ok"></i> Submit</button>`),t+=`</div></div>`),t+=`</span>`),t+=`</div></div>`}).call(this,`Object`in r?r.Object:typeof Object<`u`?Object:void 0,`Set`in r?r.Set:typeof Set<`u`?Set:void 0,`buttons`in r?r.buttons:typeof buttons<`u`?buttons:void 0,`description`in r?r.description:typeof description<`u`?description:void 0,`disableRegionSelect`in r?r.disableRegionSelect:typeof disableRegionSelect<`u`?disableRegionSelect:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`previousElement`in r?r.previousElement:typeof previousElement<`u`?previousElement:void 0,`shapes`in r?r.shapes:typeof shapes<`u`?shapes:void 0,`submitActive`in r?r.submitActive:typeof submitActive<`u`?submitActive:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}function Ye(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=W(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Xe(e,t){var n=``;for(var r in e)if(et.call(e,r)){var i=e[r];if(r===`class`){i=Ze(i),n=Ye(r,i,!1,t)+n;continue}r===`style`&&(i=rt(i)),n+=Ye(r,i,!1,t)}return n}function Ze(e,t){return Array.isArray(e)?Qe(e,t):e&&typeof e==`object`?$e(e):e||``}function Qe(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Ze(e[o]))&&(a&&t[o]&&(n=W(n)),r=r+i+n,i=` `);return r}function $e(e){var t=``,n=``;for(var r in e)r&&e[r]&&et.call(e,r)&&(t=t+n+r,n=` `);return t}function W(e){var t=``+e,n=tt.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var et=Object.prototype.hasOwnProperty,tt=/["&<>]/;function nt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=nt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=rt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=rt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function rt(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)et.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function it(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Xe(nt([{class:`form-control`,name:W(e),type:W(o),id:W(r),value:W(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+Ye(`data-type`,c,!0,!1)+Ye(`data-control-id`,r,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+Ye(`for`,r,!0,!1))+`>`+W(s??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+W(e??``)+`</div>`),n.input.call({attributes:{min:W(a),max:W(i),step:W(o)}},s,c,r,l),t+=`</div>`}).call(this,`description`in r?r.description:typeof description<`u`?description:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`max`in r?r.max:typeof max<`u`?max:void 0,`min`in r?r.min:typeof min<`u`?min:void 0,`step`in r?r.step:typeof step<`u`?step:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}var at=c({$:()=>st,default:()=>st,jQuery:()=>st});function ot(e,t){if(e===void 0||!e.document)throw Error(`jQuery requires a window with a document`);var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,f=d.call(Object),p={};function m(e){return e==null?e+``:typeof e==`object`?c[l.call(e)]||`object`:typeof e}function h(e){return e!=null&&e===e.window}function g(e){var t=!!e&&e.length,n=m(e);return typeof e==`function`||h(e)?!1:n===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}var _=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){n||=_;var r,i=n.createElement(`script`);for(r in i.text=e,v)t&&t[r]&&(i[r]=t[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var b=`4.0.0`,x=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};S.fn=S.prototype={jquery:b,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return e==null?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for(typeof o==`boolean`&&(l=o,o=arguments[s]||{},s++),typeof o!=`object`&&typeof o!=`function`&&(o={}),s===c&&(o=this,s--);s<c;s++)if((e=arguments[s])!=null)for(t in e)r=e[t],t!==`__proto__`&&o!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:!i&&!S.isPlainObject(n)?{}:n,i=!1,o[t]=S.extend(l,a,r)):r!==void 0&&(o[t]=r));return o},S.extend({expando:`jQuery`+(b+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!==`[object Object]`?!1:(t=r(e),!t||(n=u.call(t,`constructor`)&&t.constructor,typeof n==`function`&&d.call(n)===f))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(g(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n=``,r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return i===1||i===11?e.textContent:i===9?e.documentElement.textContent:i===3||i===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(g(Object(e))?S.merge(n,typeof e==`string`?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||`HTML`)},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(g(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),i!=null&&s.push(i);else for(o in e)i=t(e[o],o,n),i!=null&&s.push(i);return a(s)},guid:1,support:p}),typeof Symbol==`function`&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){c[`[object `+t+`]`]=t.toLowerCase()});function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var w=n.pop,T=`[\\x20\\t\\r\\n\\f]`,E=_.documentMode,ee=E&&RegExp(`:enabled|:disabled|\\[`+T+`*name`+T+`*=`+T+`*(?:''|"")`),te=RegExp(`^`+T+`+|((?:^|[^\\\\])(?:\\\\.)*)`+T+`+$`,`g`),D=`(?:\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+`,O=RegExp(`^`+T+`*([>+~]|`+T+`)`+T+`*`),ne=RegExp(T+`|>`),re=/[+~]/,k=_.documentElement,ie=k.matches||k.msMatchesSelector;function ae(){var e=[];function t(n,r){return e.push(n+` `)>S.expr.cacheLength&&delete t[e.shift()],t[n+` `]=r}return t}function A(e){return e&&e.getElementsByTagName!==void 0&&e}var oe=`\\[`+T+`*(`+D+`)(?:`+T+`*([*^$|!~]?=)`+T+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+D+`))|)`+T+`*\\]`,j=`:(`+D+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+oe+`)*)|.*)\\)|)`,se={ID:RegExp(`^#(`+D+`)`),CLASS:RegExp(`^\\.(`+D+`)`),TAG:RegExp(`^(`+D+`|[*])`),ATTR:RegExp(`^`+oe),PSEUDO:RegExp(`^`+j),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+T+`*(even|odd|(([+-]|)(\\d*)n|)`+T+`*(?:([+-]|)`+T+`*(\\d+)|))`+T+`*\\)|)`,`i`)},ce=new RegExp(j),M=RegExp(`\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\([^\\r\\n\\f])`,`g`),le=function(e,t){var n=`0x`+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320))};function N(e){return e.replace(M,le)}function ue(e){S.error(`Syntax error, unrecognized expression: `+e)}var P=RegExp(`^`+T+`*,`+T+`*`),F=ae();function I(e,t){var n,r,i,a,o,s,c,l=F[e+` `];if(l)return t?0:l.slice(0);for(o=e,s=[],c=S.expr.preFilter;o;){for(a in(!n||(r=P.exec(o)))&&(r&&(o=o.slice(r[0].length)||o),s.push(i=[])),n=!1,(r=O.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(te,` `)}),o=o.slice(n.length)),se)(r=S.expr.match[a].exec(o))&&(!c[a]||(r=c[a](r)))&&(n=r.shift(),i.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?ue(e):F(e,s).slice(0)}var de={ATTR:function(e){return e[1]=N(e[1]),e[3]=N(e[3]||e[4]||e[5]||``),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||ue(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&ue(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return se.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:n&&ce.test(n)&&(t=I(n,!0))&&(t=n.indexOf(`)`,n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function fe(e){for(var t=0,n=e.length,r=``;t<n;t++)r+=e[t].value;return r}function pe(e,t,n,r,i,a,o){var s=0,c=e.length,l=n==null;if(m(n)===`object`)for(s in i=!0,n)pe(e,t,s,n[s],!0,a,o);else if(r!==void 0&&(i=!0,typeof r!=`function`&&(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):a}var L=/[^\x20\t\r\n\f]+/g;S.fn.extend({attr:function(e,t){return pe(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(a!==3&&a!==8&&a!==2){if(e.getAttribute===void 0)return S.prop(e,t,n);if((a!==1||!S.isXMLDoc(e))&&(i=S.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf(`aria-`)!==0){S.removeAttr(e,t);return}return i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:(e.setAttribute(t,n),n)}return i&&`get`in i&&(r=i.get(e,t))!==null?r:(r=e.getAttribute(t),r??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&e.nodeType===1)for(;n=i[r++];)e.removeAttribute(n)}}),E&&(S.attrHooks.type={set:function(e,t){if(t===`radio`&&C(e,`input`)){var n=e.value;return e.setAttribute(`type`,t),n&&(e.value=n),t}}});var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function he(e,t){return t?e===`\0`?`�`:e.slice(0,-1)+`\\`+e.charCodeAt(e.length-1).toString(16)+` `:`\\`+e}S.escapeSelector=function(e){return(e+``).replace(me,he)};var ge=n.sort,_e=n.splice,ve;function ye(e,t){if(e===t)return ve=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==_||e.ownerDocument==_&&S.contains(_,e)?-1:t==_||t.ownerDocument==_&&S.contains(_,t)?1:0:n&4?-1:1)}S.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ve=!1,ge.call(e,ye),ve){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)_e.call(e,n[r],1)}return e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))};var be,xe,R,Se,Ce,z=0,we=0,Te=ae(),Ee=ae(),De=ae(),Oe=RegExp(T+`+`,`g`),ke=RegExp(`^`+D+`$`),Ae=S.extend({needsContext:RegExp(`^`+T+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+T+`*((?:-\\d)?\\d*)`+T+`*\\)|)(?=[^-]|$)`,`i`)},se),je=/^(?:input|select|textarea|button)$/i,Me=/^h\d$/i,Ne=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Pe=function(){H()},Fe=Ve(function(e){return e.disabled===!0&&C(e,`fieldset`)},{dir:`parentNode`,next:`legend`});function B(e,t,n,r){var i,a,s,c,l,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n||=[],typeof e!=`string`||!e||p!==1&&p!==9&&p!==11)return n;if(!r&&(H(t),t||=R,Ce)){if(p!==11&&(l=Ne.exec(e))){if(i=l[1]){if(p===9)return(s=t.getElementById(i))&&o.call(n,s),n;if(f&&(s=f.getElementById(i))&&S.contains(t,s))return o.call(n,s),n}else if(l[2])return o.apply(n,t.getElementsByTagName(e)),n;else if((i=l[3])&&t.getElementsByClassName)return o.apply(n,t.getElementsByClassName(i)),n}if(!De[e+` `]&&(!ee||!ee.test(e))){if(d=e,f=t,p===1&&(ne.test(e)||O.test(e))){for(f=re.test(e)&&A(t.parentNode)||t,(f!=t||E)&&((c=t.getAttribute(`id`))?c=S.escapeSelector(c):t.setAttribute(`id`,c=S.expando)),u=I(e),a=u.length;a--;)u[a]=(c?`#`+c:`:scope`)+` `+fe(u[a]);d=u.join(`,`)}try{return o.apply(n,f.querySelectorAll(d)),n}catch{De(e,!0)}finally{c===S.expando&&t.removeAttribute(`id`)}}}return Je(e.replace(te,`$1`),t,n,r)}function V(e){return e[S.expando]=!0,e}function Ie(e){return function(t){return C(t,`input`)&&t.type===e}}function Le(e){return function(t){return(C(t,`input`)||C(t,`button`))&&t.type===e}}function Re(e){return function(t){return`form`in t?t.parentNode&&t.disabled===!1?`label`in t?`label`in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Fe(t)===e:t.disabled===e:`label`in t&&t.disabled===e}}function ze(e){return V(function(t){return t=+t,V(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function H(e){var t,n=e?e.ownerDocument||e:_;n!=R&&n.nodeType===9&&(R=n,Se=R.documentElement,Ce=!S.isXMLDoc(R),E&&_!=R&&(t=R.defaultView)&&t.top!==t&&t.addEventListener(`unload`,Pe))}for(be in B.matches=function(e,t){return B(e,null,null,t)},B.matchesSelector=function(e,t){if(H(e),Ce&&!De[t+` `]&&(!ee||!ee.test(t)))try{return ie.call(e,t)}catch{De(t,!0)}return B(t,R,null,[e]).length>0},S.expr={cacheLength:50,createPseudo:V,match:Ae,find:{ID:function(e,t){if(t.getElementById!==void 0&&Ce){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return t.getElementsByTagName===void 0?t.querySelectorAll(e):t.getElementsByTagName(e)},CLASS:function(e,t){if(t.getElementsByClassName!==void 0&&Ce)return t.getElementsByClassName(e)}},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:de,filter:{ID:function(e){var t=N(e);return function(e){return e.getAttribute(`id`)===t}},TAG:function(e){var t=N(e).toLowerCase();return e===`*`?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=Te[e+` `];return t||(t=RegExp(`(^|`+T+`)`+e+`(`+T+`|$)`))&&Te(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,n){return function(r){var i=S.attr(r,e);return i==null?t===`!=`:!t||(i+=``,t===`=`?i===n:t===`!=`?i!==n:t===`^=`?n&&i.indexOf(n)===0:t===`*=`?n&&i.indexOf(n)>-1:t===`$=`?n&&i.slice(-n.length)===n:t===`~=`?(` `+i.replace(Oe,` `)+` `).indexOf(n)>-1:t===`|=`?i===n||i.slice(0,n.length+1)===n+`-`:!1)}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!==`nth`,o=e.slice(-4)!==`last`,s=t===`of-type`;return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,m=a===o?`previousSibling`:`nextSibling`,h=t.parentNode,g=s&&t.nodeName.toLowerCase(),_=!c&&!s,v=!1;if(h){if(a){for(;m;){for(d=t;d=d[m];)if(s?C(d,g):d.nodeType===1)return!1;p=m=e===`only`&&!p&&`nextSibling`}return!0}if(p=[o?h.firstChild:h.lastChild],o&&_){for(u=h[S.expando]||(h[S.expando]={}),l=u[e]||[],f=l[0]===z&&l[1],v=f&&l[2],d=f&&h.childNodes[f];d=++f&&d&&d[m]||(v=f=0)||p.pop();)if(d.nodeType===1&&++v&&d===t){u[e]=[z,f,v];break}}else if(_&&(u=t[S.expando]||(t[S.expando]={}),l=u[e]||[],f=l[0]===z&&l[1],v=f),v===!1)for(;(d=++f&&d&&d[m]||(v=f=0)||p.pop())&&!((s?C(d,g):d.nodeType===1)&&++v&&(_&&(u=d[S.expando]||(d[S.expando]={}),u[e]=[z,v]),d===t)););return v-=i,v===r||v%r===0&&v/r>=0}}},PSEUDO:function(e,t){var n=S.expr.pseudos[e]||S.expr.setFilters[e.toLowerCase()]||ue(`unsupported pseudo: `+e);return n[S.expando]?n(t):n}},pseudos:{not:V(function(e){var t=[],n=[],r=qe(e.replace(te,`$1`));return r[S.expando]?V(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:V(function(e){return function(t){return B(e,t).length>0}}),contains:V(function(e){return e=N(e),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:V(function(e){return ke.test(e||``)||ue(`unsupported lang: `+e),e=N(e).toLowerCase(),function(t){var n;do if(n=Ce?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return n=n.toLowerCase(),n===e||n.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===Se},focus:function(e){return e===R.activeElement&&R.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Re(!1),disabled:Re(!0),checked:function(e){return C(e,`input`)&&!!e.checked||C(e,`option`)&&!!e.selected},selected:function(e){return E&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.expr.pseudos.empty(e)},header:function(e){return Me.test(e.nodeName)},input:function(e){return je.test(e.nodeName)},button:function(e){return C(e,`input`)&&e.type===`button`||C(e,`button`)},text:function(e){return C(e,`input`)&&e.type===`text`},first:ze(function(){return[0]}),last:ze(function(e,t){return[t-1]}),eq:ze(function(e,t,n){return[n<0?n+t:n]}),even:ze(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ze(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ze(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ze(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},S.expr.pseudos.nth=S.expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.expr.pseudos[be]=Ie(be);for(be in{submit:!0,reset:!0})S.expr.pseudos[be]=Le(be);function Be(){}Be.prototype=S.expr.pseudos,S.expr.setFilters=new Be;function Ve(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a===`parentNode`,s=we++;return t.first?function(t,n,i){for(;t=t[r];)if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,d=[z,s];if(c){for(;t=t[r];)if((t.nodeType===1||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(t.nodeType===1||o){if(u=t[S.expando]||(t[S.expando]={}),i&&C(t,i))t=t[r]||t;else if((l=u[a])&&l[0]===z&&l[1]===s)return d[2]=l[2];else if(u[a]=d,d[2]=e(t,n,c))return!0}return!1}}function He(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ue(e,t,n){for(var r=0,i=t.length;r<i;r++)B(e,t[r],n);return n}function U(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=t!=null;s<c;s++)(a=e[s])&&(!n||n(a,r,i))&&(o.push(a),l&&t.push(s));return o}function We(e,t,n,r,i,a){return r&&!r[S.expando]&&(r=We(r)),i&&!i[S.expando]&&(i=We(i,a)),V(function(a,c,l,u){var d,f,p,m,h=[],g=[],_=c.length,v=a||Ue(t||`*`,l.nodeType?[l]:l,[]),y=e&&(a||!t)?U(v,h,e,l,u):v;if(n?(m=i||(a?e:_||r)?[]:c,n(y,m,l,u)):m=y,r)for(d=U(m,g),r(d,[],l,u),f=d.length;f--;)(p=d[f])&&(m[g[f]]=!(y[g[f]]=p));if(a){if(i||e){if(i){for(d=[],f=m.length;f--;)(p=m[f])&&d.push(y[f]=p);i(null,m=[],d,u)}for(f=m.length;f--;)(p=m[f])&&(d=i?s.call(a,p):h[f])>-1&&(a[d]=!(c[d]=p))}}else m=U(m===c?m.splice(_,m.length):m),i?i(null,c,m,u):o.apply(c,m)})}function Ge(e){for(var t,n,r,i=e.length,a=S.expr.relative[e[0].type],o=a||S.expr.relative[` `],c=+!!a,l=Ve(function(e){return e===t},o,!0),u=Ve(function(e){return s.call(t,e)>-1},o,!0),d=[function(e,n,r){var i=!a&&(r||n!=xe)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];c<i;c++)if(n=S.expr.relative[e[c].type])d=[Ve(He(d),n)];else{if(n=S.expr.filter[e[c].type].apply(null,e[c].matches),n[S.expando]){for(r=++c;r<i&&!S.expr.relative[e[r].type];r++);return We(c>1&&He(d),c>1&&fe(e.slice(0,c-1).concat({value:e[c-2].type===` `?`*`:``})).replace(te,`$1`),n,c<r&&Ge(e.slice(c,r)),r<i&&Ge(e=e.slice(r)),r<i&&fe(e))}d.push(n)}return He(d)}function Ke(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,c,l){var u,d,f,p=0,m=`0`,h=i&&[],g=[],_=xe,v=i||r&&S.expr.find.TAG(`*`,l),y=z+=_==null?1:Math.random()||.1;for(l&&(xe=a==R||a||l);(u=v[m])!=null;m++){if(r&&u){for(d=0,!a&&u.ownerDocument!=R&&(H(u),s=!Ce);f=e[d++];)if(f(u,a||R,s)){o.call(c,u);break}l&&(z=y)}n&&((u=!f&&u)&&p--,i&&h.push(u))}if(p+=m,n&&m!==p){for(d=0;f=t[d++];)f(h,g,a,s);if(i){if(p>0)for(;m--;)h[m]||g[m]||(g[m]=w.call(c));g=U(g)}o.apply(c,g),l&&!i&&g.length>0&&p+t.length>1&&S.uniqueSort(c)}return l&&(z=y,xe=_),h};return n?V(i):i}function qe(e,t){var n,r=[],i=[],a=Ee[e+` `];if(!a){for(t||=I(e),n=t.length;n--;)a=Ge(t[n]),a[S.expando]?r.push(a):i.push(a);a=Ee(e,Ke(i,r)),a.selector=e}return a}function Je(e,t,n,r){var i,a,s,c,l,u=typeof e==`function`&&e,d=!r&&I(e=u.selector||e);if(n||=[],d.length===1){if(a=d[0]=d[0].slice(0),a.length>2&&(s=a[0]).type===`ID`&&t.nodeType===9&&Ce&&S.expr.relative[a[1].type]){if(t=(S.expr.find.ID(N(s.matches[0]),t)||[])[0],t)u&&(t=t.parentNode);else return n;e=e.slice(a.shift().value.length)}for(i=Ae.needsContext.test(e)?0:a.length;i--&&(s=a[i],!S.expr.relative[c=s.type]);)if((l=S.expr.find[c])&&(r=l(N(s.matches[0]),re.test(a[0].type)&&A(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&fe(a),!e)return o.apply(n,r),n;break}}return(u||qe(e,d))(r,t,!Ce,n,!t||re.test(e)&&A(t.parentNode)||t),n}H(),S.find=B,B.compile=qe,B.select=Je,B.setDocument=H,B.tokenize=I;function Ye(e,t,n){for(var r=[],i=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(i&&S(e).is(n))break;r.push(e)}return r}function Xe(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var Ze=S.expr.match.needsContext,Qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $e(e){return e[0]===`<`&&e[e.length-1]===`>`&&e.length>=3}function W(e,t,n){return typeof t==`function`?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):typeof t==`string`?S.filter(t,e,n):S.grep(e,function(e){return s.call(t,e)>-1!==n})}S.filter=function(e,t,n){var r=t[0];return n&&(e=`:not(`+e+`)`),t.length===1&&r.nodeType===1?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return e.nodeType===1}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=`string`)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(W(this,e||[],!1))},not:function(e){return this.pushStack(W(this,e||[],!0))},is:function(e){return!!W(this,typeof e==`string`&&Ze.test(e)?S(e):e||[],!1).length}});var et,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,nt=S.fn.init=function(e,t){var n,r;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e==`function`)return et.ready===void 0?e(S):et.ready(e);if(n=e+``,$e(n))n=[null,e,null];else if(typeof e==`string`)n=tt.exec(e);else return S.makeArray(e,this);if(n&&(n[1]||!t))if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),Qe.test(n[1])&&S.isPlainObject(t))for(n in t)typeof this[n]==`function`?this[n](t[n]):this.attr(n,t[n]);return this}else return r=_.getElementById(n[2]),r&&(this[0]=r,this.length=1),this;return!t||t.jquery?(t||et).find(e):this.constructor(t).find(e)};nt.prototype=S.fn,et=S(_);var rt=/^(?:parents|prev(?:Until|All))/,it={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=`string`&&S(e);if(!Ze.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&S.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?typeof e==`string`?s.call(S(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function at(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}S.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Ye(e,`parentNode`)},parentsUntil:function(e,t,n){return Ye(e,`parentNode`,n)},next:function(e){return at(e,`nextSibling`)},prev:function(e){return at(e,`previousSibling`)},nextAll:function(e){return Ye(e,`nextSibling`)},prevAll:function(e){return Ye(e,`previousSibling`)},nextUntil:function(e,t,n){return Ye(e,`nextSibling`,n)},prevUntil:function(e,t,n){return Ye(e,`previousSibling`,n)},siblings:function(e){return Xe((e.parentNode||{}).firstChild,e)},children:function(e){return Xe(e.firstChild)},contents:function(e){return e.contentDocument!=null&&r(e.contentDocument)?e.contentDocument:(C(e,`template`)&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return e.slice(-5)!==`Until`&&(r=n),r&&typeof r==`string`&&(i=S.filter(r,i)),this.length>1&&(it[e]||S.uniqueSort(i),rt.test(e)&&i.reverse()),this.pushStack(i)}});function ot(e){var t={};return S.each(e.match(L)||[],function(e,n){t[n]=!0}),t}S.Callbacks=function(e){e=typeof e==`string`?ot(e):S.extend({},e);var t,n,r,i,a=[],o=[],s=-1,c=function(){for(i||=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)a[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:``)},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),(function t(n){S.each(n,function(n,r){typeof r==`function`?(!e.unique||!l.has(r))&&a.push(r):r&&r.length&&m(r)!==`string`&&t(r)})})(arguments),n&&!t&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&=[],this},disable:function(){return i=o=[],a=n=``,this},disabled:function(){return!a},lock:function(){return i=o=[],!n&&!t&&(a=n=``),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n||=[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function st(e){return e}function ct(e){throw e}function lt(e,t,n,r){var i;try{e&&typeof(i=e.promise)==`function`?i.call(e).done(t).fail(n):e&&typeof(i=e.then)==`function`?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n(e)}}S.extend({Deferred:function(t){var n=[[`notify`,`progress`,S.Callbacks(`memory`),S.Callbacks(`memory`),2],[`resolve`,`done`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),0,`resolved`],[`reject`,`fail`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),1,`rejected`]],r=`pending`,i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i=typeof e[r[4]]==`function`&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&typeof e.promise==`function`?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+`With`](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,c=arguments,l=function(){var e,l;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw TypeError(`Thenable self-resolution`);l=e&&(typeof e==`object`||typeof e==`function`)&&e.then,typeof l==`function`?i?l.call(e,o(a,n,st,i),o(a,n,ct,i)):(a++,l.call(e,o(a,n,st,i),o(a,n,ct,i),o(a,n,st,n.notifyWith))):(r!==st&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=a&&(r!==ct&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?u():(S.Deferred.getErrorHook&&(u.error=S.Deferred.getErrorHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(o(0,e,typeof i==`function`?i:st,e.notifyWith)),n[1][3].add(o(0,e,typeof t==`function`?t:st)),n[2][3].add(o(0,e,typeof r==`function`?r:ct))}).promise()},promise:function(e){return e==null?i:S.extend(e,i)}},a={};return S.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+`With`](this===a?void 0:this,arguments),this},a[t[0]+`With`]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=S.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(lt(e,o.done(s(n)).resolve,o.reject,!t),o.state()===`pending`||typeof(a[n]&&a[n].then)==`function`))return o.then();for(;n--;)lt(a[n],s(n),o.reject);return o.promise()}});var ut=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){t&&ut.test(t.name)&&e.console.warn(`jQuery.Deferred exception`,t,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var dt=S.Deferred();S.fn.ready=function(e){return dt.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(e!==!0&&--S.readyWait>0)&&dt.resolveWith(_,[S]))}}),S.ready.then=dt.then;function ft(){_.removeEventListener(`DOMContentLoaded`,ft),e.removeEventListener(`load`,ft),S.ready()}_.readyState===`loading`?(_.addEventListener(`DOMContentLoaded`,ft),e.addEventListener(`load`,ft)):e.setTimeout(S.ready);var pt=/-([a-z])/g;function mt(e,t){return t.toUpperCase()}function G(e){return e.replace(pt,mt)}function ht(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function gt(){this.expando=S.expando+gt.uid++}gt.uid=1,gt.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),ht(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==`string`)i[G(t)]=n;else for(r in t)i[G(r)]=t[r];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return t===void 0||t&&typeof t==`string`&&n===void 0?this.get(e,t):(this.set(e,t,n),n===void 0?t:n)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(G):(t=G(t),t=(t in r)?[t]:t.match(L)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!S.isEmptyObject(t)}};var K=new gt,q=new gt,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,vt=/[A-Z]/g;function yt(e){return e===`true`?!0:e===`false`?!1:e===`null`?null:e===+e+``?+e:_t.test(e)?JSON.parse(e):e}function bt(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r=`data-`+t.replace(vt,`-$&`).toLowerCase(),n=e.getAttribute(r),typeof n==`string`){try{n=yt(n)}catch{}q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return q.hasData(e)||K.hasData(e)},data:function(e,t,n){return q.access(e,t,n)},removeData:function(e,t){q.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===void 0){if(this.length&&(i=q.get(a),a.nodeType===1&&!K.get(a,`hasDataAttrs`))){for(n=o.length;n--;)o[n]&&(r=o[n].name,r.indexOf(`data-`)===0&&(r=G(r.slice(5)),bt(a,r,i[r])));K.set(a,`hasDataAttrs`,!0)}return i}return typeof e==`object`?this.each(function(){q.set(this,e)}):pe(this,function(t){var n;if(a&&t===void 0)return n=q.get(a,e),n!==void 0||(n=bt(a,e),n!==void 0)?n:void 0;this.each(function(){q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||`fx`)+`queue`,r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.set(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t||=`fx`;var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);i===`inprogress`&&(i=n.shift(),r--),i&&(t===`fx`&&n.unshift(`inprogress`),delete a.stop,i.call(e,function(){S.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+`queueHooks`;return K.get(e,n)||K.set(e,n,{empty:S.Callbacks(`once memory`).add(function(){K.remove(e,[t+`queue`,n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return typeof e!=`string`&&(t=e,e=`fx`,n--),arguments.length<n?S.queue(this[0],e):t===void 0?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),e===`fx`&&n[0]!==`inprogress`&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;o--;)n=K.get(a[o],e+`queueHooks`),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var xt=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,St=RegExp(`^(?:([+-])=|)(`+xt+`)([a-z%]*)$`,`i`),Ct=[`Top`,`Right`,`Bottom`,`Left`];function wt(e,t){return e=t||e,e.style.display===`none`||e.style.display===``&&S.css(e,`display`)===`none`}var Tt=/^[a-z]/,Et=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function Dt(e){return Tt.test(e)&&Et.test(e[0].toUpperCase()+e.slice(1))}function Ot(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,``)},c=s(),l=n&&n[3]||(Dt(t)?`px`:``),u=e.nodeType&&(!Dt(t)||l!==`px`&&+c)&&St.exec(S.css(e,t));if(u&&u[3]!==l){for(c/=2,l||=u[3],u=+c||1;o--;)S.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+l),n||=[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var kt=/^-ms-/;function At(e){return G(e.replace(kt,`ms-`))}var jt={};function Mt(e){var t,n=e.ownerDocument,r=e.nodeName,i=jt[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,`display`),t.parentNode.removeChild(t),i===`none`&&(i=`block`),jt[r]=i,i)}function J(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?(n===`none`&&(i[a]=K.get(r,`display`)||null,i[a]||(r.style.display=``)),r.style.display===``&&wt(r)&&(i[a]=Mt(r))):n!==`none`&&(i[a]=`none`,K.set(r,`display`,n)));for(a=0;a<o;a++)i[a]!=null&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return J(this,!0)},hide:function(){return J(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){wt(this)?S(this).show():S(this).hide()})}});var Nt=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(Pt)===e.ownerDocument},Pt={composed:!0};k.getRootNode||(Nt=function(e){return S.contains(e.ownerDocument,e)});var Ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,It={thead:[`table`],col:[`colgroup`,`table`],tr:[`tbody`,`table`],td:[`tr`,`tbody`,`table`]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td;function Y(e,t){var r=e.getElementsByTagName===void 0?e.querySelectorAll===void 0?[]:e.querySelectorAll(t||`*`):n.slice.call(e.getElementsByTagName(t||`*`));return t===void 0||t&&C(e,t)?S.merge([e],r):r}var Lt=/^$|^module$|\/(?:java|ecma)script/i;function Rt(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],`globalEval`,!t||K.get(t[n],`globalEval`))}var zt=/<|&#?\w+;/;function Bt(e,t,r,i,a){for(var o,s,c,l,u,d,f=t.createDocumentFragment(),p=[],h=0,_=e.length;h<_;h++)if(o=e[h],o||o===0)if(m(o)===`object`&&(o.nodeType||g(o)))S.merge(p,o.nodeType?[o]:o);else if(!zt.test(o))p.push(t.createTextNode(o));else{for(s||=f.appendChild(t.createElement(`div`)),c=(Ft.exec(o)||[``,``])[1].toLowerCase(),l=It[c]||n,d=l.length;--d>-1;)s=s.appendChild(t.createElement(l[d]));s.innerHTML=S.htmlPrefilter(o),S.merge(p,s.childNodes),s=f.firstChild,s.textContent=``}for(f.textContent=``,h=0;o=p[h++];){if(i&&S.inArray(o,i)>-1){a&&a.push(o);continue}if(u=Nt(o),s=Y(f.appendChild(o),`script`),u&&Rt(s),r)for(d=0;o=s[d++];)Lt.test(o.type||``)&&r.push(o)}return f}function Vt(e){return e.type=(e.getAttribute(`type`)!==null)+`/`+e.type,e}function Ht(e){return(e.type||``).slice(0,5)===`true/`?e.type=e.type.slice(5):e.removeAttribute(`type`),e}function Ut(e,t,n,r){t=a(t);var i,o,s,c,l,u,d=0,f=e.length,p=f-1,m=t[0];if(typeof m==`function`)return e.each(function(i){var a=e.eq(i);t[0]=m.call(this,i,a.html()),Ut(a,t,n,r)});if(f&&(i=Bt(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,i.childNodes.length===1&&(i=o),o||r)){for(s=S.map(Y(i,`script`),Vt),c=s.length;d<f;d++)l=i,d!==p&&(l=S.clone(l,!0,!0),c&&S.merge(s,Y(l,`script`))),n.call(e[d],l,d);if(c)for(u=s[s.length-1].ownerDocument,S.map(s,Ht),d=0;d<c;d++)l=s[d],Lt.test(l.type||``)&&!K.get(l,`globalEval`)&&S.contains(u,l)&&(l.src&&(l.type||``).toLowerCase()!==`module`?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce,crossOrigin:l.crossOrigin},u):y(l.textContent,l,u))}return e}var Wt=/^(?:checkbox|radio)$/i,Gt=/^([^.]*)(?:\.(.+)|)/;function Kt(){return!0}function qt(){return!1}function Jt(e,t,n,r,i,a){var o,s;if(typeof t==`object`){for(s in typeof n!=`string`&&(r||=n,n=void 0),t)Jt(e,s,n,r,t[s],a);return e}if(r==null&&i==null?(i=n,r=n=void 0):i??(typeof n==`string`?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=qt;else if(!i)return e;return a===1&&(o=i,i=function(e){return S().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}S.event={add:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=K.get(e);if(ht(e))for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&S.find.matchesSelector(k,i),n.guid||(n.guid=S.guid++),(c=g.events)||(c=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return S!==void 0&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),t=(t||``).match(L)||[``],l=t.length;l--;)s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:m.join(`.`)},a),(f=c[p])||(f=c[p]=[],f.delegateCount=0,(!d.setup||d.setup.call(e,r,m,o)===!1)&&e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u))},remove:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=K.hasData(e)&&K.get(e);if(!(!g||!(c=g.events))){for(t=(t||``).match(L)||[``],l=t.length;l--;){if(s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),!p){for(p in c)S.event.remove(e,p+t[l],n,r,!0);continue}for(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&RegExp(`(^|\\.)`+m.join(`\\.(?:.*\\.|)`)+`(\\.|$)`),o=a=f.length;a--;)u=f[a],(i||h===u.origType)&&(!n||n.guid===u.guid)&&(!s||s.test(u.namespace))&&(!r||r===u.selector||r===`**`&&u.selector)&&(f.splice(a,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));o&&!f.length&&((!d.teardown||d.teardown.call(e,m,g.handle)===!1)&&S.removeEvent(e,p,g.handle),delete c[p])}S.isEmptyObject(c)&&K.remove(e,`handle events`)}},dispatch:function(e){var t,n,r,i,a,o,s=Array(arguments.length),c=S.event.fix(e),l=(K.get(this,`events`)||Object.create(null))[c.type]||[],u=S.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!(u.preDispatch&&u.preDispatch.call(this,c)===!1)){for(o=S.event.handlers.call(this,c,l),t=0;(i=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||a.namespace===!1||c.rnamespace.test(a.namespace))&&(c.handleObj=a,c.data=a.data,r=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),r!==void 0&&(c.result=r)===!1&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;if(c&&!(e.type===`click`&&e.button>=1)){for(;l!==this;l=l.parentNode||this)if(l.nodeType===1&&(e.type!==`click`||l.disabled!==!0)){for(a=[],o={},n=0;n<c;n++)r=t[n],i=r.selector+` `,o[i]===void 0&&(o[i]=r.needsContext?S(i,this).index(l)>-1:S.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t==`function`?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:S.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`,!0),!1},trigger:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`),!0},_default:function(e){var t=e.target;return Wt.test(t.type)&&t.click&&C(t,`input`)&&K.get(t,`click`)||C(t,`a`)}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function Yt(e,t,n){if(!n){K.get(e,t)===void 0&&S.event.add(e,t,Kt);return}K.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=K.get(this,t);if(e.isTrigger&1&&this[t]){if(r.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),K.set(this,t,r),this[t](),n=K.get(this,t),K.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(K.set(this,t,{value:S.event.trigger(r[0],r.slice(1),this)}),e.stopPropagation(),e.isImmediatePropagationStopped=Kt)}})}S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Kt:qt,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:qt,isPropagationStopped:qt,isImmediatePropagationStopped:qt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Kt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Kt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Kt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:`focusin`,blur:`focusout`},function(e,t){function n(e){var t=S.event.fix(e);t.type=e.type===`focusin`?`focus`:`blur`,t.isSimulated=!0,t.target===t.currentTarget&&K.get(this,`handle`)(t)}S.event.special[e]={setup:function(){if(Yt(this,e,!0),E)this.addEventListener(t,n);else return!1},trigger:function(){return Yt(this,e),!0},teardown:function(){if(E)this.removeEventListener(t,n);else return!1},_default:function(t){return K.get(t.target,e)},delegateType:t}}),S.each({mouseenter:`mouseover`,mouseleave:`mouseout`,pointerenter:`pointerover`,pointerleave:`pointerout`},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!S.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Jt(this,e,t,n,r)},one:function(e,t,n,r){return Jt(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+`.`+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e==`object`){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||typeof t==`function`)&&(n=t,t=void 0),n===!1&&(n=qt),this.each(function(){S.event.remove(this,e,n,t)})}});var Xt=/<script|<style|<link/i;function Zt(e,t){return C(e,`table`)&&C(t.nodeType===11?t.firstChild:t,`tr`)&&S(e).children(`tbody`)[0]||e}function Qt(e,t){var n,r,i,a=K.get(e,`events`);if(t.nodeType===1){if(a)for(n in K.remove(t,`handle events`),a)for(r=0,i=a[n].length;r<i;r++)S.event.add(t,n,a[n][r]);q.hasData(e)&&q.set(t,S.extend({},q.get(e)))}}function $t(e,t,n){for(var r,i=t?S.filter(t,e):e,a=0;(r=i[a])!=null;a++)!n&&r.nodeType===1&&S.cleanData(Y(r)),r.parentNode&&(n&&Nt(r)&&Rt(Y(r,`script`)),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=Nt(e);if(E&&(e.nodeType===1||e.nodeType===11)&&!S.isXMLDoc(e))for(o=Y(s),a=Y(e),r=0,i=a.length;r<i;r++)C(o[r],`textarea`)&&(o[r].defaultValue=a[r].defaultValue);if(t)if(n)for(a||=Y(e),o||=Y(s),r=0,i=a.length;r<i;r++)Qt(a[r],o[r]);else Qt(e,s);return o=Y(s,`script`),o.length>0&&Rt(o,!c&&Y(e,`script`)),s},cleanData:function(e){for(var t,n,r,i=S.event.special,a=0;(n=e[a])!==void 0;a++)if(ht(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[q.expando]&&(n[q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return $t(this,e,!0)},remove:function(e){return $t(this,e)},text:function(e){return pe(this,function(e){return e===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ut(this,arguments,function(e){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&Zt(this,e).appendChild(e)})},prepend:function(){return Ut(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Zt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(S.cleanData(Y(e,!1)),e.textContent=``);return this},clone:function(e,t){return e??=!1,t??=e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===void 0&&t.nodeType===1)return t.innerHTML;if(typeof e==`string`&&!Xt.test(e)&&!It[(Ft.exec(e)||[``,``])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(S.cleanData(Y(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ut(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Y(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:`append`,prependTo:`prepend`,insertBefore:`before`,insertAfter:`after`,replaceAll:`replaceWith`},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),S(i[s])[t](n),o.apply(r,n);return this.pushStack(r)}});var X=RegExp(`^(`+xt+`)(?!px)[a-z%]+$`,`i`),en=/^--/;function tn(t){var n=t.ownerDocument.defaultView;return n||=e,n.getComputedStyle(t)}function nn(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r}function rn(e,t,n){var r,i=en.test(t);return n||=tn(e),n&&(r=n.getPropertyValue(t)||n[t],i&&r&&(r=r.replace(te,`$1`)||void 0),r===``&&!Nt(e)&&(r=S.style(e,t))),r===void 0?r:r+``}var an=[`Webkit`,`Moz`,`ms`],on=_.createElement(`div`).style;function sn(e){for(var t=e[0].toUpperCase()+e.slice(1),n=an.length;n--;)if(e=an[n]+t,e in on)return e}function cn(e){return e in on?e:sn(e)||e}var ln,un,dn=_.createElement(`table`);function fn(){if(!(!dn||!dn.style)){var t,n=_.createElement(`col`),r=_.createElement(`tr`),i=_.createElement(`td`);if(dn.style.cssText=`position:absolute;left:-11111px;border-collapse:separate;border-spacing:0`,r.style.cssText=`box-sizing:content-box;border:1px solid;height:1px`,i.style.cssText=`height:9px;width:9px;padding:0`,n.span=2,k.appendChild(dn).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),dn.offsetWidth===0){k.removeChild(dn);return}t=e.getComputedStyle(r),un=E||Math.round(parseFloat(e.getComputedStyle(n).width))===18,ln=Math.round(parseFloat(t.height)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))===r.offsetHeight,k.removeChild(dn),dn=null}}S.extend(p,{reliableTrDimensions:function(){return fn(),ln},reliableColDimensions:function(){return fn(),un}});var pn={position:`absolute`,visibility:`hidden`,display:`block`},mn={letterSpacing:`0`,fontWeight:`400`};function hn(e,t,n){var r=St.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||`px`):t}function gn(e,t,n,r,i,a){var o=+(t===`width`),s=0,c=0,l=0;if(n===(r?`border`:`content`))return 0;for(;o<4;o+=2)n===`margin`&&(l+=S.css(e,n+Ct[o],!0,i)),r?(n===`content`&&(c-=S.css(e,`padding`+Ct[o],!0,i)),n!==`margin`&&(c-=S.css(e,`border`+Ct[o]+`Width`,!0,i))):(c+=S.css(e,`padding`+Ct[o],!0,i),n===`padding`?s+=S.css(e,`border`+Ct[o]+`Width`,!0,i):c+=S.css(e,`border`+Ct[o]+`Width`,!0,i));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e[`offset`+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))||0),c+l}function _n(e,t,n){var r=tn(e),i=(E||n)&&S.css(e,`boxSizing`,!1,r)===`border-box`,a=i,o=rn(e,t,r),s=`offset`+t[0].toUpperCase()+t.slice(1);if(X.test(o)){if(!n)return o;o=`auto`}return(o===`auto`||E&&i||!p.reliableColDimensions()&&C(e,`col`)||!p.reliableTrDimensions()&&C(e,`tr`))&&e.getClientRects().length&&(i=S.css(e,`boxSizing`,!1,r)===`border-box`,a=s in e,a&&(o=e[s])),o=parseFloat(o)||0,o+gn(e,t,n||(i?`border`:`content`),a,r,o)+`px`}S.extend({cssHooks:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var i,a,o,s=At(t),c=en.test(t),l=e.style;if(c||(t=cn(s)),o=S.cssHooks[t]||S.cssHooks[s],n!==void 0){if(a=typeof n,a===`string`&&(i=St.exec(n))&&i[1]&&(n=Ot(e,t,i),a=`number`),n==null||n!==n)return;a===`number`&&(n+=i&&i[3]||(Dt(s)?`px`:``)),E&&n===``&&t.indexOf(`background`)===0&&(l[t]=`inherit`),(!o||!(`set`in o)||(n=o.set(e,n,r))!==void 0)&&(c?l.setProperty(t,n):l[t]=n)}else return o&&`get`in o&&(i=o.get(e,!1,r))!==void 0?i:l[t]}},css:function(e,t,n,r){var i,a,o,s=At(t);return en.test(t)||(t=cn(s)),o=S.cssHooks[t]||S.cssHooks[s],o&&`get`in o&&(i=o.get(e,!0,n)),i===void 0&&(i=rn(e,t,r)),i===`normal`&&t in mn&&(i=mn[t]),n===``||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),S.each([`height`,`width`],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return S.css(e,`display`)===`none`?nn(e,pn,function(){return _n(e,t,r)}):_n(e,t,r)},set:function(e,n,r){var i,a=tn(e),o=r&&S.css(e,`boxSizing`,!1,a)===`border-box`,s=r?gn(e,t,r,o,a):0;return s&&(i=St.exec(n))&&(i[3]||`px`)!==`px`&&(e.style[t]=n,n=S.css(e,t)),hn(e,n,s)}}}),S.each({margin:``,padding:``,border:`Width`},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a=typeof n==`string`?n.split(` `):[n];r<4;r++)i[e+Ct[r]+t]=a[r]||a[r-2]||a[0];return i}},e!==`margin`&&(S.cssHooks[e+t].set=hn)}),S.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=tn(e),i=t.length;o<i;o++)a[t[o]]=S.css(e,t[o],!1,r);return a}return n===void 0?S.css(e,t):S.style(e,t,n)},e,t,arguments.length>1)}});function Z(e,t,n,r,i){return new Z.prototype.init(e,t,n,r,i)}S.Tween=Z,Z.prototype={constructor:Z,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Dt(n)?`px`:``)},cur:function(){var e=Z.propHooks[this.prop];return e&&e.get?e.get(this):Z.propHooks._default.get(this)},run:function(e){var t,n=Z.propHooks[this.prop];return this.pos=t=this.options.duration?S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Z.propHooks._default.set(this),this}},Z.prototype.init.prototype=Z.prototype,Z.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=S.css(e.elem,e.prop,``),!t||t===`auto`?0:t)},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):e.elem.nodeType===1&&(S.cssHooks[e.prop]||e.elem.style[cn(e.prop)]!=null)?S.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},S.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:`swing`},S.fx=Z.prototype.init,S.fx.step={};var Q,vn,yn=/^(?:toggle|show|hide)$/,bn=/queueHooks$/;function xn(){vn&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(xn):e.setTimeout(xn,13),S.fx.tick())}function Sn(){return e.setTimeout(function(){Q=void 0}),Q=Date.now()}function Cn(e,t){var n,r=0,i={height:e};for(t=+!!t;r<4;r+=2-t)n=Ct[r],i[`margin`+n]=i[`padding`+n]=e;return t&&(i.opacity=i.width=e),i}function wn(e,t,n){for(var r,i=(Dn.tweeners[t]||[]).concat(Dn.tweeners[`*`]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function Tn(e,t,n){var r,i,a,o,s,c,l,u,d=`width`in t||`height`in t,f=this,p={},m=e.style,h=e.nodeType&&wt(e),g=K.get(e,`fxshow`);for(r in n.queue||(o=S._queueHooks(e,`fx`),o.unqueued??(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(e,`fx`).length||o.empty.fire()})})),t)if(i=t[r],yn.test(i)){if(delete t[r],a||=i===`toggle`,i===(h?`hide`:`show`))if(i===`show`&&g&&g[r]!==void 0)h=!0;else continue;p[r]=g&&g[r]||S.style(e,r)}if(c=!S.isEmptyObject(t),!(!c&&S.isEmptyObject(p)))for(r in d&&e.nodeType===1&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],l=g&&g.display,l??=K.get(e,`display`),u=S.css(e,`display`),u===`none`&&(l?u=l:(J([e],!0),l=e.style.display||l,u=S.css(e,`display`),J([e]))),(u===`inline`||u===`inline-block`&&l!=null)&&S.css(e,`float`)===`none`&&(c||(f.done(function(){m.display=l}),l??=(u=m.display,u===`none`?``:u)),m.display=`inline-block`)),n.overflow&&(m.overflow=`hidden`,f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,p)c||(g?`hidden`in g&&(h=g.hidden):g=K.set(e,`fxshow`,{display:l}),a&&(g.hidden=!h),h&&J([e],!0),f.done(function(){for(r in h||J([e]),K.remove(e,`fxshow`),p)S.style(e,r,p[r])})),c=wn(h?g[r]:0,r,f),r in g||(g[r]=c.start,h&&(c.end=c.start,c.start=0))}function En(e,t){var n,r,i,a,o;for(n in e)if(r=At(n),i=t[r],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=S.cssHooks[r],o&&`expand`in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}function Dn(e,t,n){var r,i,a=0,o=Dn.prefilters.length,s=S.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=Q||Sn(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:Q||Sn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(En(u,l.opts.specialEasing);a<o;a++)if(r=Dn.prefilters[a].call(l,e,u,l.opts),r)return typeof r.stop==`function`&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,wn,l),typeof l.opts.start==`function`&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(Dn,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Ot(n.elem,e,St.exec(t),n),n}]},tweener:function(e,t){typeof e==`function`?(t=e,e=[`*`]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Dn.tweeners[n]=Dn.tweeners[n]||[],Dn.tweeners[n].unshift(t)},prefilters:[Tn],prefilter:function(e,t){t?Dn.prefilters.unshift(e):Dn.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&typeof e==`object`?S.extend({},e):{complete:n||t||typeof e==`function`&&e,duration:e,easing:n&&t||t&&typeof t!=`function`&&t};return S.fx.off?r.duration=0:typeof r.duration!=`number`&&(r.duration=r.duration in S.fx.speeds?S.fx.speeds[r.duration]:S.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue=`fx`),r.old=r.complete,r.complete=function(){typeof r.old==`function`&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(wt).css(`opacity`,0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),a=S.speed(t,n,r),o=function(){var t=Dn(this,S.extend({},e),a);(i||K.get(this,`finish`))&&t.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!=`string`&&(n=t,t=e,e=void 0),t&&this.queue(e||`fx`,[]),this.each(function(){var t=!0,i=e!=null&&e+`queueHooks`,a=S.timers,o=K.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&bn.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem===this&&(e==null||a[i].queue===e)&&(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&S.dequeue(this,e)})},finish:function(e){return e!==!1&&(e||=`fx`),this.each(function(){var t,n=K.get(this),r=n[e+`queue`],i=n[e+`queueHooks`],a=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each([`toggle`,`show`,`hide`],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return e==null||typeof e==`boolean`?n.apply(this,arguments):this.animate(Cn(t,!0),e,r,i)}}),S.each({slideDown:Cn(`show`),slideUp:Cn(`hide`),slideToggle:Cn(`toggle`),fadeIn:{opacity:`show`},fadeOut:{opacity:`hide`},fadeToggle:{opacity:`toggle`}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Q=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||S.fx.stop(),Q=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.start=function(){vn||(vn=!0,xn())},S.fx.stop=function(){vn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,n){return t=S.fx&&S.fx.speeds[t]||t,n||=`fx`,this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};var On=/^(?:input|select|textarea|button)$/i,kn=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return pe(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(a!==3&&a!==8&&a!==2)return(a!==1||!S.isXMLDoc(e))&&(t=S.propFix[t]||t,i=S.propHooks[t]),n===void 0?i&&`get`in i&&(r=i.get(e,t))!==null?r:e[t]:i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:e[t]=n},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute(`tabindex`);return t?parseInt(t,10):On.test(e.nodeName)||kn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:`htmlFor`,class:`className`}}),E&&(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each([`tabIndex`,`readOnly`,`maxLength`,`cellSpacing`,`cellPadding`,`rowSpan`,`colSpan`,`useMap`,`frameBorder`,`contentEditable`],function(){S.propFix[this.toLowerCase()]=this});function $(e){return(e.match(L)||[]).join(` `)}function An(e){return e.getAttribute&&e.getAttribute(`class`)||``}function jn(e){return Array.isArray(e)?e:typeof e==`string`&&e.match(L)||[]}S.fn.extend({addClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).addClass(e.call(this,t,An(this)))}):(t=jn(e),t.length?this.each(function(){if(r=An(this),n=this.nodeType===1&&` `+$(r)+` `,n){for(a=0;a<t.length;a++)i=t[a],n.indexOf(` `+i+` `)<0&&(n+=i+` `);o=$(n),r!==o&&this.setAttribute(`class`,o)}}):this)},removeClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).removeClass(e.call(this,t,An(this)))}):arguments.length?(t=jn(e),t.length?this.each(function(){if(r=An(this),n=this.nodeType===1&&` `+$(r)+` `,n){for(a=0;a<t.length;a++)for(i=t[a];n.indexOf(` `+i+` `)>-1;)n=n.replace(` `+i+` `,` `);o=$(n),r!==o&&this.setAttribute(`class`,o)}}):this):this.attr(`class`,``)},toggleClass:function(e,t){var n,r,i,a;return typeof e==`function`?this.each(function(n){S(this).toggleClass(e.call(this,n,An(this),t),t)}):typeof t==`boolean`?t?this.addClass(e):this.removeClass(e):(n=jn(e),n.length?this.each(function(){for(a=S(this),i=0;i<n.length;i++)r=n[i],a.hasClass(r)?a.removeClass(r):a.addClass(r)}):this)},hasClass:function(e){var t,n,r=0;for(t=` `+e+` `;n=this[r++];)if(n.nodeType===1&&(` `+$(An(n))+` `).indexOf(t)>-1)return!0;return!1}}),S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=typeof e==`function`,this.each(function(n){var i;this.nodeType===1&&(i=r?e.call(this,n,S(this).val()):e,i==null?i=``:typeof i==`number`?i+=``:Array.isArray(i)&&(i=S.map(i,function(e){return e==null?``:e+``})),t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!t||!(`set`in t)||t.set(this,i,`value`)===void 0)&&(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],t&&`get`in t&&(n=t.get(i,`value`))!==void 0?n:(n=i.value,n??``)):void 0}}),S.extend({valHooks:{select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o=e.type===`select-one`,s=o?null:[],c=o?a+1:i.length;for(r=a<0?c:o?a:0;r<c;r++)if(n=i[r],n.selected&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,`optgroup`))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=S.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=S.inArray(S(r).val(),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),E&&(S.valHooks.option={get:function(e){return e.getAttribute(`value`)??$(S.text(e))}}),S.each([`radio`,`checkbox`],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}}});var Mn=/^(?:focusinfocus|focusoutblur)$/,Nn=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(t,n,r,i){var a,o,s,c,l,d,f,p,m=[r||_],g=u.call(t,`type`)?t.type:t,v=u.call(t,`namespace`)?t.namespace.split(`.`):[];if(o=p=s=r||=_,r.nodeType!==3&&r.nodeType!==8&&!Mn.test(g+S.event.triggered)&&(g.indexOf(`.`)>-1&&(v=g.split(`.`),g=v.shift(),v.sort()),l=g.indexOf(`:`)<0&&`on`+g,t=t[S.expando]?t:new S.Event(g,typeof t==`object`&&t),t.isTrigger=i?2:3,t.namespace=v.join(`.`),t.rnamespace=t.namespace?RegExp(`(^|\\.)`+v.join(`\\.(?:.*\\.|)`)+`(\\.|$)`):null,t.result=void 0,t.target||(t.target=r),n=n==null?[t]:S.makeArray(n,[t]),f=S.event.special[g]||{},!(!i&&f.trigger&&f.trigger.apply(r,n)===!1))){if(!i&&!f.noBubble&&!h(r)){for(c=f.delegateType||g,Mn.test(c+g)||(o=o.parentNode);o;o=o.parentNode)m.push(o),s=o;s===(r.ownerDocument||_)&&m.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=m[a++])&&!t.isPropagationStopped();)p=o,t.type=a>1?c:f.bindType||g,d=(K.get(o,`events`)||Object.create(null))[t.type]&&K.get(o,`handle`),d&&d.apply(o,n),d=l&&o[l],d&&d.apply&&ht(o)&&(t.result=d.apply(o,n),t.result===!1&&t.preventDefault());return t.type=g,!i&&!t.isDefaultPrevented()&&(!f._default||f._default.apply(m.pop(),n)===!1)&&ht(r)&&l&&typeof r[g]==`function`&&!h(r)&&(s=r[l],s&&(r[l]=null),S.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Nn),r[g](),t.isPropagationStopped()&&p.removeEventListener(g,Nn),S.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Pn=e.location,Fn={guid:Date.now()},In=/\?/;S.parseXML=function(t){var n,r;if(!t||typeof t!=`string`)return null;try{n=new e.DOMParser().parseFromString(t,`text/xml`)}catch{}return r=n&&n.getElementsByTagName(`parsererror`)[0],(!n||r)&&S.error(`Invalid XML: `+(r?S.map(r.childNodes,function(e){return e.textContent}).join(`
8
+ `),t},_validateNumeric(e){let t=parseFloat(this.get(`min`)),n=parseFloat(this.get(`max`)),r=parseFloat(this.get(`step`));if(!isFinite(e))return`Invalid number "`+e+`"`;if(e<t||e>n)return`Value out of range [`+[t,n]+`]`;t||=0;let i=(e-t)/(r||1);if(r>0&&Math.abs(Math.round(i)-i)>1e-6)return`Value does not satisfy step "`+r+`"`},_validateInteger(e){let t=parseInt(this.get(`min`)),n=parseInt(this.get(`max`)),r=parseInt(this.get(`step`));if(!isFinite(e))return`Invalid integer "${e}"`;if(e<t||e>n)return`Value out of range [${t}, ${n}]]`;if(t||=0,r>0&&(e-t)%(r||1))return`Value does not satisfy step "${r}"`},_validateGirderModel(e){if(!e.value||e.value.get&&!e.value.get(`name`))return this.get(`required`)?`Empty value`:void 0;switch(this.get(`type`)){case`new-file`:if(!e.value.get)break;if(!e.parent||e.parent.resourceName!==`folder`)return`Invalid parent model`}},isNumeric(){return O.contains([`range`,`number`,`number-vector`,`number-enumeration`,`region`],this.get(`type`))},isInteger(){return this.get(`type`)===`integer`},isBoolean(){return this.get(`type`)===`boolean`},isVector(){return O.contains([`number-vector`,`string-vector`,`region`],this.get(`type`))},isColor(){return this.get(`type`)===`color`},isEnumeration(){return O.contains([`number-enumeration`,`string-enumeration`],this.get(`type`))},isGirderModel(){return O.contains([`directory`,`file`,`item`,`new-file`,`image`,`multi`],this.get(`type`))},isFile(){return this.get(`type`)===`file`},isItem(){return this.get(`type`)===`item`},value(){return this.get(`value`)},types:[`color`,`range`,`number`,`boolean`,`string`,`integer`,`number-vector`,`string-vector`,`number-enumeration`,`string-enumeration`,`file`,`item`,`directory`,`multi`,`new-file`,`image`,`region`]}),k=girder.Backbone.Collection.extend({model:re,values(){let e={};return this.each(t=>{switch(t.get(`type`)){case`file`:case`item`:case`image`:case`directory`:e[t.id]=t.value().id;break;case`multi`:case`new-file`:t&&t.value&&t.value()&&t.value().get&&(e[t.id+`_folder`]=t.value().get(`folderId`),e[t.id]=t.value().get(`name`));break;case`string`:case`boolean`:case`integer`:case`float`:case`double`:case`string-enumeration`:e[t.id]=t.value();break;default:e[t.id]=JSON.stringify(t.value())}}),e}});function ie(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=se(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function ae(e,t){var n=``;for(var r in e)if(ce.call(e,r)){var i=e[r];if(r===`class`){i=A(i),n=ie(r,i,!1,t)+n;continue}r===`style`&&(i=N(i)),n+=ie(r,i,!1,t)}return n}function A(e,t){return Array.isArray(e)?oe(e,t):e&&typeof e==`object`?j(e):e||``}function oe(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=A(e[o]))&&(a&&t[o]&&(n=se(n)),r=r+i+n,i=` `);return r}function j(e){var t=``,n=``;for(var r in e)r&&e[r]&&ce.call(e,r)&&(t=t+n+r,n=` `);return t}function se(e){var t=``+e,n=M.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var ce=Object.prototype.hasOwnProperty,M=/["&<>]/;function le(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=le(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=N(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=N(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function N(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)ce.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function ue(e){var t=``,n=e||{};return(function(e,n,r,i,a,o){t=t+`<div`+(` class="s-panel-title-container"`+ie(`title`,r||``,!0,!1))+`><span class="s-panel-title">`+se(o??``)+`</span><span class="s-panel-controls">`,t+=n?`<i class="icon-down-open"></i>`:`<i class="icon-up-open"></i>`,a&&(t=t+`<i`+(` class="icon-cancel s-remove-panel s-no-panel-toggle"`+ie(`data-target`,`#${i}`,!0,!1))+`></i>`),t+=`</span></div>`;var e={};n||(e.class=`in`),t=t+`<div`+ae(le([{class:`s-panel-content collapse`},e]),!1)+`></div>`}).call(this,`attrs`in n?n.attrs:typeof attrs<`u`?attrs:void 0,`collapsed`in n?n.collapsed:typeof collapsed<`u`?collapsed:void 0,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`removeButton`in n?n.removeButton:typeof removeButton<`u`?removeButton:void 0,`title`in n?n.title:typeof title<`u`?title:void 0),t}var P=girder.$,F=girder.views.View.extend({events:{"show.bs.collapse":`expand`,"hide.bs.collapse":`collapse`,"click .s-panel-title-container":`_handleTitleClick`},initialize(e){this.spec=e.spec},render(){return this.$el.html(ue(this.spec)),this.$(`.s-panel-content`).collapse({toggle:!1}),this},expand(e){P(e.target).hasClass(`s-panel-content`)&&this.$(`.s-panel-controls .icon-down-open`).attr(`class`,`icon-up-open`)},collapse(e){P(e.target).hasClass(`s-panel-content`)&&this.$(`.s-panel-controls .icon-up-open`).attr(`class`,`icon-down-open`)},_handleTitleClick(e){P(e.target).closest(`.s-no-panel-toggle`).length||(e.stopImmediatePropagation(),this.$(`.s-panel-content`).collapse(`toggle`))}}),I=girder.$,de=girder._,fe=girder.views.widgets.BrowserWidget,pe=girder.models.FileModel,L=girder.models.ItemModel,{restRequest:me}=girder.rest,{getCurrentUser:he}=girder.auth,ge=fe.extend({initialize(e){this.model||=new L;let t=this.model.get(`type`);switch(e.showItems=!0,e.submitText=`Confirm`,e.validate=e=>this._validateModel(e),!e.defaultSelectedResource&&!(e.rootSelectorSettings&&e.rootSelectorSettings.selectByResource)&&(e.root=e.rootPath||he()),e.root===!1&&!e.defaultSelectedResource&&(e.root=null),e.paginated=!0,t){case`directory`:e.titleText=`Select a directory`;break;case`file`:e.titleText=`Select a file`,e.selectItem=!0,e.showPreview=!1;break;case`image`:e.titleText=`Select an image`,e.selectItem=!0,e.showPreview=!1;break;case`item`:e.titleText=`Select an item`,e.selectItem=!0,e.showPreview=!1;break;case`multi`:e.titleText=`Select files`,e.selectItem=!1,e.highlightItem=!1,e.input={label:`Item Filter (Regular Expression)`,validate:e=>{try{if(RegExp(e))return I.Deferred().resolve().promise()}catch{return I.Deferred().reject(`Specify a valid Regular Expression`).promise()}}},e.showPreview=!1;break;case`new-file`:e.titleText=`Select a directory`,e.input={label:`Item name`,validate:e=>e&&e.trim()||!e&&!this.model.required?I.Deferred().resolve().promise():I.Deferred().reject(`Specify an item name`).promise()},e.showPreview=!1}return e.titleText+=` for "${this.model.get(`title`)}"`,this.on(`g:saved`,(e,t)=>this._saveModel(e,t)),fe.prototype.initialize.apply(this,arguments)},render(){fe.prototype.render.apply(this,arguments);let e=this.model.get(`type`);return[`file`,`image`,`item`].includes(e)&&this.$(`.modal-footer`).hide(),e===`multi`&&(this.$(`#g-input-element`).attr(`placeholder`,`(all)`),this.$(`.g-item-list-entry`).addClass(`g-selected`),this.$(`#g-input-element`).on(`input`,()=>this.processRegularExpression()),this.model.get(`value`)&&this.model.get(`value`).get(`name`)&&this.$(`#g-input-element`).val(this.model.get(`value`).get(`name`))),this},processRegularExpression(){let e=this.$(`#g-input-element`).val();this.$(`.g-item-list-entry`).removeClass(`g-selected`);try{let t=new RegExp(e,`g`);this.$(`.g-validation-failed-message`).addClass(`hidden`),this.$(`.g-input-element.form-group`).removeClass(`has-error`),this.$(`.g-item-list-entry`).each((n,r)=>{this.$(r)&&(r=this.$(r),(r.find(`.g-item-list-link[href]`).filter((e,t)=>I(t).find(`i.icon-doc-text-inv`).length).text().match(t)||e===``)&&this.$(r).addClass(`g-selected`))})}catch(e){e instanceof SyntaxError&&(this.$(`.g-validation-failed-message`).text(`Specify a valid Regular Expression`),this.$(`.g-validation-failed-message`).removeClass(`hidden`),this.$(`.g-input-element.form-group`).addClass(`has-error`))}},_path(){let e=this._hierarchyView.breadcrumbs.map(e=>e.get(`name`));return this.model.get(`type`)===`directory`&&(e=de.initial(e)),e},_selectModel(){fe.prototype._selectModel.apply(this,arguments),this.model.get(`type`)===`multi`&&this._hierarchyView&&(this._hierarchyView.itemListView?this._hierarchyView.itemListView.once(`g:changed`,e=>{this.processRegularExpression()}):this.checkItemsLoaded(100))},checkItemsLoaded(e){this.$(`.g-folder-list`).length||this.$(`.g-item-list`).length?(clearTimeout(this.checkItemsTimeout),this.processRegularExpression()):this.checkItemsTimeout=setTimeout(()=>this.checkItemsLoaded(e),e)},_validateModel(e){let t=this.model.get(`type`),n;switch(t){case`directory`:case`new-file`:(!e||e.get(`_modelType`)!==`folder`)&&(n=`Select a directory.`);break;case`file`:if(!e)n=`Select a file.`;else{let t=I.Deferred();return me({url:`/item/${e.id}/files`,data:{limit:1}}).done(e=>{e.length||t.reject(`Please select a item with at least one file.`),t.resolve(null)}).fail(()=>{t.reject(`There was an error listing files for the selected item.`)}),t.promise()}break;case`image`:e?e.get(`largeImage`)||(n=`Please select a "large_image" item.`):n=`Select an image.`;break;case`item`:e||(n=`Select an item.`)}return n?I.Deferred().reject(n).promise():I.Deferred().resolve().promise()},_saveModel(e,t){switch(this.model.get(`type`)){case`directory`:this.model.set({path:this._path(),value:e});break;case`file`:me({url:`/item/${e.id}/files`,data:{limit:1}}).done(e=>{if(!e.length)return;let t=new pe({_id:e[0]._id});t.once(`g:fetched`,()=>{this.model.set({path:this._path(),value:t})}).fetch()});break;case`image`:{let t=e.get(`largeImage`),n=new pe({_id:t.fileId||t.originalId});n.once(`g:fetched`,()=>{this.model.set({path:this._path(),value:n})}).fetch();break}case`item`:this.model.set({path:this._path(),value:e});break;case`new-file`:t?this.model.set({path:this._path(),parent:e,value:new L({name:t,folderId:e.id})}):this.model.set({path:this._path(),parent:e,value:null});break;case`multi`:t.trim()===``&&(t=`.*`),this.model.set({path:this._path(),parent:e,folderName:e.name(),value:new L({name:t,folderId:e.id})})}},_selectItem:function(e){fe.prototype._selectItem.apply(this,arguments),this.selectItem&&this.$(`.g-submit-button`).click()}});function _e(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=ve(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function ve(e){var t=``+e,n=ye.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var ye=/["&<>]/;function be(e){var t=``,n=e||{};return(function(e,n,r,i,a){t=t+`<div`+(` class="form-group s-control-item"`+_e(`data-type`,i,!0,!1)+_e(`data-control-id`,n,!0,!1))+`><div class="checkbox"><label`+(` class="control-label"`+_e(`for`,n,!0,!1))+`><input`+(_e(`name`,r,!0,!1)+` type="checkbox"`+_e(`id`,n,!0,!1)+_e(`checked`,!!a,!0,!1))+`/>`+ve(r??``)+`</label></div>`,e&&(t=t+`<div class="s-control-widget-description">`+ve(e??``)+`</div>`),t+=`</div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function xe(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=R(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function R(e){var t=``+e,n=Se.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Se=/["&<>]/;function Ce(e){var t=``,n=e||{};return(function(e,n,r,i,a){t=t+`<div`+(` class="form-group s-control-item"`+xe(`data-type`,i,!0,!1)+xe(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+xe(`for`,n,!0,!1))+`>`+R(r??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+R(e??``)+`</div>`),t=t+`<div class="input-group"><input`+(xe(`name`,r,!0,!1)+xe(`id`,n,!0,!1)+` type="color"`+xe(`value`,a||`#000000`,!0,!1))+`/><div class="input-group-addon"><i></i></div></div></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function z(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=we(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function we(e){var t=``+e,n=Te.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Te=/["&<>]/;function Ee(e){var t=``,n=e||{};return(function(e,n,r,i,a,o){t=t+`<div`+(` class="form-group s-control-item"`+z(`data-type`,i,!0,!1)+z(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+z(`for`,n,!0,!1))+`>`+we(r??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+we(e??``)+`</div>`),t=t+`<select`+(` class="form-control"`+z(`id`,n,!0,!1)+z(`name`,r,!0,!1))+`>`,(function(){var e=o;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var i=e[n];t=t+`<option`+z(`selected`,i===a,!0,!1)+`>`+we(i??``)+`</option>`}else{var r=0;for(var n in e){r++;var i=e[n];t=t+`<option`+z(`selected`,i===a,!0,!1)+`>`+we(i??``)+`</option>`}}}).call(this),t+=`</select></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0,`values`in n?n.values:typeof values<`u`?values:void 0),t}function De(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Me(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Oe(e,t){var n=``;for(var r in e)if(Ne.call(e,r)){var i=e[r];if(r===`class`){i=ke(i),n=De(r,i,!1,t)+n;continue}r===`style`&&(i=B(i)),n+=De(r,i,!1,t)}return n}function ke(e,t){return Array.isArray(e)?Ae(e,t):e&&typeof e==`object`?je(e):e||``}function Ae(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=ke(e[o]))&&(a&&t[o]&&(n=Me(n)),r=r+i+n,i=` `);return r}function je(e){var t=``,n=``;for(var r in e)r&&e[r]&&Ne.call(e,r)&&(t=t+n+r,n=` `);return t}function Me(e){var t=``+e,n=Pe.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Ne=Object.prototype.hasOwnProperty,Pe=/["&<>]/;function Fe(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Fe(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=B(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=B(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function B(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)Ne.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function V(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l,u,d){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Oe(Fe([{class:`form-control`,name:Me(e),type:Me(o),id:Me(r),value:Me(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+De(`data-type`,u,!0,!1)+De(`data-control-id`,a,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+De(`for`,a,!0,!1))+`>`+Me(l??``)+`</label>`,r&&(t=t+`<div class="s-control-widget-description">`+Me(r??``)+`</div>`),t+=`<div class="input-group">`,d&&d.name&&u===`multi`&&i!==void 0?d=`${i}/RegEx(${d.name()||`.*`})`:d&&d.name&&(d=d.name());var c=`Choose a file...`,s=`Choose multiple files...`;if([`file`,`item`,`image`,`multi`].includes(u)&&!o)var e=!0;u===`item`&&(c=`Choose an item...`,s=`Choose multiple items...`),u===`image`&&(c=`Choose an image...`,s=`Choose multiple images...`),u===`directory`&&(c=`Choose a folder...`,s=`Choose multiple folders...`),n.input.call({attributes:{placeholder:Me(c),readonly:!0}},l,u,a,d),t=t+`<span class="input-group-btn"><button`+(` class="btn btn-default s-select-file-button" type="button" data-toggle="tooltip" data-placement="right"`+De(`title`,c,!0,!1))+`><i class="icon-folder-open"></i></button>`,e&&(t=t+`<button`+(` class="btn btn-default s-select-multifile-button" type="button" data-toggle="tooltip" data-placement="right"`+De(`title`,s,!0,!1))+`><span class="fa-stack"><i class="icon-folder-open"></i><i class="icon-plus fa-cancel-cover"></i></span></button>`),t+=`</span></div></div>`}).call(this,`batchload`in r?r.batchload:typeof batchload<`u`?batchload:void 0,`description`in r?r.description:typeof description<`u`?description:void 0,`folderName`in r?r.folderName:typeof folderName<`u`?folderName:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`multiple`in r?r.multiple:typeof multiple<`u`?multiple:void 0,`multititle`in r?r.multititle:typeof multititle<`u`?multititle:void 0,`placeholder`in r?r.placeholder:typeof placeholder<`u`?placeholder:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}function Ie(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Le(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Le(e){var t=``+e,n=Re.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var Re=/["&<>]/;function ze(e){var t=``,n=e||{};return(function(e,n,r,i,a,o,s,c){t=t+`<div`+(` class="form-group s-control-item"`+Ie(`data-type`,s,!0,!1)+Ie(`data-control-id`,n,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+Ie(`for`,n,!0,!1))+`>`+Le(o??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+Le(e??``)+`</div>`),t=t+`<input`+(Ie(`name`,o,!0,!1)+Ie(`id`,n,!0,!1)+` type="range"`+Ie(`min`,i||0,!0,!1)+Ie(`max`,r||1,!0,!1)+Ie(`step`,a||1,!0,!1)+Ie(`value`,c||i||0,!0,!1))+`/></div>`}).call(this,`description`in n?n.description:typeof description<`u`?description:void 0,`id`in n?n.id:typeof id<`u`?id:void 0,`max`in n?n.max:typeof max<`u`?max:void 0,`min`in n?n.min:typeof min<`u`?min:void 0,`step`in n?n.step:typeof step<`u`?step:void 0,`title`in n?n.title:typeof title<`u`?title:void 0,`type`in n?n.type:typeof type<`u`?type:void 0,`value`in n?n.value:typeof value<`u`?value:void 0),t}function H(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=U(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Be(e,t){var n=``;for(var r in e)if(We.call(e,r)){var i=e[r];if(r===`class`){i=Ve(i),n=H(r,i,!1,t)+n;continue}r===`style`&&(i=qe(i)),n+=H(r,i,!1,t)}return n}function Ve(e,t){return Array.isArray(e)?He(e,t):e&&typeof e==`object`?Ue(e):e||``}function He(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Ve(e[o]))&&(a&&t[o]&&(n=U(n)),r=r+i+n,i=` `);return r}function Ue(e){var t=``,n=``;for(var r in e)r&&e[r]&&We.call(e,r)&&(t=t+n+r,n=` `);return t}function U(e){var t=``+e,n=Ge.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var We=Object.prototype.hasOwnProperty,Ge=/["&<>]/;function Ke(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Ke(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=qe(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=qe(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function qe(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)We.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function Je(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l,u,d,f,p){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Be(Ke([{class:`form-control`,name:U(e),type:U(o),id:U(r),value:U(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+H(`data-type`,f,!0,!1)+H(`data-control-id`,s,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+H(`for`,s,!0,!1))+`>`+U(d??``)+`</label>`,a&&(t=t+`<div class="s-control-widget-description">`+U(a??``)+`</div>`),t+=`<div class="input-group">`,n.input(d,f,s,p.join(`,`));let m={rectangle:{icon:`icon-check-empty`,name:`Rectangle`,text:`rectangular region`},polygon:{icon:`icon-draw-polygon`,name:`Polygon`,text:`polygon region`},polyline:{icon:`icon-pencil`,name:`Line`,text:`continuous line`},line:{icon:`icon-pencil`,name:`Line Segment`,text:`line segment`},point:{icon:`icon-circle`,name:`Point`,text:`point`}},h=new r(l?l.split(`,`):[`rectangle`]);h.has(`multipolygon`)&&(h.add(`multi`),h.add(`polygon`),h.delete(`multipolygon`)),h.has(`polygon`)&&h.add(`rectangle`);var i=e.keys(m).filter(e=>h.has(e)),u=c?c.find(`.s-select-region-submit-button`).hasClass(`enabled`):void 0;i.length>0&&(t=t+`<span class="input-group-btn"><button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,i[0],!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[i[0]].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[i[0]].icon],[!0]),!1,!1)+`></i></button>`,i.length>0&&(t=t+`<div class="btn-group region-dropdown" role="group"><button`+(` class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"`+H(`disabled`,o,!0,!1))+`><i class="icon-down-dir"></i></button><div class="dropdown-menu">`,(function(){var e=i;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[a].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i>`+U(` ${m[a].name}`)+`</button>`}else{var r=0;for(var n in e){r++;var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="false"`+H(`parent-id`,s,!0,!1)+H(`title`,`Draw a ${m[a].text} on the image`,!0,!1))+`><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i>`+U(` ${m[a].name}`)+`</button>`}}}).call(this),h.has(`multi`)&&(function(){var e=i;if(typeof e.length==`number`)for(var n=0,r=e.length;n<r;n++){var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="true"`+H(`parent-id`,s,!0,!1)+H(`title`,`Add a ${m[a].text} to the existing region`,!0,!1))+`><span class="fa-stack"><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i><i class="icon-plus fa-cancel-cover"></i></span>`+U(` Add ${m[a].name}`)+`</button>`}else{var r=0;for(var n in e){r++;var a=e[n];t=t+`<button`+(` class="btn btn-default s-select-region-button"`+H(`disabled`,o,!0,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`shape`,a,!0,!1)+` multi="true"`+H(`parent-id`,s,!0,!1)+H(`title`,`Add a ${m[a].text} to the existing region`,!0,!1))+`><span class="fa-stack"><i`+H(`class`,Ve([m[a].icon],[!0]),!1,!1)+`></i><i class="icon-plus fa-cancel-cover"></i></span>`+U(` Add ${m[a].name}`)+`</button>`}}}).call(this),t+=`<button class="btn btn-default s-select-region-clear-button" type="button" data-toggle="tooltip" data-placement="right" title="Clear the current region"><i class="icon-cancel"></i> Clear</button>`,(h.has(`submit`)||h.has(`submiton`)||h.has(`autosubmit`)||h.has(`submitoff`))&&(t=t+`<button`+(H(`class`,Ve([`btn`,`btn-default`,`s-select-region-submit-button`,h.has(`submiton`)&&u!==!1||h.has(`autosubmit`)||(h.has(`submit`)||h.has(`submitoff`))&&u===!0?`active enabled`:``],[!1,!1,!1,!0]),!1,!1)+` type="button" data-toggle="tooltip" data-placement="right"`+H(`can-toggle`,h.has(`autosubmit`)?`false`:`true`,!0,!1)+` title="Submit job when region is set"`)+`><i class="icon-ok"></i> Submit</button>`),t+=`</div></div>`),t+=`</span>`),t+=`</div></div>`}).call(this,`Object`in r?r.Object:typeof Object<`u`?Object:void 0,`Set`in r?r.Set:typeof Set<`u`?Set:void 0,`buttons`in r?r.buttons:typeof buttons<`u`?buttons:void 0,`description`in r?r.description:typeof description<`u`?description:void 0,`disableRegionSelect`in r?r.disableRegionSelect:typeof disableRegionSelect<`u`?disableRegionSelect:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`previousElement`in r?r.previousElement:typeof previousElement<`u`?previousElement:void 0,`shapes`in r?r.shapes:typeof shapes<`u`?shapes:void 0,`submitActive`in r?r.submitActive:typeof submitActive<`u`?submitActive:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}function Ye(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=W(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`&#39;`)+`'`}function Xe(e,t){var n=``;for(var r in e)if(et.call(e,r)){var i=e[r];if(r===`class`){i=Ze(i),n=Ye(r,i,!1,t)+n;continue}r===`style`&&(i=rt(i)),n+=Ye(r,i,!1,t)}return n}function Ze(e,t){return Array.isArray(e)?Qe(e,t):e&&typeof e==`object`?$e(e):e||``}function Qe(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Ze(e[o]))&&(a&&t[o]&&(n=W(n)),r=r+i+n,i=` `);return r}function $e(e){var t=``,n=``;for(var r in e)r&&e[r]&&et.call(e,r)&&(t=t+n+r,n=` `);return t}function W(e){var t=``+e,n=tt.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`&quot;`;break;case 38:a=`&amp;`;break;case 60:a=`&lt;`;break;case 62:a=`&gt;`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var et=Object.prototype.hasOwnProperty,tt=/["&<>]/;function nt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=nt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=rt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=rt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function rt(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)et.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function it(e){var t=``,n={},r=e||{};return(function(e,r,i,a,o,s,c,l){n.input=function(e,n,r,i){this&&this.block;var a=this&&this.attributes||{},o=`text`;n===`number`&&(o=`number`),n.match(/-vector$/)&&(i=i.join(`,`)),t=t+`<input`+Xe(nt([{class:`form-control`,name:W(e),type:W(o),id:W(r),value:W(i)},a]),!1)+`/>`},t=t+`<div`+(` class="form-group s-control-item"`+Ye(`data-type`,c,!0,!1)+Ye(`data-control-id`,r,!0,!1))+`><label`+(` class="s-control-widget-label control-label"`+Ye(`for`,r,!0,!1))+`>`+W(s??``)+`</label>`,e&&(t=t+`<div class="s-control-widget-description">`+W(e??``)+`</div>`),n.input.call({attributes:{min:W(a),max:W(i),step:W(o)}},s,c,r,l),t+=`</div>`}).call(this,`description`in r?r.description:typeof description<`u`?description:void 0,`id`in r?r.id:typeof id<`u`?id:void 0,`max`in r?r.max:typeof max<`u`?max:void 0,`min`in r?r.min:typeof min<`u`?min:void 0,`step`in r?r.step:typeof step<`u`?step:void 0,`title`in r?r.title:typeof title<`u`?title:void 0,`type`in r?r.type:typeof type<`u`?type:void 0,`value`in r?r.value:typeof value<`u`?value:void 0),t}var at=c({$:()=>st,default:()=>st,jQuery:()=>st});function ot(e,t){if(e===void 0||!e.document)throw Error(`jQuery requires a window with a document`);var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,f=d.call(Object),p={};function m(e){return e==null?e+``:typeof e==`object`?c[l.call(e)]||`object`:typeof e}function h(e){return e!=null&&e===e.window}function g(e){var t=!!e&&e.length,n=m(e);return typeof e==`function`||h(e)?!1:n===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}var _=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){n||=_;var r,i=n.createElement(`script`);for(r in i.text=e,v)t&&t[r]&&(i[r]=t[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var b=`4.0.0`,x=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};S.fn=S.prototype={jquery:b,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return e==null?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for(typeof o==`boolean`&&(l=o,o=arguments[s]||{},s++),typeof o!=`object`&&typeof o!=`function`&&(o={}),s===c&&(o=this,s--);s<c;s++)if((e=arguments[s])!=null)for(t in e)r=e[t],t!==`__proto__`&&o!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:!i&&!S.isPlainObject(n)?{}:n,i=!1,o[t]=S.extend(l,a,r)):r!==void 0&&(o[t]=r));return o},S.extend({expando:`jQuery`+(b+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!==`[object Object]`?!1:(t=r(e),!t||(n=u.call(t,`constructor`)&&t.constructor,typeof n==`function`&&d.call(n)===f))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(g(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n=``,r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return i===1||i===11?e.textContent:i===9?e.documentElement.textContent:i===3||i===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(g(Object(e))?S.merge(n,typeof e==`string`?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||`HTML`)},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(g(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),i!=null&&s.push(i);else for(o in e)i=t(e[o],o,n),i!=null&&s.push(i);return a(s)},guid:1,support:p}),typeof Symbol==`function`&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){c[`[object `+t+`]`]=t.toLowerCase()});function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var w=n.pop,T=`[\\x20\\t\\r\\n\\f]`,E=_.documentMode,ee=E&&RegExp(`:enabled|:disabled|\\[`+T+`*name`+T+`*=`+T+`*(?:''|"")`),te=RegExp(`^`+T+`+|((?:^|[^\\\\])(?:\\\\.)*)`+T+`+$`,`g`),D=`(?:\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+`,O=RegExp(`^`+T+`*([>+~]|`+T+`)`+T+`*`),ne=RegExp(T+`|>`),re=/[+~]/,k=_.documentElement,ie=k.matches||k.msMatchesSelector;function ae(){var e=[];function t(n,r){return e.push(n+` `)>S.expr.cacheLength&&delete t[e.shift()],t[n+` `]=r}return t}function A(e){return e&&e.getElementsByTagName!==void 0&&e}var oe=`\\[`+T+`*(`+D+`)(?:`+T+`*([*^$|!~]?=)`+T+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+D+`))|)`+T+`*\\]`,j=`:(`+D+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+oe+`)*)|.*)\\)|)`,se={ID:RegExp(`^#(`+D+`)`),CLASS:RegExp(`^\\.(`+D+`)`),TAG:RegExp(`^(`+D+`|[*])`),ATTR:RegExp(`^`+oe),PSEUDO:RegExp(`^`+j),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+T+`*(even|odd|(([+-]|)(\\d*)n|)`+T+`*(?:([+-]|)`+T+`*(\\d+)|))`+T+`*\\)|)`,`i`)},ce=new RegExp(j),M=RegExp(`\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\([^\\r\\n\\f])`,`g`),le=function(e,t){var n=`0x`+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320))};function N(e){return e.replace(M,le)}function ue(e){S.error(`Syntax error, unrecognized expression: `+e)}var P=RegExp(`^`+T+`*,`+T+`*`),F=ae();function I(e,t){var n,r,i,a,o,s,c,l=F[e+` `];if(l)return t?0:l.slice(0);for(o=e,s=[],c=S.expr.preFilter;o;){for(a in(!n||(r=P.exec(o)))&&(r&&(o=o.slice(r[0].length)||o),s.push(i=[])),n=!1,(r=O.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(te,` `)}),o=o.slice(n.length)),se)(r=S.expr.match[a].exec(o))&&(!c[a]||(r=c[a](r)))&&(n=r.shift(),i.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?ue(e):F(e,s).slice(0)}var de={ATTR:function(e){return e[1]=N(e[1]),e[3]=N(e[3]||e[4]||e[5]||``),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||ue(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&ue(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return se.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:n&&ce.test(n)&&(t=I(n,!0))&&(t=n.indexOf(`)`,n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function fe(e){for(var t=0,n=e.length,r=``;t<n;t++)r+=e[t].value;return r}function pe(e,t,n,r,i,a,o){var s=0,c=e.length,l=n==null;if(m(n)===`object`)for(s in i=!0,n)pe(e,t,s,n[s],!0,a,o);else if(r!==void 0&&(i=!0,typeof r!=`function`&&(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):a}var L=/[^\x20\t\r\n\f]+/g;S.fn.extend({attr:function(e,t){return pe(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(a!==3&&a!==8&&a!==2){if(e.getAttribute===void 0)return S.prop(e,t,n);if((a!==1||!S.isXMLDoc(e))&&(i=S.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf(`aria-`)!==0){S.removeAttr(e,t);return}return i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:(e.setAttribute(t,n),n)}return i&&`get`in i&&(r=i.get(e,t))!==null?r:(r=e.getAttribute(t),r??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&e.nodeType===1)for(;n=i[r++];)e.removeAttribute(n)}}),E&&(S.attrHooks.type={set:function(e,t){if(t===`radio`&&C(e,`input`)){var n=e.value;return e.setAttribute(`type`,t),n&&(e.value=n),t}}});var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function he(e,t){return t?e===`\0`?`�`:e.slice(0,-1)+`\\`+e.charCodeAt(e.length-1).toString(16)+` `:`\\`+e}S.escapeSelector=function(e){return(e+``).replace(me,he)};var ge=n.sort,_e=n.splice,ve;function ye(e,t){if(e===t)return ve=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==_||e.ownerDocument==_&&S.contains(_,e)?-1:t==_||t.ownerDocument==_&&S.contains(_,t)?1:0:n&4?-1:1)}S.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ve=!1,ge.call(e,ye),ve){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)_e.call(e,n[r],1)}return e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))};var be,xe,R,Se,Ce,z=0,we=0,Te=ae(),Ee=ae(),De=ae(),Oe=RegExp(T+`+`,`g`),ke=RegExp(`^`+D+`$`),Ae=S.extend({needsContext:RegExp(`^`+T+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+T+`*((?:-\\d)?\\d*)`+T+`*\\)|)(?=[^-]|$)`,`i`)},se),je=/^(?:input|select|textarea|button)$/i,Me=/^h\d$/i,Ne=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Pe=function(){H()},Fe=Ve(function(e){return e.disabled===!0&&C(e,`fieldset`)},{dir:`parentNode`,next:`legend`});function B(e,t,n,r){var i,a,s,c,l,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n||=[],typeof e!=`string`||!e||p!==1&&p!==9&&p!==11)return n;if(!r&&(H(t),t||=R,Ce)){if(p!==11&&(l=Ne.exec(e))){if(i=l[1]){if(p===9)return(s=t.getElementById(i))&&o.call(n,s),n;if(f&&(s=f.getElementById(i))&&S.contains(t,s))return o.call(n,s),n}else if(l[2])return o.apply(n,t.getElementsByTagName(e)),n;else if((i=l[3])&&t.getElementsByClassName)return o.apply(n,t.getElementsByClassName(i)),n}if(!De[e+` `]&&(!ee||!ee.test(e))){if(d=e,f=t,p===1&&(ne.test(e)||O.test(e))){for(f=re.test(e)&&A(t.parentNode)||t,(f!=t||E)&&((c=t.getAttribute(`id`))?c=S.escapeSelector(c):t.setAttribute(`id`,c=S.expando)),u=I(e),a=u.length;a--;)u[a]=(c?`#`+c:`:scope`)+` `+fe(u[a]);d=u.join(`,`)}try{return o.apply(n,f.querySelectorAll(d)),n}catch{De(e,!0)}finally{c===S.expando&&t.removeAttribute(`id`)}}}return Je(e.replace(te,`$1`),t,n,r)}function V(e){return e[S.expando]=!0,e}function Ie(e){return function(t){return C(t,`input`)&&t.type===e}}function Le(e){return function(t){return(C(t,`input`)||C(t,`button`))&&t.type===e}}function Re(e){return function(t){return`form`in t?t.parentNode&&t.disabled===!1?`label`in t?`label`in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Fe(t)===e:t.disabled===e:`label`in t&&t.disabled===e}}function ze(e){return V(function(t){return t=+t,V(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function H(e){var t,n=e?e.ownerDocument||e:_;n!=R&&n.nodeType===9&&(R=n,Se=R.documentElement,Ce=!S.isXMLDoc(R),E&&_!=R&&(t=R.defaultView)&&t.top!==t&&t.addEventListener(`unload`,Pe))}for(be in B.matches=function(e,t){return B(e,null,null,t)},B.matchesSelector=function(e,t){if(H(e),Ce&&!De[t+` `]&&(!ee||!ee.test(t)))try{return ie.call(e,t)}catch{De(t,!0)}return B(t,R,null,[e]).length>0},S.expr={cacheLength:50,createPseudo:V,match:Ae,find:{ID:function(e,t){if(t.getElementById!==void 0&&Ce){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return t.getElementsByTagName===void 0?t.querySelectorAll(e):t.getElementsByTagName(e)},CLASS:function(e,t){if(t.getElementsByClassName!==void 0&&Ce)return t.getElementsByClassName(e)}},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:de,filter:{ID:function(e){var t=N(e);return function(e){return e.getAttribute(`id`)===t}},TAG:function(e){var t=N(e).toLowerCase();return e===`*`?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=Te[e+` `];return t||(t=RegExp(`(^|`+T+`)`+e+`(`+T+`|$)`))&&Te(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,n){return function(r){var i=S.attr(r,e);return i==null?t===`!=`:!t||(i+=``,t===`=`?i===n:t===`!=`?i!==n:t===`^=`?n&&i.indexOf(n)===0:t===`*=`?n&&i.indexOf(n)>-1:t===`$=`?n&&i.slice(-n.length)===n:t===`~=`?(` `+i.replace(Oe,` `)+` `).indexOf(n)>-1:t===`|=`?i===n||i.slice(0,n.length+1)===n+`-`:!1)}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!==`nth`,o=e.slice(-4)!==`last`,s=t===`of-type`;return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,m=a===o?`previousSibling`:`nextSibling`,h=t.parentNode,g=s&&t.nodeName.toLowerCase(),_=!c&&!s,v=!1;if(h){if(a){for(;m;){for(d=t;d=d[m];)if(s?C(d,g):d.nodeType===1)return!1;p=m=e===`only`&&!p&&`nextSibling`}return!0}if(p=[o?h.firstChild:h.lastChild],o&&_){for(u=h[S.expando]||(h[S.expando]={}),l=u[e]||[],f=l[0]===z&&l[1],v=f&&l[2],d=f&&h.childNodes[f];d=++f&&d&&d[m]||(v=f=0)||p.pop();)if(d.nodeType===1&&++v&&d===t){u[e]=[z,f,v];break}}else if(_&&(u=t[S.expando]||(t[S.expando]={}),l=u[e]||[],f=l[0]===z&&l[1],v=f),v===!1)for(;(d=++f&&d&&d[m]||(v=f=0)||p.pop())&&!((s?C(d,g):d.nodeType===1)&&++v&&(_&&(u=d[S.expando]||(d[S.expando]={}),u[e]=[z,v]),d===t)););return v-=i,v===r||v%r===0&&v/r>=0}}},PSEUDO:function(e,t){var n=S.expr.pseudos[e]||S.expr.setFilters[e.toLowerCase()]||ue(`unsupported pseudo: `+e);return n[S.expando]?n(t):n}},pseudos:{not:V(function(e){var t=[],n=[],r=qe(e.replace(te,`$1`));return r[S.expando]?V(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:V(function(e){return function(t){return B(e,t).length>0}}),contains:V(function(e){return e=N(e),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:V(function(e){return ke.test(e||``)||ue(`unsupported lang: `+e),e=N(e).toLowerCase(),function(t){var n;do if(n=Ce?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return n=n.toLowerCase(),n===e||n.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===Se},focus:function(e){return e===R.activeElement&&R.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Re(!1),disabled:Re(!0),checked:function(e){return C(e,`input`)&&!!e.checked||C(e,`option`)&&!!e.selected},selected:function(e){return E&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.expr.pseudos.empty(e)},header:function(e){return Me.test(e.nodeName)},input:function(e){return je.test(e.nodeName)},button:function(e){return C(e,`input`)&&e.type===`button`||C(e,`button`)},text:function(e){return C(e,`input`)&&e.type===`text`},first:ze(function(){return[0]}),last:ze(function(e,t){return[t-1]}),eq:ze(function(e,t,n){return[n<0?n+t:n]}),even:ze(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ze(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ze(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ze(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},S.expr.pseudos.nth=S.expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.expr.pseudos[be]=Ie(be);for(be in{submit:!0,reset:!0})S.expr.pseudos[be]=Le(be);function Be(){}Be.prototype=S.expr.pseudos,S.expr.setFilters=new Be;function Ve(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a===`parentNode`,s=we++;return t.first?function(t,n,i){for(;t=t[r];)if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,d=[z,s];if(c){for(;t=t[r];)if((t.nodeType===1||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(t.nodeType===1||o){if(u=t[S.expando]||(t[S.expando]={}),i&&C(t,i))t=t[r]||t;else if((l=u[a])&&l[0]===z&&l[1]===s)return d[2]=l[2];else if(u[a]=d,d[2]=e(t,n,c))return!0}return!1}}function He(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ue(e,t,n){for(var r=0,i=t.length;r<i;r++)B(e,t[r],n);return n}function U(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=t!=null;s<c;s++)(a=e[s])&&(!n||n(a,r,i))&&(o.push(a),l&&t.push(s));return o}function We(e,t,n,r,i,a){return r&&!r[S.expando]&&(r=We(r)),i&&!i[S.expando]&&(i=We(i,a)),V(function(a,c,l,u){var d,f,p,m,h=[],g=[],_=c.length,v=a||Ue(t||`*`,l.nodeType?[l]:l,[]),y=e&&(a||!t)?U(v,h,e,l,u):v;if(n?(m=i||(a?e:_||r)?[]:c,n(y,m,l,u)):m=y,r)for(d=U(m,g),r(d,[],l,u),f=d.length;f--;)(p=d[f])&&(m[g[f]]=!(y[g[f]]=p));if(a){if(i||e){if(i){for(d=[],f=m.length;f--;)(p=m[f])&&d.push(y[f]=p);i(null,m=[],d,u)}for(f=m.length;f--;)(p=m[f])&&(d=i?s.call(a,p):h[f])>-1&&(a[d]=!(c[d]=p))}}else m=U(m===c?m.splice(_,m.length):m),i?i(null,c,m,u):o.apply(c,m)})}function Ge(e){for(var t,n,r,i=e.length,a=S.expr.relative[e[0].type],o=a||S.expr.relative[` `],c=+!!a,l=Ve(function(e){return e===t},o,!0),u=Ve(function(e){return s.call(t,e)>-1},o,!0),d=[function(e,n,r){var i=!a&&(r||n!=xe)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];c<i;c++)if(n=S.expr.relative[e[c].type])d=[Ve(He(d),n)];else{if(n=S.expr.filter[e[c].type].apply(null,e[c].matches),n[S.expando]){for(r=++c;r<i&&!S.expr.relative[e[r].type];r++);return We(c>1&&He(d),c>1&&fe(e.slice(0,c-1).concat({value:e[c-2].type===` `?`*`:``})).replace(te,`$1`),n,c<r&&Ge(e.slice(c,r)),r<i&&Ge(e=e.slice(r)),r<i&&fe(e))}d.push(n)}return He(d)}function Ke(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,c,l){var u,d,f,p=0,m=`0`,h=i&&[],g=[],_=xe,v=i||r&&S.expr.find.TAG(`*`,l),y=z+=_==null?1:Math.random()||.1;for(l&&(xe=a==R||a||l);(u=v[m])!=null;m++){if(r&&u){for(d=0,!a&&u.ownerDocument!=R&&(H(u),s=!Ce);f=e[d++];)if(f(u,a||R,s)){o.call(c,u);break}l&&(z=y)}n&&((u=!f&&u)&&p--,i&&h.push(u))}if(p+=m,n&&m!==p){for(d=0;f=t[d++];)f(h,g,a,s);if(i){if(p>0)for(;m--;)h[m]||g[m]||(g[m]=w.call(c));g=U(g)}o.apply(c,g),l&&!i&&g.length>0&&p+t.length>1&&S.uniqueSort(c)}return l&&(z=y,xe=_),h};return n?V(i):i}function qe(e,t){var n,r=[],i=[],a=Ee[e+` `];if(!a){for(t||=I(e),n=t.length;n--;)a=Ge(t[n]),a[S.expando]?r.push(a):i.push(a);a=Ee(e,Ke(i,r)),a.selector=e}return a}function Je(e,t,n,r){var i,a,s,c,l,u=typeof e==`function`&&e,d=!r&&I(e=u.selector||e);if(n||=[],d.length===1){if(a=d[0]=d[0].slice(0),a.length>2&&(s=a[0]).type===`ID`&&t.nodeType===9&&Ce&&S.expr.relative[a[1].type]){if(t=(S.expr.find.ID(N(s.matches[0]),t)||[])[0],t)u&&(t=t.parentNode);else return n;e=e.slice(a.shift().value.length)}for(i=Ae.needsContext.test(e)?0:a.length;i--&&(s=a[i],!S.expr.relative[c=s.type]);)if((l=S.expr.find[c])&&(r=l(N(s.matches[0]),re.test(a[0].type)&&A(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&fe(a),!e)return o.apply(n,r),n;break}}return(u||qe(e,d))(r,t,!Ce,n,!t||re.test(e)&&A(t.parentNode)||t),n}H(),S.find=B,B.compile=qe,B.select=Je,B.setDocument=H,B.tokenize=I;function Ye(e,t,n){for(var r=[],i=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(i&&S(e).is(n))break;r.push(e)}return r}function Xe(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var Ze=S.expr.match.needsContext,Qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $e(e){return e[0]===`<`&&e[e.length-1]===`>`&&e.length>=3}function W(e,t,n){return typeof t==`function`?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):typeof t==`string`?S.filter(t,e,n):S.grep(e,function(e){return s.call(t,e)>-1!==n})}S.filter=function(e,t,n){var r=t[0];return n&&(e=`:not(`+e+`)`),t.length===1&&r.nodeType===1?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return e.nodeType===1}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=`string`)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(W(this,e||[],!1))},not:function(e){return this.pushStack(W(this,e||[],!0))},is:function(e){return!!W(this,typeof e==`string`&&Ze.test(e)?S(e):e||[],!1).length}});var et,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,nt=S.fn.init=function(e,t){var n,r;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e==`function`)return et.ready===void 0?e(S):et.ready(e);if(n=e+``,$e(n))n=[null,e,null];else if(typeof e==`string`)n=tt.exec(e);else return S.makeArray(e,this);if(n&&(n[1]||!t)){if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),Qe.test(n[1])&&S.isPlainObject(t))for(n in t)typeof this[n]==`function`?this[n](t[n]):this.attr(n,t[n]);return this}return r=_.getElementById(n[2]),r&&(this[0]=r,this.length=1),this}return!t||t.jquery?(t||et).find(e):this.constructor(t).find(e)};nt.prototype=S.fn,et=S(_);var rt=/^(?:parents|prev(?:Until|All))/,it={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=`string`&&S(e);if(!Ze.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&S.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?typeof e==`string`?s.call(S(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function at(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}S.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Ye(e,`parentNode`)},parentsUntil:function(e,t,n){return Ye(e,`parentNode`,n)},next:function(e){return at(e,`nextSibling`)},prev:function(e){return at(e,`previousSibling`)},nextAll:function(e){return Ye(e,`nextSibling`)},prevAll:function(e){return Ye(e,`previousSibling`)},nextUntil:function(e,t,n){return Ye(e,`nextSibling`,n)},prevUntil:function(e,t,n){return Ye(e,`previousSibling`,n)},siblings:function(e){return Xe((e.parentNode||{}).firstChild,e)},children:function(e){return Xe(e.firstChild)},contents:function(e){return e.contentDocument!=null&&r(e.contentDocument)?e.contentDocument:(C(e,`template`)&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return e.slice(-5)!==`Until`&&(r=n),r&&typeof r==`string`&&(i=S.filter(r,i)),this.length>1&&(it[e]||S.uniqueSort(i),rt.test(e)&&i.reverse()),this.pushStack(i)}});function ot(e){var t={};return S.each(e.match(L)||[],function(e,n){t[n]=!0}),t}S.Callbacks=function(e){e=typeof e==`string`?ot(e):S.extend({},e);var t,n,r,i,a=[],o=[],s=-1,c=function(){for(i||=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)a[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:``)},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),(function t(n){S.each(n,function(n,r){typeof r==`function`?(!e.unique||!l.has(r))&&a.push(r):r&&r.length&&m(r)!==`string`&&t(r)})})(arguments),n&&!t&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&=[],this},disable:function(){return i=o=[],a=n=``,this},disabled:function(){return!a},lock:function(){return i=o=[],!n&&!t&&(a=n=``),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n||=[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function st(e){return e}function ct(e){throw e}function lt(e,t,n,r){var i;try{e&&typeof(i=e.promise)==`function`?i.call(e).done(t).fail(n):e&&typeof(i=e.then)==`function`?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n(e)}}S.extend({Deferred:function(t){var n=[[`notify`,`progress`,S.Callbacks(`memory`),S.Callbacks(`memory`),2],[`resolve`,`done`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),0,`resolved`],[`reject`,`fail`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),1,`rejected`]],r=`pending`,i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i=typeof e[r[4]]==`function`&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&typeof e.promise==`function`?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+`With`](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,c=arguments,l=function(){var e,l;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw TypeError(`Thenable self-resolution`);l=e&&(typeof e==`object`||typeof e==`function`)&&e.then,typeof l==`function`?i?l.call(e,o(a,n,st,i),o(a,n,ct,i)):(a++,l.call(e,o(a,n,st,i),o(a,n,ct,i),o(a,n,st,n.notifyWith))):(r!==st&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=a&&(r!==ct&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?u():(S.Deferred.getErrorHook&&(u.error=S.Deferred.getErrorHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(o(0,e,typeof i==`function`?i:st,e.notifyWith)),n[1][3].add(o(0,e,typeof t==`function`?t:st)),n[2][3].add(o(0,e,typeof r==`function`?r:ct))}).promise()},promise:function(e){return e==null?i:S.extend(e,i)}},a={};return S.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+`With`](this===a?void 0:this,arguments),this},a[t[0]+`With`]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=S.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(lt(e,o.done(s(n)).resolve,o.reject,!t),o.state()===`pending`||typeof(a[n]&&a[n].then)==`function`))return o.then();for(;n--;)lt(a[n],s(n),o.reject);return o.promise()}});var ut=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){t&&ut.test(t.name)&&e.console.warn(`jQuery.Deferred exception`,t,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var dt=S.Deferred();S.fn.ready=function(e){return dt.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(e!==!0&&--S.readyWait>0)&&dt.resolveWith(_,[S]))}}),S.ready.then=dt.then;function ft(){_.removeEventListener(`DOMContentLoaded`,ft),e.removeEventListener(`load`,ft),S.ready()}_.readyState===`loading`?(_.addEventListener(`DOMContentLoaded`,ft),e.addEventListener(`load`,ft)):e.setTimeout(S.ready);var pt=/-([a-z])/g;function mt(e,t){return t.toUpperCase()}function G(e){return e.replace(pt,mt)}function ht(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function gt(){this.expando=S.expando+gt.uid++}gt.uid=1,gt.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),ht(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==`string`)i[G(t)]=n;else for(r in t)i[G(r)]=t[r];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return t===void 0||t&&typeof t==`string`&&n===void 0?this.get(e,t):(this.set(e,t,n),n===void 0?t:n)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(G):(t=G(t),t=(t in r)?[t]:t.match(L)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!S.isEmptyObject(t)}};var K=new gt,q=new gt,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,vt=/[A-Z]/g;function yt(e){return e===`true`?!0:e===`false`?!1:e===`null`?null:e===+e+``?+e:_t.test(e)?JSON.parse(e):e}function bt(e,t,n){var r;if(n===void 0&&e.nodeType===1){if(r=`data-`+t.replace(vt,`-$&`).toLowerCase(),n=e.getAttribute(r),typeof n==`string`){try{n=yt(n)}catch{}q.set(e,t,n)}else n=void 0}return n}S.extend({hasData:function(e){return q.hasData(e)||K.hasData(e)},data:function(e,t,n){return q.access(e,t,n)},removeData:function(e,t){q.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===void 0){if(this.length&&(i=q.get(a),a.nodeType===1&&!K.get(a,`hasDataAttrs`))){for(n=o.length;n--;)o[n]&&(r=o[n].name,r.indexOf(`data-`)===0&&(r=G(r.slice(5)),bt(a,r,i[r])));K.set(a,`hasDataAttrs`,!0)}return i}return typeof e==`object`?this.each(function(){q.set(this,e)}):pe(this,function(t){var n;if(a&&t===void 0)return n=q.get(a,e),n!==void 0||(n=bt(a,e),n!==void 0)?n:void 0;this.each(function(){q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||`fx`)+`queue`,r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.set(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t||=`fx`;var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);i===`inprogress`&&(i=n.shift(),r--),i&&(t===`fx`&&n.unshift(`inprogress`),delete a.stop,i.call(e,function(){S.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+`queueHooks`;return K.get(e,n)||K.set(e,n,{empty:S.Callbacks(`once memory`).add(function(){K.remove(e,[t+`queue`,n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return typeof e!=`string`&&(t=e,e=`fx`,n--),arguments.length<n?S.queue(this[0],e):t===void 0?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),e===`fx`&&n[0]!==`inprogress`&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;o--;)n=K.get(a[o],e+`queueHooks`),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var xt=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,St=RegExp(`^(?:([+-])=|)(`+xt+`)([a-z%]*)$`,`i`),Ct=[`Top`,`Right`,`Bottom`,`Left`];function wt(e,t){return e=t||e,e.style.display===`none`||e.style.display===``&&S.css(e,`display`)===`none`}var Tt=/^[a-z]/,Et=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function Dt(e){return Tt.test(e)&&Et.test(e[0].toUpperCase()+e.slice(1))}function Ot(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,``)},c=s(),l=n&&n[3]||(Dt(t)?`px`:``),u=e.nodeType&&(!Dt(t)||l!==`px`&&+c)&&St.exec(S.css(e,t));if(u&&u[3]!==l){for(c/=2,l||=u[3],u=+c||1;o--;)S.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+l),n||=[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var kt=/^-ms-/;function At(e){return G(e.replace(kt,`ms-`))}var jt={};function Mt(e){var t,n=e.ownerDocument,r=e.nodeName,i=jt[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,`display`),t.parentNode.removeChild(t),i===`none`&&(i=`block`),jt[r]=i,i)}function J(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?(n===`none`&&(i[a]=K.get(r,`display`)||null,i[a]||(r.style.display=``)),r.style.display===``&&wt(r)&&(i[a]=Mt(r))):n!==`none`&&(i[a]=`none`,K.set(r,`display`,n)));for(a=0;a<o;a++)i[a]!=null&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return J(this,!0)},hide:function(){return J(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){wt(this)?S(this).show():S(this).hide()})}});var Nt=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(Pt)===e.ownerDocument},Pt={composed:!0};k.getRootNode||(Nt=function(e){return S.contains(e.ownerDocument,e)});var Ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,It={thead:[`table`],col:[`colgroup`,`table`],tr:[`tbody`,`table`],td:[`tr`,`tbody`,`table`]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td;function Y(e,t){var r=e.getElementsByTagName===void 0?e.querySelectorAll===void 0?[]:e.querySelectorAll(t||`*`):n.slice.call(e.getElementsByTagName(t||`*`));return t===void 0||t&&C(e,t)?S.merge([e],r):r}var Lt=/^$|^module$|\/(?:java|ecma)script/i;function Rt(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],`globalEval`,!t||K.get(t[n],`globalEval`))}var zt=/<|&#?\w+;/;function Bt(e,t,r,i,a){for(var o,s,c,l,u,d,f=t.createDocumentFragment(),p=[],h=0,_=e.length;h<_;h++)if(o=e[h],o||o===0){if(m(o)===`object`&&(o.nodeType||g(o)))S.merge(p,o.nodeType?[o]:o);else if(!zt.test(o))p.push(t.createTextNode(o));else{for(s||=f.appendChild(t.createElement(`div`)),c=(Ft.exec(o)||[``,``])[1].toLowerCase(),l=It[c]||n,d=l.length;--d>-1;)s=s.appendChild(t.createElement(l[d]));s.innerHTML=S.htmlPrefilter(o),S.merge(p,s.childNodes),s=f.firstChild,s.textContent=``}}for(f.textContent=``,h=0;o=p[h++];){if(i&&S.inArray(o,i)>-1){a&&a.push(o);continue}if(u=Nt(o),s=Y(f.appendChild(o),`script`),u&&Rt(s),r)for(d=0;o=s[d++];)Lt.test(o.type||``)&&r.push(o)}return f}function Vt(e){return e.type=(e.getAttribute(`type`)!==null)+`/`+e.type,e}function Ht(e){return(e.type||``).slice(0,5)===`true/`?e.type=e.type.slice(5):e.removeAttribute(`type`),e}function Ut(e,t,n,r){t=a(t);var i,o,s,c,l,u,d=0,f=e.length,p=f-1,m=t[0];if(typeof m==`function`)return e.each(function(i){var a=e.eq(i);t[0]=m.call(this,i,a.html()),Ut(a,t,n,r)});if(f&&(i=Bt(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,i.childNodes.length===1&&(i=o),o||r)){for(s=S.map(Y(i,`script`),Vt),c=s.length;d<f;d++)l=i,d!==p&&(l=S.clone(l,!0,!0),c&&S.merge(s,Y(l,`script`))),n.call(e[d],l,d);if(c)for(u=s[s.length-1].ownerDocument,S.map(s,Ht),d=0;d<c;d++)l=s[d],Lt.test(l.type||``)&&!K.get(l,`globalEval`)&&S.contains(u,l)&&(l.src&&(l.type||``).toLowerCase()!==`module`?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce,crossOrigin:l.crossOrigin},u):y(l.textContent,l,u))}return e}var Wt=/^(?:checkbox|radio)$/i,Gt=/^([^.]*)(?:\.(.+)|)/;function Kt(){return!0}function qt(){return!1}function Jt(e,t,n,r,i,a){var o,s;if(typeof t==`object`){for(s in typeof n!=`string`&&(r||=n,n=void 0),t)Jt(e,s,n,r,t[s],a);return e}if(r==null&&i==null?(i=n,r=n=void 0):i??(typeof n==`string`?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=qt;else if(!i)return e;return a===1&&(o=i,i=function(e){return S().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}S.event={add:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=K.get(e);if(ht(e))for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&S.find.matchesSelector(k,i),n.guid||(n.guid=S.guid++),(c=g.events)||(c=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return S!==void 0&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),t=(t||``).match(L)||[``],l=t.length;l--;)s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:m.join(`.`)},a),(f=c[p])||(f=c[p]=[],f.delegateCount=0,(!d.setup||d.setup.call(e,r,m,o)===!1)&&e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u))},remove:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=K.hasData(e)&&K.get(e);if(!(!g||!(c=g.events))){for(t=(t||``).match(L)||[``],l=t.length;l--;){if(s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),!p){for(p in c)S.event.remove(e,p+t[l],n,r,!0);continue}for(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&RegExp(`(^|\\.)`+m.join(`\\.(?:.*\\.|)`)+`(\\.|$)`),o=a=f.length;a--;)u=f[a],(i||h===u.origType)&&(!n||n.guid===u.guid)&&(!s||s.test(u.namespace))&&(!r||r===u.selector||r===`**`&&u.selector)&&(f.splice(a,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));o&&!f.length&&((!d.teardown||d.teardown.call(e,m,g.handle)===!1)&&S.removeEvent(e,p,g.handle),delete c[p])}S.isEmptyObject(c)&&K.remove(e,`handle events`)}},dispatch:function(e){var t,n,r,i,a,o,s=Array(arguments.length),c=S.event.fix(e),l=(K.get(this,`events`)||Object.create(null))[c.type]||[],u=S.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!(u.preDispatch&&u.preDispatch.call(this,c)===!1)){for(o=S.event.handlers.call(this,c,l),t=0;(i=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||a.namespace===!1||c.rnamespace.test(a.namespace))&&(c.handleObj=a,c.data=a.data,r=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),r!==void 0&&(c.result=r)===!1&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;if(c&&!(e.type===`click`&&e.button>=1)){for(;l!==this;l=l.parentNode||this)if(l.nodeType===1&&(e.type!==`click`||l.disabled!==!0)){for(a=[],o={},n=0;n<c;n++)r=t[n],i=r.selector+` `,o[i]===void 0&&(o[i]=r.needsContext?S(i,this).index(l)>-1:S.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t==`function`?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:S.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`,!0),!1},trigger:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`),!0},_default:function(e){var t=e.target;return Wt.test(t.type)&&t.click&&C(t,`input`)&&K.get(t,`click`)||C(t,`a`)}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function Yt(e,t,n){if(!n){K.get(e,t)===void 0&&S.event.add(e,t,Kt);return}K.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=K.get(this,t);if(e.isTrigger&1&&this[t]){if(r.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),K.set(this,t,r),this[t](),n=K.get(this,t),K.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(K.set(this,t,{value:S.event.trigger(r[0],r.slice(1),this)}),e.stopPropagation(),e.isImmediatePropagationStopped=Kt)}})}S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Kt:qt,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:qt,isPropagationStopped:qt,isImmediatePropagationStopped:qt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Kt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Kt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Kt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:`focusin`,blur:`focusout`},function(e,t){function n(e){var t=S.event.fix(e);t.type=e.type===`focusin`?`focus`:`blur`,t.isSimulated=!0,t.target===t.currentTarget&&K.get(this,`handle`)(t)}S.event.special[e]={setup:function(){if(Yt(this,e,!0),E)this.addEventListener(t,n);else return!1},trigger:function(){return Yt(this,e),!0},teardown:function(){if(E)this.removeEventListener(t,n);else return!1},_default:function(t){return K.get(t.target,e)},delegateType:t}}),S.each({mouseenter:`mouseover`,mouseleave:`mouseout`,pointerenter:`pointerover`,pointerleave:`pointerout`},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!S.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Jt(this,e,t,n,r)},one:function(e,t,n,r){return Jt(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+`.`+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e==`object`){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||typeof t==`function`)&&(n=t,t=void 0),n===!1&&(n=qt),this.each(function(){S.event.remove(this,e,n,t)})}});var Xt=/<script|<style|<link/i;function Zt(e,t){return C(e,`table`)&&C(t.nodeType===11?t.firstChild:t,`tr`)&&S(e).children(`tbody`)[0]||e}function Qt(e,t){var n,r,i,a=K.get(e,`events`);if(t.nodeType===1){if(a)for(n in K.remove(t,`handle events`),a)for(r=0,i=a[n].length;r<i;r++)S.event.add(t,n,a[n][r]);q.hasData(e)&&q.set(t,S.extend({},q.get(e)))}}function $t(e,t,n){for(var r,i=t?S.filter(t,e):e,a=0;(r=i[a])!=null;a++)!n&&r.nodeType===1&&S.cleanData(Y(r)),r.parentNode&&(n&&Nt(r)&&Rt(Y(r,`script`)),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=Nt(e);if(E&&(e.nodeType===1||e.nodeType===11)&&!S.isXMLDoc(e))for(o=Y(s),a=Y(e),r=0,i=a.length;r<i;r++)C(o[r],`textarea`)&&(o[r].defaultValue=a[r].defaultValue);if(t){if(n)for(a||=Y(e),o||=Y(s),r=0,i=a.length;r<i;r++)Qt(a[r],o[r]);else Qt(e,s)}return o=Y(s,`script`),o.length>0&&Rt(o,!c&&Y(e,`script`)),s},cleanData:function(e){for(var t,n,r,i=S.event.special,a=0;(n=e[a])!==void 0;a++)if(ht(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[q.expando]&&(n[q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return $t(this,e,!0)},remove:function(e){return $t(this,e)},text:function(e){return pe(this,function(e){return e===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ut(this,arguments,function(e){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&Zt(this,e).appendChild(e)})},prepend:function(){return Ut(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Zt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(S.cleanData(Y(e,!1)),e.textContent=``);return this},clone:function(e,t){return e??=!1,t??=e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===void 0&&t.nodeType===1)return t.innerHTML;if(typeof e==`string`&&!Xt.test(e)&&!It[(Ft.exec(e)||[``,``])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(S.cleanData(Y(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ut(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Y(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:`append`,prependTo:`prepend`,insertBefore:`before`,insertAfter:`after`,replaceAll:`replaceWith`},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),S(i[s])[t](n),o.apply(r,n);return this.pushStack(r)}});var X=RegExp(`^(`+xt+`)(?!px)[a-z%]+$`,`i`),en=/^--/;function tn(t){var n=t.ownerDocument.defaultView;return n||=e,n.getComputedStyle(t)}function nn(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r}function rn(e,t,n){var r,i=en.test(t);return n||=tn(e),n&&(r=n.getPropertyValue(t)||n[t],i&&r&&(r=r.replace(te,`$1`)||void 0),r===``&&!Nt(e)&&(r=S.style(e,t))),r===void 0?r:r+``}var an=[`Webkit`,`Moz`,`ms`],on=_.createElement(`div`).style;function sn(e){for(var t=e[0].toUpperCase()+e.slice(1),n=an.length;n--;)if(e=an[n]+t,e in on)return e}function cn(e){return e in on?e:sn(e)||e}var ln,un,dn=_.createElement(`table`);function fn(){if(!(!dn||!dn.style)){var t,n=_.createElement(`col`),r=_.createElement(`tr`),i=_.createElement(`td`);if(dn.style.cssText=`position:absolute;left:-11111px;border-collapse:separate;border-spacing:0`,r.style.cssText=`box-sizing:content-box;border:1px solid;height:1px`,i.style.cssText=`height:9px;width:9px;padding:0`,n.span=2,k.appendChild(dn).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),dn.offsetWidth===0){k.removeChild(dn);return}t=e.getComputedStyle(r),un=E||Math.round(parseFloat(e.getComputedStyle(n).width))===18,ln=Math.round(parseFloat(t.height)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))===r.offsetHeight,k.removeChild(dn),dn=null}}S.extend(p,{reliableTrDimensions:function(){return fn(),ln},reliableColDimensions:function(){return fn(),un}});var pn={position:`absolute`,visibility:`hidden`,display:`block`},mn={letterSpacing:`0`,fontWeight:`400`};function hn(e,t,n){var r=St.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||`px`):t}function gn(e,t,n,r,i,a){var o=+(t===`width`),s=0,c=0,l=0;if(n===(r?`border`:`content`))return 0;for(;o<4;o+=2)n===`margin`&&(l+=S.css(e,n+Ct[o],!0,i)),r?(n===`content`&&(c-=S.css(e,`padding`+Ct[o],!0,i)),n!==`margin`&&(c-=S.css(e,`border`+Ct[o]+`Width`,!0,i))):(c+=S.css(e,`padding`+Ct[o],!0,i),n===`padding`?s+=S.css(e,`border`+Ct[o]+`Width`,!0,i):c+=S.css(e,`border`+Ct[o]+`Width`,!0,i));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e[`offset`+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))||0),c+l}function _n(e,t,n){var r=tn(e),i=(E||n)&&S.css(e,`boxSizing`,!1,r)===`border-box`,a=i,o=rn(e,t,r),s=`offset`+t[0].toUpperCase()+t.slice(1);if(X.test(o)){if(!n)return o;o=`auto`}return(o===`auto`||E&&i||!p.reliableColDimensions()&&C(e,`col`)||!p.reliableTrDimensions()&&C(e,`tr`))&&e.getClientRects().length&&(i=S.css(e,`boxSizing`,!1,r)===`border-box`,a=s in e,a&&(o=e[s])),o=parseFloat(o)||0,o+gn(e,t,n||(i?`border`:`content`),a,r,o)+`px`}S.extend({cssHooks:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var i,a,o,s=At(t),c=en.test(t),l=e.style;if(c||(t=cn(s)),o=S.cssHooks[t]||S.cssHooks[s],n!==void 0){if(a=typeof n,a===`string`&&(i=St.exec(n))&&i[1]&&(n=Ot(e,t,i),a=`number`),n==null||n!==n)return;a===`number`&&(n+=i&&i[3]||(Dt(s)?`px`:``)),E&&n===``&&t.indexOf(`background`)===0&&(l[t]=`inherit`),(!o||!(`set`in o)||(n=o.set(e,n,r))!==void 0)&&(c?l.setProperty(t,n):l[t]=n)}else return o&&`get`in o&&(i=o.get(e,!1,r))!==void 0?i:l[t]}},css:function(e,t,n,r){var i,a,o,s=At(t);return en.test(t)||(t=cn(s)),o=S.cssHooks[t]||S.cssHooks[s],o&&`get`in o&&(i=o.get(e,!0,n)),i===void 0&&(i=rn(e,t,r)),i===`normal`&&t in mn&&(i=mn[t]),n===``||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),S.each([`height`,`width`],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return S.css(e,`display`)===`none`?nn(e,pn,function(){return _n(e,t,r)}):_n(e,t,r)},set:function(e,n,r){var i,a=tn(e),o=r&&S.css(e,`boxSizing`,!1,a)===`border-box`,s=r?gn(e,t,r,o,a):0;return s&&(i=St.exec(n))&&(i[3]||`px`)!==`px`&&(e.style[t]=n,n=S.css(e,t)),hn(e,n,s)}}}),S.each({margin:``,padding:``,border:`Width`},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a=typeof n==`string`?n.split(` `):[n];r<4;r++)i[e+Ct[r]+t]=a[r]||a[r-2]||a[0];return i}},e!==`margin`&&(S.cssHooks[e+t].set=hn)}),S.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=tn(e),i=t.length;o<i;o++)a[t[o]]=S.css(e,t[o],!1,r);return a}return n===void 0?S.css(e,t):S.style(e,t,n)},e,t,arguments.length>1)}});function Z(e,t,n,r,i){return new Z.prototype.init(e,t,n,r,i)}S.Tween=Z,Z.prototype={constructor:Z,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Dt(n)?`px`:``)},cur:function(){var e=Z.propHooks[this.prop];return e&&e.get?e.get(this):Z.propHooks._default.get(this)},run:function(e){var t,n=Z.propHooks[this.prop];return this.pos=t=this.options.duration?S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Z.propHooks._default.set(this),this}},Z.prototype.init.prototype=Z.prototype,Z.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=S.css(e.elem,e.prop,``),!t||t===`auto`?0:t)},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):e.elem.nodeType===1&&(S.cssHooks[e.prop]||e.elem.style[cn(e.prop)]!=null)?S.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},S.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:`swing`},S.fx=Z.prototype.init,S.fx.step={};var Q,vn,yn=/^(?:toggle|show|hide)$/,bn=/queueHooks$/;function xn(){vn&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(xn):e.setTimeout(xn,13),S.fx.tick())}function Sn(){return e.setTimeout(function(){Q=void 0}),Q=Date.now()}function Cn(e,t){var n,r=0,i={height:e};for(t=+!!t;r<4;r+=2-t)n=Ct[r],i[`margin`+n]=i[`padding`+n]=e;return t&&(i.opacity=i.width=e),i}function wn(e,t,n){for(var r,i=(Dn.tweeners[t]||[]).concat(Dn.tweeners[`*`]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function Tn(e,t,n){var r,i,a,o,s,c,l,u,d=`width`in t||`height`in t,f=this,p={},m=e.style,h=e.nodeType&&wt(e),g=K.get(e,`fxshow`);for(r in n.queue||(o=S._queueHooks(e,`fx`),o.unqueued??(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(e,`fx`).length||o.empty.fire()})})),t)if(i=t[r],yn.test(i)){if(delete t[r],a||=i===`toggle`,i===(h?`hide`:`show`)){if(i===`show`&&g&&g[r]!==void 0)h=!0;else continue}p[r]=g&&g[r]||S.style(e,r)}if(c=!S.isEmptyObject(t),!(!c&&S.isEmptyObject(p)))for(r in d&&e.nodeType===1&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],l=g&&g.display,l??=K.get(e,`display`),u=S.css(e,`display`),u===`none`&&(l?u=l:(J([e],!0),l=e.style.display||l,u=S.css(e,`display`),J([e]))),(u===`inline`||u===`inline-block`&&l!=null)&&S.css(e,`float`)===`none`&&(c||(f.done(function(){m.display=l}),l??=(u=m.display,u===`none`?``:u)),m.display=`inline-block`)),n.overflow&&(m.overflow=`hidden`,f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,p)c||(g?`hidden`in g&&(h=g.hidden):g=K.set(e,`fxshow`,{display:l}),a&&(g.hidden=!h),h&&J([e],!0),f.done(function(){for(r in h||J([e]),K.remove(e,`fxshow`),p)S.style(e,r,p[r])})),c=wn(h?g[r]:0,r,f),r in g||(g[r]=c.start,h&&(c.end=c.start,c.start=0))}function En(e,t){var n,r,i,a,o;for(n in e)if(r=At(n),i=t[r],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=S.cssHooks[r],o&&`expand`in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}function Dn(e,t,n){var r,i,a=0,o=Dn.prefilters.length,s=S.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=Q||Sn(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:Q||Sn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(En(u,l.opts.specialEasing);a<o;a++)if(r=Dn.prefilters[a].call(l,e,u,l.opts),r)return typeof r.stop==`function`&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,wn,l),typeof l.opts.start==`function`&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(Dn,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Ot(n.elem,e,St.exec(t),n),n}]},tweener:function(e,t){typeof e==`function`?(t=e,e=[`*`]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Dn.tweeners[n]=Dn.tweeners[n]||[],Dn.tweeners[n].unshift(t)},prefilters:[Tn],prefilter:function(e,t){t?Dn.prefilters.unshift(e):Dn.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&typeof e==`object`?S.extend({},e):{complete:n||t||typeof e==`function`&&e,duration:e,easing:n&&t||t&&typeof t!=`function`&&t};return S.fx.off?r.duration=0:typeof r.duration!=`number`&&(r.duration=r.duration in S.fx.speeds?S.fx.speeds[r.duration]:S.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue=`fx`),r.old=r.complete,r.complete=function(){typeof r.old==`function`&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(wt).css(`opacity`,0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),a=S.speed(t,n,r),o=function(){var t=Dn(this,S.extend({},e),a);(i||K.get(this,`finish`))&&t.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!=`string`&&(n=t,t=e,e=void 0),t&&this.queue(e||`fx`,[]),this.each(function(){var t=!0,i=e!=null&&e+`queueHooks`,a=S.timers,o=K.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&bn.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem===this&&(e==null||a[i].queue===e)&&(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&S.dequeue(this,e)})},finish:function(e){return e!==!1&&(e||=`fx`),this.each(function(){var t,n=K.get(this),r=n[e+`queue`],i=n[e+`queueHooks`],a=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each([`toggle`,`show`,`hide`],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return e==null||typeof e==`boolean`?n.apply(this,arguments):this.animate(Cn(t,!0),e,r,i)}}),S.each({slideDown:Cn(`show`),slideUp:Cn(`hide`),slideToggle:Cn(`toggle`),fadeIn:{opacity:`show`},fadeOut:{opacity:`hide`},fadeToggle:{opacity:`toggle`}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Q=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||S.fx.stop(),Q=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.start=function(){vn||(vn=!0,xn())},S.fx.stop=function(){vn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,n){return t=S.fx&&S.fx.speeds[t]||t,n||=`fx`,this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};var On=/^(?:input|select|textarea|button)$/i,kn=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return pe(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(a!==3&&a!==8&&a!==2)return(a!==1||!S.isXMLDoc(e))&&(t=S.propFix[t]||t,i=S.propHooks[t]),n===void 0?i&&`get`in i&&(r=i.get(e,t))!==null?r:e[t]:i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:e[t]=n},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute(`tabindex`);return t?parseInt(t,10):On.test(e.nodeName)||kn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:`htmlFor`,class:`className`}}),E&&(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each([`tabIndex`,`readOnly`,`maxLength`,`cellSpacing`,`cellPadding`,`rowSpan`,`colSpan`,`useMap`,`frameBorder`,`contentEditable`],function(){S.propFix[this.toLowerCase()]=this});function $(e){return(e.match(L)||[]).join(` `)}function An(e){return e.getAttribute&&e.getAttribute(`class`)||``}function jn(e){return Array.isArray(e)?e:typeof e==`string`&&e.match(L)||[]}S.fn.extend({addClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).addClass(e.call(this,t,An(this)))}):(t=jn(e),t.length?this.each(function(){if(r=An(this),n=this.nodeType===1&&` `+$(r)+` `,n){for(a=0;a<t.length;a++)i=t[a],n.indexOf(` `+i+` `)<0&&(n+=i+` `);o=$(n),r!==o&&this.setAttribute(`class`,o)}}):this)},removeClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).removeClass(e.call(this,t,An(this)))}):arguments.length?(t=jn(e),t.length?this.each(function(){if(r=An(this),n=this.nodeType===1&&` `+$(r)+` `,n){for(a=0;a<t.length;a++)for(i=t[a];n.indexOf(` `+i+` `)>-1;)n=n.replace(` `+i+` `,` `);o=$(n),r!==o&&this.setAttribute(`class`,o)}}):this):this.attr(`class`,``)},toggleClass:function(e,t){var n,r,i,a;return typeof e==`function`?this.each(function(n){S(this).toggleClass(e.call(this,n,An(this),t),t)}):typeof t==`boolean`?t?this.addClass(e):this.removeClass(e):(n=jn(e),n.length?this.each(function(){for(a=S(this),i=0;i<n.length;i++)r=n[i],a.hasClass(r)?a.removeClass(r):a.addClass(r)}):this)},hasClass:function(e){var t,n,r=0;for(t=` `+e+` `;n=this[r++];)if(n.nodeType===1&&(` `+$(An(n))+` `).indexOf(t)>-1)return!0;return!1}}),S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=typeof e==`function`,this.each(function(n){var i;this.nodeType===1&&(i=r?e.call(this,n,S(this).val()):e,i==null?i=``:typeof i==`number`?i+=``:Array.isArray(i)&&(i=S.map(i,function(e){return e==null?``:e+``})),t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!t||!(`set`in t)||t.set(this,i,`value`)===void 0)&&(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],t&&`get`in t&&(n=t.get(i,`value`))!==void 0?n:(n=i.value,n??``)):void 0}}),S.extend({valHooks:{select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o=e.type===`select-one`,s=o?null:[],c=o?a+1:i.length;for(r=a<0?c:o?a:0;r<c;r++)if(n=i[r],n.selected&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,`optgroup`))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=S.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=S.inArray(S(r).val(),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),E&&(S.valHooks.option={get:function(e){return e.getAttribute(`value`)??$(S.text(e))}}),S.each([`radio`,`checkbox`],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}}});var Mn=/^(?:focusinfocus|focusoutblur)$/,Nn=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(t,n,r,i){var a,o,s,c,l,d,f,p,m=[r||_],g=u.call(t,`type`)?t.type:t,v=u.call(t,`namespace`)?t.namespace.split(`.`):[];if(o=p=s=r||=_,r.nodeType!==3&&r.nodeType!==8&&!Mn.test(g+S.event.triggered)&&(g.indexOf(`.`)>-1&&(v=g.split(`.`),g=v.shift(),v.sort()),l=g.indexOf(`:`)<0&&`on`+g,t=t[S.expando]?t:new S.Event(g,typeof t==`object`&&t),t.isTrigger=i?2:3,t.namespace=v.join(`.`),t.rnamespace=t.namespace?RegExp(`(^|\\.)`+v.join(`\\.(?:.*\\.|)`)+`(\\.|$)`):null,t.result=void 0,t.target||(t.target=r),n=n==null?[t]:S.makeArray(n,[t]),f=S.event.special[g]||{},!(!i&&f.trigger&&f.trigger.apply(r,n)===!1))){if(!i&&!f.noBubble&&!h(r)){for(c=f.delegateType||g,Mn.test(c+g)||(o=o.parentNode);o;o=o.parentNode)m.push(o),s=o;s===(r.ownerDocument||_)&&m.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=m[a++])&&!t.isPropagationStopped();)p=o,t.type=a>1?c:f.bindType||g,d=(K.get(o,`events`)||Object.create(null))[t.type]&&K.get(o,`handle`),d&&d.apply(o,n),d=l&&o[l],d&&d.apply&&ht(o)&&(t.result=d.apply(o,n),t.result===!1&&t.preventDefault());return t.type=g,!i&&!t.isDefaultPrevented()&&(!f._default||f._default.apply(m.pop(),n)===!1)&&ht(r)&&l&&typeof r[g]==`function`&&!h(r)&&(s=r[l],s&&(r[l]=null),S.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Nn),r[g](),t.isPropagationStopped()&&p.removeEventListener(g,Nn),S.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Pn=e.location,Fn={guid:Date.now()},In=/\?/;S.parseXML=function(t){var n,r;if(!t||typeof t!=`string`)return null;try{n=new e.DOMParser().parseFromString(t,`text/xml`)}catch{}return r=n&&n.getElementsByTagName(`parsererror`)[0],(!n||r)&&S.error(`Invalid XML: `+(r?S.map(r.childNodes,function(e){return e.textContent}).join(`
9
9
  `):t)),n};var Ln=/\[\]$/,Rn=/\r?\n/g,zn=/^(?:submit|button|image|reset|file)$/i,Bn=/^(?:input|select|textarea|keygen)/i;function Vn(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||Ln.test(e)?r(e,i):Vn(e+`[`+(typeof i==`object`&&i?t:``)+`]`,i,n,r)});else if(!n&&m(t)===`object`)for(i in t)Vn(e+`[`+i+`]`,t[i],n,r);else r(e,t)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=typeof t==`function`?t():t;r[r.length]=encodeURIComponent(e)+`=`+encodeURIComponent(n??``)};if(e==null)return``;if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Vn(n,e[n],t,i);return r.join(`&`)},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,`elements`);return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(`:disabled`)&&Bn.test(this.nodeName)&&!zn.test(e)&&(this.checked||!Wt.test(e))}).map(function(e,t){var n=S(this).val();return n==null?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Rn,`\r
10
10
  `)}}):{name:t.name,value:n.replace(Rn,`\r
11
- `)}}).get()}});var Hn=/%20/g,Un=/#.*$/,Wn=/([?&])_=[^&]*/,Gn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qn=/^(?:GET|HEAD)$/,Jn=/^\/\//,Yn={},Xn={},Zn=`*/*`,Qn=_.createElement(`a`);Qn.href=Pn.href;function $n(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(L)||[];if(typeof n==`function`)for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function er(e,t,n,r){var i={},a=e===Xn;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function tr(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function nr(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function rr(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn.href,type:`GET`,isLocal:Kn.test(Pn.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":Zn,text:`text/plain`,html:`text/html`,xml:`application/xml, text/xml`,json:`application/json, text/javascript`},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:`responseXML`,text:`responseText`,json:`responseJSON`},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?tr(tr(e,S.ajaxSettings),t):tr(S.ajaxSettings,e)},ajaxPrefilter:$n(Yn),ajaxTransport:$n(Xn),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,g=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Gn.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(g.promise(w),p.url=((t||p.url||Pn.href)+``).replace(Jn,Pn.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(L)||[``],p.crossDomain==null){c=_.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=Qn.protocol+`//`+Qn.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(er(Yn,p,n,w),p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!qn.test(p.type),i=p.url.replace(Un,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&(p.data=p.data.replace(Hn,`+`)):(f=p.url.slice(i.length),p.data&&(p.processData||typeof p.data==`string`)&&(i+=(In.test(i)?`&`:`?`)+p.data,delete p.data),p.cache===!1&&(i=i.replace(Wn,`$1`),f=(In.test(i)?`&`:`?`)+`_=`+Fn.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&w.setRequestHeader(`If-Modified-Since`,S.lastModified[i]),S.etag[i]&&w.setRequestHeader(`If-None-Match`,S.etag[i])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader(`Content-Type`,p.contentType),w.setRequestHeader(`Accept`,p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]===`*`?``:`, `+Zn+`; q=0.01`):p.accepts[`*`]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(m,w,p)===!1||l))return w.abort();if(C=`abort`,v.add(p.complete),w.done(p.success),w.fail(p.error),r=er(Xn,p,n,w),!r)T(-1,`No Transport`);else{if(w.readyState=1,u&&h.trigger(`ajaxSend`,[w,p]),l)return w;p.async&&p.timeout>0&&(s=e.setTimeout(function(){w.abort(`timeout`)},p.timeout));try{l=!1,r.send(b,T)}catch(e){if(l)throw e;T(-1,e)}}function T(t,n,o,c){var d,f,_,b,x,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,a=c||``,w.readyState=t>0?4:0,d=t>=200&&t<300||t===304,o&&(b=nr(p,w,o)),!d&&S.inArray(`script`,p.dataTypes)>-1&&S.inArray(`json`,p.dataTypes)<0&&(p.converters[`text script`]=function(){}),b=rr(p,b,w,d),d?(p.ifModified&&(x=w.getResponseHeader(`Last-Modified`),x&&(S.lastModified[i]=x),x=w.getResponseHeader(`etag`),x&&(S.etag[i]=x)),t===204||p.type===`HEAD`?C=`nocontent`:t===304?C=`notmodified`:(C=b.state,f=b.data,_=b.error,d=!_)):(_=C,(t||!C)&&(C=`error`,t<0&&(t=0))),w.status=t,w.statusText=(n||C)+``,d?g.resolveWith(m,[f,C,w]):g.rejectWith(m,[w,C,_]),w.statusCode(y),y=void 0,u&&h.trigger(d?`ajaxSuccess`:`ajaxError`,[w,p,d?f:_]),v.fireWith(m,[w,C]),u&&(h.trigger(`ajaxComplete`,[w,p]),--S.active||S.event.trigger(`ajaxStop`)))}return w},getJSON:function(e,t,n){return S.get(e,t,n,`json`)},getScript:function(e,t){return S.get(e,void 0,t,`script`)}}),S.each([`get`,`post`],function(e,t){S[t]=function(e,n,r,i){return(typeof n==`function`||n===null)&&(i||=r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()===`content-type`&&(e.contentType=e.headers[t]||``)}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e==`function`&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return typeof e==`function`?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e==`function`;return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(`body`).each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var ir={0:200};S.ajaxTransport(function(e){var t;return{send:function(n,r){var i,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];for(i in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!n[`X-Requested-With`]&&(n[`X-Requested-With`]=`XMLHttpRequest`),n)a.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=a.onload=a.onerror=a.onabort=a.ontimeout=null,e===`abort`?a.abort():e===`error`?r(a.status,a.statusText):r(ir[a.status]||a.status,a.statusText,(a.responseType||`text`)===`text`?{text:a.responseText}:{binary:a.response},a.getAllResponseHeaders()))}},a.onload=t(),a.onabort=a.onerror=a.ontimeout=t(`error`),t=t(`abort`);try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}});function ar(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&S.inArray(`json`,e.dataTypes)<0)}S.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),ar(e)&&(e.type=`GET`)}),S.ajaxTransport(`script`,function(e){if(ar(e)){var t,n;return{send:function(r,i){t=S(`<script>`).attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(`load error`,n=function(e){t.remove(),n=null,e&&i(e.type===`error`?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}});var or=[],sr=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=or.pop()||S.expando+`_`+Fn.guid++;return this[e]=!0,e}}),S.ajaxPrefilter(`jsonp`,function(t,n,r){var i,a,o,s=t.jsonp!==!1&&(sr.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&sr.test(t.data)&&`data`);return i=t.jsonpCallback=typeof t.jsonpCallback==`function`?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(sr,`$1`+i):t.jsonp!==!1&&(t.url+=(In.test(t.url)?`&`:`?`)+t.jsonp+`=`+i),t.converters[`script json`]=function(){return o||S.error(i+` was not called`),o[0]},t.dataTypes[0]=`json`,a=e[i],e[i]=function(){o=arguments},r.always(function(){a===void 0?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,or.push(i)),o&&typeof a==`function`&&a(o[0]),o=a=void 0}),`script`}),S.ajaxPrefilter(function(t,n){typeof t.data!=`string`&&!S.isPlainObject(t.data)&&!Array.isArray(t.data)&&!(`processData`in n)&&(t.processData=!1),t.data instanceof e.FormData&&(t.contentType=!1)}),S.parseHTML=function(t,n,r){if(typeof t!=`string`&&!$e(t+``))return[];typeof n==`boolean`&&(r=n,n=!1);var i,a;return n||=new e.DOMParser().parseFromString(``,`text/html`),i=Qe.exec(t),a=!r&&[],i?[n.createElement(i[1])]:(i=Bt([t],n,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes))},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(` `);return s>-1&&(r=$(e.slice(s)),e=e.slice(0,s)),typeof t==`function`?(n=t,t=void 0):t&&typeof t==`object`&&(i=`POST`),o.length>0&&S.ajax({url:e,type:i||`GET`,dataType:`html`,data:t}).done(function(e){a=arguments,o.html(r?S(`<div>`).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l,u=S.css(e,`position`),d=S(e),f={};u===`static`&&(e.style.position=`relative`),s=d.offset(),a=S.css(e,`top`),c=S.css(e,`left`),l=(u===`absolute`||u===`fixed`)&&(a+c).indexOf(`auto`)>-1,l?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),typeof t==`function`&&(t=t.call(e,n,S.extend({},s))),t.top!=null&&(f.top=t.top-s.top+o),t.left!=null&&(f.left=t.left-s.left+i),`using`in t?t.using.call(e,f):d.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(S.css(r,`position`)===`fixed`)t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&e!==n.documentElement&&S.css(e,`position`)===`static`;)e=e.offsetParent||n.documentElement;e&&e!==r&&e.nodeType===1&&S.css(e,`position`)!==`static`&&(i=S(e).offset(),i.top+=S.css(e,`borderTopWidth`,!0),i.left+=S.css(e,`borderLeftWidth`,!0))}return{top:t.top-i.top-S.css(r,`marginTop`,!0),left:t.left-i.left-S.css(r,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&S.css(e,`position`)===`static`;)e=e.offsetParent;return e||k})}}),S.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var n=t===`pageYOffset`;S.fn[e]=function(r){return pe(this,function(e,r,i){var a;if(h(e)?a=e:e.nodeType===9&&(a=e.defaultView),i===void 0)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each({Height:`height`,Width:`width`},function(e,t){S.each({padding:`inner`+e,content:t,"":`outer`+e},function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=`boolean`),s=n||(i===!0||a===!0?`margin`:`border`);return pe(this,function(t,n,i){var a;return h(t)?r.indexOf(`outer`)===0?t[`inner`+e]:t.document.documentElement[`client`+e]:t.nodeType===9?(a=t.documentElement,Math.max(t.body[`scroll`+e],a[`scroll`+e],t.body[`offset`+e],a[`offset`+e],a[`client`+e])):i===void 0?S.css(t,n,s):S.style(t,n,i,s)},t,o?i:void 0,o)}})}),S.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,n)},hover:function(e,t){return this.on(`mouseenter`,e).on(`mouseleave`,t||e)}}),S.each(`blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu`.split(` `),function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),S.proxy=function(e,t){var n,r,a;if(typeof t==`string`&&(n=e[t],t=e,e=n),typeof e==`function`)return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.expr[`:`]=S.expr.filters=S.expr.pseudos,typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return S});var cr=e.jQuery,lr=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=lr),t&&e.jQuery===S&&(e.jQuery=cr),S},t===void 0&&(e.jQuery=e.$=S),S}var st,ct=o((()=>{st=ot(window,!0)})),lt=s(((e,t)=>{var{jQuery:n}=(ct(),d(at));t.exports=n}));s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(lt()):typeof define==`function`&&define.amd?define(`bootstrap-colorpicker`,[`jquery`],r):typeof e==`object`?e["bootstrap-colorpicker"]=r(lt()):n[`bootstrap-colorpicker`]=r(n.jQuery)})(window,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o(this,e),this.colorpicker=t,this.options=n,!(this.colorpicker.element&&this.colorpicker.element.length))throw Error(`Extension: this.colorpicker.element is not valid`);this.colorpicker.element.on(`colorpickerCreate.colorpicker-ext`,i.default.proxy(this.onCreate,this)),this.colorpicker.element.on(`colorpickerDestroy.colorpicker-ext`,i.default.proxy(this.onDestroy,this)),this.colorpicker.element.on(`colorpickerUpdate.colorpicker-ext`,i.default.proxy(this.onUpdate,this)),this.colorpicker.element.on(`colorpickerChange.colorpicker-ext`,i.default.proxy(this.onChange,this)),this.colorpicker.element.on(`colorpickerInvalid.colorpicker-ext`,i.default.proxy(this.onInvalid,this)),this.colorpicker.element.on(`colorpickerShow.colorpicker-ext`,i.default.proxy(this.onShow,this)),this.colorpicker.element.on(`colorpickerHide.colorpicker-ext`,i.default.proxy(this.onHide,this)),this.colorpicker.element.on(`colorpickerEnable.colorpicker-ext`,i.default.proxy(this.onEnable,this)),this.colorpicker.element.on(`colorpickerDisable.colorpicker-ext`,i.default.proxy(this.onDisable,this))}return r(e,[{key:`resolveColor`,value:function(e){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],!1}},{key:`onCreate`,value:function(e){}},{key:`onDestroy`,value:function(e){this.colorpicker.element.off(`.colorpicker-ext`)}},{key:`onUpdate`,value:function(e){}},{key:`onChange`,value:function(e){}},{key:`onInvalid`,value:function(e){}},{key:`onHide`,value:function(e){}},{key:`onShow`,value:function(e){}},{key:`onDisable`,value:function(e){}},{key:`onEnable`,value:function(e){}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorItem=t.HSVAColor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(16));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var s=function(){function e(t,n,r,i){o(this,e),this.h=isNaN(t)?0:t,this.s=isNaN(n)?0:n,this.v=isNaN(r)?0:r,this.a=isNaN(t)?1:i}return r(e,[{key:`toString`,value:function(){return this.h+`, `+this.s+`%, `+this.v+`%, `+this.a}}]),e}(),c=function(){r(e,[{key:`api`,value:function(t){var n=[...arguments].slice(1);if(arguments.length===0)return this._color;var r=this._color[t].apply(this._color,n);return r instanceof i.default?new e(r,this.format):r}},{key:`original`,get:function(){return this._original}}],[{key:`HSVAColor`,get:function(){return s}}]);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];o(this,e),this.replace(t,n,r)}return r(e,[{key:`replace`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(n=e.sanitizeFormat(n),this._original={color:t,format:n,valid:!0},this._color=e.parse(t,r),this._color===null){this._color=(0,i.default)(),this._original.valid=!1;return}this._format=n||(e.isHex(t)?`hex`:this._color.model)}},{key:`isValid`,value:function(){return this._original.valid===!0}},{key:`setHueRatio`,value:function(e){this.hue=(1-e)*360}},{key:`setSaturationRatio`,value:function(e){this.saturation=e*100}},{key:`setValueRatio`,value:function(e){this.value=(1-e)*100}},{key:`setAlphaRatio`,value:function(e){this.alpha=1-e}},{key:`isDesaturated`,value:function(){return this.saturation===0}},{key:`isTransparent`,value:function(){return this.alpha===0}},{key:`hasTransparency`,value:function(){return this.hasAlpha()&&this.alpha<1}},{key:`hasAlpha`,value:function(){return!isNaN(this.alpha)}},{key:`toObject`,value:function(){return new s(this.hue,this.saturation,this.value,this.alpha)}},{key:`toHsva`,value:function(){return this.toObject()}},{key:`toHsvaRatio`,value:function(){return new s(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:`toString`,value:function(){return this.string()}},{key:`string`,value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(t=e.sanitizeFormat(t||this.format),!t)return this._color.round().string();if(this._color[t]===void 0)throw Error(`Unsupported color format: '`+t+`'`);var n=this._color[t]();return n.round?n.round().string():n}},{key:`equals`,value:function(t){return t=t instanceof e?t:new e(t),!t.isValid()||!this.isValid()?!1:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},{key:`getClone`,value:function(){return new e(this._color,this.format)}},{key:`getCloneHueOnly`,value:function(){return new e([this.hue,100,100,1],this.format)}},{key:`getCloneOpaque`,value:function(){return new e(this._color.alpha(1),this.format)}},{key:`toRgbString`,value:function(){return this.string(`rgb`)}},{key:`toHexString`,value:function(){return this.string(`hex`)}},{key:`toHslString`,value:function(){return this.string(`hsl`)}},{key:`isDark`,value:function(){return this._color.isDark()}},{key:`isLight`,value:function(){return this._color.isLight()}},{key:`generate`,value:function(t){var n=[];if(Array.isArray(t))n=t;else if(e.colorFormulas.hasOwnProperty(t))n=e.colorFormulas[t];else throw Error(`No color formula found with the name '`+t+`'.`);var r=[],i=this._color,a=this.format;return n.forEach(function(t){var n=[t?(i.hue()+t)%360:i.hue(),i.saturationv(),i.value(),i.alpha()];r.push(new e(n,a))}),r}},{key:`hue`,get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:`saturation`,get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:`value`,get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:`alpha`,get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(e*100)/100)}},{key:`format`,get:function(){return this._format?this._format:this._color.model},set:function(t){this._format=e.sanitizeFormat(t)}}],[{key:`parse`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t instanceof i.default)return t;if(t instanceof e)return t._color;var r=null;if(t=t instanceof s?[t.h,t.s,t.v,isNaN(t.a)?1:t.a]:e.sanitizeString(t),t===null||(Array.isArray(t)&&(r=`hsv`),e.isHex(t)&&t.length!==6&&t.length!==7&&n))return null;try{return(0,i.default)(t,r)}catch{return null}}},{key:`sanitizeString`,value:function(e){return typeof e==`string`||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?`#`+e:e.toLowerCase()===`transparent`?`#FFFFFF00`:e:e}},{key:`isHex`,value:function(e){return typeof e==`string`||e instanceof String?!!e.match(/^#?[0-9a-f]{2,}$/i):!1}},{key:`sanitizeFormat`,value:function(e){switch(e){case`hex`:case`hex3`:case`hex4`:case`hex6`:case`hex8`:return`hex`;case`rgb`:case`rgba`:case`keyword`:case`name`:return`rgb`;case`hsl`:case`hsla`:case`hsv`:case`hsva`:case`hwb`:case`hwba`:return`hsl`;default:return``}}}]),e}();c.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},t.default=c,t.HSVAColor=s,t.ColorItem=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={bar_size_short:16,base_margin:6,columns:6},i=r.bar_size_short*r.columns+r.base_margin*(r.columns-1);t.default={customClass:null,color:!1,fallbackColor:!1,format:`auto`,horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:`bottom`,fallbackPlacement:`flip`},debug:!1,input:`input`,addon:`.colorpicker-input-addon`,autoInputFallback:!0,autoHexInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:`<div class="colorpicker">
11
+ `)}}).get()}});var Hn=/%20/g,Un=/#.*$/,Wn=/([?&])_=[^&]*/,Gn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qn=/^(?:GET|HEAD)$/,Jn=/^\/\//,Yn={},Xn={},Zn=`*/*`,Qn=_.createElement(`a`);Qn.href=Pn.href;function $n(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(L)||[];if(typeof n==`function`)for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function er(e,t,n,r){var i={},a=e===Xn;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function tr(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function nr(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function rr(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0){if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn.href,type:`GET`,isLocal:Kn.test(Pn.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":Zn,text:`text/plain`,html:`text/html`,xml:`application/xml, text/xml`,json:`application/json, text/javascript`},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:`responseXML`,text:`responseText`,json:`responseJSON`},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?tr(tr(e,S.ajaxSettings),t):tr(S.ajaxSettings,e)},ajaxPrefilter:$n(Yn),ajaxTransport:$n(Xn),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,g=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Gn.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e){if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]]}return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(g.promise(w),p.url=((t||p.url||Pn.href)+``).replace(Jn,Pn.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(L)||[``],p.crossDomain==null){c=_.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=Qn.protocol+`//`+Qn.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(er(Yn,p,n,w),p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!qn.test(p.type),i=p.url.replace(Un,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&(p.data=p.data.replace(Hn,`+`)):(f=p.url.slice(i.length),p.data&&(p.processData||typeof p.data==`string`)&&(i+=(In.test(i)?`&`:`?`)+p.data,delete p.data),p.cache===!1&&(i=i.replace(Wn,`$1`),f=(In.test(i)?`&`:`?`)+`_=`+Fn.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&w.setRequestHeader(`If-Modified-Since`,S.lastModified[i]),S.etag[i]&&w.setRequestHeader(`If-None-Match`,S.etag[i])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader(`Content-Type`,p.contentType),w.setRequestHeader(`Accept`,p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]===`*`?``:`, `+Zn+`; q=0.01`):p.accepts[`*`]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(m,w,p)===!1||l))return w.abort();if(C=`abort`,v.add(p.complete),w.done(p.success),w.fail(p.error),r=er(Xn,p,n,w),!r)T(-1,`No Transport`);else{if(w.readyState=1,u&&h.trigger(`ajaxSend`,[w,p]),l)return w;p.async&&p.timeout>0&&(s=e.setTimeout(function(){w.abort(`timeout`)},p.timeout));try{l=!1,r.send(b,T)}catch(e){if(l)throw e;T(-1,e)}}function T(t,n,o,c){var d,f,_,b,x,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,a=c||``,w.readyState=t>0?4:0,d=t>=200&&t<300||t===304,o&&(b=nr(p,w,o)),!d&&S.inArray(`script`,p.dataTypes)>-1&&S.inArray(`json`,p.dataTypes)<0&&(p.converters[`text script`]=function(){}),b=rr(p,b,w,d),d?(p.ifModified&&(x=w.getResponseHeader(`Last-Modified`),x&&(S.lastModified[i]=x),x=w.getResponseHeader(`etag`),x&&(S.etag[i]=x)),t===204||p.type===`HEAD`?C=`nocontent`:t===304?C=`notmodified`:(C=b.state,f=b.data,_=b.error,d=!_)):(_=C,(t||!C)&&(C=`error`,t<0&&(t=0))),w.status=t,w.statusText=(n||C)+``,d?g.resolveWith(m,[f,C,w]):g.rejectWith(m,[w,C,_]),w.statusCode(y),y=void 0,u&&h.trigger(d?`ajaxSuccess`:`ajaxError`,[w,p,d?f:_]),v.fireWith(m,[w,C]),u&&(h.trigger(`ajaxComplete`,[w,p]),--S.active||S.event.trigger(`ajaxStop`)))}return w},getJSON:function(e,t,n){return S.get(e,t,n,`json`)},getScript:function(e,t){return S.get(e,void 0,t,`script`)}}),S.each([`get`,`post`],function(e,t){S[t]=function(e,n,r,i){return(typeof n==`function`||n===null)&&(i||=r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()===`content-type`&&(e.contentType=e.headers[t]||``)}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e==`function`&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return typeof e==`function`?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e==`function`;return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(`body`).each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var ir={0:200};S.ajaxTransport(function(e){var t;return{send:function(n,r){var i,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];for(i in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!n[`X-Requested-With`]&&(n[`X-Requested-With`]=`XMLHttpRequest`),n)a.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=a.onload=a.onerror=a.onabort=a.ontimeout=null,e===`abort`?a.abort():e===`error`?r(a.status,a.statusText):r(ir[a.status]||a.status,a.statusText,(a.responseType||`text`)===`text`?{text:a.responseText}:{binary:a.response},a.getAllResponseHeaders()))}},a.onload=t(),a.onabort=a.onerror=a.ontimeout=t(`error`),t=t(`abort`);try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}});function ar(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&S.inArray(`json`,e.dataTypes)<0)}S.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),ar(e)&&(e.type=`GET`)}),S.ajaxTransport(`script`,function(e){if(ar(e)){var t,n;return{send:function(r,i){t=S(`<script>`).attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(`load error`,n=function(e){t.remove(),n=null,e&&i(e.type===`error`?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}});var or=[],sr=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=or.pop()||S.expando+`_`+Fn.guid++;return this[e]=!0,e}}),S.ajaxPrefilter(`jsonp`,function(t,n,r){var i,a,o,s=t.jsonp!==!1&&(sr.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&sr.test(t.data)&&`data`);return i=t.jsonpCallback=typeof t.jsonpCallback==`function`?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(sr,`$1`+i):t.jsonp!==!1&&(t.url+=(In.test(t.url)?`&`:`?`)+t.jsonp+`=`+i),t.converters[`script json`]=function(){return o||S.error(i+` was not called`),o[0]},t.dataTypes[0]=`json`,a=e[i],e[i]=function(){o=arguments},r.always(function(){a===void 0?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,or.push(i)),o&&typeof a==`function`&&a(o[0]),o=a=void 0}),`script`}),S.ajaxPrefilter(function(t,n){typeof t.data!=`string`&&!S.isPlainObject(t.data)&&!Array.isArray(t.data)&&!(`processData`in n)&&(t.processData=!1),t.data instanceof e.FormData&&(t.contentType=!1)}),S.parseHTML=function(t,n,r){if(typeof t!=`string`&&!$e(t+``))return[];typeof n==`boolean`&&(r=n,n=!1);var i,a;return n||=new e.DOMParser().parseFromString(``,`text/html`),i=Qe.exec(t),a=!r&&[],i?[n.createElement(i[1])]:(i=Bt([t],n,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes))},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(` `);return s>-1&&(r=$(e.slice(s)),e=e.slice(0,s)),typeof t==`function`?(n=t,t=void 0):t&&typeof t==`object`&&(i=`POST`),o.length>0&&S.ajax({url:e,type:i||`GET`,dataType:`html`,data:t}).done(function(e){a=arguments,o.html(r?S(`<div>`).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l,u=S.css(e,`position`),d=S(e),f={};u===`static`&&(e.style.position=`relative`),s=d.offset(),a=S.css(e,`top`),c=S.css(e,`left`),l=(u===`absolute`||u===`fixed`)&&(a+c).indexOf(`auto`)>-1,l?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),typeof t==`function`&&(t=t.call(e,n,S.extend({},s))),t.top!=null&&(f.top=t.top-s.top+o),t.left!=null&&(f.left=t.left-s.left+i),`using`in t?t.using.call(e,f):d.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(S.css(r,`position`)===`fixed`)t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&e!==n.documentElement&&S.css(e,`position`)===`static`;)e=e.offsetParent||n.documentElement;e&&e!==r&&e.nodeType===1&&S.css(e,`position`)!==`static`&&(i=S(e).offset(),i.top+=S.css(e,`borderTopWidth`,!0),i.left+=S.css(e,`borderLeftWidth`,!0))}return{top:t.top-i.top-S.css(r,`marginTop`,!0),left:t.left-i.left-S.css(r,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&S.css(e,`position`)===`static`;)e=e.offsetParent;return e||k})}}),S.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var n=t===`pageYOffset`;S.fn[e]=function(r){return pe(this,function(e,r,i){var a;if(h(e)?a=e:e.nodeType===9&&(a=e.defaultView),i===void 0)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each({Height:`height`,Width:`width`},function(e,t){S.each({padding:`inner`+e,content:t,"":`outer`+e},function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=`boolean`),s=n||(i===!0||a===!0?`margin`:`border`);return pe(this,function(t,n,i){var a;return h(t)?r.indexOf(`outer`)===0?t[`inner`+e]:t.document.documentElement[`client`+e]:t.nodeType===9?(a=t.documentElement,Math.max(t.body[`scroll`+e],a[`scroll`+e],t.body[`offset`+e],a[`offset`+e],a[`client`+e])):i===void 0?S.css(t,n,s):S.style(t,n,i,s)},t,o?i:void 0,o)}})}),S.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,n)},hover:function(e,t){return this.on(`mouseenter`,e).on(`mouseleave`,t||e)}}),S.each(`blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu`.split(` `),function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),S.proxy=function(e,t){var n,r,a;if(typeof t==`string`&&(n=e[t],t=e,e=n),typeof e==`function`)return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.expr[`:`]=S.expr.filters=S.expr.pseudos,typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return S});var cr=e.jQuery,lr=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=lr),t&&e.jQuery===S&&(e.jQuery=cr),S},t===void 0&&(e.jQuery=e.$=S),S}var st,ct=o((()=>{st=ot(window,!0)})),lt=s(((e,t)=>{var{jQuery:n}=(ct(),d(at));t.exports=n}));s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(lt()):typeof define==`function`&&define.amd?define(`bootstrap-colorpicker`,[`jquery`],r):typeof e==`object`?e["bootstrap-colorpicker"]=r(lt()):n[`bootstrap-colorpicker`]=r(n.jQuery)})(window,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o(this,e),this.colorpicker=t,this.options=n,!(this.colorpicker.element&&this.colorpicker.element.length))throw Error(`Extension: this.colorpicker.element is not valid`);this.colorpicker.element.on(`colorpickerCreate.colorpicker-ext`,i.default.proxy(this.onCreate,this)),this.colorpicker.element.on(`colorpickerDestroy.colorpicker-ext`,i.default.proxy(this.onDestroy,this)),this.colorpicker.element.on(`colorpickerUpdate.colorpicker-ext`,i.default.proxy(this.onUpdate,this)),this.colorpicker.element.on(`colorpickerChange.colorpicker-ext`,i.default.proxy(this.onChange,this)),this.colorpicker.element.on(`colorpickerInvalid.colorpicker-ext`,i.default.proxy(this.onInvalid,this)),this.colorpicker.element.on(`colorpickerShow.colorpicker-ext`,i.default.proxy(this.onShow,this)),this.colorpicker.element.on(`colorpickerHide.colorpicker-ext`,i.default.proxy(this.onHide,this)),this.colorpicker.element.on(`colorpickerEnable.colorpicker-ext`,i.default.proxy(this.onEnable,this)),this.colorpicker.element.on(`colorpickerDisable.colorpicker-ext`,i.default.proxy(this.onDisable,this))}return r(e,[{key:`resolveColor`,value:function(e){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],!1}},{key:`onCreate`,value:function(e){}},{key:`onDestroy`,value:function(e){this.colorpicker.element.off(`.colorpicker-ext`)}},{key:`onUpdate`,value:function(e){}},{key:`onChange`,value:function(e){}},{key:`onInvalid`,value:function(e){}},{key:`onHide`,value:function(e){}},{key:`onShow`,value:function(e){}},{key:`onDisable`,value:function(e){}},{key:`onEnable`,value:function(e){}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorItem=t.HSVAColor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(16));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var s=function(){function e(t,n,r,i){o(this,e),this.h=isNaN(t)?0:t,this.s=isNaN(n)?0:n,this.v=isNaN(r)?0:r,this.a=isNaN(t)?1:i}return r(e,[{key:`toString`,value:function(){return this.h+`, `+this.s+`%, `+this.v+`%, `+this.a}}]),e}(),c=function(){r(e,[{key:`api`,value:function(t){var n=[...arguments].slice(1);if(arguments.length===0)return this._color;var r=this._color[t].apply(this._color,n);return r instanceof i.default?new e(r,this.format):r}},{key:`original`,get:function(){return this._original}}],[{key:`HSVAColor`,get:function(){return s}}]);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];o(this,e),this.replace(t,n,r)}return r(e,[{key:`replace`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(n=e.sanitizeFormat(n),this._original={color:t,format:n,valid:!0},this._color=e.parse(t,r),this._color===null){this._color=(0,i.default)(),this._original.valid=!1;return}this._format=n||(e.isHex(t)?`hex`:this._color.model)}},{key:`isValid`,value:function(){return this._original.valid===!0}},{key:`setHueRatio`,value:function(e){this.hue=(1-e)*360}},{key:`setSaturationRatio`,value:function(e){this.saturation=e*100}},{key:`setValueRatio`,value:function(e){this.value=(1-e)*100}},{key:`setAlphaRatio`,value:function(e){this.alpha=1-e}},{key:`isDesaturated`,value:function(){return this.saturation===0}},{key:`isTransparent`,value:function(){return this.alpha===0}},{key:`hasTransparency`,value:function(){return this.hasAlpha()&&this.alpha<1}},{key:`hasAlpha`,value:function(){return!isNaN(this.alpha)}},{key:`toObject`,value:function(){return new s(this.hue,this.saturation,this.value,this.alpha)}},{key:`toHsva`,value:function(){return this.toObject()}},{key:`toHsvaRatio`,value:function(){return new s(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:`toString`,value:function(){return this.string()}},{key:`string`,value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(t=e.sanitizeFormat(t||this.format),!t)return this._color.round().string();if(this._color[t]===void 0)throw Error(`Unsupported color format: '`+t+`'`);var n=this._color[t]();return n.round?n.round().string():n}},{key:`equals`,value:function(t){return t=t instanceof e?t:new e(t),!t.isValid()||!this.isValid()?!1:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},{key:`getClone`,value:function(){return new e(this._color,this.format)}},{key:`getCloneHueOnly`,value:function(){return new e([this.hue,100,100,1],this.format)}},{key:`getCloneOpaque`,value:function(){return new e(this._color.alpha(1),this.format)}},{key:`toRgbString`,value:function(){return this.string(`rgb`)}},{key:`toHexString`,value:function(){return this.string(`hex`)}},{key:`toHslString`,value:function(){return this.string(`hsl`)}},{key:`isDark`,value:function(){return this._color.isDark()}},{key:`isLight`,value:function(){return this._color.isLight()}},{key:`generate`,value:function(t){var n=[];if(Array.isArray(t))n=t;else if(e.colorFormulas.hasOwnProperty(t))n=e.colorFormulas[t];else throw Error(`No color formula found with the name '`+t+`'.`);var r=[],i=this._color,a=this.format;return n.forEach(function(t){var n=[t?(i.hue()+t)%360:i.hue(),i.saturationv(),i.value(),i.alpha()];r.push(new e(n,a))}),r}},{key:`hue`,get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:`saturation`,get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:`value`,get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:`alpha`,get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(e*100)/100)}},{key:`format`,get:function(){return this._format?this._format:this._color.model},set:function(t){this._format=e.sanitizeFormat(t)}}],[{key:`parse`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t instanceof i.default)return t;if(t instanceof e)return t._color;var r=null;if(t=t instanceof s?[t.h,t.s,t.v,isNaN(t.a)?1:t.a]:e.sanitizeString(t),t===null||(Array.isArray(t)&&(r=`hsv`),e.isHex(t)&&t.length!==6&&t.length!==7&&n))return null;try{return(0,i.default)(t,r)}catch{return null}}},{key:`sanitizeString`,value:function(e){return typeof e==`string`||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?`#`+e:e.toLowerCase()===`transparent`?`#FFFFFF00`:e:e}},{key:`isHex`,value:function(e){return typeof e==`string`||e instanceof String?!!e.match(/^#?[0-9a-f]{2,}$/i):!1}},{key:`sanitizeFormat`,value:function(e){switch(e){case`hex`:case`hex3`:case`hex4`:case`hex6`:case`hex8`:return`hex`;case`rgb`:case`rgba`:case`keyword`:case`name`:return`rgb`;case`hsl`:case`hsla`:case`hsv`:case`hsva`:case`hwb`:case`hwba`:return`hsl`;default:return``}}}]),e}();c.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},t.default=c,t.HSVAColor=s,t.ColorItem=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={bar_size_short:16,base_margin:6,columns:6},i=r.bar_size_short*r.columns+r.base_margin*(r.columns-1);t.default={customClass:null,color:!1,fallbackColor:!1,format:`auto`,horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:`bottom`,fallbackPlacement:`flip`},debug:!1,input:`input`,addon:`.colorpicker-input-addon`,autoInputFallback:!0,autoHexInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:`<div class="colorpicker">
12
12
  <div class="colorpicker-saturation"><i class="colorpicker-guide"></i></div>
13
13
  <div class="colorpicker-hue"><i class="colorpicker-guide"></i></div>
14
14
  <div class="colorpicker-alpha">
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "5.0.15",
3
- "distance": 2,
4
- "node": "g38b4a3cb7a9c8858d7733119e8160e9e931ef762",
5
- "dirty": false,
6
- "branch": "master",
7
- "node_date": "2026-08-13"
8
- }