driver-manage/unpackage/cache/wgt/__UNI__7A6878C/app-service.js

17 lines
372 KiB
JavaScript
Raw Normal View History

2024-08-28 11:51:49 +08:00
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0013":function(t,e,i){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/login/loginSms",(function(){return Vue.extend(i("5561").default)})),__definePage("pages/teacher/index",(function(){return Vue.extend(i("be98").default)})),__definePage("pages/teacher/ActiveList",(function(){return Vue.extend(i("84ec").default)})),__definePage("pages/teacher/setUp",(function(){return Vue.extend(i("a805").default)})),__definePage("pages/teacher/ManageList",(function(){return Vue.extend(i("eeae").default)})),__definePage("pages/teacher/orderManage",(function(){return Vue.extend(i("7492").default)})),__definePage("pages/teacher/StudentManagement",(function(){return Vue.extend(i("97f5").default)})),__definePage("pages/index/index",(function(){return Vue.extend(i("ee61").default)})),__definePage("pages/index/ManageList",(function(){return Vue.extend(i("eb46").default)})),__definePage("pages/index/Details",(function(){return Vue.extend(i("fa0b").default)})),__definePage("pages/index/orderManage",(function(){return Vue.extend(i("7785").default)})),__definePage("pages/index/orderDetails",(function(){return Vue.extend(i("0d0a").default)})),__definePage("pages/index/cadetManage",(function(){return Vue.extend(i("c495").default)})),__definePage("pages/index/cadetDetails",(function(){return Vue.extend(i("b229").default)})),__definePage("pages/index/CoachManage",(function(){return Vue.extend(i("ca3b").default)})),__definePage("pages/index/CoachDetails",(function(){return Vue.extend(i("73e2").default)})),__definePage("pages/index/addCoach",(function(){return Vue.extend(i("8f08").default)})),__definePage("pages/index/courseManage",(function(){return Vue.extend(i("de85").default)})),__definePage("pages/index/coachSelect",(function(){return Vue.extend(i("179c").default)})),__definePage("pages/index/CourseEditing",(function(){return Vue.extend(i("263b").default)})),__definePage("pages/index/SchoolEditor",(function(){return Vue.extend(i("4099").default)}))},"0062":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("a34a")),s=n(i("c973")),a=n(i("c058")),o={data:function(){return{courseList:[]}},onShow:function(){this.findCourseList()},onPullDownRefresh:function(){t("log","\u5237\u65b0"," at pages/teacher/ManageList.vue:43"),uni.stopPullDownRefresh()},onReachBottom:function(){setTimeout((function(){t("log","\u52a0\u8f7d\u6267\u884c"," at pages/teacher/ManageList.vue:49")}),2e3)},methods:{findCourseList:function(){var t=this;return(0,s.default)(r.default.mark((function e(){var i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.default)({url:"/drivingSchool/system/reservationCourse/applet/getReservationCourseListByUserId",method:"get"});case 2:i=e.sent,t.courseList=i.data;case 4:case"end":return e.stop()}}),e)})))()},goDetails:function(){uni.navigateTo({url:"/pages/index/Details"})}}};e.default=o}).call(this,i("0de9")["default"])},"018e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","u-icon"),class:t._$s(0,"c",["u-icon--"+t.labelPos]),attrs:{_i:0},on:{c
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,i.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(f))}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},d.prototype.commit=function(t,e,i){var n=this,r=b(t,e,i),s=r.type,a=r.payload,o=(r.options,{type:s,payload:a}),c=this._mutations[s];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(o,n.state)})))},d.prototype.dispatch=function(t,i){var n=this,r=b(t,i),s=r.type,a=r.payload,o={type:s,payload:a},c=this._actions[s];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(e){0}var u=c.length>1?Promise.all(c.map((function(t){return t(a)}))):c[0](a);return new Promise((function(t,i){u.then((function(i){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(e){0}t(i)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(e){0}i(t)}))}))}},d.prototype.subscribe=function(t,e){return v(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){var i="function"===typeof t?{before:t}:t;return v(i,this._actionSubscribers,e)},d.prototype.watch=function(t,e,i){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,i)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),i.preserveState),_(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var i=g(e.state,t.slice(0,-1));f.delete(i,t[t.length-1])})),h(this)},d.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),h(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,p);var w=S((function(t,e){var i={};return O(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=A(this.$store,"mapState",t);if(!n)return;e=n.context.state,i=n.context.getters}return"function"===typeof r?r.call(this,e,i):e[r]},i[n].vuex=!0})),i})),x=S((function(t,e){var i={};return O(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.commit;if(t){var s=A(this.$store,"mapMutations",t);if(!s)return;n=s.context.commit}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),C=S((function(t,e){var i={};return O(e).forEach((function(e){var n=e.key,r=e.val;r=t+r,i[n]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[r]},i[n].vuex=!0})),i})),$=S((function(t,e){var i={};return O(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var s=A(this.$store,"mapActions",t);if(!s)return;n=s.context.dispatch}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i}));function O(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function S(t){return function(e,i){return"string"!==typeof e?(i=e,e=""):"/"!==e.ch
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=r=function(){return i},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,i={},s=Object.prototype,a=s.hasOwnProperty,o=Object.defineProperty||function(t,e,i){t[e]=i.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,i){return t[e]=i}}function p(t,e,i,n){var r=e&&e.prototype instanceof b?e:b,s=Object.create(r.prototype),a=new I(n||[]);return o(s,"_invoke",{value:P(t,i,a)}),s}function v(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=p;var h="suspendedStart",_="executing",m="completed",g={};function b(){}function y(){}function w(){}var x={};d(x,u,(function(){return this}));var C=Object.getPrototypeOf,$=C&&C(C(B([])));$&&$!==s&&a.call($,u)&&(x=$);var O=w.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function i(r,s,o,c){var u=v(t[r],t,s);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,o,c)}),(function(t){i("throw",t,o,c)})):e.resolve(f).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,c)}))}c(u.arg)}var r;o(this,"_invoke",{value:function(t,n){function s(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(s,s):s()}})}function P(t,i,n){var r=h;return function(s,a){if(r===_)throw new Error("Generator is already running");if(r===m){if("throw"===s)throw a;return{value:e,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var c=k(o,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=_;var u=v(t,i,n);if("normal"===u.type){if(r=n.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=m,n.method="throw",n.arg=u.arg)}}}function k(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator["return"]&&(i.method="return",i.arg=e,k(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var s=v(r,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,g;var a=s.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function B(t){if(t||""===t){var i=t[u];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function i(){for(;++r<t.length;)if(a.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return s.next=s}}throw new TypeError(n(t)+" is not iterable")}return y.prototype=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=d(w,f,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,f,"GeneratorFunction")),t.prototype=Object.create(O),t},i.awrap=function(t){return{__await:t}},S(A.prototype),d(A.prototype,l,(function(){return this})),i.AsyncIterator=A,i.async=fu
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,i,n,r){var s,a,o=8*r-n-1,c=(1<<o)-1,u=c>>1,l=-7,f=i?r-1:0,d=i?-1:1,p=t[e+f];for(f+=d,s=p&(1<<-l)-1,p>>=-l,l+=o;l>0;s=256*s+t[e+f],f+=d,l-=8);for(a=s&(1<<-l)-1,s>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===s)s=1-u;else{if(s===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),s-=u}return(p?-1:1)*a*Math.pow(2,s-n)},e.write=function(t,e,i,n,r,s){var a,o,c,u=8*s-r-1,l=(1<<u)-1,f=l>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,v=n?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?d/c:d*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=l?(o=0,a=l):a+f>=1?(o=(e*c-1)*Math.pow(2,r),a+=f):(o=e*Math.pow(2,f-1)*Math.pow(2,r),a=0));r>=8;t[i+p]=255&o,p+=v,o/=256,r-=8);for(a=a<<r|o,u+=r;u>0;t[i+p]=255&a,p+=v,a/=256,u-=8);t[i+p-v]|=128*h}},"917a":function(t,e,i){"use strict";i.r(e);var n=i("0a32"),r=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=r.a},9193:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uOverlay:i("c1c9").default,uTransition:i("506c").default,uStatusBar:i("19ef").default,uIcon:i("ea4a").default,uSafeBottom:i("ba59").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","u-popup"),attrs:{_i:0}},[t._$s(1,"i",t.overlay)?i("u-overlay",{attrs:{show:t.show,duration:t.overlayDuration,customStyle:t.overlayStyle,opacity:t.overlayOpacity,_i:1},on:{click:t.overlayClick}}):t._e(),i("u-transition",{attrs:{show:t.show,customStyle:t.transitionStyle,mode:t.position,duration:t.duration,_i:2},on:{afterEnter:t.afterEnter,click:t.clickHandler}},[i("view",{staticClass:t._$s(3,"sc","u-popup__content"),style:t._$s(3,"s",[t.contentStyle]),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.noop(e)}}},[t._$s(4,"i",t.safeAreaInsetTop)?i("u-status-bar",{attrs:{_i:4}}):t._e(),t._t("default",null,{_i:5}),t._$s(6,"i",t.closeable)?i("view",{staticClass:t._$s(6,"sc","u-popup__content__close"),class:t._$s(6,"c",["u-popup__content__close--"+t.closeIconPos]),attrs:{_i:6},on:{click:function(e){return e.stopPropagation(),t.close(e)}}},[i("u-icon",{attrs:{name:"close",color:"#909399",size:"18",bold:!0,_i:7}})],1):t._e(),t._$s(8,"i",t.safeAreaInsetBottom)?i("u-safe-bottom",{attrs:{_i:8}}):t._e()],2)])],1)},s=[]},"91df":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("730a")),s={navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:r.default.mainColor,autoBack:!1,titleStyle:""}};e.default=s},"93ab":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("a34a")),s=n(i("c973")),a=n(i("c058")),o=(i("384b"),{data:function(){return{tabindex:0,tablist:[{name:"\u5168\u90e8\u8ba2\u5355"},{name:"\u5df2\u62a5\u540d"},{name:"\u5df2\u4ed8\u6b3e"},{name:"\u5df2\u9762\u7b7e"}],userId:null,listData:["\u5168\u90e8\u8ba2\u5355","\u5df2\u62a5\u540d","\u5df2\u4ed8\u6b3e","\u5df2\u9762\u7b7e"],listDataIndex:0,orderList:[],isState:!1}},onShow:function(){this.findOrderListByState(0)},onPullDownRefresh:function(){t("log","\u5237\u65b0"," at pages/index/orderManage.vue:128"),uni.stopPullDownRefresh()},onReachBottom:function(){setTimeout((function(){t("log","\u52a0\u8f7d\u6267\u884c"," at pages/index/orderManage.vue:134")}),2e3)},methods:{findOrderListByState:function(t){var e=this;return(0,s.default)(r.default.mark((function i(){var n,s;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.tabindex=t,n=null,1==t?n=0:2==t?n=1:3==t&&(n=2),i.next=5,(0,a.default)({url:"/system/pay/list",method:"get",params:{isSign:0,state:n}});case 5:s=i.sent,e.orderList=s.rows;case 7:case"end":return i.stop()}}),i)})))()
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("1fb5"),s=n("9152"),a=n("e3db");function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,i){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,i);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return l(this,t,e,i)}function l(t,e,i,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n);u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=p(t,e);return t}(t,e,i,n):"string"===typeof e?function(t,e,i){"string"===typeof i&&""!==i||(i="utf8");if(!u.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(e,i);t=c(t,n);var r=t.write(e,i);r!==n&&(t=t.slice(0,r));return t}(t,e,i):function(t,e){if(u.isBuffer(e)){var i=0|v(e.length);return t=c(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||function(t){return t!==t}(e.length)?c(t,0):p(t,e);if("Buffer"===e.type&&a(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(f(e),t=c(t,e<0?0:0|v(e)),!u.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function p(t,e){var i=e.length<0?0:0|v(e.length);t=c(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function v(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Q(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return j(this,e,i);case"utf8":case"utf-8":return A(this,e,i);case"ascii":return P(this,e,i);case"latin1":case"binary":return k(this,e,i);case"base64":return S(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function g(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,i,n,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):b(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,n,r){var s,a=1,o=t.length,c=e.length;if