@gudhub/core 1.1.25 → 1.1.26

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.
@@ -46,7 +46,7 @@ var e=require("process"),r=require("./utils"),t=require("./helpers/normalizeHead
46
46
  },{"./../utils":"Feqj","./transformData":"IAOH","../cancel/isCancel":"mXc0","../defaults":"A14q"}],"fBI1":[function(require,module,exports) {
47
47
  "use strict";var e=require("../utils");module.exports=function(n,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(n,t){return e.isPlainObject(n)&&e.isPlainObject(t)?e.merge(n,t):e.isPlainObject(t)?e.merge({},t):e.isArray(t)?t.slice():t}function d(o){e.isUndefined(t[o])?e.isUndefined(n[o])||(r[o]=c(void 0,n[o])):r[o]=c(n[o],t[o])}e.forEach(o,function(n){e.isUndefined(t[n])||(r[n]=c(void 0,t[n]))}),e.forEach(i,d),e.forEach(a,function(o){e.isUndefined(t[o])?e.isUndefined(n[o])||(r[o]=c(void 0,n[o])):r[o]=c(void 0,t[o])}),e.forEach(s,function(e){e in t?r[e]=c(n[e],t[e]):e in n&&(r[e]=c(void 0,n[e]))});var f=o.concat(i).concat(a).concat(s),u=Object.keys(n).concat(Object.keys(t)).filter(function(e){return-1===f.indexOf(e)});return e.forEach(u,d),r};
48
48
  },{"../utils":"Feqj"}],"b3VU":[function(require,module,exports) {
49
- module.exports={_from:"axios@^0.21.0",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.0",name:"axios",escapedName:"axios",rawSpec:"^0.21.0",saveSpec:null,fetchSpec:"^0.21.0"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.0",_where:"/Users/andreyatlas/gudhub",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"};
49
+ module.exports={_from:"axios@^0.21.0",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.0",name:"axios",escapedName:"axios",rawSpec:"^0.21.0",saveSpec:null,fetchSpec:"^0.21.0"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.0",_where:"/home/nazarii/Atlasiko/Client/override_npm/gudhub",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"};
50
50
  },{}],"bSmC":[function(require,module,exports) {
51
51
  "use strict";var r=require("./../../package.json"),n={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){n[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var e={},o=r.version.split(".");function t(r,n){for(var e=n?n.split("."):o,t=r.split("."),i=0;i<3;i++){if(e[i]>t[i])return!0;if(e[i]<t[i])return!1}return!1}function i(r,n,e){if("object"!=typeof r)throw new TypeError("options must be an object");for(var o=Object.keys(r),t=o.length;t-- >0;){var i=o[t],s=n[i];if(s){var a=r[i],u=void 0===a||s(a,i,r);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==e)throw Error("Unknown option "+i)}}n.transitional=function(n,o,i){var s=o&&t(o);function a(n,e){return"[Axios v"+r.version+"] Transitional option '"+n+"'"+e+(i?". "+i:"")}return function(r,t,i){if(!1===n)throw new Error(a(t," has been removed in "+o));return s&&!e[t]&&(e[t]=!0,console.warn(a(t," has been deprecated since v"+o+" and will be removed in the near future"))),!n||n(r,t,i)}},module.exports={isOlderVersion:t,assertOptions:i,validators:n};
52
52
  },{"./../../package.json":"b3VU"}],"trUU":[function(require,module,exports) {
@@ -102,7 +102,7 @@ var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t
102
102
  },{"axios":"O4Aa","./utils.js":"EgeI","qs":"hIRQ"}],"Lc8J":[function(require,module,exports) {
103
103
  "use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(e)}function e(o){var e="";for(var t in o)o.hasOwnProperty(t)&&o[t]&&(e+="."+o[t]);return e?e.substring(1):"any"}function t(e,t,n){return null==e||"string"!=typeof e?(console.log("Listener type is \"undefined\" or not have actual 'type' for subscribe"),!1):null==t||"object"!==o(t)?(console.log("Listener destination is \"undefined\" or not have actual 'type' for subscribe"),!1):"function"==typeof n||(console.log("Listener is not a function for subscribe!"),!1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkParams=t,exports.createId=e;
104
104
  },{}],"E3xI":[function(require,module,exports) {
105
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeService=void 0;var e=require("./utils.js");function r(e){return i(e)||s(e)||n(e)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e){if(Array.isArray(e))return o(e)}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,r,t){return r&&u(e.prototype,r),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=function(){function t(){a(this,t),this.subscribers={},this.messageBox={}}return c(t,[{key:"on",value:function(r,t,n){var s=this;return(0,e.checkParams)(r,t,n)&&r.split(" ").map(function(r){return r+":"+(0,e.createId)(t)}).forEach(function(e){s.subscribers[e]||(s.subscribers[e]=new Set),s.subscribers[e].add(n),s.checkMessageBox(e)}),this}},{key:"emit",value:function(r,t,n,s){var i=this;return r.split(" ").forEach(function(o){var a=o+":"+(0,e.createId)(t);if(i.subscribers[a]){if(0==i.subscribers[a].size)return i.messageBox[a]=[r,t,n,s,!1],i;i.subscribers[a].forEach(function(e){e(null,n,s)})}else i.messageBox[a]=[r,t,n,s,!1]}),this}},{key:"onRoot",value:function(e,r,t){return this.on(e,r,t)}},{key:"destroy",value:function(r,t,n){var s=this;return r.split(" ").forEach(function(r){var i=r+":"+(0,e.createId)(t);s.subscribers[i]&&n&&s.subscribers[i].delete(n),s.subscribers[i]&&!n&&delete s.subscribers[i]}),this}},{key:"checkMessageBox",value:function(e){var t=this;this.cleanMesssageBox(),this.messageBox[e]&&setTimeout(function(){t.emit.apply(t,r(t.messageBox[e])),t.messageBox[e][4]=!0},0)}},{key:"cleanMesssageBox",value:function(){for(var e in this.messageBox)this.messageBox[e][4]&&delete this.messageBox[e]}}]),t}();exports.PipeService=l;
105
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeService=void 0;var e=require("./utils.js");function r(e){return i(e)||n(e)||s(e)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e){if(Array.isArray(e))return o(e)}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,s=new Array(r);t<r;t++)s[t]=e[t];return s}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){for(var t=0;t<r.length;t++){var s=r[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function c(e,r,t){return r&&u(e.prototype,r),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=function(){function t(){a(this,t),this.subscribers={},this.messageBox={}}return c(t,[{key:"on",value:function(r,t,s){var n=this;return(0,e.checkParams)(r,t,s)&&r.split(" ").map(function(r){return r+":"+(0,e.createId)(t)}).forEach(function(e){n.subscribers[e]||(n.subscribers[e]=new Set),n.subscribers[e].add(s),n.checkMessageBox(e)}),this}},{key:"emit",value:function(r,t,s,n){var i=this;return r.split(" ").forEach(function(o){var a=o+":"+(0,e.createId)(t);if(i.subscribers[a]){if(0==i.subscribers[a].size)return i.messageBox[a]=[r,t,s,n,!1],i;i.subscribers[a].forEach(function(e){e(null,s,n)})}else i.messageBox[a]=[r,t,s,n,!1]}),this}},{key:"onRoot",value:function(e,r,t){return this.on(e,r,t)}},{key:"destroy",value:function(r,t,s){var n=this;return r.split(" ").forEach(function(r){var i=r+":"+(0,e.createId)(t);n.subscribers[i]&&s&&n.subscribers[i].delete(s),n.subscribers[i]&&!s&&delete n.subscribers[i]}),this}},{key:"checkMessageBox",value:function(e){var t=this;this.cleanMesssageBox(),this.messageBox[e]&&setTimeout(function(){t.messageBox[e]&&(t.emit.apply(t,r(t.messageBox[e])),t.messageBox[e][4]=!0)},0)}},{key:"cleanMesssageBox",value:function(){for(var e in this.messageBox)this.messageBox[e][4]&&delete this.messageBox[e]}}]),t}();exports.PipeService=l;
106
106
  },{"./utils.js":"Lc8J"}],"FJWL":[function(require,module,exports) {
107
107
  "use strict";function a(a,e){return[{name:"text",url:e+"/"+a+"text_data.js",type:"angular"},{name:"text_opt",url:e+"/"+a+"text_options_data.js",type:"angular"},{name:"number",url:e+"/"+a+"number_data.js",type:"angular"},{name:"task_board",url:e+"/"+a+"task_board_data.js",type:"angular"},{name:"visualizer",url:e+"/"+a+"visualizer_data.js",type:"angular"},{name:"enterprice_visualizer",url:e+"/"+a+"enterprice_visualizer_data.js",type:"angular"},{name:"email",url:e+"/"+a+"email_data.js",type:"angular"},{name:"date",url:e+"/"+a+"date_data.js",type:"angular"},{name:"radio_button",url:e+"/"+a+"radio_button_data.js",type:"angular"},{name:"radio_icon",url:e+"/"+a+"radio_icon_data.js",type:"angular"},{name:"twilio_phone",url:e+"/"+a+"twilio_phone_data.js",type:"angular"},{name:"twilio_autodialer",url:e+"/"+a+"twillio_autodialer_data.js",type:"angular"},{name:"color",url:e+"/"+a+"color_data.js",type:"angular"},{name:"charts",url:e+"/"+a+"charts_data.js",type:"angular"},{name:"funnel_chart",url:e+"/"+a+"funnel_chart_data.js",type:"angular"},{name:"add_items_from_template",url:e+"/"+a+"add_items_from_template_data.js",type:"angular"},{name:"item_ref",url:e+"/"+a+"itemRef_data.js",type:"angular"},{name:"calendar",js:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js",css:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css",type:"class"},{name:"data_ref",url:e+"/"+a+"data_ref_data.js",type:"angular"},{name:"table",url:e+"/"+a+"table_data.js",type:"angular"},{name:"tile",url:e+"/"+a+"tile_data.js",type:"angular"},{name:"file",url:e+"/"+a+"file_data.js",type:"angular"},{name:"image",url:e+"/"+a+"image_data.js",type:"angular"},{name:"text_editor",url:e+"/"+a+"text_editor_data.js",type:"angular"},{name:"tinymse",url:e+"/"+a+"tinymse_data.js",type:"angular"},{name:"duration",url:e+"/"+a+"duration_data.js",type:"angular"},{name:"user",url:e+"/"+a+"user_data.js",type:"angular"},{name:"app",url:e+"/"+a+"application_data.js",type:"angular"},{name:"field",url:e+"/"+a+"field_data.js",type:"angular"},{name:"available",url:e+"/"+a+"available_data.js",type:"angular"},{name:"view_list",url:e+"/"+a+"view_list_data.js",type:"angular"},{name:"calculator",url:e+"/"+a+"calculator_data.js",type:"angular"},{name:"string_join",url:e+"/"+a+"string_joiner_data.js",type:"angular"},{name:"signature",url:e+"/"+a+"signature_data.js",type:"angular"},{name:"sendEmail",url:e+"/"+a+"send_email_data.js",type:"angular"},{name:"boolean",url:e+"/"+a+"boolean_data.js",type:"angular"},{name:"product_gallery",url:e+"/"+a+"product_gallery_data.js",type:"angular"},{name:"online_inventory",url:e+"/"+a+"online_inventory_data.js",type:"angular"},{name:"3d_edges",url:e+"/"+a+"3d_edges_data.js",type:"angular"},{name:"color_list",url:e+"/"+a+"color_list_data.js",type:"angular"},{name:"go_to_link",url:e+"/"+a+"go_to_link_data.js",type:"angular"},{name:"go_to_view",url:e+"/"+a+"go_to_view_data.js",type:"angular"},{name:"range",url:e+"/"+a+"range_data.js",type:"angular"},{name:"barcode",url:e+"/"+a+"barcode_data.js",type:"angular"},{name:"item_remote_add",url:e+"/"+a+"item_remote_add_data.js",type:"angular"},{name:"item_remote_update",url:e+"/"+a+"item_remote_update_data.js",type:"angular"},{name:"timeline",url:e+"/"+a+"timeline_data.js",type:"angular"},{name:"delete_item",url:e+"/"+a+"delete_action.js",type:"angular"},{name:"print_doc",url:e+"/"+a+"print_doc_action.js",type:"angular"},{name:"open_item",url:e+"/"+a+"open_item_action.js",type:"angular"},{name:"edit_template",url:e+"/"+a+"edit_template_action.js",type:"angular"},{name:"open_app",url:e+"/"+a+"open_app_action.js",type:"angular"},{name:"user_settings",url:e+"/"+a+"user_settings_action.js",type:"angular"},{name:"app_sharing",url:e+"/"+a+"sharing_action.js",type:"angular"},{name:"app_constructor",url:e+"/"+a+"app_constructor_action.js",type:"angular"},{name:"export_csv",url:e+"/"+a+"export_csv.js",type:"angular"},{name:"import_csv",url:e+"/"+a+"import_csv.js",type:"angular"},{name:"add_items",url:e+"/"+a+"add_items_action.js",type:"angular"},{name:"update_items",url:e+"/"+a+"update_items_action.js",type:"angular"},{name:"install_app",url:e+"/"+a+"install_app_action.js",type:"angular"},{name:"search_action",url:e+"/"+a+"search_action.js",type:"angular"},{name:"filter_table",url:e+"/"+a+"filter_table_action.js",type:"angular"},{name:"slider",url:e+"/"+a+"slider_data.js",type:"angular"},{name:"clone_item",url:e+"/"+a+"clone_item_action.js",type:"angular"},{name:"close",url:e+"/"+a+"close_action.js",type:"angular"},{name:"phone",url:e+"/"+a+"phone_data.js",type:"angular"},{name:"link",url:e+"/"+a+"link_data.js",type:"angular"},{name:"sheduling",url:e+"/"+a+"sheduling_data.js",type:"angular"},{name:"qrcode",url:e+"/"+a+"qrcode_data.js",type:"angular"},{name:"graph2d",url:e+"/"+a+"graph2d_data.js",type:"angular"},{name:"quote_tool",url:e+"/"+a+"quote_tool_data.js",type:"angular"},{name:"cards",url:e+"/"+a+"cards_data.js",type:"angular"},{name:"jsonConstructor",url:e+"/"+a+"json_constructor_data.js",type:"angular"},{name:"button",js:"https://gudhub.com/modules/button_action/button_action.js",type:"class"},{name:"editorjs",js:"https://gudhub.com/modules/Editor-Js/dist/main.js",css:"https://gudhub.com/modules/Editor-Js/dist/style.css",type:"class"},{name:"filter_advanced",url:e+"/"+a+"filter_advanced_data.js",type:"angular"},{name:"code_editor",url:e+"/"+a+"code_editor_data.js",type:"angular"},{name:"icon",url:e+"/"+a+"icon_data.js",type:"angular"},{name:"quoteRequest",url:e+"/"+a+"quote_request_data.js",type:"angular"},{name:"view_container",url:e+"/"+a+"view_container_data.js",type:"angular"},{name:"element_ref",url:e+"/"+a+"element_ref_data.js",type:"angular"},{name:"quote_tool_objects_renderer",url:e+"/"+a+"quote_tool_objects_renderer_data.js",type:"angular"},{name:"quote_tool_objects_renderer_generator",url:e+"/"+a+"quote_tool_objects_renderer_generator_data.js",type:"angular"},{name:"trigger",url:e+"/"+a+"trigger_data.js",type:"angular"},{name:"voting",url:e+"/"+a+"voting_data.js",type:"angular"},{name:"view_tabs",url:e+"/"+a+"view_tabs.js",type:"angular"},{name:"filter_tabs",url:e+"/"+a+"filter_tabs.js",type:"angular"},{name:"gps_coords",url:e+"/"+a+"gps_coords.js",type:"angular"},{name:"google_map",url:e+"/"+a+"google_map_data.js",type:"angular"},{name:"data_migrations",url:e+"/"+a+"data_migrations.js",type:"angular"},{name:"additional_settings",url:e+"/"+a+"gh_additional_settings_data.js",type:"angular"},{name:"send_request",url:e+"/"+a+"send_request_data.js",type:"angular"},{name:"webcam",url:e+"/"+a+"webcam_data.js",type:"angular"},{name:"json_viewer",url:e+"/"+a+"json_viewer_data.js",type:"angular"},{name:"notifications",url:e+"/"+a+"notifications_data.js",type:"angular"},{name:"api",url:e+"/"+a+"api_data.js",type:"angular"},{name:"smart_input",url:e+"/"+a+"smart_input_data.js",type:"angular"},{name:"json_editor",url:e+"/"+a+"json_editor_data.js",type:"angular"},{name:"grapes_html_editor",url:e+"/"+a+"grapes_html_editor_data.js",type:"angular"},{name:"quiz",url:e+"/"+a+"quiz_data.js",type:"angular"},{name:"markdown_viewer",url:e+"/"+a+"markdown_viewer_data.js",type:"angular"},{name:"password_input",url:e+"/"+a+"password_input_data.js",type:"angular"},{name:"vs_code",url:e+"/"+a+"vs_code_data.js",type:"angular"},{name:"nested_list",js:"https://gudhub.com/modules/Nested-List/dist/main.js",css:"https://gudhub.com/modules/Nested-List/dist/style.css",type:"class"},{name:"fullcalendar",js:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js",css:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css",type:"class"},{name:"countertop_smart_quote",url:e+"/"+a+"countertop_smart_quote_data.js",type:"angular"},{name:"markdown_viewer_web_component",js:"https://gudhub.com/modules/markdown-it-gh-element/dist/main.js",css:"https://gudhub.com/modules/markdown-it-gh-element/dist/style.css",type:"class"}]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a;
108
108
  },{}],"CSHe":[function(require,module,exports) {
@@ -116,7 +116,7 @@ var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t
116
116
  },{}],"DvAj":[function(require,module,exports) {
117
117
  "use strict";function e(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=t(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var a=0,u=function(){};return{s:u,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t,r,n,a,u,o){try{var i=e[u](o),c=i.value}catch(l){return void r(l)}i.done?t(c):Promise.resolve(c).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise(function(a,u){var o=e.apply(t,r);function i(e){n(o,a,u,i,c,"next",e)}function c(e){n(o,a,u,i,c,"throw",e)}i(void 0)})}}function u(e,t,r,n,a,u){return o.apply(this,arguments)}function o(){return(o=a(regeneratorRuntime.mark(function t(r,n,a,u,o,i){var c,l,f,s,p,v,h,b,d,y,g=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(y=function(e){return new Promise(function(t){i.on("gh_value_get",e,function r(n,a){i.destroy("gh_value_get",e,r),t(a)}).emit("gh_value_get",{},e)})},c=g.length>6&&void 0!==g[6]?g[6]:[],l=[],f={variableMethodcurrent_app:function(){return[a]},variableMethodelement_app:function(){return[n]},variableMethodcurrent_item:function(){return["".concat(a,".").concat(u)]},variableMethoduser_id:function(){return[o.getUser().user_id]},variableMethoduser_email:function(e){return[o.getUser().username]},variableMethodtoday:function(e){var t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);return[r.valueOf().toString()+":"+n.valueOf().toString()]},variableMethodvariable:function(){return c}},!r){t.next=40;break}s=e(r),t.prev=6,s.s();case 8:if((p=s.n()).done){t.next=32;break}if(!(v=p.value)){t.next=29;break}t.t0=v.input_type,t.next="variable"===t.t0?14:"field"===t.t0?19:25;break;case 14:return h=v.input_type+"Method"+v.input_value,b=f[h],v.valuesArray="function"==typeof b?b():f.variableMethodvariable(),l.push(v),t.abrupt("break",27);case 19:return t.next=21,y({app_id:a,item_id:u,field_id:v.input_value});case 21:return null!=(d=t.sent)&&v.valuesArray.push(d),l.push(v),t.abrupt("break",27);case 25:return l.push(v),t.abrupt("break",27);case 27:t.next=30;break;case 29:l.push(v);case 30:t.next=8;break;case 32:t.next=37;break;case 34:t.prev=34,t.t1=t.catch(6),s.e(t.t1);case 37:return t.prev=37,s.f(),t.finish(37);case 40:return t.abrupt("return",l);case 41:case"end":return t.stop()}},t,null,[[6,34,37,40]])}))).apply(this,arguments)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.filterPreparation=u;
118
118
  },{}],"jqRt":[function(require,module,exports) {
119
- "use strict";function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e){var t=o();return function(){var n,i=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}function r(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){return l(e)||h(e)||u(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){return Array.isArray?Array.isArray(e):"[object Array]"===I(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var b=1/0;function x(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-b?"-0":t}function w(e){return null==e?"":x(e)}function L(e){return"string"==typeof e}function _(e){return"number"==typeof e}function S(e){return!0===e||!1===e||A(e)&&"[object Boolean]"==I(e)}function O(e){return"object"===k(e)}function A(e){return O(e)&&null!==e}function j(e){return null!=e}function E(e){return!e.trim().length}function I(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var C="Extended search is not available",R="Incorrect 'index' type",$=function(e){return"Invalid value for key ".concat(e)},N=function(e){return"Pattern length exceeds max of ".concat(e,".")},P=function(e){return"Missing ".concat(e," property in key")},F=function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")},W=Object.prototype.hasOwnProperty,T=function(){function e(t){var n=this;y(this,e),this._keys=[],this._keyMap={};var r=0;t.forEach(function(e){var t=D(e);r+=t.weight,n._keys.push(t),n._keyMap[t.id]=t,r+=t.weight}),this._keys.forEach(function(e){e.weight/=r})}return m(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function D(e){var t=null,n=null,r=null,i=1;if(L(e)||M(e))r=e,t=z(e),n=K(e);else{if(!W.call(e,"name"))throw new Error(P("name"));var o=e.name;if(r=o,W.call(e,"weight")&&(i=e.weight)<=0)throw new Error(F(o));t=z(o),n=K(o)}return{path:t,id:n,weight:i,src:r}}function z(e){return M(e)?e:e.split(".")}function K(e){return M(e)?e.join("."):e}function q(e,t){var n=[],r=!1;return function e(t,i,o){if(j(t))if(i[o]){var c=t[i[o]];if(!j(c))return;if(o===i.length-1&&(L(c)||_(c)||S(c)))n.push(w(c));else if(M(c)){r=!0;for(var a=0,s=c.length;a<s;a+=1)e(c[a],i,o+1)}else i.length&&e(c,i,o+1)}else n.push(t)}(e,L(t)?t.split("."):t,0),r?n:n[0]}var B={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},H={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},J={location:0,threshold:.6,distance:100},U={useExtendedSearch:!1,getFn:q,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},V=v(v(v(v({},H),B),J),U),Q=/[^ ]+/g;function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(Q).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}var X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,r=void 0===n?V.getFn:n,i=t.fieldNormWeight,o=void 0===i?V.fieldNormWeight:i;y(this,e),this.norm=G(o,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}return m(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach(function(t,n){e._keysMap[t.id]=n})}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,L(this.docs[0])?this.docs.forEach(function(t,n){e._addString(t,n)}):this.docs.forEach(function(t,n){e._addObject(t,n)}),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();L(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(j(e)&&!E(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach(function(t,i){var o=n.getFn(e,t.path);if(j(o))if(M(o))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:o}];t.length;){var c=t.pop(),a=c.nestedArrIndex,s=c.value;if(j(s))if(L(s)&&!E(s)){var u={v:s,i:a,n:n.norm.get(s)};e.push(u)}else M(s)&&s.forEach(function(e,n){t.push({nestedArrIndex:n,value:e})})}r.$[i]=e}();else if(!E(o)){var c={v:o,n:n.norm.get(o)};r.$[i]=c}}),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?V.getFn:r,o=n.fieldNormWeight,c=void 0===o?V.fieldNormWeight:o,a=new X({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(D)),a.setSources(t),a.create(),a}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?V.getFn:n,i=t.fieldNormWeight,o=void 0===i?V.fieldNormWeight:i,c=e.keys,a=e.records,s=new X({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?V.distance:s,h=t.ignoreLocation,l=void 0===h?V.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}function te(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o<c;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var ne=32;function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?V.location:i,c=r.distance,a=void 0===c?V.distance:c,s=r.threshold,u=void 0===s?V.threshold:s,h=r.findAllMatches,l=void 0===h?V.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?V.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?V.includeMatches:v,y=r.ignoreLocation,p=void 0===y?V.ignoreLocation:y;if(t.length>ne)throw new Error(N(ne));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,w=b,L=d>1||g,_=L?Array(M):[];(m=e.indexOf(t,w))>-1;){var S=ee(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(S,x),w=m+k,L)for(var O=0;O<k;)_[m+O]=1,O+=1}w=-1;for(var A=[],j=1,E=k+M,I=1<<k-1,C=0;C<k;C+=1){for(var R=0,$=E;R<$;){ee(t,{errors:C,currentLocation:b+$,expectedLocation:b,distance:a,ignoreLocation:p})<=x?R=$:E=$,$=Math.floor((E-R)/2+R)}E=$;var P=Math.max(1,b-$+1),F=l?M:Math.min(b+$,M)+k,W=Array(F+2);W[F+1]=(1<<C)-1;for(var T=F;T>=P;T-=1){var D=T-1,z=n[e.charAt(D)];if(L&&(_[D]=+!!z),W[T]=(W[T+1]<<1|1)&z,C&&(W[T]|=(A[T+1]|A[T])<<1|1|A[T+1]),W[T]&I&&(j=ee(t,{errors:C,currentLocation:D,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=j,(w=D)<=b)break;P=Math.max(1,2*b-w)}}if(ee(t,{errors:C+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;A=W}var K={isMatch:w>=0,score:Math.max(.001,j)};if(L){var q=te(_,d);q.length?g&&(K.indices=q):K.isMatch=!1}return K}function ie(e){for(var t={},n=0,r=e.length;n<r;n+=1){var i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var oe=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.location,o=void 0===i?V.location:i,c=r.threshold,a=void 0===c?V.threshold:c,s=r.distance,u=void 0===s?V.distance:s,h=r.includeMatches,l=void 0===h?V.includeMatches:h,f=r.findAllMatches,d=void 0===f?V.findAllMatches:f,v=r.minMatchCharLength,g=void 0===v?V.minMatchCharLength:v,p=r.isCaseSensitive,m=void 0===p?V.isCaseSensitive:p,k=r.ignoreLocation,M=void 0===k?V.ignoreLocation:k;if(y(this,e),this.options={location:o,threshold:a,distance:u,includeMatches:l,findAllMatches:d,minMatchCharLength:g,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:ie(e),startIndex:t})},x=this.pattern.length;if(x>ne){for(var w=0,L=x%ne,_=x-L;w<_;)b(this.pattern.substr(w,ne),w),w+=ne;if(L){var S=x-ne;b(this.pattern.substr(S),S)}}else b(this.pattern,0)}}return m(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,e.length-1]]),i}var o=this.options,c=o.location,s=o.distance,u=o.threshold,h=o.findAllMatches,l=o.minMatchCharLength,f=o.ignoreLocation,d=[],v=0,g=!1;this.chunks.forEach(function(t){var n=t.pattern,i=t.alphabet,o=t.startIndex,y=re(e,n,i,{location:c+o,distance:s,threshold:u,findAllMatches:h,minMatchCharLength:l,includeMatches:r,ignoreLocation:f}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(a(d),a(k)))});var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),ce=function(){function e(t){y(this,e),this.pattern=t}return m(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return ae(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return ae(e,this.singleRegex)}}]),e}();function ae(e,t){var n=e.match(t);return n?n[1]:null}var se=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(),ue=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(),he=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(),le=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(),fe=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(),de=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(),ve=function(t){e(i,ce);var r=n(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.location,c=void 0===o?V.location:o,a=n.threshold,s=void 0===a?V.threshold:a,u=n.distance,h=void 0===u?V.distance:u,l=n.includeMatches,f=void 0===l?V.includeMatches:l,d=n.findAllMatches,v=void 0===d?V.findAllMatches:d,g=n.minMatchCharLength,p=void 0===g?V.minMatchCharLength:g,m=n.isCaseSensitive,k=void 0===m?V.isCaseSensitive:m,M=n.ignoreLocation,b=void 0===M?V.ignoreLocation:M;return y(this,i),(t=r.call(this,e))._bitapSearch=new oe(e,{location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),t}return m(i,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(),ge=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(),ye=[se,ge,he,le,de,fe,ue,ve],pe=ye.length,me=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,ke="|";function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split(ke).map(function(e){for(var n=e.trim().split(me).filter(function(e){return e&&!!e.trim()}),r=[],i=0,o=n.length;i<o;i+=1){for(var c=n[i],a=!1,s=-1;!a&&++s<pe;){var u=ye[s],h=u.isMultiMatch(c);h&&(r.push(new u(h,t)),a=!0)}if(!a)for(s=-1;++s<pe;){var l=ye[s],f=l.isSingleMatch(c);if(f){r.push(new l(f,t));break}}}return r})}var be=new Set([ve.type,ge.type]),xe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isCaseSensitive,i=void 0===r?V.isCaseSensitive:r,o=n.includeMatches,c=void 0===o?V.includeMatches:o,a=n.minMatchCharLength,s=void 0===a?V.minMatchCharLength:a,u=n.ignoreLocation,h=void 0===u?V.ignoreLocation:u,l=n.findAllMatches,f=void 0===l?V.findAllMatches:l,d=n.location,v=void 0===d?V.location:d,g=n.threshold,p=void 0===g?V.threshold:g,m=n.distance,k=void 0===m?V.distance:m;y(this,e),this.query=null,this.options={isCaseSensitive:i,includeMatches:c,minMatchCharLength:s,findAllMatches:f,ignoreLocation:h,location:v,threshold:p,distance:k},this.pattern=i?t:t.toLowerCase(),this.query=Me(this.pattern,this.options)}return m(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,s=0,u=t.length;s<u;s+=1){var h=t[s];o.length=0,i=0;for(var l=0,f=h.length;l<f;l+=1){var d=h[l],v=d.search(e),g=v.isMatch,y=v.indices,p=v.score;if(!g){c=0,i=0,o.length=0;break}if(i+=1,c+=p,r){var m=d.constructor.type;be.has(m)?o=[].concat(a(o),a(y)):o.push(y)}}if(i){var k={isMatch:!0,score:c/i};return r&&(k.indices=o),k}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),we=[];function Le(){we.push.apply(we,arguments)}function _e(e,t){for(var n=0,r=we.length;n<r;n+=1){var i=we[n];if(i.condition(e,t))return new i(e,t)}return new oe(e,t)}var Se={AND:"$and",OR:"$or"},Oe={PATH:"$path",PATTERN:"$val"},Ae=function(e){return!(!e[Se.AND]&&!e[Se.OR])},je=function(e){return!!e[Oe.PATH]},Ee=function(e){return!M(e)&&O(e)&&!Ae(e)},Ie=function(e){return g({},Se.AND,Object.keys(e).map(function(t){return g({},t,e[t])}))};function Ce(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return Ae(e)||(e=Ie(e)),function e(n){var i=Object.keys(n),o=je(n);if(!o&&i.length>1&&!Ae(n))return e(Ie(n));if(Ee(n)){var c=o?n[Oe.PATH]:i[0],a=o?n[Oe.PATTERN]:n[c];if(!L(a))throw new Error($(c));var s={keyId:K(c),pattern:a};return r&&(s.searcher=_e(a,t)),s}var u={children:[],operator:i[0]};return i.forEach(function(t){var r=n[t];M(r)&&r.forEach(function(t){u.children.push(e(t))})}),u}(e)}function Re(e,t){var n=t.ignoreFieldNorm,r=void 0===n?V.ignoreFieldNorm:n;e.forEach(function(e){var t=1;e.matches.forEach(function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))}),e.score=t})}function $e(e,t){var n=e.matches;t.matches=[],j(n)&&n.forEach(function(e){if(j(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}})}function Ne(e,t){t.score=e.score}function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?V.includeMatches:r,o=n.includeScore,c=void 0===o?V.includeScore:o,a=[];return i&&a.push($e),c&&a.push(Ne),e.map(function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach(function(t){t(e,r)}),r})}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;y(this,e),this.options=v(v({},V),n),this.options.useExtendedSearch,this._keyStore=new T(this.options.keys),this.setCollection(t,r)}return m(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof X))throw new Error(R);this._myIndex=t||Y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){j(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,i=r.includeMatches,o=r.includeScore,c=r.shouldSort,a=r.sortFn,s=r.ignoreFieldNorm,u=L(e)?L(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Re(u,{ignoreFieldNorm:s}),c&&u.sort(a),_(n)&&n>-1&&(u=u.slice(0,n)),Pe(u,this._docs,{includeMatches:i,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=_e(e,this.options),n=this._myIndex.records,r=[];return n.forEach(function(e){var n=e.v,i=e.i,o=e.n;if(j(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}}),r}},{key:"_searchLogical",value:function(e){var t=this,n=Ce(e,this.options),r=this._myIndex.records,i={},o=[];return r.forEach(function(e){var r=e.$,c=e.i;if(j(r)){var s=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,s=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return s&&s.length?[{idx:i,item:r,matches:s}]:[]}for(var u=[],h=0,l=n.children.length;h<l;h+=1){var f=e(n.children[h],r,i);if(f.length)u.push.apply(u,a(f));else if(n.operator===Se.AND)return[]}return u}(n,r,c);s.length&&(i[c]||(i[c]={idx:c,item:r,matches:[]},o.push(i[c])),s.forEach(function(e){var t,n=e.matches;(t=i[c].matches).push.apply(t,a(n))}))}}),o}},{key:"_searchObjectList",value:function(e){var t=this,n=_e(e,this.options),r=this._myIndex,i=r.keys,o=r.records,c=[];return o.forEach(function(e){var r=e.$,o=e.i;if(j(r)){var s=[];i.forEach(function(e,i){s.push.apply(s,a(t._findMatches({key:e,value:r[i],searcher:n})))}),s.length&&c.push({idx:o,item:r,matches:s})}}),c}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!j(n))return[];var i=[];if(M(n))n.forEach(function(e){var n=e.v,o=e.i,c=e.n;if(j(n)){var a=r.searchIn(n),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:n,idx:o,norm:c,indices:h})}});else{var o=n.v,c=n.n,a=r.searchIn(o),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:o,norm:c,indices:h})}return i}}]),e}();exports.default=Fe,Fe.version="6.5.3",Fe.createIndex=Y,Fe.parseIndex=Z,Fe.config=V,Fe.parseQuery=Ce,Le(xe);
119
+ "use strict";function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e){var t=o();return function(){var n,i=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}function r(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){return l(e)||h(e)||u(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){return Array.isArray?Array.isArray(e):"[object Array]"===I(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var b=1/0;function x(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-b?"-0":t}function w(e){return null==e?"":x(e)}function L(e){return"string"==typeof e}function _(e){return"number"==typeof e}function S(e){return!0===e||!1===e||A(e)&&"[object Boolean]"==I(e)}function O(e){return"object"===k(e)}function A(e){return O(e)&&null!==e}function j(e){return null!=e}function E(e){return!e.trim().length}function I(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var C="Extended search is not available",R="Incorrect 'index' type",$=function(e){return"Invalid value for key ".concat(e)},N=function(e){return"Pattern length exceeds max of ".concat(e,".")},F=function(e){return"Missing ".concat(e," property in key")},P=function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")},W=Object.prototype.hasOwnProperty,T=function(){function e(t){var n=this;y(this,e),this._keys=[],this._keyMap={};var r=0;t.forEach(function(e){var t=D(e);r+=t.weight,n._keys.push(t),n._keyMap[t.id]=t,r+=t.weight}),this._keys.forEach(function(e){e.weight/=r})}return m(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function D(e){var t=null,n=null,r=null,i=1,o=null;if(L(e)||M(e))r=e,t=z(e),n=K(e);else{if(!W.call(e,"name"))throw new Error(F("name"));var c=e.name;if(r=c,W.call(e,"weight")&&(i=e.weight)<=0)throw new Error(P(c));t=z(c),n=K(c),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function z(e){return M(e)?e:e.split(".")}function K(e){return M(e)?e.join("."):e}function q(e,t){var n=[],r=!1;return function e(t,i,o){if(j(t))if(i[o]){var c=t[i[o]];if(!j(c))return;if(o===i.length-1&&(L(c)||_(c)||S(c)))n.push(w(c));else if(M(c)){r=!0;for(var a=0,s=c.length;a<s;a+=1)e(c[a],i,o+1)}else i.length&&e(c,i,o+1)}else n.push(t)}(e,L(t)?t.split("."):t,0),r?n:n[0]}var B={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},H={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},J={location:0,threshold:.6,distance:100},U={useExtendedSearch:!1,getFn:q,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},V=v(v(v(v({},H),B),J),U),Q=/[^ ]+/g;function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(Q).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}var X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,r=void 0===n?V.getFn:n,i=t.fieldNormWeight,o=void 0===i?V.fieldNormWeight:i;y(this,e),this.norm=G(o,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}return m(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach(function(t,n){e._keysMap[t.id]=n})}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,L(this.docs[0])?this.docs.forEach(function(t,n){e._addString(t,n)}):this.docs.forEach(function(t,n){e._addObject(t,n)}),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();L(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(j(e)&&!E(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach(function(t,i){var o=t.getFn?t.getFn(e):n.getFn(e,t.path);if(j(o))if(M(o))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:o}];t.length;){var c=t.pop(),a=c.nestedArrIndex,s=c.value;if(j(s))if(L(s)&&!E(s)){var u={v:s,i:a,n:n.norm.get(s)};e.push(u)}else M(s)&&s.forEach(function(e,n){t.push({nestedArrIndex:n,value:e})})}r.$[i]=e}();else if(L(o)&&!E(o)){var c={v:o,n:n.norm.get(o)};r.$[i]=c}}),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?V.getFn:r,o=n.fieldNormWeight,c=void 0===o?V.fieldNormWeight:o,a=new X({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(D)),a.setSources(t),a.create(),a}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?V.getFn:n,i=t.fieldNormWeight,o=void 0===i?V.fieldNormWeight:i,c=e.keys,a=e.records,s=new X({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?V.distance:s,h=t.ignoreLocation,l=void 0===h?V.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}function te(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o<c;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var ne=32;function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?V.location:i,c=r.distance,a=void 0===c?V.distance:c,s=r.threshold,u=void 0===s?V.threshold:s,h=r.findAllMatches,l=void 0===h?V.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?V.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?V.includeMatches:v,y=r.ignoreLocation,p=void 0===y?V.ignoreLocation:y;if(t.length>ne)throw new Error(N(ne));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,w=b,L=d>1||g,_=L?Array(M):[];(m=e.indexOf(t,w))>-1;){var S=ee(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(S,x),w=m+k,L)for(var O=0;O<k;)_[m+O]=1,O+=1}w=-1;for(var A=[],j=1,E=k+M,I=1<<k-1,C=0;C<k;C+=1){for(var R=0,$=E;R<$;){ee(t,{errors:C,currentLocation:b+$,expectedLocation:b,distance:a,ignoreLocation:p})<=x?R=$:E=$,$=Math.floor((E-R)/2+R)}E=$;var F=Math.max(1,b-$+1),P=l?M:Math.min(b+$,M)+k,W=Array(P+2);W[P+1]=(1<<C)-1;for(var T=P;T>=F;T-=1){var D=T-1,z=n[e.charAt(D)];if(L&&(_[D]=+!!z),W[T]=(W[T+1]<<1|1)&z,C&&(W[T]|=(A[T+1]|A[T])<<1|1|A[T+1]),W[T]&I&&(j=ee(t,{errors:C,currentLocation:D,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=j,(w=D)<=b)break;F=Math.max(1,2*b-w)}}if(ee(t,{errors:C+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;A=W}var K={isMatch:w>=0,score:Math.max(.001,j)};if(L){var q=te(_,d);q.length?g&&(K.indices=q):K.isMatch=!1}return K}function ie(e){for(var t={},n=0,r=e.length;n<r;n+=1){var i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var oe=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.location,o=void 0===i?V.location:i,c=r.threshold,a=void 0===c?V.threshold:c,s=r.distance,u=void 0===s?V.distance:s,h=r.includeMatches,l=void 0===h?V.includeMatches:h,f=r.findAllMatches,d=void 0===f?V.findAllMatches:f,v=r.minMatchCharLength,g=void 0===v?V.minMatchCharLength:v,p=r.isCaseSensitive,m=void 0===p?V.isCaseSensitive:p,k=r.ignoreLocation,M=void 0===k?V.ignoreLocation:k;if(y(this,e),this.options={location:o,threshold:a,distance:u,includeMatches:l,findAllMatches:d,minMatchCharLength:g,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:ie(e),startIndex:t})},x=this.pattern.length;if(x>ne){for(var w=0,L=x%ne,_=x-L;w<_;)b(this.pattern.substr(w,ne),w),w+=ne;if(L){var S=x-ne;b(this.pattern.substr(S),S)}}else b(this.pattern,0)}}return m(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,e.length-1]]),i}var o=this.options,c=o.location,s=o.distance,u=o.threshold,h=o.findAllMatches,l=o.minMatchCharLength,f=o.ignoreLocation,d=[],v=0,g=!1;this.chunks.forEach(function(t){var n=t.pattern,i=t.alphabet,o=t.startIndex,y=re(e,n,i,{location:c+o,distance:s,threshold:u,findAllMatches:h,minMatchCharLength:l,includeMatches:r,ignoreLocation:f}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(a(d),a(k)))});var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),ce=function(){function e(t){y(this,e),this.pattern=t}return m(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return ae(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return ae(e,this.singleRegex)}}]),e}();function ae(e,t){var n=e.match(t);return n?n[1]:null}var se=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(),ue=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(),he=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(),le=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(),fe=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(),de=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(),ve=function(t){e(i,ce);var r=n(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.location,c=void 0===o?V.location:o,a=n.threshold,s=void 0===a?V.threshold:a,u=n.distance,h=void 0===u?V.distance:u,l=n.includeMatches,f=void 0===l?V.includeMatches:l,d=n.findAllMatches,v=void 0===d?V.findAllMatches:d,g=n.minMatchCharLength,p=void 0===g?V.minMatchCharLength:g,m=n.isCaseSensitive,k=void 0===m?V.isCaseSensitive:m,M=n.ignoreLocation,b=void 0===M?V.ignoreLocation:M;return y(this,i),(t=r.call(this,e))._bitapSearch=new oe(e,{location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),t}return m(i,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(),ge=function(t){e(i,ce);var r=n(i);function i(e){return y(this,i),r.call(this,e)}return m(i,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(),ye=[se,ge,he,le,de,fe,ue,ve],pe=ye.length,me=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ke="|";function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split(ke).map(function(e){for(var n=e.trim().split(me).filter(function(e){return e&&!!e.trim()}),r=[],i=0,o=n.length;i<o;i+=1){for(var c=n[i],a=!1,s=-1;!a&&++s<pe;){var u=ye[s],h=u.isMultiMatch(c);h&&(r.push(new u(h,t)),a=!0)}if(!a)for(s=-1;++s<pe;){var l=ye[s],f=l.isSingleMatch(c);if(f){r.push(new l(f,t));break}}}return r})}var be=new Set([ve.type,ge.type]),xe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isCaseSensitive,i=void 0===r?V.isCaseSensitive:r,o=n.includeMatches,c=void 0===o?V.includeMatches:o,a=n.minMatchCharLength,s=void 0===a?V.minMatchCharLength:a,u=n.ignoreLocation,h=void 0===u?V.ignoreLocation:u,l=n.findAllMatches,f=void 0===l?V.findAllMatches:l,d=n.location,v=void 0===d?V.location:d,g=n.threshold,p=void 0===g?V.threshold:g,m=n.distance,k=void 0===m?V.distance:m;y(this,e),this.query=null,this.options={isCaseSensitive:i,includeMatches:c,minMatchCharLength:s,findAllMatches:f,ignoreLocation:h,location:v,threshold:p,distance:k},this.pattern=i?t:t.toLowerCase(),this.query=Me(this.pattern,this.options)}return m(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,s=0,u=t.length;s<u;s+=1){var h=t[s];o.length=0,i=0;for(var l=0,f=h.length;l<f;l+=1){var d=h[l],v=d.search(e),g=v.isMatch,y=v.indices,p=v.score;if(!g){c=0,i=0,o.length=0;break}if(i+=1,c+=p,r){var m=d.constructor.type;be.has(m)?o=[].concat(a(o),a(y)):o.push(y)}}if(i){var k={isMatch:!0,score:c/i};return r&&(k.indices=o),k}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),we=[];function Le(){we.push.apply(we,arguments)}function _e(e,t){for(var n=0,r=we.length;n<r;n+=1){var i=we[n];if(i.condition(e,t))return new i(e,t)}return new oe(e,t)}var Se={AND:"$and",OR:"$or"},Oe={PATH:"$path",PATTERN:"$val"},Ae=function(e){return!(!e[Se.AND]&&!e[Se.OR])},je=function(e){return!!e[Oe.PATH]},Ee=function(e){return!M(e)&&O(e)&&!Ae(e)},Ie=function(e){return g({},Se.AND,Object.keys(e).map(function(t){return g({},t,e[t])}))};function Ce(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return Ae(e)||(e=Ie(e)),function e(n){var i=Object.keys(n),o=je(n);if(!o&&i.length>1&&!Ae(n))return e(Ie(n));if(Ee(n)){var c=o?n[Oe.PATH]:i[0],a=o?n[Oe.PATTERN]:n[c];if(!L(a))throw new Error($(c));var s={keyId:K(c),pattern:a};return r&&(s.searcher=_e(a,t)),s}var u={children:[],operator:i[0]};return i.forEach(function(t){var r=n[t];M(r)&&r.forEach(function(t){u.children.push(e(t))})}),u}(e)}function Re(e,t){var n=t.ignoreFieldNorm,r=void 0===n?V.ignoreFieldNorm:n;e.forEach(function(e){var t=1;e.matches.forEach(function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))}),e.score=t})}function $e(e,t){var n=e.matches;t.matches=[],j(n)&&n.forEach(function(e){if(j(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}})}function Ne(e,t){t.score=e.score}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?V.includeMatches:r,o=n.includeScore,c=void 0===o?V.includeScore:o,a=[];return i&&a.push($e),c&&a.push(Ne),e.map(function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach(function(t){t(e,r)}),r})}var Pe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;y(this,e),this.options=v(v({},V),n),this.options.useExtendedSearch,this._keyStore=new T(this.options.keys),this.setCollection(t,r)}return m(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof X))throw new Error(R);this._myIndex=t||Y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){j(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,i=r.includeMatches,o=r.includeScore,c=r.shouldSort,a=r.sortFn,s=r.ignoreFieldNorm,u=L(e)?L(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Re(u,{ignoreFieldNorm:s}),c&&u.sort(a),_(n)&&n>-1&&(u=u.slice(0,n)),Fe(u,this._docs,{includeMatches:i,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=_e(e,this.options),n=this._myIndex.records,r=[];return n.forEach(function(e){var n=e.v,i=e.i,o=e.n;if(j(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}}),r}},{key:"_searchLogical",value:function(e){var t=this,n=Ce(e,this.options),r=this._myIndex.records,i={},o=[];return r.forEach(function(e){var r=e.$,c=e.i;if(j(r)){var s=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,s=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return s&&s.length?[{idx:i,item:r,matches:s}]:[]}for(var u=[],h=0,l=n.children.length;h<l;h+=1){var f=e(n.children[h],r,i);if(f.length)u.push.apply(u,a(f));else if(n.operator===Se.AND)return[]}return u}(n,r,c);s.length&&(i[c]||(i[c]={idx:c,item:r,matches:[]},o.push(i[c])),s.forEach(function(e){var t,n=e.matches;(t=i[c].matches).push.apply(t,a(n))}))}}),o}},{key:"_searchObjectList",value:function(e){var t=this,n=_e(e,this.options),r=this._myIndex,i=r.keys,o=r.records,c=[];return o.forEach(function(e){var r=e.$,o=e.i;if(j(r)){var s=[];i.forEach(function(e,i){s.push.apply(s,a(t._findMatches({key:e,value:r[i],searcher:n})))}),s.length&&c.push({idx:o,item:r,matches:s})}}),c}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!j(n))return[];var i=[];if(M(n))n.forEach(function(e){var n=e.v,o=e.i,c=e.n;if(j(n)){var a=r.searchIn(n),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:n,idx:o,norm:c,indices:h})}});else{var o=n.v,c=n.n,a=r.searchIn(o),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:o,norm:c,indices:h})}return i}}]),e}();exports.default=Pe,Pe.version="6.6.2",Pe.createIndex=Y,Pe.parseIndex=Z,Pe.config=V,Pe.parseQuery=Ce,Le(xe);
120
120
  },{}],"zsiC":[function(require,module,exports) {
121
121
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDate=c,exports.getDistanceFromLatLonInKm=l,exports.isSimilarStrings=g,exports.searchValue=d;var e=t(require("fuse.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return i(e)||u(e,t)||a(e,t)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],u=!0,i=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);u=!0);}catch(l){i=!0,a=l}finally{try{u||null==r.return||r.return()}finally{if(i)throw a}}return o}}function i(e){if(Array.isArray(e))return e}function l(e,t){var n=r(e.split(":"),3),a=n[0],o=n[1],u=n[2],i=r(t.split(":"),2),l=i[0],c=i[1],f=s(l-a),h=s(c-o),d=Math.sin(f/2)*Math.sin(f/2)+Math.cos(s(a))*Math.cos(s(l))*Math.sin(h/2)*Math.sin(h/2),v=6371*(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)));return Number(u)>=v}function s(e){return e*(Math.PI/180)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.date,a=void 0===n?0:n,o=e.match,u=void 0===o||o,i=arguments.length>1?arguments[1]:void 0;if(!i&&t)return!1;var l=new Date,s=!0;switch(t){case"day":var c=h(a),d=h(a+1);s=c<=i&&i<d;break;case"days":if(a<0){var v=h(1);s=h(-6)<=i&&i<v}else{var g=h(),y=h(7);s=g<=i&&i<y}break;case"day_week":s=a===new Date(i).getDay();break;case"week":var w=l.getDate()-l.getDay(),p=w+(-2==a?13:6),D=r(f(l.setDate(w+7*a),(new Date).setDate(p+7*a)),2),b=D[0],m=D[1];s=b<=i&&i<=m;break;case"month":if(l.getFullYear()!==new Date(i).getFullYear())return!1;s=l.getMonth()+a===new Date(i).getMonth();break;case"year":s=l.getFullYear()+a===new Date(i).getFullYear();break;default:return!0}return u?s:!s}function f(e,t){return[new Date(e),new Date(t)]}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e).valueOf()}function d(e,t){if(e&&e.length)return t?e.filter(function(e){return e.fields.find(function(e){return e.index_value&&-1!==e.index_value.toLowerCase().indexOf(t.toLowerCase())})}):e}var v=new e.default([]);function g(e,t){return v.setCollection(t),Boolean(v.search(e).length)}
122
122
  },{"fuse.js":"jqRt"}],"mbGN":[function(require,module,exports) {
@@ -125,7 +125,7 @@ var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t
125
125
  var define;
126
126
  var global = arguments[3];
127
127
  var process = require("process");
128
- var e,t=arguments[3],n=require("process");!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof e&&e.amd)e([],n);else{("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).jsonpath=n()}}(function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,function(e){"use strict";var t,n,r,i,a,o,s,c,u,l,p,f,h,d,y,m,g,v;function S(e,t){if(!e)throw new Error("ASSERT: "+t)}function E(e){return e>=48&&e<=57}function b(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function x(e){return"01234567".indexOf(e)>=0}function k(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function I(e){return 10===e||13===e||8232===e||8233===e}function _(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function w(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function C(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function O(e){return"eval"===e||"arguments"===e}function N(e,t,n,r,i){var a;S("number"==typeof n,"Comment must have valid position"),g.lastCommentStart>=n||(g.lastCommentStart=n,a={type:e,value:t},v.range&&(a.range=[n,r]),v.loc&&(a.loc=i),v.comments.push(a),v.attachComment&&(v.leadingComments.push(a),v.trailingComments.push(a)))}function T(e){var t,n,r,i;for(t=p-e,n={start:{line:f,column:p-h-e}};p<d;)if(r=u.charCodeAt(p),++p,I(r))return v.comments&&(i=u.slice(t+e,p-1),n.end={line:f,column:p-h-1},N("Line",i,t,p-1,n)),13===r&&10===u.charCodeAt(p)&&++p,++f,void(h=p);v.comments&&(i=u.slice(t+e,p),n.end={line:f,column:p-h},N("Line",i,t,p,n))}function A(){var e,t,n,r;for(v.comments&&(e=p-2,t={start:{line:f,column:p-h-2}});p<d;)if(I(n=u.charCodeAt(p)))13===n&&10===u.charCodeAt(p+1)&&++p,++f,h=++p,p>=d&&W({},o.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===u.charCodeAt(p+1))return++p,++p,void(v.comments&&(r=u.slice(e+2,p-2),t.end={line:f,column:p-h},N("Block",r,e,p,t)));++p}else++p;W({},o.UnexpectedToken,"ILLEGAL")}function L(){var e,t;for(t=0===p;p<d;)if(k(e=u.charCodeAt(p)))++p;else if(I(e))++p,13===e&&10===u.charCodeAt(p)&&++p,++f,h=p,t=!0;else if(47===e)if(47===(e=u.charCodeAt(p+1)))++p,++p,T(2),t=!0;else{if(42!==e)break;++p,++p,A()}else if(t&&45===e){if(45!==u.charCodeAt(p+1)||62!==u.charCodeAt(p+2))break;p+=3,T(3)}else{if(60!==e)break;if("!--"!==u.slice(p+1,p+4))break;++p,++p,++p,++p,T(4)}}function P(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(p<d&&b(u[p])))return"";r=u[p++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function R(){var e,t;for(e=u.charCodeAt(p++),t=String.fromCharCode(e),92===e&&(117!==u.charCodeAt(p)&&W({},o.UnexpectedToken,"ILLEGAL"),++p,(e=P("u"))&&"\\"!==e&&_(e.charCodeAt(0))||W({},o.UnexpectedToken,"ILLEGAL"),t=e);p<d&&w(e=u.charCodeAt(p));)++p,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==u.charCodeAt(p)&&W({},o.UnexpectedToken,"ILLEGAL"),++p,(e=P("u"))&&"\\"!==e&&w(e.charCodeAt(0))||W({},o.UnexpectedToken,"ILLEGAL"),t+=e);return t}function D(){var e,n;return e=p,{type:1===(n=92===u.charCodeAt(p)?R():function(){var e,t;for(e=p++;p<d;){if(92===(t=u.charCodeAt(p)))return p=e,R();if(!w(t))break;++p}return u.slice(e,p)}()).length?t.Identifier:function(e){if(l&&C(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:f,lineStart:h,start:e,end:p}}function j(){var e,n,r,i,a=p,s=u.charCodeAt(p),c=u[p];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++p,v.tokenize&&(40===s?v.openParenToken=v.tokens.length:123===s&&(v.openCurlyToken=v.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:f,lineStart:h,start:a,end:p};default:if(61===(e=u.charCodeAt(p+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return p+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:f,lineStart:h,start:a,end:p};case 33:case 61:return p+=2,61===u.charCodeAt(p)&&++p,{type:t.Punctuator,value:u.slice(a,p),lineNumber:f,lineStart:h,start:a,end:p}}}return">>>="===(i=u.substr(p,4))?(p+=4,{type:t.Punctuator,value:i,lineNumber:f,lineStart:h,start:a,end:p}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(p+=3,{type:t.Punctuator,value:r,lineNumber:f,lineStart:h,start:a,end:p}):c===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(c)>=0||"=>"===n?(p+=2,{type:t.Punctuator,value:n,lineNumber:f,lineStart:h,start:a,end:p}):"<>=!+-*%&|^/".indexOf(c)>=0?(++p,{type:t.Punctuator,value:c,lineNumber:f,lineStart:h,start:a,end:p}):void W({},o.UnexpectedToken,"ILLEGAL")}function $(){var e,n,r;if(S(E((r=u[p]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=p,e="","."!==r){if(e=u[p++],r=u[p],"0"===e){if("x"===r||"X"===r)return++p,function(e){for(var n="";p<d&&b(u[p]);)n+=u[p++];return 0===n.length&&W({},o.UnexpectedToken,"ILLEGAL"),_(u.charCodeAt(p))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:f,lineStart:h,start:e,end:p}}(n);if(x(r))return function(e){for(var n="0"+u[p++];p<d&&x(u[p]);)n+=u[p++];return(_(u.charCodeAt(p))||E(u.charCodeAt(p)))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:f,lineStart:h,start:e,end:p}}(n);r&&E(r.charCodeAt(0))&&W({},o.UnexpectedToken,"ILLEGAL")}for(;E(u.charCodeAt(p));)e+=u[p++];r=u[p]}if("."===r){for(e+=u[p++];E(u.charCodeAt(p));)e+=u[p++];r=u[p]}if("e"===r||"E"===r)if(e+=u[p++],"+"!==(r=u[p])&&"-"!==r||(e+=u[p++]),E(u.charCodeAt(p)))for(;E(u.charCodeAt(p));)e+=u[p++];else W({},o.UnexpectedToken,"ILLEGAL");return _(u.charCodeAt(p))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:f,lineStart:h,start:n,end:p}}function M(){var e,n,r,i;return m=null,L(),e=p,n=function(){var e,t,n,r;for(S("/"===(e=u[p]),"Regular expression literal must start with a slash"),t=u[p++],n=!1,r=!1;p<d;)if(t+=e=u[p++],"\\"===e)I((e=u[p++]).charCodeAt(0))&&W({},o.UnterminatedRegExp),t+=e;else if(I(e.charCodeAt(0)))W({},o.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||W({},o.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";p<d&&w((e=u[p]).charCodeAt(0));)if(++p,"\\"===e&&p<d)if("u"===(e=u[p])){if(r=++p,e=P("u"))for(n+=e,t+="\\u";r<p;++r)t+=u[r];else p=r,n+="u",t+="\\u";K({},o.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},o.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(r){W({},o.InvalidRegExp)}return n}(n.value,r.value),v.tokenize?{type:t.RegularExpression,value:i,lineNumber:f,lineStart:h,start:e,end:p}:{literal:n.literal+r.literal,value:i,start:e,end:p}}function U(){var e,t,n,r;return L(),e=p,t={start:{line:f,column:p-h}},n=M(),t.end={line:f,column:p-h},v.tokenize||(v.tokens.length>0&&(r=v.tokens[v.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||v.tokens.pop()),v.tokens.push({type:"RegularExpression",value:n.literal,range:[e,p],loc:t})),n}function B(){var e;return L(),p>=d?{type:t.EOF,lineNumber:f,lineStart:h,start:p,end:p}:_(e=u.charCodeAt(p))?D():40===e||41===e||59===e?j():39===e||34===e?function(){var e,n,r,i,a,s,c,l,y="",m=!1;for(c=f,l=h,S("'"===(e=u[p])||'"'===e,"String literal must starts with a quote"),n=p,++p;p<d;){if((r=u[p++])===e){e="";break}if("\\"===r)if((r=u[p++])&&I(r.charCodeAt(0)))++f,"\r"===r&&"\n"===u[p]&&++p,h=p;else switch(r){case"u":case"x":s=p,(a=P(r))?y+=a:(p=s,y+=r);break;case"n":y+="\n";break;case"r":y+="\r";break;case"t":y+="\t";break;case"b":y+="\b";break;case"f":y+="\f";break;case"v":y+="\v";break;default:x(r)?(0!==(i="01234567".indexOf(r))&&(m=!0),p<d&&x(u[p])&&(m=!0,i=8*i+"01234567".indexOf(u[p++]),"0123".indexOf(r)>=0&&p<d&&x(u[p])&&(i=8*i+"01234567".indexOf(u[p++]))),y+=String.fromCharCode(i)):y+=r}else{if(I(r.charCodeAt(0)))break;y+=r}}return""!==e&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:y,octal:m,startLineNumber:c,startLineStart:l,lineNumber:f,lineStart:h,start:n,end:p}}():46===e?E(u.charCodeAt(p+1))?$():j():E(e)?$():v.tokenize&&47===e?function(){var e,t;if(!(e=v.tokens[v.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return j();if(")"===e.value)return!(t=v.tokens[v.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?j():U();if("}"===e.value){if(v.tokens[v.openCurlyToken-3]&&"Keyword"===v.tokens[v.openCurlyToken-3].type){if(!(t=v.tokens[v.openCurlyToken-4]))return j()}else{if(!v.tokens[v.openCurlyToken-4]||"Keyword"!==v.tokens[v.openCurlyToken-4].type)return j();if(!(t=v.tokens[v.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?j():U()}return U()}return"Keyword"===e.type?U():j()}():j()}function F(){var e,r,i;return L(),e={start:{line:f,column:p-h}},r=B(),e.end={line:f,column:p-h},r.type!==t.EOF&&(i=u.slice(r.start,r.end),v.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function z(){var e;return p=(e=m).end,f=e.lineNumber,h=e.lineStart,m=void 0!==v.tokens?F():B(),p=e.end,f=e.lineNumber,h=e.lineStart,e}function q(){var e,t,n;e=p,t=f,n=h,m=void 0!==v.tokens?F():B(),p=e,f=t,h=n}function G(e,t){this.line=e,this.column=t}function H(e,t,n,r){this.start=new G(e,t),this.end=new G(n,r)}function X(){var e,t,n,r;return e=p,t=f,n=h,L(),r=f!==t,p=e,f=t,h=n,r}function W(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return S(t<r.length,"Message reference must be in range"),r[t]});throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-h+1):((n=new Error("Line "+f+": "+i)).index=p,n.lineNumber=f,n.column=p-h+1),n.description=i,n}function K(){try{W.apply(null,arguments)}catch(e){if(!v.errors)throw e;v.errors.push(e)}}function V(e){if(e.type===t.EOF&&W(e,o.UnexpectedEOS),e.type===t.NumericLiteral&&W(e,o.UnexpectedNumber),e.type===t.StringLiteral&&W(e,o.UnexpectedString),e.type===t.Identifier&&W(e,o.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))W(e,o.UnexpectedReserved);else if(l&&C(e.value))return void K(e,o.StrictReservedWord);W(e,o.UnexpectedToken,e.value)}W(e,o.UnexpectedToken,e.value)}function J(e){var n=z();n.type===t.Punctuator&&n.value===e||V(n)}function Q(e){var n=z();n.type===t.Keyword&&n.value===e||V(n)}function Z(e){return m.type===t.Punctuator&&m.value===e}function Y(e){return m.type===t.Keyword&&m.value===e}function ee(){var e;59===u.charCodeAt(p)||Z(";")?z():(e=f,L(),f===e&&(m.type===t.EOF||Z("}")||V(m)))}function te(e){return e.type===i.Identifier||e.type===i.MemberExpression}function ne(e,t){var n,r,i;return n=l,i=m,r=_e(),t&&l&&O(e[0].name)&&K(t,o.StrictParamName),l=n,y.markEnd(y.createFunctionExpression(null,e,[],r),i)}function re(){var e,n;return n=m,(e=z()).type===t.StringLiteral||e.type===t.NumericLiteral?(l&&e.octal&&K(e,o.StrictOctalLiteral),y.markEnd(y.createLiteral(e),n)):y.markEnd(y.createIdentifier(e.value),n)}function ie(){var e,n,r,i,a,s;return s=m,(e=m).type===t.Identifier?(r=re(),"get"!==e.value||Z(":")?"set"!==e.value||Z(":")?(J(":"),i=ye(),y.markEnd(y.createProperty("init",r,i),s)):(n=re(),J("("),(e=m).type!==t.Identifier?(J(")"),K(e,o.UnexpectedToken,e.value),i=ne([])):(a=[ve()],J(")"),i=ne(a,e)),y.markEnd(y.createProperty("set",n,i),s)):(n=re(),J("("),J(")"),i=ne([]),y.markEnd(y.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=re(),J(":"),i=ye(),y.markEnd(y.createProperty("init",n,i),s)):void V(e)}function ae(){var e,n,r,s;if(Z("("))return function(){var e;return J("("),e=me(),J(")"),e}();if(Z("["))return function(){var e,t=[];for(e=m,J("[");!Z("]");)Z(",")?(z(),t.push(null)):(t.push(ye()),Z("]")||J(","));return z(),y.markEnd(y.createArrayExpression(t),e)}();if(Z("{"))return function(){var e,t,n,r,s,c=[],u={},p=String;for(s=m,J("{");!Z("}");)t=(e=ie()).key.type===i.Identifier?e.key.name:p(e.key.value),r="init"===e.kind?a.Data:"get"===e.kind?a.Get:a.Set,n="$"+t,Object.prototype.hasOwnProperty.call(u,n)?(u[n]===a.Data?l&&r===a.Data?K({},o.StrictDuplicateProperty):r!==a.Data&&K({},o.AccessorDataProperty):r===a.Data?K({},o.AccessorDataProperty):u[n]&r&&K({},o.AccessorGetSet),u[n]|=r):u[n]=r,c.push(e),Z("}")||J(",");return J("}"),y.markEnd(y.createObjectExpression(c),s)}();if(e=m.type,s=m,e===t.Identifier)r=y.createIdentifier(z().value);else if(e===t.StringLiteral||e===t.NumericLiteral)l&&m.octal&&K(m,o.StrictOctalLiteral),r=y.createLiteral(z());else if(e===t.Keyword){if(Y("function"))return function(){var e,t,n,r,i,a,s,c,u=null,p=[];c=m,Q("function"),Z("(")||(e=m,u=ve(),l?O(e.value)&&K(e,o.StrictFunctionName):O(e.value)?(n=e,r=o.StrictFunctionName):C(e.value)&&(n=e,r=o.StrictReservedWord));i=we(n),p=i.params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message);s=l,a=_e(),l&&n&&W(n,r);l&&t&&K(t,r);return l=s,y.markEnd(y.createFunctionExpression(u,p,[],a),c)}();Y("this")?(z(),r=y.createThisExpression()):V(z())}else e===t.BooleanLiteral?((n=z()).value="true"===n.value,r=y.createLiteral(n)):e===t.NullLiteral?((n=z()).value=null,r=y.createLiteral(n)):Z("/")||Z("/=")?(r=void 0!==v.tokens?y.createLiteral(U()):y.createLiteral(M()),q()):V(z());return y.markEnd(r,s)}function oe(){var e=[];if(J("("),!Z(")"))for(;p<d&&(e.push(ye()),!Z(")"));)J(",");return J(")"),e}function se(){var e,n;return n=m,function(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}(e=z())||V(e),y.markEnd(y.createIdentifier(e.value),n)}function ce(){return J("."),se()}function ue(){var e;return J("["),e=me(),J("]"),e}function le(){var e,t,n;return n=m,Q("new"),e=function(){var e,t,n,r;r=m,e=g.allowIn,t=Y("new")?le():ae(),g.allowIn=e;for(;Z(".")||Z("[");)Z("[")?(n=ue(),t=y.createMemberExpression("[",t,n)):(n=ce(),t=y.createMemberExpression(".",t,n)),y.markEnd(t,r);return t}(),t=Z("(")?oe():[],y.markEnd(y.createNewExpression(e,t),n)}function pe(){var e,n,r=m;return e=function(){var e,t,n,r,i;for(i=m,e=g.allowIn,g.allowIn=!0,t=Y("new")?le():ae(),g.allowIn=e;;){if(Z("."))r=ce(),t=y.createMemberExpression(".",t,r);else if(Z("("))n=oe(),t=y.createCallExpression(t,n);else{if(!Z("["))break;r=ue(),t=y.createMemberExpression("[",t,r)}y.markEnd(t,i)}return t}(),m.type===t.Punctuator&&(!Z("++")&&!Z("--")||X()||(l&&e.type===i.Identifier&&O(e.name)&&K({},o.StrictLHSPostfix),te(e)||K({},o.InvalidLHSInAssignment),n=z(),e=y.markEnd(y.createPostfixExpression(n.value,e),r))),e}function fe(){var e,n,r;return m.type!==t.Punctuator&&m.type!==t.Keyword?n=pe():Z("++")||Z("--")?(r=m,e=z(),n=fe(),l&&n.type===i.Identifier&&O(n.name)&&K({},o.StrictLHSPrefix),te(n)||K({},o.InvalidLHSInAssignment),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r)):Z("+")||Z("-")||Z("~")||Z("!")?(r=m,e=z(),n=fe(),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r)):Y("delete")||Y("void")||Y("typeof")?(r=m,e=z(),n=fe(),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r),l&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},o.StrictDelete)):n=pe(),n}function he(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function de(){var e,t,n,r,i;return i=m,e=function(){var e,t,n,r,i,a,o,s,c,u;if(e=m,c=fe(),0===(i=he(r=m,g.allowIn)))return c;for(r.prec=i,z(),t=[e,m],a=[c,r,o=fe()];(i=he(m,g.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),s=a.pop().value,c=a.pop(),n=y.createBinaryExpression(s,c,o),t.pop(),e=t[t.length-1],y.markEnd(n,e),a.push(n);(r=z()).prec=i,a.push(r),t.push(m),n=fe(),a.push(n)}for(n=a[u=a.length-1],t.pop();u>1;)n=y.createBinaryExpression(a[u-1].value,a[u-2],n),u-=2,e=t.pop(),y.markEnd(n,e);return n}(),Z("?")&&(z(),t=g.allowIn,g.allowIn=!0,n=ye(),g.allowIn=t,J(":"),r=ye(),e=y.createConditionalExpression(e,n,r),y.markEnd(e,i)),e}function ye(){var e,n,r,a,s,c;return e=m,s=m,a=n=de(),m.type!==t.Punctuator||"="!==(c=m.value)&&"*="!==c&&"/="!==c&&"%="!==c&&"+="!==c&&"-="!==c&&"<<="!==c&&">>="!==c&&">>>="!==c&&"&="!==c&&"^="!==c&&"|="!==c||(te(n)||K({},o.InvalidLHSInAssignment),l&&n.type===i.Identifier&&O(n.name)&&K(e,o.StrictLHSAssignment),e=z(),r=ye(),a=y.markEnd(y.createAssignmentExpression(e.value,n,r),s)),a}function me(){var e,t=m;if(e=ye(),Z(",")){for(e=y.createSequenceExpression([e]);p<d&&Z(",");)z(),e.expressions.push(ye());y.markEnd(e,t)}return e}function ge(){var e,t;return t=m,J("{"),e=function(){for(var e,t=[];p<d&&!Z("}")&&void 0!==(e=Oe());)t.push(e);return t}(),J("}"),y.markEnd(y.createBlockStatement(e),t)}function ve(){var e,n;return n=m,(e=z()).type!==t.Identifier&&V(e),y.markEnd(y.createIdentifier(e.value),n)}function Se(e){var t,n,r=null;return n=m,t=ve(),l&&O(t.name)&&K({},o.StrictVarName),"const"===e?(J("="),r=ye()):Z("=")&&(z(),r=ye()),y.markEnd(y.createVariableDeclarator(t,r),n)}function Ee(e){var t=[];do{if(t.push(Se(e)),!Z(","))break;z()}while(p<d);return t}function be(){var e,t,n,r,i,a,s,c,u,l;return e=t=n=null,Q("for"),J("("),Z(";")?z():(Y("var")||Y("let")?(g.allowIn=!1,l=m,c=z(),u=Ee(),e=y.markEnd(y.createVariableDeclaration(u,c.value),l),g.allowIn=!0,1===e.declarations.length&&Y("in")&&(z(),r=e,i=me(),e=null)):(g.allowIn=!1,e=me(),g.allowIn=!0,Y("in")&&(te(e)||K({},o.InvalidLHSInForIn),z(),r=e,i=me(),e=null)),void 0===r&&J(";")),void 0===r&&(Z(";")||(t=me()),J(";"),Z(")")||(n=me())),J(")"),s=g.inIteration,g.inIteration=!0,a=Ie(),g.inIteration=s,void 0===r?y.createForStatement(e,t,n,a):y.createForInStatement(r,i,a)}function xe(){var e,t,n,r=[];for(n=m,Y("default")?(z(),e=null):(Q("case"),e=me()),J(":");p<d&&!(Z("}")||Y("default")||Y("case"));)t=Ie(),r.push(t);return y.markEnd(y.createSwitchCase(e,r),n)}function ke(){var e,t,n,r,i=[],a=null;return Q("try"),e=ge(),Y("catch")&&i.push((r=m,Q("catch"),J("("),Z(")")&&V(m),t=ve(),l&&O(t.name)&&K({},o.StrictCatchVariable),J(")"),n=ge(),y.markEnd(y.createCatchClause(t,n),r))),Y("finally")&&(z(),a=ge()),0!==i.length||a||W({},o.NoCatchOrFinally),y.createTryStatement(e,[],i,a)}function Ie(){var e,n,r,a,s,c,f,h,v,S=m.type;if(S===t.EOF&&V(m),S===t.Punctuator&&"{"===m.value)return ge();if(a=m,S===t.Punctuator)switch(m.value){case";":return y.markEnd((J(";"),y.createEmptyStatement()),a);case"(":return y.markEnd(function(){var e=me();return ee(),y.createExpressionStatement(e)}(),a)}if(S===t.Keyword)switch(m.value){case"break":return y.markEnd(function(){var e,n=null;return Q("break"),59===u.charCodeAt(p)?(z(),g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(null)):X()?(g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(null)):(m.type===t.Identifier&&(e="$"+(n=ve()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||W({},o.UnknownLabel,n.name)),ee(),null!==n||g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(n))}(),a);case"continue":return y.markEnd(function(){var e,n=null;return Q("continue"),59===u.charCodeAt(p)?(z(),g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(null)):X()?(g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(null)):(m.type===t.Identifier&&(e="$"+(n=ve()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||W({},o.UnknownLabel,n.name)),ee(),null!==n||g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(n))}(),a);case"debugger":return y.markEnd((Q("debugger"),ee(),y.createDebuggerStatement()),a);case"do":return y.markEnd((Q("do"),v=g.inIteration,g.inIteration=!0,f=Ie(),g.inIteration=v,Q("while"),J("("),h=me(),J(")"),Z(";")&&z(),y.createDoWhileStatement(f,h)),a);case"for":return y.markEnd(be(),a);case"function":return y.markEnd(Ce(),a);case"if":return y.markEnd(function(){var e,t,n;return Q("if"),J("("),e=me(),J(")"),t=Ie(),Y("else")?(z(),n=Ie()):n=null,y.createIfStatement(e,t,n)}(),a);case"return":return y.markEnd((c=null,Q("return"),g.inFunctionBody||K({},o.IllegalReturn),32===u.charCodeAt(p)&&_(u.charCodeAt(p+1))?(c=me(),ee(),y.createReturnStatement(c)):X()?y.createReturnStatement(null):(Z(";")||Z("}")||m.type===t.EOF||(c=me()),ee(),y.createReturnStatement(c))),a);case"switch":return y.markEnd(function(){var e,t,n,r,i;if(Q("switch"),J("("),e=me(),J(")"),J("{"),t=[],Z("}"))return z(),y.createSwitchStatement(e,t);for(r=g.inSwitch,g.inSwitch=!0,i=!1;p<d&&!Z("}");)null===(n=xe()).test&&(i&&W({},o.MultipleDefaultsInSwitch),i=!0),t.push(n);return g.inSwitch=r,J("}"),y.createSwitchStatement(e,t)}(),a);case"throw":return y.markEnd(function(){var e;return Q("throw"),X()&&W({},o.NewlineAfterThrow),e=me(),ee(),y.createThrowStatement(e)}(),a);case"try":return y.markEnd(ke(),a);case"var":return y.markEnd((Q("var"),s=Ee(),ee(),y.createVariableDeclaration(s,"var")),a);case"while":return y.markEnd(function(){var e,t,n;return Q("while"),J("("),e=me(),J(")"),n=g.inIteration,g.inIteration=!0,t=Ie(),g.inIteration=n,y.createWhileStatement(e,t)}(),a);case"with":return y.markEnd(function(){var e,t;return l&&(L(),K({},o.StrictModeWith)),Q("with"),J("("),e=me(),J(")"),t=Ie(),y.createWithStatement(e,t)}(),a)}return(e=me()).type===i.Identifier&&Z(":")?(z(),r="$"+e.name,Object.prototype.hasOwnProperty.call(g.labelSet,r)&&W({},o.Redeclaration,"Label",e.name),g.labelSet[r]=!0,n=Ie(),delete g.labelSet[r],y.markEnd(y.createLabeledStatement(e,n),a)):(ee(),y.markEnd(y.createExpressionStatement(e),a))}function _e(){var e,n,r,a,s,c,f,h,v=[];for(h=m,J("{");p<d&&m.type===t.StringLiteral&&(n=m,e=Oe(),v.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(l=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(a=g.labelSet,s=g.inIteration,c=g.inSwitch,f=g.inFunctionBody,g.labelSet={},g.inIteration=!1,g.inSwitch=!1,g.inFunctionBody=!0;p<d&&!Z("}")&&void 0!==(e=Oe());)v.push(e);return J("}"),g.labelSet=a,g.inIteration=s,g.inSwitch=c,g.inFunctionBody=f,y.markEnd(y.createBlockStatement(v),h)}function we(e){var t,n,r,i,a,s,c=[];if(J("("),!Z(")"))for(i={};p<d&&(n=m,t=ve(),a="$"+n.value,l?(O(n.value)&&(r=n,s=o.StrictParamName),Object.prototype.hasOwnProperty.call(i,a)&&(r=n,s=o.StrictParamDupe)):e||(O(n.value)?(e=n,s=o.StrictParamName):C(n.value)?(e=n,s=o.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,a)&&(e=n,s=o.StrictParamDupe)),c.push(t),i[a]=!0,!Z(")"));)J(",");return J(")"),{params:c,stricted:r,firstRestricted:e,message:s}}function Ce(){var e,t,n,r,i,a,s,c,u,p;return p=m,Q("function"),r=m,e=ve(),l?O(r.value)&&K(r,o.StrictFunctionName):O(r.value)?(s=r,c=o.StrictFunctionName):C(r.value)&&(s=r,c=o.StrictReservedWord),t=(a=we(s)).params,i=a.stricted,s=a.firstRestricted,a.message&&(c=a.message),u=l,n=_e(),l&&s&&W(s,c),l&&i&&K(i,c),l=u,y.markEnd(y.createFunctionDeclaration(e,t,[],n),p)}function Oe(){if(m.type===t.Keyword)switch(m.value){case"const":case"let":return e=m.value,r=m,Q(e),n=Ee(e),ee(),y.markEnd(y.createVariableDeclaration(n,e),r);case"function":return Ce();default:return Ie()}var e,n,r;if(m.type!==t.EOF)return Ie()}function Ne(){var e,n;return L(),q(),n=m,l=!1,e=function(){for(var e,n,r,a=[];p<d&&(n=m).type===t.StringLiteral&&(e=Oe(),a.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(l=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;p<d&&void 0!==(e=Oe());)a.push(e);return a}(),y.markEnd(y.createProgram(e),n)}function Te(){var e,t,n,r=[];for(e=0;e<v.tokens.length;++e)n={type:(t=v.tokens[e]).type,value:t.value},v.range&&(n.range=t.range),v.loc&&(n.loc=t.loc),r.push(n);v.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},o={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},c={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(v.trailingComments.length>0?v.trailingComments[0].range[0]>=e.range[1]?(n=v.trailingComments,v.trailingComments=[]):v.trailingComments.length=0:v.bottomRightStack.length>0&&v.bottomRightStack[v.bottomRightStack.length-1].trailingComments&&v.bottomRightStack[v.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=v.bottomRightStack[v.bottomRightStack.length-1].trailingComments,delete v.bottomRightStack[v.bottomRightStack.length-1].trailingComments);v.bottomRightStack.length>0&&v.bottomRightStack[v.bottomRightStack.length-1].range[0]>=e.range[0];)t=v.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):v.leadingComments.length>0&&v.leadingComments[v.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=v.leadingComments,v.leadingComments=[]),n&&(e.trailingComments=n),v.bottomRightStack.push(e)}},markEnd:function(e,t){return v.range&&(e.range=[t.start,p]),v.loc&&(e.loc=new H(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),f,p-h),this.postProcess(e)),v.attachComment&&this.processComment(e),e},postProcess:function(e){return v.source&&(e.loc.source=v.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:u.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,n){var r,i;r=String,"string"==typeof e||e instanceof String||(e=r(e)),y=c,p=0,f=(u=e).length>0?1:0,h=0,d=u.length,m=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},v={},(n=n||{}).tokens=!0,v.tokens=[],v.tokenize=!0,v.openParenToken=-1,v.openCurlyToken=-1,v.range="boolean"==typeof n.range&&n.range,v.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(v.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(v.errors=[]);try{if(q(),m.type===t.EOF)return v.tokens;for(z();m.type!==t.EOF;)try{z()}catch(a){if(v.errors){v.errors.push(a);break}throw a}Te(),i=v.tokens,void 0!==v.comments&&(i.comments=v.comments),void 0!==v.errors&&(i.errors=v.errors)}catch(o){throw o}finally{v={}}return i},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),y=c,p=0,f=(u=e).length>0?1:0,h=0,d=u.length,m=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},v={},void 0!==t&&(v.range="boolean"==typeof t.range&&t.range,v.loc="boolean"==typeof t.loc&&t.loc,v.attachComment="boolean"==typeof t.attachComment&&t.attachComment,v.loc&&null!==t.source&&void 0!==t.source&&(v.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(v.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(v.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(v.errors=[]),v.attachComment&&(v.range=!0,v.comments=[],v.bottomRightStack=[],v.trailingComments=[],v.leadingComments=[]));try{n=Ne(),void 0!==v.comments&&(n.comments=v.comments),void 0!==v.tokens&&(Te(),n.tokens=v.tokens),void 0!==v.errors&&(n.errors=v.errors)}catch(i){throw i}finally{v={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],1:[function(e,t,n){(function(r){var i=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,a,o,s){i.ast||(i.ast=t,t.initialize());var c=o.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:o[c]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:o[c-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:o[c-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:i.ast.set({scope:"child"});break;case 10:i.ast.set({scope:"descendant"});break;case 11:break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:i.ast.set({expression:{type:"wildcard",value:o[c]}});break;case 15:i.ast.set({expression:{type:"identifier",value:o[c]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:o[c]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(o[c])}});break;case 18:break;case 19:i.ast.set({scope:"child"});break;case 20:i.ast.set({scope:"descendant"});break;case 21:case 22:case 23:break;case 24:o[c].length>1?i.ast.set({expression:{type:"union",value:o[c]}}):this.$=o[c];break;case 25:this.$=[o[c]];break;case 26:this.$=o[c-2].concat(o[c]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(o[c])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:o[c]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:o[c]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:o[c]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:o[c]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:o[c]}},i.ast.set(this.$);break;case 33:case 34:this.$=o[c]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,c=0,u=0,l=1,p=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;i.push(f);var h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var d,y,m,g,v,S,E,b,x,k,I={};;){if(m=n[n.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null==d&&(k=void 0,"number"!=typeof(k=t.lexer.lex()||l)&&(k=t.symbols_[k]||k),d=k),g=a[m]&&a[m][d]),void 0===g||!g.length||!g[0]){var _="";for(S in x=[],a[m])this.terminals_[S]&&S>2&&x.push("'"+this.terminals_[S]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(s+1)+": Unexpected "+(d==l?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:f,expected:x})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(g[0]){case 1:n.push(d),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),d=null,y?(d=y,y=null):(c=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[g[1]][1],I.$=r[r.length-E],I._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},h&&(I._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),void 0!==(v=this.performAction.apply(I,[o,c,s,this.yy,g[1],r,i].concat(p))))return v;E&&(n=n.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),n.push(this.productions_[g[1]][0]),r.push(I.$),i.push(I._$),b=a[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt\/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt\/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),r.exit(1));var i=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(i)},void 0!==t&&e.main===t&&n.main(r.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),a=e("static-eval"),o=e("underscore").uniq,s=function(){return this.initialize.apply(this,arguments)};function c(t,n,i){var a=e("./index"),o=h(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,o),c=a.nodes(t.value,s);return c.forEach(function(e){e.path=t.path.concat(e.path.slice(1))}),c}function u(e){return Array.isArray(e)}function l(e){return function(t,n,r,i){var a=t.value,o=t.path,s=[],c=function(t,a){var o;u(t)?(t.forEach(function(e,t){s.length>=i||r(t,e,n)&&s.push({path:a.concat(t),value:e})}),t.forEach(function(t,n){s.length>=i||e&&c(t,a.concat(n))})):(o=t)&&!(o instanceof Array)&&o instanceof Object&&(this.keys(t).forEach(function(e){s.length>=i||r(e,t[e],n)&&s.push({path:a.concat(e),value:t[e]})}),this.keys(t).forEach(function(n){s.length>=i||e&&c(t[n],a.concat(n))}))}.bind(this);return c(a,o),s}}function p(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function f(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function h(){try{return a.apply(this,arguments)}catch(e){}}function d(e){return e=e.filter(function(e){return e}),o(e,function(e){return e.path.map(function(e){return String(e).replace("-","--")}).join("-")})}function y(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}s.prototype.initialize=function(){this.traverse=l(!0),this.descend=l()},s.prototype.keys=Object.keys,s.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},s.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},s.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":f(function(e,t,n){return e==n}),"subscript-child-numeric_literal":p(function(e,t,n){return e===n}),"member-child-numeric_literal":p(function(e,t,n){return String(e)===String(n)}),"subscript-descendant-numeric_literal":f(function(e,t,n){return e===n}),"member-child-wildcard":p(function(){return!0}),"member-descendant-wildcard":f(function(){return!0}),"subscript-descendant-wildcard":f(function(){return!0}),"subscript-child-wildcard":p(function(){return!0}),"subscript-child-slice":function(e,t){if(u(t.value)){var n=e.expression.value.split(":").map(y),r=t.value.map(function(e,n){return{value:e,path:t.path.concat(n)}});return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach(function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))},this),d(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),a=this,o=[];return i.nodes(n,"$..*").slice(1).forEach(function(e){o.length>=r||t.expression.value.forEach(function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=a.resolve(n)(n,e);o=o.concat(r)})}),d(o)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.descend(t,null,function(e,t){return h(a,{"@":t})},n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.traverse(t,null,function(e,t){return h(a,{"@":t})},n)},"subscript-child-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$..value")}},s.prototype._fns["subscript-child-string_literal"]=s.prototype._fns["member-child-identifier"],s.prototype._fns["member-descendant-numeric_literal"]=s.prototype._fns["subscript-descendant-string_literal"]=s.prototype._fns["member-descendant-identifier"],t.exports=s},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),a=e("./parser"),o=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function c(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new a,this.handlers=new o},s.prototype.parse=function(e){return r.ok(c(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];n.path.pop();return this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort(function(e,t){return t.path.length-e.path.length});return i.forEach(function(t){var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=n.call(e,i[r]);i[r]=a},this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);var a=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[a]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var a=this.parser.parse(t).map(function(e){return e.expression.value}),o=function(t,n){var r=t.pop(),a=i.value(e,t);a||(o(t.concat(),"string"==typeof r?{}:[]),a=i.value(e,t)),a[r]=n};return o(a,n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(c(t),"we need a path"),this.nodes(e,t,n).map(function(e){return e.value})},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map(function(e){return e.path})},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t),a=this.handlers,o=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach(function(e,t){if(!(s.length>=n)){var r=a.resolve(e),c=[];o.forEach(function(a){if(!(s.length>=n)){var o=r(e,a,n);t==i.length-1?s=s.concat(o||[]):c=c.concat(o||[])}}),o=c}}),n?s.slice(0,n):s):o},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach(function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),a=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,r)}}),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach(function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}}),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.Handlers=o,s.Parser=a;var u=new s;u.JSONPath=s,t.exports=u},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=r,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?a+n:n,t=r(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),n=r(0===n?0:n||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),n=i>0?Math.min(n,a):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var o=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)o.push(e[s]);return o}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,o=t.exports=l;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)?t.toString():r.isFunction(t)||r.isRegExp(t)?t.toString():t}function c(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function u(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function l(e,t){e||u(e,!0,t,"==",o.ok)}function p(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=f(e),a=f(t);if(n&&!a||!n&&a)return!1;if(n)return e=i.call(e),t=i.call(t),p(e,t);var o,s,c=y(e),u=y(t);if(c.length!=u.length)return!1;for(c.sort(),u.sort(),s=c.length-1;s>=0;s--)if(c[s]!=u[s])return!1;for(s=c.length-1;s>=0;s--)if(o=c[s],!p(e[o],t[o]))return!1;return!0}(e,t):e==t}function f(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,n,i){var a;r.isString(n)&&(i=n,n=null);try{t()}catch(o){a=o}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!a&&u(a,n,"Missing expected exception"+i),!e&&h(a,n)&&u(a,n,"Got unwanted exception"+i),e&&a&&n&&!h(a,n)||!e&&a)throw a}o.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(t=this,c(JSON.stringify(t.actual,s),128)+" "+t.operator+" "+c(JSON.stringify(t.expected,s),128)),this.generatedMessage=!0);var n=e.stackStartFunction||u;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,a=n.name,o=i.indexOf("\n"+a);if(o>=0){var l=i.indexOf("\n",o+1);i=i.substring(l+1)}this.stack=i}}},r.inherits(o.AssertionError,Error),o.fail=u,o.ok=l,o.equal=function(e,t,n){e!=t&&u(e,t,n,"==",o.equal)},o.notEqual=function(e,t,n){e==t&&u(e,t,n,"!=",o.notEqual)},o.deepEqual=function(e,t,n){p(e,t)||u(e,t,n,"deepEqual",o.deepEqual)},o.notDeepEqual=function(e,t,n){p(e,t)&&u(e,t,n,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(e,t,n){e!==t&&u(e,t,n,"===",o.strictEqual)},o.notStrictEqual=function(e,t,n){e===t&&u(e,t,n,"!==",o.notStrictEqual)},o.throws=function(e,t,n){d.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,n,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),c=r[n];n<a;c=r[++n])y(c)||!E(c)?o+=" "+c:o+=" "+s(c);return o},r.deprecate=function(e,i){if(v(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(0===o.length){if(k(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return p(t)}var u,E="",I=!1,_=["{","}"];(h(t)&&(I=!0,_=["[","]"]),k(t))&&(E=" [Function"+(t.name?": "+t.name:"")+"]");return S(t)&&(E=" "+RegExp.prototype.toString.call(t)),b(t)&&(E=" "+Date.prototype.toUTCString.call(t)),x(t)&&(E=" "+p(t)),0!==o.length||I&&0!=t.length?n<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=I?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)C(t,String(o))?a.push(f(e,t,n,r,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(f(e,t,n,r,i,!0))}),a}(e,t,n,s,o):o.map(function(r){return f(e,t,n,s,r,I)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,E,_)):_[0]+E+_[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),C(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===I(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===I(e)}function x(e){return E(e)&&("[object Error]"===I(e)||e instanceof Error)}function k(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(v(a)&&(a=""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=t.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else o[e]=function(){};return o[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=d,r.isNull=y,r.isNullOrUndefined=function(e){return null==e},r.isNumber=m,r.isString=g,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=S,r.isObject=E,r.isDate=b,r.isError=x,r.isFunction=k,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"))||"."},n.normalize=function(e){var a=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),a=r(t.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,l=[],p=!1,f=-1;function h(){p&&u&&(p=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!p){var e=c(h);p=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,p=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new y(e,t)),1!==l.length||p||c(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(e,t,n){var r=e("escodegen").generate;t.exports=function(e,t){t||(t={});var n={},i=function e(i,a){if("Literal"===i.type)return i.value;if("UnaryExpression"===i.type){var o=e(i.argument);return"+"===i.operator?+o:"-"===i.operator?-o:"~"===i.operator?~o:"!"===i.operator?!o:n}if("ArrayExpression"===i.type){for(var s=[],c=0,u=i.elements.length;c<u;c++){if((g=e(i.elements[c]))===n)return n;s.push(g)}return s}if("ObjectExpression"===i.type){var l={};for(c=0;c<i.properties.length;c++){var p=null===(v=i.properties[c]).value?v.value:e(v.value);if(p===n)return n;l[v.key.value||v.key.name]=p}return l}if("BinaryExpression"===i.type||"LogicalExpression"===i.type){if((u=e(i.left))===n)return n;var f=e(i.right);if(f===n)return n;var h=i.operator;return"=="===h?u==f:"==="===h?u===f:"!="===h?u!=f:"!=="===h?u!==f:"+"===h?u+f:"-"===h?u-f:"*"===h?u*f:"/"===h?u/f:"%"===h?u%f:"<"===h?u<f:"<="===h?u<=f:">"===h?u>f:">="===h?u>=f:"|"===h?u|f:"&"===h?u&f:"^"===h?u^f:"&&"===h?u&&f:"||"===h?u||f:n}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:n;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:n;if("CallExpression"===i.type){var d=e(i.callee);if(d===n)return n;if("function"!=typeof d)return n;var y=i.callee.object?e(i.callee.object):n;y===n&&(y=null);var m=[];for(c=0,u=i.arguments.length;c<u;c++){var g;if((g=e(i.arguments[c]))===n)return n;m.push(g)}return d.apply(y,m)}var v;if("MemberExpression"===i.type)return(l=e(i.object))===n||"function"==typeof l?n:"Identifier"===i.property.type?l[i.property.name]:(v=e(i.property))===n?n:l[v];if("ConditionalExpression"===i.type)return(o=e(i.test))===n?n:e(o?i.consequent:i.alternate);if("ExpressionStatement"===i.type)return(o=e(i.expression))===n?n:o;if("ReturnStatement"===i.type)return e(i.argument);if("FunctionExpression"===i.type){var S=i.body.body,E={};Object.keys(t).forEach(function(e){E[e]=t[e]});for(c=0;c<i.params.length;c++){var b=i.params[c];if("Identifier"!=b.type)return n;t[b.name]=null}for(var c in S)if(e(S[c])===n)return n;t=E;var x=Object.keys(t),k=x.map(function(e){return t[e]});return Function(x.join(", "),"return "+r(i)).apply(null,k)}if("TemplateLiteral"===i.type){var I="";for(c=0;c<i.expressions.length;c++)I+=e(i.quasis[c]),I+=e(i.expressions[c]);return I+=e(i.quasis[c])}if("TaggedTemplateExpression"===i.type){var _=e(i.tag),w=i.quasi,C=w.quasis.map(e),O=w.expressions.map(e);return _.apply(null,[C].concat(O))}return"TemplateElement"===i.type?i.value.cooked:n}(e);return i===n?void 0:i}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")});
128
+ var e,t=arguments[3],n=require("process");!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof e&&e.amd)e([],n);else{("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).jsonpath=n()}}(function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,function(e){"use strict";var t,n,r,i,a,o,s,c,u,l,p,f,h,d,y,m,g,v;function S(e,t){if(!e)throw new Error("ASSERT: "+t)}function E(e){return e>=48&&e<=57}function b(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function x(e){return"01234567".indexOf(e)>=0}function k(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function I(e){return 10===e||13===e||8232===e||8233===e}function _(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function w(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function C(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function O(e){return"eval"===e||"arguments"===e}function N(e,t,n,r,i){var a;S("number"==typeof n,"Comment must have valid position"),g.lastCommentStart>=n||(g.lastCommentStart=n,a={type:e,value:t},v.range&&(a.range=[n,r]),v.loc&&(a.loc=i),v.comments.push(a),v.attachComment&&(v.leadingComments.push(a),v.trailingComments.push(a)))}function T(e){var t,n,r,i;for(t=p-e,n={start:{line:f,column:p-h-e}};p<d;)if(r=u.charCodeAt(p),++p,I(r))return v.comments&&(i=u.slice(t+e,p-1),n.end={line:f,column:p-h-1},N("Line",i,t,p-1,n)),13===r&&10===u.charCodeAt(p)&&++p,++f,void(h=p);v.comments&&(i=u.slice(t+e,p),n.end={line:f,column:p-h},N("Line",i,t,p,n))}function A(){var e,t,n,r;for(v.comments&&(e=p-2,t={start:{line:f,column:p-h-2}});p<d;)if(I(n=u.charCodeAt(p)))13===n&&10===u.charCodeAt(p+1)&&++p,++f,h=++p,p>=d&&W({},o.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===u.charCodeAt(p+1))return++p,++p,void(v.comments&&(r=u.slice(e+2,p-2),t.end={line:f,column:p-h},N("Block",r,e,p,t)));++p}else++p;W({},o.UnexpectedToken,"ILLEGAL")}function L(){var e,t;for(t=0===p;p<d;)if(k(e=u.charCodeAt(p)))++p;else if(I(e))++p,13===e&&10===u.charCodeAt(p)&&++p,++f,h=p,t=!0;else if(47===e)if(47===(e=u.charCodeAt(p+1)))++p,++p,T(2),t=!0;else{if(42!==e)break;++p,++p,A()}else if(t&&45===e){if(45!==u.charCodeAt(p+1)||62!==u.charCodeAt(p+2))break;p+=3,T(3)}else{if(60!==e)break;if("!--"!==u.slice(p+1,p+4))break;++p,++p,++p,++p,T(4)}}function P(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(p<d&&b(u[p])))return"";r=u[p++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function R(){var e,t;for(e=u.charCodeAt(p++),t=String.fromCharCode(e),92===e&&(117!==u.charCodeAt(p)&&W({},o.UnexpectedToken,"ILLEGAL"),++p,(e=P("u"))&&"\\"!==e&&_(e.charCodeAt(0))||W({},o.UnexpectedToken,"ILLEGAL"),t=e);p<d&&w(e=u.charCodeAt(p));)++p,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==u.charCodeAt(p)&&W({},o.UnexpectedToken,"ILLEGAL"),++p,(e=P("u"))&&"\\"!==e&&w(e.charCodeAt(0))||W({},o.UnexpectedToken,"ILLEGAL"),t+=e);return t}function D(){var e,n;return e=p,{type:1===(n=92===u.charCodeAt(p)?R():function(){var e,t;for(e=p++;p<d;){if(92===(t=u.charCodeAt(p)))return p=e,R();if(!w(t))break;++p}return u.slice(e,p)}()).length?t.Identifier:function(e){if(l&&C(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:f,lineStart:h,start:e,end:p}}function j(){var e,n,r,i,a=p,s=u.charCodeAt(p),c=u[p];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++p,v.tokenize&&(40===s?v.openParenToken=v.tokens.length:123===s&&(v.openCurlyToken=v.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:f,lineStart:h,start:a,end:p};default:if(61===(e=u.charCodeAt(p+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return p+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:f,lineStart:h,start:a,end:p};case 33:case 61:return p+=2,61===u.charCodeAt(p)&&++p,{type:t.Punctuator,value:u.slice(a,p),lineNumber:f,lineStart:h,start:a,end:p}}}return">>>="===(i=u.substr(p,4))?(p+=4,{type:t.Punctuator,value:i,lineNumber:f,lineStart:h,start:a,end:p}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(p+=3,{type:t.Punctuator,value:r,lineNumber:f,lineStart:h,start:a,end:p}):c===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(c)>=0||"=>"===n?(p+=2,{type:t.Punctuator,value:n,lineNumber:f,lineStart:h,start:a,end:p}):"<>=!+-*%&|^/".indexOf(c)>=0?(++p,{type:t.Punctuator,value:c,lineNumber:f,lineStart:h,start:a,end:p}):void W({},o.UnexpectedToken,"ILLEGAL")}function $(){var e,n,r;if(S(E((r=u[p]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=p,e="","."!==r){if(e=u[p++],r=u[p],"0"===e){if("x"===r||"X"===r)return++p,function(e){for(var n="";p<d&&b(u[p]);)n+=u[p++];return 0===n.length&&W({},o.UnexpectedToken,"ILLEGAL"),_(u.charCodeAt(p))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:f,lineStart:h,start:e,end:p}}(n);if(x(r))return function(e){for(var n="0"+u[p++];p<d&&x(u[p]);)n+=u[p++];return(_(u.charCodeAt(p))||E(u.charCodeAt(p)))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:f,lineStart:h,start:e,end:p}}(n);r&&E(r.charCodeAt(0))&&W({},o.UnexpectedToken,"ILLEGAL")}for(;E(u.charCodeAt(p));)e+=u[p++];r=u[p]}if("."===r){for(e+=u[p++];E(u.charCodeAt(p));)e+=u[p++];r=u[p]}if("e"===r||"E"===r)if(e+=u[p++],"+"!==(r=u[p])&&"-"!==r||(e+=u[p++]),E(u.charCodeAt(p)))for(;E(u.charCodeAt(p));)e+=u[p++];else W({},o.UnexpectedToken,"ILLEGAL");return _(u.charCodeAt(p))&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:f,lineStart:h,start:n,end:p}}function M(){var e,n,r,i;return m=null,L(),e=p,n=function(){var e,t,n,r;for(S("/"===(e=u[p]),"Regular expression literal must start with a slash"),t=u[p++],n=!1,r=!1;p<d;)if(t+=e=u[p++],"\\"===e)I((e=u[p++]).charCodeAt(0))&&W({},o.UnterminatedRegExp),t+=e;else if(I(e.charCodeAt(0)))W({},o.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||W({},o.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";p<d&&w((e=u[p]).charCodeAt(0));)if(++p,"\\"===e&&p<d)if("u"===(e=u[p])){if(r=++p,e=P("u"))for(n+=e,t+="\\u";r<p;++r)t+=u[r];else p=r,n+="u",t+="\\u";K({},o.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},o.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(r){W({},o.InvalidRegExp)}return n}(n.value,r.value),v.tokenize?{type:t.RegularExpression,value:i,lineNumber:f,lineStart:h,start:e,end:p}:{literal:n.literal+r.literal,value:i,start:e,end:p}}function U(){var e,t,n,r;return L(),e=p,t={start:{line:f,column:p-h}},n=M(),t.end={line:f,column:p-h},v.tokenize||(v.tokens.length>0&&(r=v.tokens[v.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||v.tokens.pop()),v.tokens.push({type:"RegularExpression",value:n.literal,range:[e,p],loc:t})),n}function B(){var e;return L(),p>=d?{type:t.EOF,lineNumber:f,lineStart:h,start:p,end:p}:_(e=u.charCodeAt(p))?D():40===e||41===e||59===e?j():39===e||34===e?function(){var e,n,r,i,a,s,c,l,y="",m=!1;for(c=f,l=h,S("'"===(e=u[p])||'"'===e,"String literal must starts with a quote"),n=p,++p;p<d;){if((r=u[p++])===e){e="";break}if("\\"===r)if((r=u[p++])&&I(r.charCodeAt(0)))++f,"\r"===r&&"\n"===u[p]&&++p,h=p;else switch(r){case"u":case"x":s=p,(a=P(r))?y+=a:(p=s,y+=r);break;case"n":y+="\n";break;case"r":y+="\r";break;case"t":y+="\t";break;case"b":y+="\b";break;case"f":y+="\f";break;case"v":y+="\v";break;default:x(r)?(0!==(i="01234567".indexOf(r))&&(m=!0),p<d&&x(u[p])&&(m=!0,i=8*i+"01234567".indexOf(u[p++]),"0123".indexOf(r)>=0&&p<d&&x(u[p])&&(i=8*i+"01234567".indexOf(u[p++]))),y+=String.fromCharCode(i)):y+=r}else{if(I(r.charCodeAt(0)))break;y+=r}}return""!==e&&W({},o.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:y,octal:m,startLineNumber:c,startLineStart:l,lineNumber:f,lineStart:h,start:n,end:p}}():46===e?E(u.charCodeAt(p+1))?$():j():E(e)?$():v.tokenize&&47===e?function(){var e,t;if(!(e=v.tokens[v.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return j();if(")"===e.value)return!(t=v.tokens[v.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?j():U();if("}"===e.value){if(v.tokens[v.openCurlyToken-3]&&"Keyword"===v.tokens[v.openCurlyToken-3].type){if(!(t=v.tokens[v.openCurlyToken-4]))return j()}else{if(!v.tokens[v.openCurlyToken-4]||"Keyword"!==v.tokens[v.openCurlyToken-4].type)return j();if(!(t=v.tokens[v.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?j():U()}return U()}return"Keyword"===e.type?U():j()}():j()}function F(){var e,r,i;return L(),e={start:{line:f,column:p-h}},r=B(),e.end={line:f,column:p-h},r.type!==t.EOF&&(i=u.slice(r.start,r.end),v.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function z(){var e;return p=(e=m).end,f=e.lineNumber,h=e.lineStart,m=void 0!==v.tokens?F():B(),p=e.end,f=e.lineNumber,h=e.lineStart,e}function q(){var e,t,n;e=p,t=f,n=h,m=void 0!==v.tokens?F():B(),p=e,f=t,h=n}function G(e,t){this.line=e,this.column=t}function H(e,t,n,r){this.start=new G(e,t),this.end=new G(n,r)}function X(){var e,t,n,r;return e=p,t=f,n=h,L(),r=f!==t,p=e,f=t,h=n,r}function W(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return S(t<r.length,"Message reference must be in range"),r[t]});throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-h+1):((n=new Error("Line "+f+": "+i)).index=p,n.lineNumber=f,n.column=p-h+1),n.description=i,n}function K(){try{W.apply(null,arguments)}catch(e){if(!v.errors)throw e;v.errors.push(e)}}function V(e){if(e.type===t.EOF&&W(e,o.UnexpectedEOS),e.type===t.NumericLiteral&&W(e,o.UnexpectedNumber),e.type===t.StringLiteral&&W(e,o.UnexpectedString),e.type===t.Identifier&&W(e,o.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))W(e,o.UnexpectedReserved);else if(l&&C(e.value))return void K(e,o.StrictReservedWord);W(e,o.UnexpectedToken,e.value)}W(e,o.UnexpectedToken,e.value)}function J(e){var n=z();n.type===t.Punctuator&&n.value===e||V(n)}function Q(e){var n=z();n.type===t.Keyword&&n.value===e||V(n)}function Z(e){return m.type===t.Punctuator&&m.value===e}function Y(e){return m.type===t.Keyword&&m.value===e}function ee(){var e;59===u.charCodeAt(p)||Z(";")?z():(e=f,L(),f===e&&(m.type===t.EOF||Z("}")||V(m)))}function te(e){return e.type===i.Identifier||e.type===i.MemberExpression}function ne(e,t){var n,r,i;return n=l,i=m,r=_e(),t&&l&&O(e[0].name)&&K(t,o.StrictParamName),l=n,y.markEnd(y.createFunctionExpression(null,e,[],r),i)}function re(){var e,n;return n=m,(e=z()).type===t.StringLiteral||e.type===t.NumericLiteral?(l&&e.octal&&K(e,o.StrictOctalLiteral),y.markEnd(y.createLiteral(e),n)):y.markEnd(y.createIdentifier(e.value),n)}function ie(){var e,n,r,i,a,s;return s=m,(e=m).type===t.Identifier?(r=re(),"get"!==e.value||Z(":")?"set"!==e.value||Z(":")?(J(":"),i=ye(),y.markEnd(y.createProperty("init",r,i),s)):(n=re(),J("("),(e=m).type!==t.Identifier?(J(")"),K(e,o.UnexpectedToken,e.value),i=ne([])):(a=[ve()],J(")"),i=ne(a,e)),y.markEnd(y.createProperty("set",n,i),s)):(n=re(),J("("),J(")"),i=ne([]),y.markEnd(y.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=re(),J(":"),i=ye(),y.markEnd(y.createProperty("init",n,i),s)):void V(e)}function ae(){var e,n,r,s;if(Z("("))return function(){var e;return J("("),e=me(),J(")"),e}();if(Z("["))return function(){var e,t=[];for(e=m,J("[");!Z("]");)Z(",")?(z(),t.push(null)):(t.push(ye()),Z("]")||J(","));return z(),y.markEnd(y.createArrayExpression(t),e)}();if(Z("{"))return function(){var e,t,n,r,s,c=[],u={},p=String;for(s=m,J("{");!Z("}");)t=(e=ie()).key.type===i.Identifier?e.key.name:p(e.key.value),r="init"===e.kind?a.Data:"get"===e.kind?a.Get:a.Set,n="$"+t,Object.prototype.hasOwnProperty.call(u,n)?(u[n]===a.Data?l&&r===a.Data?K({},o.StrictDuplicateProperty):r!==a.Data&&K({},o.AccessorDataProperty):r===a.Data?K({},o.AccessorDataProperty):u[n]&r&&K({},o.AccessorGetSet),u[n]|=r):u[n]=r,c.push(e),Z("}")||J(",");return J("}"),y.markEnd(y.createObjectExpression(c),s)}();if(e=m.type,s=m,e===t.Identifier)r=y.createIdentifier(z().value);else if(e===t.StringLiteral||e===t.NumericLiteral)l&&m.octal&&K(m,o.StrictOctalLiteral),r=y.createLiteral(z());else if(e===t.Keyword){if(Y("function"))return function(){var e,t,n,r,i,a,s,c,u=null,p=[];c=m,Q("function"),Z("(")||(e=m,u=ve(),l?O(e.value)&&K(e,o.StrictFunctionName):O(e.value)?(n=e,r=o.StrictFunctionName):C(e.value)&&(n=e,r=o.StrictReservedWord));i=we(n),p=i.params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message);s=l,a=_e(),l&&n&&W(n,r);l&&t&&K(t,r);return l=s,y.markEnd(y.createFunctionExpression(u,p,[],a),c)}();Y("this")?(z(),r=y.createThisExpression()):V(z())}else e===t.BooleanLiteral?((n=z()).value="true"===n.value,r=y.createLiteral(n)):e===t.NullLiteral?((n=z()).value=null,r=y.createLiteral(n)):Z("/")||Z("/=")?(r=void 0!==v.tokens?y.createLiteral(U()):y.createLiteral(M()),q()):V(z());return y.markEnd(r,s)}function oe(){var e=[];if(J("("),!Z(")"))for(;p<d&&(e.push(ye()),!Z(")"));)J(",");return J(")"),e}function se(){var e,n;return n=m,function(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}(e=z())||V(e),y.markEnd(y.createIdentifier(e.value),n)}function ce(){return J("."),se()}function ue(){var e;return J("["),e=me(),J("]"),e}function le(){var e,t,n;return n=m,Q("new"),e=function(){var e,t,n,r;r=m,e=g.allowIn,t=Y("new")?le():ae(),g.allowIn=e;for(;Z(".")||Z("[");)Z("[")?(n=ue(),t=y.createMemberExpression("[",t,n)):(n=ce(),t=y.createMemberExpression(".",t,n)),y.markEnd(t,r);return t}(),t=Z("(")?oe():[],y.markEnd(y.createNewExpression(e,t),n)}function pe(){var e,n,r=m;return e=function(){var e,t,n,r,i;for(i=m,e=g.allowIn,g.allowIn=!0,t=Y("new")?le():ae(),g.allowIn=e;;){if(Z("."))r=ce(),t=y.createMemberExpression(".",t,r);else if(Z("("))n=oe(),t=y.createCallExpression(t,n);else{if(!Z("["))break;r=ue(),t=y.createMemberExpression("[",t,r)}y.markEnd(t,i)}return t}(),m.type===t.Punctuator&&(!Z("++")&&!Z("--")||X()||(l&&e.type===i.Identifier&&O(e.name)&&K({},o.StrictLHSPostfix),te(e)||K({},o.InvalidLHSInAssignment),n=z(),e=y.markEnd(y.createPostfixExpression(n.value,e),r))),e}function fe(){var e,n,r;return m.type!==t.Punctuator&&m.type!==t.Keyword?n=pe():Z("++")||Z("--")?(r=m,e=z(),n=fe(),l&&n.type===i.Identifier&&O(n.name)&&K({},o.StrictLHSPrefix),te(n)||K({},o.InvalidLHSInAssignment),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r)):Z("+")||Z("-")||Z("~")||Z("!")?(r=m,e=z(),n=fe(),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r)):Y("delete")||Y("void")||Y("typeof")?(r=m,e=z(),n=fe(),n=y.createUnaryExpression(e.value,n),n=y.markEnd(n,r),l&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},o.StrictDelete)):n=pe(),n}function he(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function de(){var e,t,n,r,i;return i=m,e=function(){var e,t,n,r,i,a,o,s,c,u;if(e=m,c=fe(),0===(i=he(r=m,g.allowIn)))return c;for(r.prec=i,z(),t=[e,m],a=[c,r,o=fe()];(i=he(m,g.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),s=a.pop().value,c=a.pop(),n=y.createBinaryExpression(s,c,o),t.pop(),e=t[t.length-1],y.markEnd(n,e),a.push(n);(r=z()).prec=i,a.push(r),t.push(m),n=fe(),a.push(n)}for(n=a[u=a.length-1],t.pop();u>1;)n=y.createBinaryExpression(a[u-1].value,a[u-2],n),u-=2,e=t.pop(),y.markEnd(n,e);return n}(),Z("?")&&(z(),t=g.allowIn,g.allowIn=!0,n=ye(),g.allowIn=t,J(":"),r=ye(),e=y.createConditionalExpression(e,n,r),y.markEnd(e,i)),e}function ye(){var e,n,r,a,s,c;return e=m,s=m,a=n=de(),m.type!==t.Punctuator||"="!==(c=m.value)&&"*="!==c&&"/="!==c&&"%="!==c&&"+="!==c&&"-="!==c&&"<<="!==c&&">>="!==c&&">>>="!==c&&"&="!==c&&"^="!==c&&"|="!==c||(te(n)||K({},o.InvalidLHSInAssignment),l&&n.type===i.Identifier&&O(n.name)&&K(e,o.StrictLHSAssignment),e=z(),r=ye(),a=y.markEnd(y.createAssignmentExpression(e.value,n,r),s)),a}function me(){var e,t=m;if(e=ye(),Z(",")){for(e=y.createSequenceExpression([e]);p<d&&Z(",");)z(),e.expressions.push(ye());y.markEnd(e,t)}return e}function ge(){var e,t;return t=m,J("{"),e=function(){for(var e,t=[];p<d&&!Z("}")&&void 0!==(e=Oe());)t.push(e);return t}(),J("}"),y.markEnd(y.createBlockStatement(e),t)}function ve(){var e,n;return n=m,(e=z()).type!==t.Identifier&&V(e),y.markEnd(y.createIdentifier(e.value),n)}function Se(e){var t,n,r=null;return n=m,t=ve(),l&&O(t.name)&&K({},o.StrictVarName),"const"===e?(J("="),r=ye()):Z("=")&&(z(),r=ye()),y.markEnd(y.createVariableDeclarator(t,r),n)}function Ee(e){var t=[];do{if(t.push(Se(e)),!Z(","))break;z()}while(p<d);return t}function be(){var e,t,n,r,i,a,s,c,u,l;return e=t=n=null,Q("for"),J("("),Z(";")?z():(Y("var")||Y("let")?(g.allowIn=!1,l=m,c=z(),u=Ee(),e=y.markEnd(y.createVariableDeclaration(u,c.value),l),g.allowIn=!0,1===e.declarations.length&&Y("in")&&(z(),r=e,i=me(),e=null)):(g.allowIn=!1,e=me(),g.allowIn=!0,Y("in")&&(te(e)||K({},o.InvalidLHSInForIn),z(),r=e,i=me(),e=null)),void 0===r&&J(";")),void 0===r&&(Z(";")||(t=me()),J(";"),Z(")")||(n=me())),J(")"),s=g.inIteration,g.inIteration=!0,a=Ie(),g.inIteration=s,void 0===r?y.createForStatement(e,t,n,a):y.createForInStatement(r,i,a)}function xe(){var e,t,n,r=[];for(n=m,Y("default")?(z(),e=null):(Q("case"),e=me()),J(":");p<d&&!(Z("}")||Y("default")||Y("case"));)t=Ie(),r.push(t);return y.markEnd(y.createSwitchCase(e,r),n)}function ke(){var e,t,n,r,i=[],a=null;return Q("try"),e=ge(),Y("catch")&&i.push((r=m,Q("catch"),J("("),Z(")")&&V(m),t=ve(),l&&O(t.name)&&K({},o.StrictCatchVariable),J(")"),n=ge(),y.markEnd(y.createCatchClause(t,n),r))),Y("finally")&&(z(),a=ge()),0!==i.length||a||W({},o.NoCatchOrFinally),y.createTryStatement(e,[],i,a)}function Ie(){var e,n,r,a,s,c,f,h,v,S=m.type;if(S===t.EOF&&V(m),S===t.Punctuator&&"{"===m.value)return ge();if(a=m,S===t.Punctuator)switch(m.value){case";":return y.markEnd((J(";"),y.createEmptyStatement()),a);case"(":return y.markEnd(function(){var e=me();return ee(),y.createExpressionStatement(e)}(),a)}if(S===t.Keyword)switch(m.value){case"break":return y.markEnd(function(){var e,n=null;return Q("break"),59===u.charCodeAt(p)?(z(),g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(null)):X()?(g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(null)):(m.type===t.Identifier&&(e="$"+(n=ve()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||W({},o.UnknownLabel,n.name)),ee(),null!==n||g.inIteration||g.inSwitch||W({},o.IllegalBreak),y.createBreakStatement(n))}(),a);case"continue":return y.markEnd(function(){var e,n=null;return Q("continue"),59===u.charCodeAt(p)?(z(),g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(null)):X()?(g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(null)):(m.type===t.Identifier&&(e="$"+(n=ve()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||W({},o.UnknownLabel,n.name)),ee(),null!==n||g.inIteration||W({},o.IllegalContinue),y.createContinueStatement(n))}(),a);case"debugger":return y.markEnd((Q("debugger"),ee(),y.createDebuggerStatement()),a);case"do":return y.markEnd((Q("do"),v=g.inIteration,g.inIteration=!0,f=Ie(),g.inIteration=v,Q("while"),J("("),h=me(),J(")"),Z(";")&&z(),y.createDoWhileStatement(f,h)),a);case"for":return y.markEnd(be(),a);case"function":return y.markEnd(Ce(),a);case"if":return y.markEnd(function(){var e,t,n;return Q("if"),J("("),e=me(),J(")"),t=Ie(),Y("else")?(z(),n=Ie()):n=null,y.createIfStatement(e,t,n)}(),a);case"return":return y.markEnd((c=null,Q("return"),g.inFunctionBody||K({},o.IllegalReturn),32===u.charCodeAt(p)&&_(u.charCodeAt(p+1))?(c=me(),ee(),y.createReturnStatement(c)):X()?y.createReturnStatement(null):(Z(";")||Z("}")||m.type===t.EOF||(c=me()),ee(),y.createReturnStatement(c))),a);case"switch":return y.markEnd(function(){var e,t,n,r,i;if(Q("switch"),J("("),e=me(),J(")"),J("{"),t=[],Z("}"))return z(),y.createSwitchStatement(e,t);for(r=g.inSwitch,g.inSwitch=!0,i=!1;p<d&&!Z("}");)null===(n=xe()).test&&(i&&W({},o.MultipleDefaultsInSwitch),i=!0),t.push(n);return g.inSwitch=r,J("}"),y.createSwitchStatement(e,t)}(),a);case"throw":return y.markEnd(function(){var e;return Q("throw"),X()&&W({},o.NewlineAfterThrow),e=me(),ee(),y.createThrowStatement(e)}(),a);case"try":return y.markEnd(ke(),a);case"var":return y.markEnd((Q("var"),s=Ee(),ee(),y.createVariableDeclaration(s,"var")),a);case"while":return y.markEnd(function(){var e,t,n;return Q("while"),J("("),e=me(),J(")"),n=g.inIteration,g.inIteration=!0,t=Ie(),g.inIteration=n,y.createWhileStatement(e,t)}(),a);case"with":return y.markEnd(function(){var e,t;return l&&(L(),K({},o.StrictModeWith)),Q("with"),J("("),e=me(),J(")"),t=Ie(),y.createWithStatement(e,t)}(),a)}return(e=me()).type===i.Identifier&&Z(":")?(z(),r="$"+e.name,Object.prototype.hasOwnProperty.call(g.labelSet,r)&&W({},o.Redeclaration,"Label",e.name),g.labelSet[r]=!0,n=Ie(),delete g.labelSet[r],y.markEnd(y.createLabeledStatement(e,n),a)):(ee(),y.markEnd(y.createExpressionStatement(e),a))}function _e(){var e,n,r,a,s,c,f,h,v=[];for(h=m,J("{");p<d&&m.type===t.StringLiteral&&(n=m,e=Oe(),v.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(l=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(a=g.labelSet,s=g.inIteration,c=g.inSwitch,f=g.inFunctionBody,g.labelSet={},g.inIteration=!1,g.inSwitch=!1,g.inFunctionBody=!0;p<d&&!Z("}")&&void 0!==(e=Oe());)v.push(e);return J("}"),g.labelSet=a,g.inIteration=s,g.inSwitch=c,g.inFunctionBody=f,y.markEnd(y.createBlockStatement(v),h)}function we(e){var t,n,r,i,a,s,c=[];if(J("("),!Z(")"))for(i={};p<d&&(n=m,t=ve(),a="$"+n.value,l?(O(n.value)&&(r=n,s=o.StrictParamName),Object.prototype.hasOwnProperty.call(i,a)&&(r=n,s=o.StrictParamDupe)):e||(O(n.value)?(e=n,s=o.StrictParamName):C(n.value)?(e=n,s=o.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,a)&&(e=n,s=o.StrictParamDupe)),c.push(t),i[a]=!0,!Z(")"));)J(",");return J(")"),{params:c,stricted:r,firstRestricted:e,message:s}}function Ce(){var e,t,n,r,i,a,s,c,u,p;return p=m,Q("function"),r=m,e=ve(),l?O(r.value)&&K(r,o.StrictFunctionName):O(r.value)?(s=r,c=o.StrictFunctionName):C(r.value)&&(s=r,c=o.StrictReservedWord),t=(a=we(s)).params,i=a.stricted,s=a.firstRestricted,a.message&&(c=a.message),u=l,n=_e(),l&&s&&W(s,c),l&&i&&K(i,c),l=u,y.markEnd(y.createFunctionDeclaration(e,t,[],n),p)}function Oe(){if(m.type===t.Keyword)switch(m.value){case"const":case"let":return e=m.value,r=m,Q(e),n=Ee(e),ee(),y.markEnd(y.createVariableDeclaration(n,e),r);case"function":return Ce();default:return Ie()}var e,n,r;if(m.type!==t.EOF)return Ie()}function Ne(){var e,n;return L(),q(),n=m,l=!1,e=function(){for(var e,n,r,a=[];p<d&&(n=m).type===t.StringLiteral&&(e=Oe(),a.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(l=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;p<d&&void 0!==(e=Oe());)a.push(e);return a}(),y.markEnd(y.createProgram(e),n)}function Te(){var e,t,n,r=[];for(e=0;e<v.tokens.length;++e)n={type:(t=v.tokens[e]).type,value:t.value},v.range&&(n.range=t.range),v.loc&&(n.loc=t.loc),r.push(n);v.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},o={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},c={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(v.trailingComments.length>0?v.trailingComments[0].range[0]>=e.range[1]?(n=v.trailingComments,v.trailingComments=[]):v.trailingComments.length=0:v.bottomRightStack.length>0&&v.bottomRightStack[v.bottomRightStack.length-1].trailingComments&&v.bottomRightStack[v.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=v.bottomRightStack[v.bottomRightStack.length-1].trailingComments,delete v.bottomRightStack[v.bottomRightStack.length-1].trailingComments);v.bottomRightStack.length>0&&v.bottomRightStack[v.bottomRightStack.length-1].range[0]>=e.range[0];)t=v.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):v.leadingComments.length>0&&v.leadingComments[v.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=v.leadingComments,v.leadingComments=[]),n&&(e.trailingComments=n),v.bottomRightStack.push(e)}},markEnd:function(e,t){return v.range&&(e.range=[t.start,p]),v.loc&&(e.loc=new H(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),f,p-h),this.postProcess(e)),v.attachComment&&this.processComment(e),e},postProcess:function(e){return v.source&&(e.loc.source=v.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:u.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,n){var r,i;r=String,"string"==typeof e||e instanceof String||(e=r(e)),y=c,p=0,f=(u=e).length>0?1:0,h=0,d=u.length,m=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},v={},(n=n||{}).tokens=!0,v.tokens=[],v.tokenize=!0,v.openParenToken=-1,v.openCurlyToken=-1,v.range="boolean"==typeof n.range&&n.range,v.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(v.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(v.errors=[]);try{if(q(),m.type===t.EOF)return v.tokens;for(z();m.type!==t.EOF;)try{z()}catch(a){if(v.errors){v.errors.push(a);break}throw a}Te(),i=v.tokens,void 0!==v.comments&&(i.comments=v.comments),void 0!==v.errors&&(i.errors=v.errors)}catch(o){throw o}finally{v={}}return i},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),y=c,p=0,f=(u=e).length>0?1:0,h=0,d=u.length,m=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},v={},void 0!==t&&(v.range="boolean"==typeof t.range&&t.range,v.loc="boolean"==typeof t.loc&&t.loc,v.attachComment="boolean"==typeof t.attachComment&&t.attachComment,v.loc&&null!==t.source&&void 0!==t.source&&(v.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(v.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(v.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(v.errors=[]),v.attachComment&&(v.range=!0,v.comments=[],v.bottomRightStack=[],v.trailingComments=[],v.leadingComments=[]));try{n=Ne(),void 0!==v.comments&&(n.comments=v.comments),void 0!==v.tokens&&(Te(),n.tokens=v.tokens),void 0!==v.errors&&(n.errors=v.errors)}catch(i){throw i}finally{v={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],1:[function(e,t,n){(function(r){var i=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,a,o,s){i.ast||(i.ast=t,t.initialize());var c=o.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:o[c]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:o[c-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:o[c-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:i.ast.set({scope:"child"});break;case 10:i.ast.set({scope:"descendant"});break;case 11:break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:i.ast.set({expression:{type:"wildcard",value:o[c]}});break;case 15:i.ast.set({expression:{type:"identifier",value:o[c]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:o[c]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(o[c])}});break;case 18:break;case 19:i.ast.set({scope:"child"});break;case 20:i.ast.set({scope:"descendant"});break;case 21:case 22:case 23:break;case 24:o[c].length>1?i.ast.set({expression:{type:"union",value:o[c]}}):this.$=o[c];break;case 25:this.$=[o[c]];break;case 26:this.$=o[c-2].concat(o[c]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(o[c])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:o[c]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:o[c]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:o[c]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:o[c]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:o[c]}},i.ast.set(this.$);break;case 33:case 34:this.$=o[c]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,c=0,u=0,l=1,p=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;i.push(f);var h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var d,y,m,g,v,S,E,b,x,k,I={};;){if(m=n[n.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null==d&&(k=void 0,"number"!=typeof(k=t.lexer.lex()||l)&&(k=t.symbols_[k]||k),d=k),g=a[m]&&a[m][d]),void 0===g||!g.length||!g[0]){var _="";for(S in x=[],a[m])this.terminals_[S]&&S>2&&x.push("'"+this.terminals_[S]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(s+1)+": Unexpected "+(d==l?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:f,expected:x})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(g[0]){case 1:n.push(d),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),d=null,y?(d=y,y=null):(c=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[g[1]][1],I.$=r[r.length-E],I._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},h&&(I._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),void 0!==(v=this.performAction.apply(I,[o,c,s,this.yy,g[1],r,i].concat(p))))return v;E&&(n=n.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),n.push(this.productions_[g[1]][0]),r.push(I.$),i.push(I._$),b=a[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),r.exit(1));var i=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(i)},void 0!==t&&e.main===t&&n.main(r.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),a=e("static-eval"),o=e("underscore").uniq,s=function(){return this.initialize.apply(this,arguments)};function c(t,n,i){var a=e("./index"),o=h(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,o),c=a.nodes(t.value,s);return c.forEach(function(e){e.path=t.path.concat(e.path.slice(1))}),c}function u(e){return Array.isArray(e)}function l(e){return function(t,n,r,i){var a=t.value,o=t.path,s=[],c=function(t,a){var o;u(t)?(t.forEach(function(e,t){s.length>=i||r(t,e,n)&&s.push({path:a.concat(t),value:e})}),t.forEach(function(t,n){s.length>=i||e&&c(t,a.concat(n))})):(o=t)&&!(o instanceof Array)&&o instanceof Object&&(this.keys(t).forEach(function(e){s.length>=i||r(e,t[e],n)&&s.push({path:a.concat(e),value:t[e]})}),this.keys(t).forEach(function(n){s.length>=i||e&&c(t[n],a.concat(n))}))}.bind(this);return c(a,o),s}}function p(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function f(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function h(){try{return a.apply(this,arguments)}catch(e){}}function d(e){return e=e.filter(function(e){return e}),o(e,function(e){return e.path.map(function(e){return String(e).replace("-","--")}).join("-")})}function y(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}s.prototype.initialize=function(){this.traverse=l(!0),this.descend=l()},s.prototype.keys=Object.keys,s.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},s.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},s.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":f(function(e,t,n){return e==n}),"subscript-child-numeric_literal":p(function(e,t,n){return e===n}),"member-child-numeric_literal":p(function(e,t,n){return String(e)===String(n)}),"subscript-descendant-numeric_literal":f(function(e,t,n){return e===n}),"member-child-wildcard":p(function(){return!0}),"member-descendant-wildcard":f(function(){return!0}),"subscript-descendant-wildcard":f(function(){return!0}),"subscript-child-wildcard":p(function(){return!0}),"subscript-child-slice":function(e,t){if(u(t.value)){var n=e.expression.value.split(":").map(y),r=t.value.map(function(e,n){return{value:e,path:t.path.concat(n)}});return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach(function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))},this),d(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),a=this,o=[];return i.nodes(n,"$..*").slice(1).forEach(function(e){o.length>=r||t.expression.value.forEach(function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=a.resolve(n)(n,e);o=o.concat(r)})}),d(o)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.descend(t,null,function(e,t){return h(a,{"@":t})},n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.traverse(t,null,function(e,t){return h(a,{"@":t})},n)},"subscript-child-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return c(t,e.expression.value.slice(1,-1),"$..value")}},s.prototype._fns["subscript-child-string_literal"]=s.prototype._fns["member-child-identifier"],s.prototype._fns["member-descendant-numeric_literal"]=s.prototype._fns["subscript-descendant-string_literal"]=s.prototype._fns["member-descendant-identifier"],t.exports=s},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),a=e("./parser"),o=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function c(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new a,this.handlers=new o},s.prototype.parse=function(e){return r.ok(c(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];n.path.pop();return this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort(function(e,t){return t.path.length-e.path.length});return i.forEach(function(t){var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=n.call(e,i[r]);i[r]=a},this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);var a=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[a]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var a=this.parser.parse(t).map(function(e){return e.expression.value}),o=function(t,n){var r=t.pop(),a=i.value(e,t);a||(o(t.concat(),"string"==typeof r?{}:[]),a=i.value(e,t)),a[r]=n};return o(a,n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(c(t),"we need a path"),this.nodes(e,t,n).map(function(e){return e.value})},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map(function(e){return e.path})},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t),a=this.handlers,o=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach(function(e,t){if(!(s.length>=n)){var r=a.resolve(e),c=[];o.forEach(function(a){if(!(s.length>=n)){var o=r(e,a,n);t==i.length-1?s=s.concat(o||[]):c=c.concat(o||[])}}),o=c}}),n?s.slice(0,n):s):o},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach(function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),a=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,r)}}),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach(function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}}),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.Handlers=o,s.Parser=a;var u=new s;u.JSONPath=s,t.exports=u},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=r,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?a+n:n,t=r(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),n=r(0===n?0:n||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),n=i>0?Math.min(n,a):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var o=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)o.push(e[s]);return o}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,o=t.exports=l;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)?t.toString():r.isFunction(t)||r.isRegExp(t)?t.toString():t}function c(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function u(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function l(e,t){e||u(e,!0,t,"==",o.ok)}function p(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=f(e),a=f(t);if(n&&!a||!n&&a)return!1;if(n)return e=i.call(e),t=i.call(t),p(e,t);var o,s,c=y(e),u=y(t);if(c.length!=u.length)return!1;for(c.sort(),u.sort(),s=c.length-1;s>=0;s--)if(c[s]!=u[s])return!1;for(s=c.length-1;s>=0;s--)if(o=c[s],!p(e[o],t[o]))return!1;return!0}(e,t):e==t}function f(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,n,i){var a;r.isString(n)&&(i=n,n=null);try{t()}catch(o){a=o}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!a&&u(a,n,"Missing expected exception"+i),!e&&h(a,n)&&u(a,n,"Got unwanted exception"+i),e&&a&&n&&!h(a,n)||!e&&a)throw a}o.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(t=this,c(JSON.stringify(t.actual,s),128)+" "+t.operator+" "+c(JSON.stringify(t.expected,s),128)),this.generatedMessage=!0);var n=e.stackStartFunction||u;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,a=n.name,o=i.indexOf("\n"+a);if(o>=0){var l=i.indexOf("\n",o+1);i=i.substring(l+1)}this.stack=i}}},r.inherits(o.AssertionError,Error),o.fail=u,o.ok=l,o.equal=function(e,t,n){e!=t&&u(e,t,n,"==",o.equal)},o.notEqual=function(e,t,n){e==t&&u(e,t,n,"!=",o.notEqual)},o.deepEqual=function(e,t,n){p(e,t)||u(e,t,n,"deepEqual",o.deepEqual)},o.notDeepEqual=function(e,t,n){p(e,t)&&u(e,t,n,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(e,t,n){e!==t&&u(e,t,n,"===",o.strictEqual)},o.notStrictEqual=function(e,t,n){e===t&&u(e,t,n,"!==",o.notStrictEqual)},o.throws=function(e,t,n){d.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,n,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),c=r[n];n<a;c=r[++n])y(c)||!E(c)?o+=" "+c:o+=" "+s(c);return o},r.deprecate=function(e,i){if(v(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(0===o.length){if(k(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return p(t)}var u,E="",I=!1,_=["{","}"];(h(t)&&(I=!0,_=["[","]"]),k(t))&&(E=" [Function"+(t.name?": "+t.name:"")+"]");return S(t)&&(E=" "+RegExp.prototype.toString.call(t)),b(t)&&(E=" "+Date.prototype.toUTCString.call(t)),x(t)&&(E=" "+p(t)),0!==o.length||I&&0!=t.length?n<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=I?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)C(t,String(o))?a.push(f(e,t,n,r,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(f(e,t,n,r,i,!0))}),a}(e,t,n,s,o):o.map(function(r){return f(e,t,n,s,r,I)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,E,_)):_[0]+E+_[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),C(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===I(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===I(e)}function x(e){return E(e)&&("[object Error]"===I(e)||e instanceof Error)}function k(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(v(a)&&(a=""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=t.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else o[e]=function(){};return o[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=d,r.isNull=y,r.isNullOrUndefined=function(e){return null==e},r.isNumber=m,r.isString=g,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=S,r.isObject=E,r.isDate=b,r.isError=x,r.isFunction=k,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"))||"."},n.normalize=function(e){var a=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),a=r(t.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,l=[],p=!1,f=-1;function h(){p&&u&&(p=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!p){var e=c(h);p=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,p=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new y(e,t)),1!==l.length||p||c(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(e,t,n){var r=e("escodegen").generate;t.exports=function(e,t){t||(t={});var n={},i=function e(i,a){if("Literal"===i.type)return i.value;if("UnaryExpression"===i.type){var o=e(i.argument);return"+"===i.operator?+o:"-"===i.operator?-o:"~"===i.operator?~o:"!"===i.operator?!o:n}if("ArrayExpression"===i.type){for(var s=[],c=0,u=i.elements.length;c<u;c++){if((g=e(i.elements[c]))===n)return n;s.push(g)}return s}if("ObjectExpression"===i.type){var l={};for(c=0;c<i.properties.length;c++){var p=null===(v=i.properties[c]).value?v.value:e(v.value);if(p===n)return n;l[v.key.value||v.key.name]=p}return l}if("BinaryExpression"===i.type||"LogicalExpression"===i.type){if((u=e(i.left))===n)return n;var f=e(i.right);if(f===n)return n;var h=i.operator;return"=="===h?u==f:"==="===h?u===f:"!="===h?u!=f:"!=="===h?u!==f:"+"===h?u+f:"-"===h?u-f:"*"===h?u*f:"/"===h?u/f:"%"===h?u%f:"<"===h?u<f:"<="===h?u<=f:">"===h?u>f:">="===h?u>=f:"|"===h?u|f:"&"===h?u&f:"^"===h?u^f:"&&"===h?u&&f:"||"===h?u||f:n}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:n;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:n;if("CallExpression"===i.type){var d=e(i.callee);if(d===n)return n;if("function"!=typeof d)return n;var y=i.callee.object?e(i.callee.object):n;y===n&&(y=null);var m=[];for(c=0,u=i.arguments.length;c<u;c++){var g;if((g=e(i.arguments[c]))===n)return n;m.push(g)}return d.apply(y,m)}var v;if("MemberExpression"===i.type)return(l=e(i.object))===n||"function"==typeof l?n:"Identifier"===i.property.type?l[i.property.name]:(v=e(i.property))===n?n:l[v];if("ConditionalExpression"===i.type)return(o=e(i.test))===n?n:e(o?i.consequent:i.alternate);if("ExpressionStatement"===i.type)return(o=e(i.expression))===n?n:o;if("ReturnStatement"===i.type)return e(i.argument);if("FunctionExpression"===i.type){var S=i.body.body,E={};Object.keys(t).forEach(function(e){E[e]=t[e]});for(c=0;c<i.params.length;c++){var b=i.params[c];if("Identifier"!=b.type)return n;t[b.name]=null}for(var c in S)if(e(S[c])===n)return n;t=E;var x=Object.keys(t),k=x.map(function(e){return t[e]});return Function(x.join(", "),"return "+r(i)).apply(null,k)}if("TemplateLiteral"===i.type){var I="";for(c=0;c<i.expressions.length;c++)I+=e(i.quasis[c]),I+=e(i.expressions[c]);return I+=e(i.quasis[c])}if("TaggedTemplateExpression"===i.type){var _=e(i.tag),w=i.quasi,C=w.quasis.map(e),O=w.expressions.map(e);return _.apply(null,[C].concat(O))}return"TemplateElement"===i.type?i.value.cooked:n}(e);return i===n?void 0:i}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")});
129
129
  },{"process":"g5IB"}],"UCDv":[function(require,module,exports) {
130
130
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.jsonToItems=n;var t=e(require("jsonpath"));function e(t){return t&&t.__esModule?t:{default:t}}function n(e,n){var o=[];return n.forEach(function(n){var a=[];try{a=t.default.paths(e,n.json_path),o.push({field_id:n.field_id,json_paths:a,json_paths_length:a.length})}catch(f){console.log(f)}}),o.sort(function(t,e){return e.json_paths_length-t.json_paths_length}),a(o).map(function(n){return{fields:n.fields.map(function(n){return{field_id:n.field_id,field_value:t.default.value(e,n.json_path)}})}})}function o(t,e){var n=[];return e.forEach(function(t){n.push({path_to_compare:t,match_coefficient:0})}),t.forEach(function(t,e){for(var o=0;o<n.length;o++)n[o].path_to_compare[e]==t&&(n[o].match_coefficient+=1/(e+1))}),n.sort(function(t,e){return e.match_coefficient-t.match_coefficient}),n[0].path_to_compare}function a(t){var e=[];return t.length&&t[0].json_paths.forEach(function(n){var a={fields:[]};t.forEach(function(t){a.fields.push({field_id:t.field_id,json_path:o(n,t.json_paths)})}),e.push(a)}),e}
131
131
  },{"jsonpath":"h8f7"}],"xDLX":[function(require,module,exports) {
@@ -202,9 +202,17 @@ var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),export
202
202
  "use strict";function t(t,e,n,r,a,u,o){try{var i=t[u](o),c=i.value}catch(s){return void n(s)}i.done?e(c):Promise.resolve(c).then(r,a)}function e(e){return function(){var n=this,r=arguments;return new Promise(function(a,u){var o=e.apply(n,r);function i(e){t(o,a,u,i,c,"next",e)}function c(e){t(o,a,u,i,c,"throw",e)}i(void 0)})}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Interpritate=void 0;var u=function(){function t(e){n(this,t),this.gudhub=e}return a(t,[{key:"getInterpretationObj",value:function(t,e,n,r){var a={},u=e.data_model.interpretation.find(function(t){return t.src==n})||e.data_model.interpretation.find(function(t){return"table"==t.src})||{id:"default"};return t.data_model&&t.data_model.interpretation&&(a=t.data_model.interpretation.find(function(t){return t.src==r})||t.data_model.interpretation.find(function(t){return t.src==n})),gudhub.mergeObjects(u,a)}},{key:"getInterpretation",value:function(t,n,r,a,u,o,i){var c=this,s=this;return new Promise(function(){var f=e(regeneratorRuntime.mark(function e(f,p){var d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(d=n&&n.data_type?n.data_type:r)?gudhub.ghconstructor.getInstance(d).then(function(e){var r=s.getInterpretationObj(n,e.getTemplate().model,a,i);e.getInterpretation(t,r.id,d,n,u,o).then(function(t){f(gudhub.mergeObjects(t,r))},function(t){p()})},function(t){}):f(c.getDefaultInterpretation(t,n));case 2:case"end":return e.stop()}},e)}));return function(t,e){return f.apply(this,arguments)}}())}},{key:"getDefaultInterpretation",value:function(t,e){var n=t;return e&&e.forEach(function(e){e.value==t&&""!=t&&(n=e.name)}),n}},{key:"getInterpretationById",value:function(t,n,r,a){var u=this;return new Promise(function(){var o=e(regeneratorRuntime.mark(function o(i){var c,s;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,u.gudhub.getFieldValue(t,n,r);case 2:return c=o.sent,o.next=5,u.gudhub.getField(t,r);case 5:null==(s=o.sent)&&i(""),u.gudhub.ghconstructor.getInstance(s.data_type).then(function(){var r=e(regeneratorRuntime.mark(function e(r){var u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getInterpretation(c,a,s.data_type,s,n,t);case 2:"<span>no interpretation</span>"==(u=e.sent).html?i(c):i(u.html);case 4:case"end":return e.stop()}},e)}));return function(t){return r.apply(this,arguments)}}());case 8:case"end":return o.stop()}},o)}));return function(t){return o.apply(this,arguments)}}())}}]),t}();exports.Interpritate=u;
203
203
  },{}],"sPce":[function(require,module,exports) {
204
204
  "use strict";function e(e,o){switch(o.api){case"/items/update":console.log("/items/update - ",o),e.itemProcessor.updateItemsInStorage(o.app_id,o.response);break;case"/items/add":console.log("/items/add - ",o),e.itemProcessor.addItemsToStorage(o.app_id,o.response);break;case"/items/delete":console.log("/items/delete - ",o),e.itemProcessor.deleteItemsFromStorage(o.app_id,o.response);break;case"/app/update":console.log("/app/update - ",o),e.appProcessor.updatingAppInStorage(o.response);break;case"/file/delete":console.log("file/delete - ",o),e.fileManager.deleteFileFromStorage(o.response.file_id,o.app_id);break;case"/file/upload":console.log("file/upload - ",o),e.fileManager.addFileToStorage(o.app_id,o.response);break;case"/file/formupload":console.log("file/formupload - ",o);break;case"/file/update":e.fileManager.updateFileInStorage(o.response.file_id,o.response.app_id,o.response),console.log("file/update - ",o);break;case"/new/file/duplicate":e.fileManager.addFilesToStorage(o.app_id,o.response),console.log("new/file/duplicate - ",o);break;case"/api/new/document/insert-one":e.documentManager.emitDocumentInsert(o.response),console.log("/api/new/document/insert-one - ",o);break;default:console.warn("WEBSOCKETS is not process this API:",o.api)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebsocketHandler=e;
205
+ },{}],"qJXG":[function(require,module,exports) {
206
+ "use strict";function r(r,e,t,n,u,o,a){try{var s=r[o](a),i=s.value}catch(p){return void t(p)}s.done?e(i):Promise.resolve(i).then(n,u)}function e(e){return function(){var t=this,n=arguments;return new Promise(function(u,o){var a=e.apply(t,n);function s(e){r(a,u,o,s,i,"next",e)}function i(e){r(a,u,o,s,i,"throw",e)}s(void 0)})}}function t(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function n(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function u(r,e,t){return e&&n(r.prototype,e),t&&n(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.GroupManager=void 0;var o=function(){function r(e,n){t(this,r),this.req=n,this.gudhub=e}return u(r,[{key:"createGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,t={token:r.t0,group_name:r.t1},r.next=8,this.req.post({url:"/api/sharing-group/create-group",form:t});case 8:return n=r.sent,r.abrupt("return",n);case 12:return r.prev=12,r.t2=r.catch(0),console.log(r.t2),r.abrupt("return",null);case 16:case"end":return r.stop()}},r,this,[[0,12]])}));return function(e){return r.apply(this,arguments)}}()},{key:"updateGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e,t){var n,u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=t,r.t2=e,n={token:r.t0,group_name:r.t1,group_id:r.t2},r.next=9,this.req.post({url:"/api/sharing-group/update-group",form:n});case 9:return u=r.sent,r.abrupt("return",u);case 13:return r.prev=13,r.t3=r.catch(0),console.log(r.t3),r.abrupt("return",null);case 17:case"end":return r.stop()}},r,this,[[0,13]])}));return function(e,t){return r.apply(this,arguments)}}()},{key:"deleteGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,t={token:r.t0,group_id:r.t1},r.next=8,this.req.post({url:"/api/sharing-group/delete-group",form:t});case 8:return n=r.sent,r.abrupt("return",n);case 12:return r.prev=12,r.t2=r.catch(0),console.log(r.t2),r.abrupt("return",null);case 16:case"end":return r.stop()}},r,this,[[0,12]])}));return function(e){return r.apply(this,arguments)}}()},{key:"addUserToGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e,t,n){var u,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,r.t2=t,r.t3=n,u={token:r.t0,group_id:r.t1,user_id:r.t2,group_permission:r.t3},r.next=10,this.req.post({url:"/api/sharing-group/add-user-to-group",form:u});case 10:return o=r.sent,r.abrupt("return",o);case 14:return r.prev=14,r.t4=r.catch(0),console.log(r.t4),r.abrupt("return",null);case 18:case"end":return r.stop()}},r,this,[[0,14]])}));return function(e,t,n){return r.apply(this,arguments)}}()},{key:"getUsersByGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,t={token:r.t0,group_id:r.t1},r.next=8,this.req.post({url:"/api/sharing-group/get-users-by-group",form:t});case 8:return n=r.sent,r.abrupt("return",n);case 12:return r.prev=12,r.t2=r.catch(0),console.log(r.t2),r.abrupt("return",null);case 16:case"end":return r.stop()}},r,this,[[0,12]])}));return function(e){return r.apply(this,arguments)}}()},{key:"updateUserInGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e,t,n){var u,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,r.t2=t,r.t3=n,u={token:r.t0,user_id:r.t1,group_id:r.t2,group_permission:r.t3},r.next=10,this.req.post({url:"/api/sharing-group/update-user-in-group",form:u});case 10:return o=r.sent,r.abrupt("return",o);case 14:return r.prev=14,r.t4=r.catch(0),console.log(r.t4),r.abrupt("return",null);case 18:case"end":return r.stop()}},r,this,[[0,14]])}));return function(e,t,n){return r.apply(this,arguments)}}()},{key:"deleteUserFromGroupApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e,t){var n,u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,r.t2=t,n={token:r.t0,user_id:r.t1,group_id:r.t2},r.next=9,this.req.post({url:"/api/sharing-group/delete-user-from-group",form:n});case 9:return u=r.sent,r.abrupt("return",u);case 13:return r.prev=13,r.t3=r.catch(0),console.log(r.t3),r.abrupt("return",null);case 17:case"end":return r.stop()}},r,this,[[0,13]])}));return function(e,t){return r.apply(this,arguments)}}()},{key:"getGroupsByUserApi",value:function(){var r=e(regeneratorRuntime.mark(function r(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.gudhub.auth.getToken();case 3:return r.t0=r.sent,r.t1=e,t={token:r.t0,user_id:r.t1},r.next=8,this.req.post({url:"/api/sharing-group/get-groups-by-user",form:t});case 8:return n=r.sent,r.abrupt("return",n);case 12:return r.prev=12,r.t2=r.catch(0),console.log(r.t2),r.abrupt("return",null);case 16:case"end":return r.stop()}},r,this,[[0,12]])}));return function(e){return r.apply(this,arguments)}}()}]),r}();exports.GroupManager=o;
207
+ },{}],"Z7AV":[function(require,module,exports) {
208
+ "use strict";function t(t,r,e,n,u,a,o){try{var p=t[a](o),i=p.value}catch(s){return void e(s)}p.done?r(i):Promise.resolve(i).then(n,u)}function r(r){return function(){var e=this,n=arguments;return new Promise(function(u,a){var o=r.apply(e,n);function p(r){t(o,u,a,p,i,"next",r)}function i(r){t(o,u,a,p,i,"throw",r)}p(void 0)})}}function e(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function n(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppGroupSharing=void 0;var a=function(){function t(r,n){e(this,t),this.req=n,this.gudhub=r}return u(t,[{key:"addAppToGroupApi",value:function(){var t=r(regeneratorRuntime.mark(function t(r,e,n){var u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=r,t.t2=e,t.t3=n,u={token:t.t0,app_id:t.t1,group_id:t.t2,app_permission:t.t3},t.next=10,this.req.post({url:"/api/sharing-group/add-app-to-group",form:u});case 10:return a=t.sent,t.abrupt("return",a);case 14:return t.prev=14,t.t4=t.catch(0),console.log(t.t4),t.abrupt("return",null);case 18:case"end":return t.stop()}},t,this,[[0,14]])}));return function(r,e,n){return t.apply(this,arguments)}}()},{key:"getAppsByGroupApi",value:function(){var t=r(regeneratorRuntime.mark(function t(r){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=r,e={token:t.t0,group_id:t.t1},t.next=8,this.req.post({url:"/api/sharing-group/get-apps-by-group",form:e});case 8:return n=t.sent,t.abrupt("return",n);case 12:return t.prev=12,t.t2=t.catch(0),console.log(t.t2),t.abrupt("return",null);case 16:case"end":return t.stop()}},t,this,[[0,12]])}));return function(r){return t.apply(this,arguments)}}()},{key:"updateAppInGroupApi",value:function(){var t=r(regeneratorRuntime.mark(function t(r,e,n){var u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,t.t3=n,u={token:t.t0,group_id:t.t1,app_id:t.t2,app_permission:t.t3},t.next=10,this.req.post({url:"/api/sharing-group/update-app-in-group",form:u});case 10:return a=t.sent,t.abrupt("return",a);case 14:return t.prev=14,t.t4=t.catch(0),console.log(t.t4),t.abrupt("return",null);case 18:case"end":return t.stop()}},t,this,[[0,14]])}));return function(r,e,n){return t.apply(this,arguments)}}()},{key:"deleteAppFromGroupApi",value:function(){var t=r(regeneratorRuntime.mark(function t(r,e,n){var u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,t.t3=n,u={token:t.t0,group_id:t.t1,app_id:t.t2,app_permission:t.t3},t.next=10,this.req.post({url:"/api/sharing-group/delete-app-from-group",form:u});case 10:return a=t.sent,t.abrupt("return",a);case 14:return t.prev=14,t.t4=t.catch(0),console.log(t.t4),t.abrupt("return",null);case 18:case"end":return t.stop()}},t,this,[[0,14]])}));return function(r,e,n){return t.apply(this,arguments)}}()},{key:"getGroupsByAppApi",value:function(){var t=r(regeneratorRuntime.mark(function t(r){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=r,e={token:t.t0,app_id:t.t1},t.next=8,this.req.post({url:"/api/sharing-group/get-groups-by-app",form:e});case 8:return n=t.sent,t.abrupt("return",n);case 12:return t.prev=12,t.t2=t.catch(0),console.log(t.t2),t.abrupt("return",null);case 16:case"end":return t.stop()}},t,this,[[0,12]])}));return function(r){return t.apply(this,arguments)}}()}]),t}();exports.AppGroupSharing=a;
209
+ },{}],"LS0j":[function(require,module,exports) {
210
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GroupSharing=void 0;var r=require("../groupManager/GroupManager.js"),e=require("./AppGroupSharing.js");function t(r,e,t,n,u,p,a){try{var o=r[p](a),i=o.value}catch(s){return void t(s)}o.done?e(i):Promise.resolve(i).then(n,u)}function n(r){return function(){var e=this,n=arguments;return new Promise(function(u,p){var a=r.apply(e,n);function o(r){t(a,u,p,o,i,"next",r)}function i(r){t(a,u,p,o,i,"throw",r)}o(void 0)})}}function u(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function p(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function a(r,e,t){return e&&p(r.prototype,e),t&&p(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}var o=function(){function t(n,p,a){u(this,t),this.req=p,this.gudhub=n,this.pipeService=a,this.groupManager=new r.GroupManager(n,p),this.appGroupSharing=new e.AppGroupSharing(n,p)}return a(t,[{key:"createGroup",value:function(r){return this.groupManager.createGroupApi(r)}},{key:"updateGroup",value:function(r,e){return this.groupManager.updateGroupApi(r,e)}},{key:"deleteGroup",value:function(r){return this.groupManager.deleteGroupApi(r)}},{key:"addUserToGroup",value:function(){var r=n(regeneratorRuntime.mark(function r(e,t,n){var u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.groupManager.addUserToGroupApi(e,t,n);case 2:return u=r.sent,this.pipeService.emit("group_members_add",{app_id:"group_sharing"},u),r.abrupt("return",u);case 5:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()},{key:"getUsersByGroup",value:function(r){return this.groupManager.getUsersByGroupApi(r)}},{key:"updateUserInGroup",value:function(){var r=n(regeneratorRuntime.mark(function r(e,t,n){var u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.groupManager.updateUserInGroupApi(e,t,n);case 2:return u=r.sent,this.pipeService.emit("group_members_update",{app_id:"group_sharing"},u),r.abrupt("return",u);case 5:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()},{key:"deleteUserFromGroup",value:function(){var r=n(regeneratorRuntime.mark(function r(e,t){var n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.groupManager.deleteUserFromGroupApi(e,t);case 2:return n=r.sent,this.pipeService.emit("group_members_delete",{app_id:"group_sharing"},n),r.abrupt("return",n);case 5:case"end":return r.stop()}},r,this)}));return function(e,t){return r.apply(this,arguments)}}()},{key:"getGroupsByUser",value:function(r){return this.groupManager.getGroupsByUserApi(r)}},{key:"addAppToGroup",value:function(r,e,t){return this.appGroupSharing.addAppToGroupApi(r,e,t)}},{key:"getAppsByGroup",value:function(r){return this.appGroupSharing.getAppsByGroupApi(r)}},{key:"updateAppInGroup",value:function(r,e,t){return this.appGroupSharing.updateAppInGroupApi(r,e,t)}},{key:"deleteAppFromGroup",value:function(r,e,t){return this.appGroupSharing.deleteAppFromGroupApi(r,e,t)}},{key:"getGroupsByApp",value:function(r){return this.appGroupSharing.getGroupsByAppApi(r)}}]),t}();exports.GroupSharing=o;
211
+ },{"../groupManager/GroupManager.js":"qJXG","./AppGroupSharing.js":"Z7AV"}],"XaHW":[function(require,module,exports) {
212
+ "use strict";function t(t,e,r,n,u,a,s){try{var o=t[a](s),i=o.value}catch(c){return void r(c)}o.done?e(i):Promise.resolve(i).then(n,u)}function e(e){return function(){var r=this,n=arguments;return new Promise(function(u,a){var s=e.apply(r,n);function o(e){t(s,u,a,o,i,"next",e)}function i(e){t(s,u,a,o,i,"throw",e)}o(void 0)})}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Sharing=void 0;var a=function(){function t(e,n){r(this,t),this.req=n,this.gudhub=e}return u(t,[{key:"add",value:function(){var t=e(regeneratorRuntime.mark(function t(e,r,n){var u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,t.t3=n,u={token:t.t0,app_id:t.t1,user_id:t.t2,sharing_permission:t.t3},t.next=10,this.req.post({url:"/sharing/add",form:u});case 10:return a=t.sent,t.abrupt("return",a);case 14:return t.prev=14,t.t4=t.catch(0),console.log(t.t4),t.abrupt("return",null);case 18:case"end":return t.stop()}},t,this,[[0,14]])}));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"update",value:function(){var t=e(regeneratorRuntime.mark(function t(e,r,n){var u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,t.t3=n,u={token:t.t0,app_id:t.t1,user_id:t.t2,sharing_permission:t.t3},t.next=10,this.req.post({url:"/sharing/update",form:u});case 10:return a=t.sent,t.abrupt("return",a);case 14:return t.prev=14,t.t4=t.catch(0),console.log(t.t4),t.abrupt("return",null);case 18:case"end":return t.stop()}},t,this,[[0,14]])}));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"delete",value:function(){var t=e(regeneratorRuntime.mark(function t(e,r){var n,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,n={token:t.t0,app_id:t.t1,user_id:t.t2},t.next=9,this.req.post({url:"/sharing/delete",form:n});case 9:return u=t.sent,t.abrupt("return",u);case 13:return t.prev=13,t.t3=t.catch(0),console.log(t.t3),t.abrupt("return",null);case 17:case"end":return t.stop()}},t,this,[[0,13]])}));return function(e,r){return t.apply(this,arguments)}}()},{key:"getAppUsers",value:function(){var t=e(regeneratorRuntime.mark(function t(e){var r,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,r={token:t.t0,app_id:t.t1},t.next=8,this.req.post({url:"/sharing/get-app-users",form:r});case 8:return n=t.sent,t.abrupt("return",n);case 12:return t.prev=12,t.t2=t.catch(0),console.log(t.t2),t.abrupt("return",null);case 16:case"end":return t.stop()}},t,this,[[0,12]])}));return function(e){return t.apply(this,arguments)}}()},{key:"addInvitation",value:function(){var t=e(regeneratorRuntime.mark(function t(e,r){var n,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.gudhub.auth.getToken();case 3:return t.t0=t.sent,t.t1=e,t.t2=r,n={token:t.t0,guests_emails:t.t1,apps:t.t2},t.next=9,this.req.post({url:"/api/invitation/add",form:n});case 9:return u=t.sent,t.abrupt("return",u);case 13:return t.prev=13,t.t3=t.catch(0),console.log(t.t3),t.abrupt("return",null);case 17:case"end":return t.stop()}},t,this,[[0,13]])}));return function(e,r){return t.apply(this,arguments)}}()}]),t}();exports.Sharing=a;
205
213
  },{}],"U9gy":[function(require,module,exports) {
206
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GudHub=void 0;var e=require("./gudhub-https-service.js"),t=require("./PipeService/PipeService.js"),r=require("./Storage/Storage.js"),i=require("./WebSocket/WebSocket.js"),n=require("./config.js"),u=require("./Utils/Utils.js"),s=require("./Auth/Auth.js"),o=require("./GHConstructor/ghconstructor.js"),a=require("./AppProcessor/AppProcessor.js"),c=require("./ItemProcessor/ItemProcessor.js"),l=require("./FieldProcessor/FieldProcessor.js"),p=require("./FileManager/FileManager.js"),h=require("./ChunksManager/ChunksManager.js"),f=require("./DocumentManager/DocumentManager.js"),d=require("./GHConstructor/interpritate.js"),g=require("./consts.js"),v=require("./WebSocket/WebsocketHandler.js");function k(e,t,r,i,n,u,s){try{var o=e[u](s),a=o.value}catch(c){return void r(c)}o.done?t(a):Promise.resolve(a).then(i,n)}function y(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var u=e.apply(t,r);function s(e){k(u,i,n,s,o,"next",e)}function o(e){k(u,i,n,s,o,"throw",e)}s(void 0)})}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var P=function(){function k(g){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{server_url:n.server_url,wss_url:n.wss_url,initWebsocket:!1,activateSW:!1,swLink:"",async_modules_path:n.async_modules_path,file_server_url:n.file_server_url};if(m(this,k),this.ghconstructor=new o.GHConstructor(this),this.interpritate=new d.Interpritate(this),this.pipeService=new t.PipeService,this.storage=new r.Storage(y.async_modules_path,y.file_server_url),this.util=new u.Utils(this),this.req=new e.GudHubHttpsService(y.server_url),this.auth=new s.Auth(this.req,this.storage),g&&this.storage.setUser({auth_key:g}),this.req.init(this.auth.getToken.bind(this.auth)),this.ws=new i.WebSocketApi(y.wss_url,this.auth),this.chunksManager=new h.ChunksManager(this.storage,this.pipeService,this.req,this.util),this.appProcessor=new a.AppProcessor(this.storage,this.pipeService,this.req,this.ws,this.chunksManager,this.util,y.activateSW),this.itemProcessor=new c.ItemProcessor(this.storage,this.pipeService,this.req,this.appProcessor,this.util),this.fieldProcessor=new l.FieldProcessor(this.storage,this.req,this.appProcessor,this.itemProcessor,this.pipeService),this.fileManager=new p.FileManager(this.storage,this.pipeService,this.req,this.appProcessor),this.documentManager=new f.DocumentManager(this.req,this.pipeService),y.initWebsocket){this.ws.initWebSocket(v.WebsocketHandler.bind(this,this),this.appProcessor.refreshApps.bind(this.appProcessor))}y.activateSW&&this.activateSW(y.swLink)}return b(k,[{key:"activateSW",value:function(){var e=y(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(g.IS_WEB&&"serviceWorker"in window.navigator)){e.next=14;break}return e.prev=1,e.next=4,window.navigator.serviceWorker.register(t);case 4:(r=e.sent).update().then(function(){return console.log("%cSW ->>> Service worker successful updated","display: inline-block ; background-color: #689f38 ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;")}).catch(function(){return console.warn("SW ->>> Service worker is not updated")}),console.log("%cSW ->>> Service worker is registered","display: inline-block ; background-color: #689f38 ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.warn("%cSW ->>> Service worker is not registered","display: inline-block ; background-color: #d32f2f ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;",e.t0);case 12:e.next=15;break;case 14:console.log("%cSW ->>> ServiceWorkers not supported","display: inline-block ; background-color: #d32f2f ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;");case 15:case"end":return e.stop()}},e,null,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"on",value:function(e,t,r){return this.pipeService.on(e,t,r),this}},{key:"emit",value:function(e,t,r,i){return this.pipeService.emit(e,t,r,i),this}},{key:"destroy",value:function(e,t,r){return this.pipeService.destroy(e,t,r),this}},{key:"prefilter",value:function(e,t,r,i,n){return this.util.prefilter(e,t,r,i,n)}},{key:"getInterpretation",value:function(e,t,r,i,n,u,s){return this.interpritate.getInterpretation(e,t,r,i,n,u,s)}},{key:"getInterpretationById",value:function(e,t,r,i){return this.interpritate.getInterpretationById(e,t,r,i)}},{key:"filter",value:function(e,t){return this.util.filter(e,t)}},{key:"group",value:function(e,t){return this.util.group(e,t)}},{key:"getFilteredItems",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.util.getFilteredItems(e,t,r.element_app_id,r.app_id,r.item_id,r.field_group,r.search,r.search_params)}},{key:"jsonToItems",value:function(e,t){return this.util.jsonToItems(e,t)}},{key:"getDate",value:function(e){return this.util.getDate(e)}},{key:"populateWithDate",value:function(e,t){return this.util.populateWithDate(e,t)}},{key:"checkRecurringDate",value:function(e,t){return this.util.checkRecurringDate(e,t)}},{key:"populateItems",value:function(e,t,r){return this.util.populateItems(e,t,r)}},{key:"populateWithItemRef",value:function(e,t,r,i,n,u){return this.util.populateWithItemRef(e,t,r,i,n,u)}},{key:"compareItems",value:function(e,t,r){return this.util.compareItems(e,t,r)}},{key:"mergeItems",value:function(e,t,r){return this.util.mergeItems(e,t,r)}},{key:"mergeObjects",value:function(e,t){return this.util.mergeObjects(e,t)}},{key:"makeNestedList",value:function(e,t,r,i,n){return this.util.makeNestedList(e,t,r,i,n)}},{key:"jsonConstructor",value:function(e,t,r){return this.util.jsonConstructor(e,t,r)}},{key:"getAppsList",value:function(){return this.appProcessor.getAppsList()}},{key:"getAppInfo",value:function(e){return this.appProcessor.getAppInfo(e)}},{key:"deleteApp",value:function(e){return this.appProcessor.deleteApp(e)}},{key:"getApp",value:function(e){return this.appProcessor.getApp(e)}},{key:"updateApp",value:function(e){return this.appProcessor.updateApp(e)}},{key:"updateAppInfo",value:function(e){return this.appProcessor.updateAppInfo(e)}},{key:"createNewApp",value:function(e){return this.appProcessor.createNewApp(e)}},{key:"getItems",value:function(e){return this.itemProcessor.getItems(e)}},{key:"getItem",value:function(){var e=y(regeneratorRuntime.mark(function e(t,r){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItems(t);case 2:if(!(i=e.sent)){e.next=5;break}return e.abrupt("return",i.find(function(e){return e.item_id==r}));case 5:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"addNewItems",value:function(e,t){return this.itemProcessor.addNewItems(e,t)}},{key:"updateItems",value:function(e,t){return this.itemProcessor.updateItems(e,t)}},{key:"deleteItems",value:function(e,t){return this.itemProcessor.deleteItems(e,t)}},{key:"getField",value:function(e,t){return this.fieldProcessor.getField(e,t)}},{key:"getFieldModels",value:function(e){return this.fieldProcessor.getFieldModels(e)}},{key:"updateField",value:function(e,t){return this.fieldProcessor.updateField(e,t)}},{key:"deleteField",value:function(e,t){return this.fieldProcessor.deleteField(e,t)}},{key:"getFieldValue",value:function(e,t,r){return this.fieldProcessor.getFieldValue(e,t,r)}},{key:"setFieldValue",value:function(e,t,r,i){return this.fieldProcessor.setFieldValue(e,t,r,i)}},{key:"getFile",value:function(e,t){return this.fileManager.getFile(e,t)}},{key:"getFiles",value:function(e,t){return this.fileManager.getFiles(e,t)}},{key:"uploadFile",value:function(e,t,r){return this.fileManager.uploadFile(e,t,r)}},{key:"uploadFileFromString",value:function(e,t,r,i,n,u,s){return this.fileManager.uploadFileFromString(e,t,r,i,n,u,s)}},{key:"updateFileFromString",value:function(e,t,r,i,n){return this.fileManager.updateFileFromString(e,t,r,i,n)}},{key:"deleteFile",value:function(e,t){return this.fileManager.deleteFile(e,t)}},{key:"duplicateFile",value:function(e){return this.fileManager.duplicateFile(e)}},{key:"downloadFileFromString",value:function(e,t){return this.fileManager.downloadFileFromString(e,t)}},{key:"createDocument",value:function(e){return this.documentManager.createDocument(e)}},{key:"getDocument",value:function(e){return this.documentManager.getDocument(e)}},{key:"getDocuments",value:function(e){return this.documentManager.getDocuments(e)}},{key:"deleteDocument",value:function(e){return this.documentManager.deleteDocument(e)}},{key:"login",value:function(e){return this.auth.login(e)}},{key:"logout",value:function(e){return this.appProcessor.clearAppProcessor(),this.auth.logout(e)}},{key:"signup",value:function(e){return this.auth.signup(e)}},{key:"getUsersList",value:function(e){return this.auth.getUsersList(e)}},{key:"updateToken",value:function(e){return this.auth.updateToken(e)}},{key:"avatarUploadApi",value:function(e){return this.auth.avatarUploadApi(e)}},{key:"getVersion",value:function(){return this.auth.getVersion()}},{key:"getUserById",value:function(e){return this.auth.getUserById(e)}},{key:"getToken",value:function(){return this.auth.getToken()}},{key:"updateUser",value:function(e){return this.auth.updateUser(e)}},{key:"updateAvatar",value:function(e){return this.auth.updateAvatar(e)}}]),k}();exports.GudHub=P;
207
- },{"./gudhub-https-service.js":"hDvy","./PipeService/PipeService.js":"E3xI","./Storage/Storage.js":"CSHe","./WebSocket/WebSocket.js":"pHMV","./config.js":"TPH7","./Utils/Utils.js":"mWlG","./Auth/Auth.js":"rK64","./GHConstructor/ghconstructor.js":"Htuh","./AppProcessor/AppProcessor.js":"q0my","./ItemProcessor/ItemProcessor.js":"UUd3","./FieldProcessor/FieldProcessor.js":"PoPF","./FileManager/FileManager.js":"XUT2","./ChunksManager/ChunksManager.js":"KHGc","./DocumentManager/DocumentManager.js":"K1Gs","./GHConstructor/interpritate.js":"X4Dt","./consts.js":"UV2u","./WebSocket/WebsocketHandler.js":"sPce"}],"iRRN":[function(require,module,exports) {
214
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GudHub=void 0;var e=require("./gudhub-https-service.js"),t=require("./PipeService/PipeService.js"),r=require("./Storage/Storage.js"),i=require("./WebSocket/WebSocket.js"),n=require("./config.js"),s=require("./Utils/Utils.js"),u=require("./Auth/Auth.js"),o=require("./GHConstructor/ghconstructor.js"),a=require("./AppProcessor/AppProcessor.js"),c=require("./ItemProcessor/ItemProcessor.js"),l=require("./FieldProcessor/FieldProcessor.js"),p=require("./FileManager/FileManager.js"),h=require("./ChunksManager/ChunksManager.js"),f=require("./DocumentManager/DocumentManager.js"),d=require("./GHConstructor/interpritate.js"),g=require("./consts.js"),v=require("./WebSocket/WebsocketHandler.js"),k=require("./Utils/sharing/GroupSharing.js"),y=require("./Utils/sharing/Sharing.js");function m(e,t,r,i,n,s,u){try{var o=e[s](u),a=o.value}catch(c){return void r(c)}o.done?t(a):Promise.resolve(a).then(i,n)}function w(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var s=e.apply(t,r);function u(e){m(s,i,n,u,o,"next",e)}function o(e){m(s,i,n,u,o,"throw",e)}u(void 0)})}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function P(e,t,r){return t&&b(e.prototype,t),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var F=function(){function m(g){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{server_url:n.server_url,wss_url:n.wss_url,initWebsocket:!1,activateSW:!1,swLink:"",async_modules_path:n.async_modules_path,file_server_url:n.file_server_url};if(S(this,m),this.ghconstructor=new o.GHConstructor(this),this.interpritate=new d.Interpritate(this),this.pipeService=new t.PipeService,this.storage=new r.Storage(w.async_modules_path,w.file_server_url),this.util=new s.Utils(this),this.req=new e.GudHubHttpsService(w.server_url),this.auth=new u.Auth(this.req,this.storage),this.sharing=new y.Sharing(this,this.req),this.groupSharing=new k.GroupSharing(this,this.req,this.pipeService),g&&this.storage.setUser({auth_key:g}),this.req.init(this.auth.getToken.bind(this.auth)),this.ws=new i.WebSocketApi(w.wss_url,this.auth),this.chunksManager=new h.ChunksManager(this.storage,this.pipeService,this.req,this.util),this.appProcessor=new a.AppProcessor(this.storage,this.pipeService,this.req,this.ws,this.chunksManager,this.util,w.activateSW),this.itemProcessor=new c.ItemProcessor(this.storage,this.pipeService,this.req,this.appProcessor,this.util),this.fieldProcessor=new l.FieldProcessor(this.storage,this.req,this.appProcessor,this.itemProcessor,this.pipeService),this.fileManager=new p.FileManager(this.storage,this.pipeService,this.req,this.appProcessor),this.documentManager=new f.DocumentManager(this.req,this.pipeService),w.initWebsocket){this.ws.initWebSocket(v.WebsocketHandler.bind(this,this),this.appProcessor.refreshApps.bind(this.appProcessor))}w.activateSW&&this.activateSW(w.swLink)}return P(m,[{key:"activateSW",value:function(){var e=w(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(g.IS_WEB&&"serviceWorker"in window.navigator)){e.next=14;break}return e.prev=1,e.next=4,window.navigator.serviceWorker.register(t);case 4:(r=e.sent).update().then(function(){return console.log("%cSW ->>> Service worker successful updated","display: inline-block ; background-color: #689f38 ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;")}).catch(function(){return console.warn("SW ->>> Service worker is not updated")}),console.log("%cSW ->>> Service worker is registered","display: inline-block ; background-color: #689f38 ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.warn("%cSW ->>> Service worker is not registered","display: inline-block ; background-color: #d32f2f ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;",e.t0);case 12:e.next=15;break;case 14:console.log("%cSW ->>> ServiceWorkers not supported","display: inline-block ; background-color: #d32f2f ; color: #ffffff ; font-weight: bold ; padding: 3px 7px; border-radius: 3px;");case 15:case"end":return e.stop()}},e,null,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"on",value:function(e,t,r){return this.pipeService.on(e,t,r),this}},{key:"emit",value:function(e,t,r,i){return this.pipeService.emit(e,t,r,i),this}},{key:"destroy",value:function(e,t,r){return this.pipeService.destroy(e,t,r),this}},{key:"prefilter",value:function(e,t,r,i,n){return this.util.prefilter(e,t,r,i,n)}},{key:"getInterpretation",value:function(e,t,r,i,n,s,u){return this.interpritate.getInterpretation(e,t,r,i,n,s,u)}},{key:"getInterpretationById",value:function(e,t,r,i){return this.interpritate.getInterpretationById(e,t,r,i)}},{key:"filter",value:function(e,t){return this.util.filter(e,t)}},{key:"group",value:function(e,t){return this.util.group(e,t)}},{key:"getFilteredItems",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.util.getFilteredItems(e,t,r.element_app_id,r.app_id,r.item_id,r.field_group,r.search,r.search_params)}},{key:"jsonToItems",value:function(e,t){return this.util.jsonToItems(e,t)}},{key:"getDate",value:function(e){return this.util.getDate(e)}},{key:"populateWithDate",value:function(e,t){return this.util.populateWithDate(e,t)}},{key:"checkRecurringDate",value:function(e,t){return this.util.checkRecurringDate(e,t)}},{key:"populateItems",value:function(e,t,r){return this.util.populateItems(e,t,r)}},{key:"populateWithItemRef",value:function(e,t,r,i,n,s){return this.util.populateWithItemRef(e,t,r,i,n,s)}},{key:"compareItems",value:function(e,t,r){return this.util.compareItems(e,t,r)}},{key:"mergeItems",value:function(e,t,r){return this.util.mergeItems(e,t,r)}},{key:"mergeObjects",value:function(e,t){return this.util.mergeObjects(e,t)}},{key:"makeNestedList",value:function(e,t,r,i,n){return this.util.makeNestedList(e,t,r,i,n)}},{key:"jsonConstructor",value:function(e,t,r){return this.util.jsonConstructor(e,t,r)}},{key:"getAppsList",value:function(){return this.appProcessor.getAppsList()}},{key:"getAppInfo",value:function(e){return this.appProcessor.getAppInfo(e)}},{key:"deleteApp",value:function(e){return this.appProcessor.deleteApp(e)}},{key:"getApp",value:function(e){return this.appProcessor.getApp(e)}},{key:"updateApp",value:function(e){return this.appProcessor.updateApp(e)}},{key:"updateAppInfo",value:function(e){return this.appProcessor.updateAppInfo(e)}},{key:"createNewApp",value:function(e){return this.appProcessor.createNewApp(e)}},{key:"getItems",value:function(e){return this.itemProcessor.getItems(e)}},{key:"getItem",value:function(){var e=w(regeneratorRuntime.mark(function e(t,r){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItems(t);case 2:if(!(i=e.sent)){e.next=5;break}return e.abrupt("return",i.find(function(e){return e.item_id==r}));case 5:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"addNewItems",value:function(e,t){return this.itemProcessor.addNewItems(e,t)}},{key:"updateItems",value:function(e,t){return this.itemProcessor.updateItems(e,t)}},{key:"deleteItems",value:function(e,t){return this.itemProcessor.deleteItems(e,t)}},{key:"getField",value:function(e,t){return this.fieldProcessor.getField(e,t)}},{key:"getFieldModels",value:function(e){return this.fieldProcessor.getFieldModels(e)}},{key:"updateField",value:function(e,t){return this.fieldProcessor.updateField(e,t)}},{key:"deleteField",value:function(e,t){return this.fieldProcessor.deleteField(e,t)}},{key:"getFieldValue",value:function(e,t,r){return this.fieldProcessor.getFieldValue(e,t,r)}},{key:"setFieldValue",value:function(e,t,r,i){return this.fieldProcessor.setFieldValue(e,t,r,i)}},{key:"getFile",value:function(e,t){return this.fileManager.getFile(e,t)}},{key:"getFiles",value:function(e,t){return this.fileManager.getFiles(e,t)}},{key:"uploadFile",value:function(e,t,r){return this.fileManager.uploadFile(e,t,r)}},{key:"uploadFileFromString",value:function(e,t,r,i,n,s,u){return this.fileManager.uploadFileFromString(e,t,r,i,n,s,u)}},{key:"updateFileFromString",value:function(e,t,r,i,n){return this.fileManager.updateFileFromString(e,t,r,i,n)}},{key:"deleteFile",value:function(e,t){return this.fileManager.deleteFile(e,t)}},{key:"duplicateFile",value:function(e){return this.fileManager.duplicateFile(e)}},{key:"downloadFileFromString",value:function(e,t){return this.fileManager.downloadFileFromString(e,t)}},{key:"createDocument",value:function(e){return this.documentManager.createDocument(e)}},{key:"getDocument",value:function(e){return this.documentManager.getDocument(e)}},{key:"getDocuments",value:function(e){return this.documentManager.getDocuments(e)}},{key:"deleteDocument",value:function(e){return this.documentManager.deleteDocument(e)}},{key:"login",value:function(e){return this.auth.login(e)}},{key:"logout",value:function(e){return this.appProcessor.clearAppProcessor(),this.auth.logout(e)}},{key:"signup",value:function(e){return this.auth.signup(e)}},{key:"getUsersList",value:function(e){return this.auth.getUsersList(e)}},{key:"updateToken",value:function(e){return this.auth.updateToken(e)}},{key:"avatarUploadApi",value:function(e){return this.auth.avatarUploadApi(e)}},{key:"getVersion",value:function(){return this.auth.getVersion()}},{key:"getUserById",value:function(e){return this.auth.getUserById(e)}},{key:"getToken",value:function(){return this.auth.getToken()}},{key:"updateUser",value:function(e){return this.auth.updateUser(e)}},{key:"updateAvatar",value:function(e){return this.auth.updateAvatar(e)}}]),m}();exports.GudHub=F;
215
+ },{"./gudhub-https-service.js":"hDvy","./PipeService/PipeService.js":"E3xI","./Storage/Storage.js":"CSHe","./WebSocket/WebSocket.js":"pHMV","./config.js":"TPH7","./Utils/Utils.js":"mWlG","./Auth/Auth.js":"rK64","./GHConstructor/ghconstructor.js":"Htuh","./AppProcessor/AppProcessor.js":"q0my","./ItemProcessor/ItemProcessor.js":"UUd3","./FieldProcessor/FieldProcessor.js":"PoPF","./FileManager/FileManager.js":"XUT2","./ChunksManager/ChunksManager.js":"KHGc","./DocumentManager/DocumentManager.js":"K1Gs","./GHConstructor/interpritate.js":"X4Dt","./consts.js":"UV2u","./WebSocket/WebsocketHandler.js":"sPce","./Utils/sharing/GroupSharing.js":"LS0j","./Utils/sharing/Sharing.js":"XaHW"}],"iRRN":[function(require,module,exports) {
208
216
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"GudHub",{enumerable:!0,get:function(){return e.GudHub}}),exports.default=void 0,require("regenerator-runtime/runtime.js");var e=require("./GUDHUB/gudhub.js"),r=e.GudHub;exports.default=r;
209
217
  },{"regenerator-runtime/runtime.js":"KA2S","./GUDHUB/gudhub.js":"U9gy"}]},{},["iRRN"], "GudHubLibrary")
210
218
  //# sourceMappingURL=/library.min.js.map